1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #include "chinese_dictionarydialog.hrc"
29 #include "chinese_translationdialog.hrc"
31 #include <svtools/controldims.hrc>
33 #define DIRECTION_RADIOBUTTONS( D_XPOS, D_YPOS, D_FULLWIDTH ) \
34 RadioButton RB_TO_SIMPLIFIED \
36 Pos = MAP_APPFONT( D_XPOS, D_YPOS ); \
37 Size = MAP_APPFONT ( D_FULLWIDTH, RSC_CD_RADIOBUTTON_HEIGHT ) ; \
38 Text [ en-US ] = "~Traditional Chinese to simplified Chinese"; \
40 RadioButton RB_TO_TRADITIONAL \
42 Pos = MAP_APPFONT( D_XPOS, D_YPOS + RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y ); \
43 Size = MAP_APPFONT ( D_FULLWIDTH, RSC_CD_RADIOBUTTON_HEIGHT ) ; \
44 Text [ en-US ] = "~Simplified Chinese to traditional Chinese"; \
47 //-----------------------------------------------------------------------------
48 //defines for positions and sizes:
50 #define FULL_WIDTH (245)
51 #define FULL_HEIGHT (165)
53 #define ROW_1 (RSC_SP_DLG_INNERBORDER_TOP)
54 #define ROW_2 (ROW_1+RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y)
55 #define ROW_3 (ROW_2+RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y)
56 #define ROW_4 (ROW_3+RSC_CD_CHECKBOX_HEIGHT+RSC_SP_CTRL_GROUP_Y)
57 #define ROW_5 (ROW_4+RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_DESC_Y)
58 #define ROW_6 (ROW_5+RSC_CD_TEXTBOX_HEIGHT+RSC_SP_CTRL_DESC_Y)
60 #define ROW_5a (ROW_5+RSC_CD_PUSHBUTTON_HEIGHT+RSC_SP_CTRL_DESC_Y)
61 #define ROW_5b (ROW_5a+RSC_CD_PUSHBUTTON_HEIGHT+RSC_SP_CTRL_DESC_Y)
63 #define ROW_8 (FULL_HEIGHT-RSC_SP_DLG_INNERBORDER_BOTTOM-RSC_CD_PUSHBUTTON_HEIGHT)
64 #define ROW_7 (ROW_8-RSC_CD_FIXEDLINE_HEIGHT-2)
66 #define LIST_HEIGHT (ROW_7-RSC_SP_CTRL_Y-ROW_6)
69 #define BUTTONCOL_WIDTH 40
70 #define COL_1 (RSC_SP_DLG_INNERBORDER_LEFT+RSC_SP_FLGR_SPACE_X)
71 #define COL_2 (COL_1+COL_WIDTH+1)
72 #define COL_3 (COL_2+COL_WIDTH+1)
73 #define COL_4 (FULL_WIDTH-RSC_SP_DLG_INNERBORDER_RIGHT-BUTTONCOL_WIDTH)
75 #define REST_COL_WIDTH (COL_4-COL_3-RSC_SP_CTRL_GROUP_X)
77 //-----------------------------------------------------------------------------
79 ModalDialog DLG_CHINESEDICTIONARY
81 HelpID = "svx:ModalDialog:DLG_CHINESEDICTIONARY";
83 Size = MAP_APPFONT( FULL_WIDTH, FULL_HEIGHT );
89 Text [ en-US ] = "Edit Dictionary";
91 DIRECTION_RADIOBUTTONS( COL_1, ROW_1, FULL_WIDTH - COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT )
95 HelpID = "svx:CheckBox:DLG_CHINESEDICTIONARY:CB_REVERSE";
96 Pos = MAP_APPFONT ( COL_1, ROW_3 ) ;
97 Size = MAP_APPFONT ( FULL_WIDTH - COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT , RSC_CD_CHECKBOX_HEIGHT ) ;
99 Text [ en-US ] = "Reverse mapping";
104 Pos = MAP_APPFONT ( COL_1 , ROW_4 ) ;
105 Size = MAP_APPFONT ( COL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ;
106 Text [ en-US ] = "Term";
110 HelpID = "svx:Edit:DLG_CHINESEDICTIONARY:ED_TERM";
112 Pos = MAP_APPFONT ( COL_1 , ROW_5 ) ;
113 Size = MAP_APPFONT ( COL_WIDTH , RSC_CD_TEXTBOX_HEIGHT ) ;
119 Pos = MAP_APPFONT ( COL_2 , ROW_4 ) ;
120 Size = MAP_APPFONT ( COL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ;
121 Text [ en-US ] = "Mapping";
125 HelpID = "svx:Edit:DLG_CHINESEDICTIONARY:ED_MAPPING";
127 Pos = MAP_APPFONT ( COL_2 , ROW_5 ) ;
128 Size = MAP_APPFONT ( COL_WIDTH , RSC_CD_TEXTBOX_HEIGHT ) ;
131 FixedText FT_PROPERTY
133 Pos = MAP_APPFONT ( COL_3 , ROW_4 ) ;
134 Size = MAP_APPFONT ( REST_COL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ;
135 Text [ en-US ] = "Property";
139 HelpID = "svx:ListBox:DLG_CHINESEDICTIONARY:LB_PROPERTY";
141 Pos = MAP_APPFONT ( COL_3 , ROW_5 ) ;
142 Size = MAP_APPFONT ( REST_COL_WIDTH , RSC_CD_TEXTBOX_HEIGHT ) ;
145 stringlist [ en-US ] =
147 < "Other" ; Default ; > ;
157 < "Abbreviation" ; > ;
165 Control CT_MAPPINGLIST
167 Pos = MAP_APPFONT ( COL_1, ROW_6 ) ;
168 Size = MAP_APPFONT ( COL_4 - COL_1 - RSC_SP_CTRL_GROUP_X, LIST_HEIGHT ) ;
174 HelpID = "svx:PushButton:DLG_CHINESEDICTIONARY:PB_ADD";
175 Pos = MAP_APPFONT( COL_4, ROW_5 );
176 Size = MAP_APPFONT( BUTTONCOL_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT );
178 Text [ en-US ] = "~Add";
182 HelpID = "svx:PushButton:DLG_CHINESEDICTIONARY:PB_MODIFY";
183 Pos = MAP_APPFONT( COL_4, ROW_5a );
184 Size = MAP_APPFONT( BUTTONCOL_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT );
186 Text [ en-US ] = "~Modify";
190 HelpID = "svx:PushButton:DLG_CHINESEDICTIONARY:PB_DELETE";
191 Pos = MAP_APPFONT( COL_4, ROW_5b );
192 Size = MAP_APPFONT( BUTTONCOL_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT );
194 Text [ en-US ] = "~Delete";
197 FixedLine FL_BOTTOMLINE
199 Pos = MAP_APPFONT ( 0 , ROW_7 ) ;
200 Size = MAP_APPFONT ( FULL_WIDTH, RSC_CD_FIXEDLINE_HEIGHT ) ;
203 BUTTONS_OK_CANCEL_HELP_ABREAST( FULL_WIDTH - RSC_SP_DLG_INNERBORDER_RIGHT, ROW_8 )
206 //-----------------------------------------------------------------------------
207 //defines for positions and sizes:
209 #define T_FULL_WIDTH (220)
210 #define T_FULL_HEIGHT (120)
211 #define T_EDITBUTTON_WIDTH (75)
213 #define T_COL_1 (RSC_SP_DLG_INNERBORDER_LEFT)
214 #define T_COL_2 (T_COL_1+RSC_SP_FLGR_SPACE_X)
215 #define T_COL_3 (T_COL_2+RSC_SP_CHK_TEXTINDENT)
216 #define T_COL_4 (T_FULL_WIDTH-RSC_SP_DLG_INNERBORDER_RIGHT-T_EDITBUTTON_WIDTH)
218 #define T_ROW_1 (RSC_SP_DLG_INNERBORDER_TOP)
219 #define T_ROW_2 (T_ROW_1+RSC_CD_FIXEDLINE_HEIGHT+RSC_SP_CTRL_GROUP_Y)
220 #define T_ROW_3 (T_ROW_2+RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y)
221 #define T_ROW_4 (T_ROW_3+RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_DESC_Y)
222 #define T_ROW_5 (T_ROW_4+RSC_CD_CHECKBOX_HEIGHT+RSC_SP_CTRL_Y)
223 #define T_ROW_6 (T_ROW_5+RSC_CD_FIXEDLINE_HEIGHT+RSC_SP_CTRL_GROUP_Y)
225 #define T_ROW_8 (T_FULL_HEIGHT-RSC_SP_DLG_INNERBORDER_BOTTOM-RSC_CD_PUSHBUTTON_HEIGHT)
226 #define T_ROW_7 (T_ROW_8-RSC_CD_FIXEDLINE_HEIGHT-2)
228 //-----------------------------------------------------------------------------
230 ModalDialog DLG_CHINESETRANSLATION
232 HelpID = "svx:ModalDialog:DLG_CHINESETRANSLATION";
234 Size = MAP_APPFONT( T_FULL_WIDTH, T_FULL_HEIGHT );
240 Text [ en-US ] = "Chinese Conversion";
242 FixedLine FL_DIRECTION
244 Pos = MAP_APPFONT ( T_COL_1 , T_ROW_1 ) ;
245 Size = MAP_APPFONT ( T_FULL_WIDTH - T_COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT, RSC_CD_FIXEDLINE_HEIGHT ) ;
246 Text [ en-US ] = "Conversion direction";
249 DIRECTION_RADIOBUTTONS( T_COL_2, T_ROW_2, (T_FULL_WIDTH - T_COL_2 - RSC_SP_DLG_INNERBORDER_RIGHT) )
251 CheckBox CB_USE_VARIANTS
253 HelpID = "svx:CheckBox:DLG_CHINESETRANSLATION:CB_USE_VARIANTS";
254 Pos = MAP_APPFONT( T_COL_3, T_ROW_4 );
255 Size = MAP_APPFONT ( T_FULL_WIDTH - T_COL_3 - RSC_SP_DLG_INNERBORDER_RIGHT, RSC_CD_CHECKBOX_HEIGHT ) ;
257 Text [ en-US ] = "~Use Taiwan, Hong Kong SAR, and Macao SAR character variants";
260 FixedLine FL_COMMONTERMS
262 Pos = MAP_APPFONT ( T_COL_1 , T_ROW_5 ) ;
263 Size = MAP_APPFONT ( T_FULL_WIDTH - T_COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT, RSC_CD_FIXEDLINE_HEIGHT ) ;
264 Text [ en-US ] = "Common terms";
267 CheckBox CB_TRANSLATE_COMMONTERMS
269 HelpID = "svx:CheckBox:DLG_CHINESETRANSLATION:CB_TRANSLATE_COMMONTERMS";
270 Pos = MAP_APPFONT( T_COL_2, T_ROW_6 );
271 Size = MAP_APPFONT ( T_COL_4 - T_COL_2, RSC_CD_CHECKBOX_HEIGHT ) ;
273 Text [ en-US ] = "Translate ~common terms";
276 PushButton PB_EDITTERMS
278 HelpID = "svx:PushButton:DLG_CHINESETRANSLATION:PB_EDITTERMS";
279 Pos = MAP_APPFONT( T_COL_4, T_ROW_6-(RSC_CD_PUSHBUTTON_HEIGHT-RSC_CD_CHECKBOX_HEIGHT)/2 );
280 Size = MAP_APPFONT( T_EDITBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
282 Text [ en-US ] = "~Edit Terms...";
285 FixedLine T_FL_BOTTOMLINE
287 Pos = MAP_APPFONT ( 0 , T_ROW_7 ) ;
288 Size = MAP_APPFONT ( T_FULL_WIDTH, RSC_CD_FIXEDLINE_HEIGHT ) ;
291 BUTTONS_OK_CANCEL_HELP_ABREAST( T_FULL_WIDTH - RSC_SP_DLG_INNERBORDER_RIGHT, T_ROW_8 )