xref: /AOO41X/main/svtools/source/plugapp/testtool.src (revision 3c07ef425d034dcad9cc1ce5c1f53e9e7688db41)
1*3c07ef42SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*3c07ef42SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*3c07ef42SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*3c07ef42SAndrew Rist * distributed with this work for additional information
6*3c07ef42SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*3c07ef42SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*3c07ef42SAndrew Rist * "License"); you may not use this file except in compliance
9*3c07ef42SAndrew Rist * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir *
11*3c07ef42SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
13*3c07ef42SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*3c07ef42SAndrew Rist * software distributed under the License is distributed on an
15*3c07ef42SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*3c07ef42SAndrew Rist * KIND, either express or implied.  See the License for the
17*3c07ef42SAndrew Rist * specific language governing permissions and limitations
18*3c07ef42SAndrew Rist * under the License.
19cdf0e10cSrcweir *
20*3c07ef42SAndrew Rist *************************************************************/
21*3c07ef42SAndrew Rist
22*3c07ef42SAndrew Rist
23cdf0e10cSrcweir#include "testtool.hrc"
24cdf0e10cSrcweir#include <svl/solar.hrc>
25cdf0e10cSrcweir
26cdf0e10cSrcweir
27cdf0e10cSrcweir#define Control_Control	5
28cdf0e10cSrcweir#define Control_Border	7
29cdf0e10cSrcweir#define Button_Button	Control_Control
30cdf0e10cSrcweir#define ButtonWidth		40
31cdf0e10cSrcweir
32cdf0e10cSrcweir
33cdf0e10cSrcweirToolBox DisplayHidToolBox {
34cdf0e10cSrcweir	SVLook = TRUE ;
35cdf0e10cSrcweir	ItemList = {
36cdf0e10cSrcweir	ToolBoxItem  {
37cdf0e10cSrcweir			Type = TOOLBOXITEM_BUTTON;
38cdf0e10cSrcweir			_ToolBoxItemFlags = TIB_AUTOCHECK ;
39cdf0e10cSrcweir
40cdf0e10cSrcweir/*
41cdf0e10cSrcweirclass FlagToolBoxState
42cdf0e10cSrcweir{
43cdf0e10cSrcweir	TIB_CHECKABLE, TIB_AUTOCHECK, TIB_RADIOCHECK, TIB_LEFT,
44cdf0e10cSrcweir	TIB_AUTOSIZE, TIB_DROPDOWN,
45cdf0e10cSrcweir};*/
46cdf0e10cSrcweir			Identifier = TT_SHOW;
47cdf0e10cSrcweir			ItemBitmap = Bitmap  {
48cdf0e10cSrcweir				File = "ttshow.bmp";
49cdf0e10cSrcweir			};
50cdf0e10cSrcweir			Text[ en-US ] = "Display IDs";
51cdf0e10cSrcweir		};
52cdf0e10cSrcweir	ToolBoxItem  {
53cdf0e10cSrcweir			Type = TOOLBOXITEM_SEPARATOR;
54cdf0e10cSrcweir		};
55cdf0e10cSrcweir	ToolBoxItem  {
56cdf0e10cSrcweir			_ToolBoxItemFlags = TIB_AUTOSIZE;
57cdf0e10cSrcweir			Identifier = TT_OUTPUT;
58cdf0e10cSrcweir			Text[ en-US ] = "This is the input window";
59cdf0e10cSrcweir		};
60cdf0e10cSrcweir	ToolBoxItem  {
61cdf0e10cSrcweir			Type = TOOLBOXITEM_SEPARATOR;
62cdf0e10cSrcweir		};
63cdf0e10cSrcweir	ToolBoxItem  {
64cdf0e10cSrcweir			Identifier = TT_SEND_DATA;
65cdf0e10cSrcweir			ItemBitmap = Bitmap  {
66cdf0e10cSrcweir				File = "ttremote.bmp";
67cdf0e10cSrcweir			};
68cdf0e10cSrcweir			Text[ en-US ] = "Transfer to TestTool";
69cdf0e10cSrcweir		};
70cdf0e10cSrcweir	ToolBoxItem  {
71cdf0e10cSrcweir			Type = TOOLBOXITEM_SEPARATOR;
72cdf0e10cSrcweir		};
73cdf0e10cSrcweir	ToolBoxItem  {
74cdf0e10cSrcweir			Identifier = TT_ALLWIN;
75cdf0e10cSrcweir			ItemBitmap = Bitmap  {
76cdf0e10cSrcweir				File = "ttall.bmp";
77cdf0e10cSrcweir			};
78cdf0e10cSrcweir			Text[ en-US ] = "Show all windows";
79cdf0e10cSrcweir		};
80cdf0e10cSrcweir	ToolBoxItem  {
81cdf0e10cSrcweir			Identifier = TT_KURZNAME;
82cdf0e10cSrcweir			ItemBitmap = Bitmap  {
83cdf0e10cSrcweir				File = "ttdef.bmp";
84cdf0e10cSrcweir			};
85cdf0e10cSrcweir			Text[ en-US ] = "Show short names (if available)";
86cdf0e10cSrcweir		};
87cdf0e10cSrcweir	ToolBoxItem  {
88cdf0e10cSrcweir			Identifier = TT_LANGNAME;
89cdf0e10cSrcweir			ItemBitmap = Bitmap  {
90cdf0e10cSrcweir				File = "tthid.bmp";
91cdf0e10cSrcweir			};
92cdf0e10cSrcweir			Text[ en-US ] = "Always show long-name";
93cdf0e10cSrcweir		};
94cdf0e10cSrcweir	};
95cdf0e10cSrcweir	Text[ en-US ] = "DisplayHID";
96cdf0e10cSrcweir};
97cdf0e10cSrcweir
98cdf0e10cSrcweirBitmap TT_SHOW2 {
99cdf0e10cSrcweir	File = "ttshow2.bmp";
100cdf0e10cSrcweir};
101cdf0e10cSrcweir
102cdf0e10cSrcweirWorkWindow TT_INLINE_TRANSLATION {
103cdf0e10cSrcweir    HelpID = "svtools:WorkWindow:TT_INLINE_TRANSLATION";
104cdf0e10cSrcweir	SVLook = TRUE;
105cdf0e10cSrcweir	Size = MAP_APPFONT( 2*Control_Border + 4*ButtonWidth + 3*Button_Button, 120 );
106cdf0e10cSrcweir	Moveable = TRUE;
107cdf0e10cSrcweir	Sizeable = TRUE;
108cdf0e10cSrcweir	Closeable = TRUE;
109cdf0e10cSrcweir	Border = TRUE;
110cdf0e10cSrcweir	GroupBox TT_GB_TRANSLATION {
111cdf0e10cSrcweir			Pos = MAP_APPFONT( 2, 3 );
112cdf0e10cSrcweir			Size = MAP_APPFONT( 173, 44 );
113cdf0e10cSrcweir		Text[ en-US ] = "Translation";
114cdf0e10cSrcweir	};
115cdf0e10cSrcweir	Edit TT_E_NEW {
116cdf0e10cSrcweir	    HelpID = "svtools:Edit:TT_INLINE_TRANSLATION:TT_E_NEW";
117cdf0e10cSrcweir			Disable = TRUE;
118cdf0e10cSrcweir			Border = TRUE;
119cdf0e10cSrcweir			Pos = MAP_APPFONT( 7, 16 );
120cdf0e10cSrcweir			Size = MAP_APPFONT( 162, 12 );
121cdf0e10cSrcweir			TabStop = TRUE;
122cdf0e10cSrcweir		Text[ en-US ] = "~Edit";
123cdf0e10cSrcweir	};
124cdf0e10cSrcweir	FixedText TT_FT_OLD {
125cdf0e10cSrcweir			Pos = MAP_APPFONT( 7, 33 );
126cdf0e10cSrcweir			Size = MAP_APPFONT( 162, 10 );
127cdf0e10cSrcweir		Text[ en-US ] = "Original Text";
128cdf0e10cSrcweir	};
129cdf0e10cSrcweir	GroupBox TT_GB_COMMENT {
130cdf0e10cSrcweir			Pos = MAP_APPFONT( 2, 52 );
131cdf0e10cSrcweir			Size = MAP_APPFONT( 173, 32 );
132cdf0e10cSrcweir		Text[ en-US ] = "Comment";
133cdf0e10cSrcweir	};
134cdf0e10cSrcweir	Edit TT_E_COMMENT {
135cdf0e10cSrcweir	    HelpID = "svtools:Edit:TT_INLINE_TRANSLATION:TT_E_COMMENT";
136cdf0e10cSrcweir			Disable = TRUE;
137cdf0e10cSrcweir			Border = TRUE;
138cdf0e10cSrcweir			Pos = MAP_APPFONT( 7, 64 );
139cdf0e10cSrcweir			Size = MAP_APPFONT( 162, 12 );
140cdf0e10cSrcweir			TabStop = TRUE;
141cdf0e10cSrcweir		Text[ en-US ] = "~Comment";
142cdf0e10cSrcweir	};
143cdf0e10cSrcweir	PushButton TT_PB_SELECT {
144cdf0e10cSrcweir	    HelpID = "svtools:PushButton:TT_INLINE_TRANSLATION:TT_PB_SELECT";
145cdf0e10cSrcweir			Pos = MAP_APPFONT( Control_Border, 89 );
146cdf0e10cSrcweir			Size = MAP_APPFONT( ButtonWidth, 12 );
147cdf0e10cSrcweir			TabStop = TRUE;
148cdf0e10cSrcweir		Text[ en-US ] = "~Select";
149cdf0e10cSrcweir	};
150cdf0e10cSrcweir	PushButton TT_PB_RESTORE {
151cdf0e10cSrcweir	    HelpID = "svtools:PushButton:TT_INLINE_TRANSLATION:TT_PB_RESTORE";
152cdf0e10cSrcweir			Disable = TRUE;
153cdf0e10cSrcweir			Pos = MAP_APPFONT( Control_Border + ButtonWidth + Button_Button, 89 );
154cdf0e10cSrcweir			Size = MAP_APPFONT( ButtonWidth, 12 );
155cdf0e10cSrcweir			TabStop = TRUE;
156cdf0e10cSrcweir		Text[ en-US ] = "~Restore";
157cdf0e10cSrcweir	};
158cdf0e10cSrcweir	PushButton TT_PB_ACCEPT {
159cdf0e10cSrcweir	    HelpID = "svtools:PushButton:TT_INLINE_TRANSLATION:TT_PB_ACCEPT";
160cdf0e10cSrcweir			Disable = TRUE;
161cdf0e10cSrcweir			Pos = MAP_APPFONT( Control_Border + 2*(ButtonWidth + Button_Button), 89 );
162cdf0e10cSrcweir			Size = MAP_APPFONT( ButtonWidth, 12 );
163cdf0e10cSrcweir			TabStop = TRUE;
164cdf0e10cSrcweir		Text[ en-US ] = "~Accept";
165cdf0e10cSrcweir	};
166cdf0e10cSrcweir	PushButton TT_PB_NEXT {
167cdf0e10cSrcweir	    HelpID = "svtools:PushButton:TT_INLINE_TRANSLATION:TT_PB_NEXT";
168cdf0e10cSrcweir			Pos = MAP_APPFONT( Control_Border + 3*(ButtonWidth + Button_Button), 89 );
169cdf0e10cSrcweir			Size = MAP_APPFONT( ButtonWidth, 12 );
170cdf0e10cSrcweir			TabStop = TRUE;
171cdf0e10cSrcweir		Text[ en-US ] = "~Next";
172cdf0e10cSrcweir	};
173cdf0e10cSrcweir	Text[ en-US ] = "Inplace Translation";
174cdf0e10cSrcweir};
175cdf0e10cSrcweir
176cdf0e10cSrcweirMessBox TT_DISCARD_CHANGED_DATA {
177cdf0e10cSrcweir	Buttons = WB_YES_NO;
178cdf0e10cSrcweir	DefButton = WB_DEF_YES;
179cdf0e10cSrcweir	Message[ en-US ] = "The Translation will be lost. Proceed anyway?";
180cdf0e10cSrcweir};
181cdf0e10cSrcweir
182cdf0e10cSrcweirErrorBox TT_NO_CONTROL {
183cdf0e10cSrcweir	Buttons = WB_OK;
184cdf0e10cSrcweir	DefButton = WB_DEF_OK;
185cdf0e10cSrcweir	Message[ en-US ] = "The Control is no longer valid. The Translation cannot be saved.";
186cdf0e10cSrcweir};
187cdf0e10cSrcweir
188cdf0e10cSrcweirString TT_GPF
189cdf0e10cSrcweir{
190cdf0e10cSrcweir	Text[ en-US ] = "GPF occurred";
191cdf0e10cSrcweir};
192cdf0e10cSrcweir
193cdf0e10cSrcweirString TT_ALTERNATE_CAPTION
194cdf0e10cSrcweir{
195cdf0e10cSrcweir	Text[ en-US ] = "HelpID does not match UniqueID: ";
196cdf0e10cSrcweir};
197cdf0e10cSrcweir
198