xref: /AOO41X/main/svtools/source/plugapp/testtool.src (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1*cdf0e10cSrcweir/*************************************************************************
2*cdf0e10cSrcweir *
3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir *
5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir *
7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir *
9*cdf0e10cSrcweir * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir *
11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir *
15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir *
21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir *
26*cdf0e10cSrcweir ************************************************************************/
27*cdf0e10cSrcweir#include "testtool.hrc"
28*cdf0e10cSrcweir#include <svl/solar.hrc>
29*cdf0e10cSrcweir
30*cdf0e10cSrcweir
31*cdf0e10cSrcweir#define Control_Control	5
32*cdf0e10cSrcweir#define Control_Border	7
33*cdf0e10cSrcweir#define Button_Button	Control_Control
34*cdf0e10cSrcweir#define ButtonWidth		40
35*cdf0e10cSrcweir
36*cdf0e10cSrcweir
37*cdf0e10cSrcweirToolBox DisplayHidToolBox {
38*cdf0e10cSrcweir	SVLook = TRUE ;
39*cdf0e10cSrcweir	ItemList = {
40*cdf0e10cSrcweir	ToolBoxItem  {
41*cdf0e10cSrcweir			Type = TOOLBOXITEM_BUTTON;
42*cdf0e10cSrcweir			_ToolBoxItemFlags = TIB_AUTOCHECK ;
43*cdf0e10cSrcweir
44*cdf0e10cSrcweir/*
45*cdf0e10cSrcweirclass FlagToolBoxState
46*cdf0e10cSrcweir{
47*cdf0e10cSrcweir	TIB_CHECKABLE, TIB_AUTOCHECK, TIB_RADIOCHECK, TIB_LEFT,
48*cdf0e10cSrcweir	TIB_AUTOSIZE, TIB_DROPDOWN,
49*cdf0e10cSrcweir};*/
50*cdf0e10cSrcweir			Identifier = TT_SHOW;
51*cdf0e10cSrcweir			ItemBitmap = Bitmap  {
52*cdf0e10cSrcweir				File = "ttshow.bmp";
53*cdf0e10cSrcweir			};
54*cdf0e10cSrcweir			Text[ en-US ] = "Display IDs";
55*cdf0e10cSrcweir		};
56*cdf0e10cSrcweir	ToolBoxItem  {
57*cdf0e10cSrcweir			Type = TOOLBOXITEM_SEPARATOR;
58*cdf0e10cSrcweir		};
59*cdf0e10cSrcweir	ToolBoxItem  {
60*cdf0e10cSrcweir			_ToolBoxItemFlags = TIB_AUTOSIZE;
61*cdf0e10cSrcweir			Identifier = TT_OUTPUT;
62*cdf0e10cSrcweir			Text[ en-US ] = "This is the input window";
63*cdf0e10cSrcweir		};
64*cdf0e10cSrcweir	ToolBoxItem  {
65*cdf0e10cSrcweir			Type = TOOLBOXITEM_SEPARATOR;
66*cdf0e10cSrcweir		};
67*cdf0e10cSrcweir	ToolBoxItem  {
68*cdf0e10cSrcweir			Identifier = TT_SEND_DATA;
69*cdf0e10cSrcweir			ItemBitmap = Bitmap  {
70*cdf0e10cSrcweir				File = "ttremote.bmp";
71*cdf0e10cSrcweir			};
72*cdf0e10cSrcweir			Text[ en-US ] = "Transfer to TestTool";
73*cdf0e10cSrcweir		};
74*cdf0e10cSrcweir	ToolBoxItem  {
75*cdf0e10cSrcweir			Type = TOOLBOXITEM_SEPARATOR;
76*cdf0e10cSrcweir		};
77*cdf0e10cSrcweir	ToolBoxItem  {
78*cdf0e10cSrcweir			Identifier = TT_ALLWIN;
79*cdf0e10cSrcweir			ItemBitmap = Bitmap  {
80*cdf0e10cSrcweir				File = "ttall.bmp";
81*cdf0e10cSrcweir			};
82*cdf0e10cSrcweir			Text[ en-US ] = "Show all windows";
83*cdf0e10cSrcweir		};
84*cdf0e10cSrcweir	ToolBoxItem  {
85*cdf0e10cSrcweir			Identifier = TT_KURZNAME;
86*cdf0e10cSrcweir			ItemBitmap = Bitmap  {
87*cdf0e10cSrcweir				File = "ttdef.bmp";
88*cdf0e10cSrcweir			};
89*cdf0e10cSrcweir			Text[ en-US ] = "Show short names (if available)";
90*cdf0e10cSrcweir		};
91*cdf0e10cSrcweir	ToolBoxItem  {
92*cdf0e10cSrcweir			Identifier = TT_LANGNAME;
93*cdf0e10cSrcweir			ItemBitmap = Bitmap  {
94*cdf0e10cSrcweir				File = "tthid.bmp";
95*cdf0e10cSrcweir			};
96*cdf0e10cSrcweir			Text[ en-US ] = "Always show long-name";
97*cdf0e10cSrcweir		};
98*cdf0e10cSrcweir	};
99*cdf0e10cSrcweir	Text[ en-US ] = "DisplayHID";
100*cdf0e10cSrcweir};
101*cdf0e10cSrcweir
102*cdf0e10cSrcweirBitmap TT_SHOW2 {
103*cdf0e10cSrcweir	File = "ttshow2.bmp";
104*cdf0e10cSrcweir};
105*cdf0e10cSrcweir
106*cdf0e10cSrcweirWorkWindow TT_INLINE_TRANSLATION {
107*cdf0e10cSrcweir    HelpID = "svtools:WorkWindow:TT_INLINE_TRANSLATION";
108*cdf0e10cSrcweir	SVLook = TRUE;
109*cdf0e10cSrcweir	Size = MAP_APPFONT( 2*Control_Border + 4*ButtonWidth + 3*Button_Button, 120 );
110*cdf0e10cSrcweir	Moveable = TRUE;
111*cdf0e10cSrcweir	Sizeable = TRUE;
112*cdf0e10cSrcweir	Closeable = TRUE;
113*cdf0e10cSrcweir	Border = TRUE;
114*cdf0e10cSrcweir	GroupBox TT_GB_TRANSLATION {
115*cdf0e10cSrcweir			Pos = MAP_APPFONT( 2, 3 );
116*cdf0e10cSrcweir			Size = MAP_APPFONT( 173, 44 );
117*cdf0e10cSrcweir		Text[ en-US ] = "Translation";
118*cdf0e10cSrcweir	};
119*cdf0e10cSrcweir	Edit TT_E_NEW {
120*cdf0e10cSrcweir	    HelpID = "svtools:Edit:TT_INLINE_TRANSLATION:TT_E_NEW";
121*cdf0e10cSrcweir			Disable = TRUE;
122*cdf0e10cSrcweir			Border = TRUE;
123*cdf0e10cSrcweir			Pos = MAP_APPFONT( 7, 16 );
124*cdf0e10cSrcweir			Size = MAP_APPFONT( 162, 12 );
125*cdf0e10cSrcweir			TabStop = TRUE;
126*cdf0e10cSrcweir		Text[ en-US ] = "~Edit";
127*cdf0e10cSrcweir	};
128*cdf0e10cSrcweir	FixedText TT_FT_OLD {
129*cdf0e10cSrcweir			Pos = MAP_APPFONT( 7, 33 );
130*cdf0e10cSrcweir			Size = MAP_APPFONT( 162, 10 );
131*cdf0e10cSrcweir		Text[ en-US ] = "Original Text";
132*cdf0e10cSrcweir	};
133*cdf0e10cSrcweir	GroupBox TT_GB_COMMENT {
134*cdf0e10cSrcweir			Pos = MAP_APPFONT( 2, 52 );
135*cdf0e10cSrcweir			Size = MAP_APPFONT( 173, 32 );
136*cdf0e10cSrcweir		Text[ en-US ] = "Comment";
137*cdf0e10cSrcweir	};
138*cdf0e10cSrcweir	Edit TT_E_COMMENT {
139*cdf0e10cSrcweir	    HelpID = "svtools:Edit:TT_INLINE_TRANSLATION:TT_E_COMMENT";
140*cdf0e10cSrcweir			Disable = TRUE;
141*cdf0e10cSrcweir			Border = TRUE;
142*cdf0e10cSrcweir			Pos = MAP_APPFONT( 7, 64 );
143*cdf0e10cSrcweir			Size = MAP_APPFONT( 162, 12 );
144*cdf0e10cSrcweir			TabStop = TRUE;
145*cdf0e10cSrcweir		Text[ en-US ] = "~Comment";
146*cdf0e10cSrcweir	};
147*cdf0e10cSrcweir	PushButton TT_PB_SELECT {
148*cdf0e10cSrcweir	    HelpID = "svtools:PushButton:TT_INLINE_TRANSLATION:TT_PB_SELECT";
149*cdf0e10cSrcweir			Pos = MAP_APPFONT( Control_Border, 89 );
150*cdf0e10cSrcweir			Size = MAP_APPFONT( ButtonWidth, 12 );
151*cdf0e10cSrcweir			TabStop = TRUE;
152*cdf0e10cSrcweir		Text[ en-US ] = "~Select";
153*cdf0e10cSrcweir	};
154*cdf0e10cSrcweir	PushButton TT_PB_RESTORE {
155*cdf0e10cSrcweir	    HelpID = "svtools:PushButton:TT_INLINE_TRANSLATION:TT_PB_RESTORE";
156*cdf0e10cSrcweir			Disable = TRUE;
157*cdf0e10cSrcweir			Pos = MAP_APPFONT( Control_Border + ButtonWidth + Button_Button, 89 );
158*cdf0e10cSrcweir			Size = MAP_APPFONT( ButtonWidth, 12 );
159*cdf0e10cSrcweir			TabStop = TRUE;
160*cdf0e10cSrcweir		Text[ en-US ] = "~Restore";
161*cdf0e10cSrcweir	};
162*cdf0e10cSrcweir	PushButton TT_PB_ACCEPT {
163*cdf0e10cSrcweir	    HelpID = "svtools:PushButton:TT_INLINE_TRANSLATION:TT_PB_ACCEPT";
164*cdf0e10cSrcweir			Disable = TRUE;
165*cdf0e10cSrcweir			Pos = MAP_APPFONT( Control_Border + 2*(ButtonWidth + Button_Button), 89 );
166*cdf0e10cSrcweir			Size = MAP_APPFONT( ButtonWidth, 12 );
167*cdf0e10cSrcweir			TabStop = TRUE;
168*cdf0e10cSrcweir		Text[ en-US ] = "~Accept";
169*cdf0e10cSrcweir	};
170*cdf0e10cSrcweir	PushButton TT_PB_NEXT {
171*cdf0e10cSrcweir	    HelpID = "svtools:PushButton:TT_INLINE_TRANSLATION:TT_PB_NEXT";
172*cdf0e10cSrcweir			Pos = MAP_APPFONT( Control_Border + 3*(ButtonWidth + Button_Button), 89 );
173*cdf0e10cSrcweir			Size = MAP_APPFONT( ButtonWidth, 12 );
174*cdf0e10cSrcweir			TabStop = TRUE;
175*cdf0e10cSrcweir		Text[ en-US ] = "~Next";
176*cdf0e10cSrcweir	};
177*cdf0e10cSrcweir	Text[ en-US ] = "Inplace Translation";
178*cdf0e10cSrcweir};
179*cdf0e10cSrcweir
180*cdf0e10cSrcweirMessBox TT_DISCARD_CHANGED_DATA {
181*cdf0e10cSrcweir	Buttons = WB_YES_NO;
182*cdf0e10cSrcweir	DefButton = WB_DEF_YES;
183*cdf0e10cSrcweir	Message[ en-US ] = "The Translation will be lost. Proceed anyway?";
184*cdf0e10cSrcweir};
185*cdf0e10cSrcweir
186*cdf0e10cSrcweirErrorBox TT_NO_CONTROL {
187*cdf0e10cSrcweir	Buttons = WB_OK;
188*cdf0e10cSrcweir	DefButton = WB_DEF_OK;
189*cdf0e10cSrcweir	Message[ en-US ] = "The Control is no longer valid. The Translation cannot be saved.";
190*cdf0e10cSrcweir};
191*cdf0e10cSrcweir
192*cdf0e10cSrcweirString TT_GPF
193*cdf0e10cSrcweir{
194*cdf0e10cSrcweir	Text[ en-US ] = "GPF occurred";
195*cdf0e10cSrcweir};
196*cdf0e10cSrcweir
197*cdf0e10cSrcweirString TT_ALTERNATE_CAPTION
198*cdf0e10cSrcweir{
199*cdf0e10cSrcweir	Text[ en-US ] = "HelpID does not match UniqueID: ";
200*cdf0e10cSrcweir};
201*cdf0e10cSrcweir
202