xref: /trunk/main/svx/source/unodialogs/textconversiondlgs/chinese_dialogs.src (revision a3cbd3e50c1a12e759959b66e76b58b3aeb2b2af)
109a1d057SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
309a1d057SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
409a1d057SAndrew Rist * or more contributor license agreements.  See the NOTICE file
509a1d057SAndrew Rist * distributed with this work for additional information
609a1d057SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
709a1d057SAndrew Rist * to you under the Apache License, Version 2.0 (the
809a1d057SAndrew Rist * "License"); you may not use this file except in compliance
909a1d057SAndrew Rist * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir *
1109a1d057SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
1309a1d057SAndrew Rist * Unless required by applicable law or agreed to in writing,
1409a1d057SAndrew Rist * software distributed under the License is distributed on an
1509a1d057SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1609a1d057SAndrew Rist * KIND, either express or implied.  See the License for the
1709a1d057SAndrew Rist * specific language governing permissions and limitations
1809a1d057SAndrew Rist * under the License.
19cdf0e10cSrcweir *
2009a1d057SAndrew Rist *************************************************************/
2109a1d057SAndrew Rist
22cdf0e10cSrcweir#include "chinese_dictionarydialog.hrc"
23cdf0e10cSrcweir#include "chinese_translationdialog.hrc"
24cdf0e10cSrcweir
25cdf0e10cSrcweir#include <svtools/controldims.hrc>
26cdf0e10cSrcweir
27cdf0e10cSrcweir#define DIRECTION_RADIOBUTTONS( D_XPOS, D_YPOS, D_FULLWIDTH ) \
28cdf0e10cSrcweirRadioButton RB_TO_SIMPLIFIED \
29cdf0e10cSrcweir{ \
30cdf0e10cSrcweir    Pos = MAP_APPFONT ( D_XPOS, D_YPOS ); \
31cdf0e10cSrcweir    Size = MAP_APPFONT ( D_FULLWIDTH, RSC_CD_RADIOBUTTON_HEIGHT ) ; \
32cdf0e10cSrcweir    Text [ en-US ] = "~Traditional Chinese to simplified Chinese" ; \
33cdf0e10cSrcweir}; \
34cdf0e10cSrcweirRadioButton RB_TO_TRADITIONAL \
35cdf0e10cSrcweir{ \
36cdf0e10cSrcweir    Pos = MAP_APPFONT ( D_XPOS, D_YPOS + RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y ) ; \
37cdf0e10cSrcweir    Size = MAP_APPFONT ( D_FULLWIDTH, RSC_CD_RADIOBUTTON_HEIGHT ) ; \
38cdf0e10cSrcweir    Text [ en-US ] = "~Simplified Chinese to traditional Chinese" ; \
39cdf0e10cSrcweir};
40cdf0e10cSrcweir
41cdf0e10cSrcweir//-----------------------------------------------------------------------------
42cdf0e10cSrcweir//defines for positions and sizes:
43cdf0e10cSrcweir
44cdf0e10cSrcweir#define FULL_WIDTH (245)
45cdf0e10cSrcweir#define FULL_HEIGHT (165)
46cdf0e10cSrcweir
47cdf0e10cSrcweir#define ROW_1 (RSC_SP_DLG_INNERBORDER_TOP)
48cdf0e10cSrcweir#define ROW_2 (ROW_1+RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y)
49cdf0e10cSrcweir#define ROW_3 (ROW_2+RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y)
50cdf0e10cSrcweir#define ROW_4 (ROW_3+RSC_CD_CHECKBOX_HEIGHT+RSC_SP_CTRL_GROUP_Y)
51cdf0e10cSrcweir#define ROW_5 (ROW_4+RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_DESC_Y)
52cdf0e10cSrcweir#define ROW_6 (ROW_5+RSC_CD_TEXTBOX_HEIGHT+RSC_SP_CTRL_DESC_Y)
53cdf0e10cSrcweir
54cdf0e10cSrcweir#define ROW_5a (ROW_5+RSC_CD_PUSHBUTTON_HEIGHT+RSC_SP_CTRL_DESC_Y)
55cdf0e10cSrcweir#define ROW_5b (ROW_5a+RSC_CD_PUSHBUTTON_HEIGHT+RSC_SP_CTRL_DESC_Y)
56cdf0e10cSrcweir
57cdf0e10cSrcweir#define ROW_8 (FULL_HEIGHT-RSC_SP_DLG_INNERBORDER_BOTTOM-RSC_CD_PUSHBUTTON_HEIGHT)
58cdf0e10cSrcweir#define ROW_7 (ROW_8-RSC_CD_FIXEDLINE_HEIGHT-2)
59cdf0e10cSrcweir
60cdf0e10cSrcweir#define LIST_HEIGHT (ROW_7-RSC_SP_CTRL_Y-ROW_6)
61cdf0e10cSrcweir
62cdf0e10cSrcweir#define COL_WIDTH 60
63cdf0e10cSrcweir#define BUTTONCOL_WIDTH 40
64cdf0e10cSrcweir#define COL_1 (RSC_SP_DLG_INNERBORDER_LEFT+RSC_SP_FLGR_SPACE_X)
65cdf0e10cSrcweir#define COL_2 (COL_1+COL_WIDTH+1)
66cdf0e10cSrcweir#define COL_3 (COL_2+COL_WIDTH+1)
67cdf0e10cSrcweir#define COL_4 (FULL_WIDTH-RSC_SP_DLG_INNERBORDER_RIGHT-BUTTONCOL_WIDTH)
68cdf0e10cSrcweir
69cdf0e10cSrcweir#define REST_COL_WIDTH (COL_4-COL_3-RSC_SP_CTRL_GROUP_X)
70cdf0e10cSrcweir
71cdf0e10cSrcweir//-----------------------------------------------------------------------------
72cdf0e10cSrcweir
73cdf0e10cSrcweirModalDialog DLG_CHINESEDICTIONARY
74cdf0e10cSrcweir{
75cdf0e10cSrcweir    HelpID = "svx:ModalDialog:DLG_CHINESEDICTIONARY" ;
76cdf0e10cSrcweir    //HelpId = ;
77cdf0e10cSrcweir    Size = MAP_APPFONT ( FULL_WIDTH, FULL_HEIGHT ) ;
78cdf0e10cSrcweir    OutputSize = TRUE ;
79cdf0e10cSrcweir    Closeable = TRUE ;
80cdf0e10cSrcweir    Moveable = TRUE ;
81cdf0e10cSrcweir    SVLook = TRUE ;
82cdf0e10cSrcweir
83cdf0e10cSrcweir    Text [ en-US ] = "Edit Dictionary" ;
84cdf0e10cSrcweir
85cdf0e10cSrcweir    DIRECTION_RADIOBUTTONS( COL_1, ROW_1, FULL_WIDTH - COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT )
86cdf0e10cSrcweir
87cdf0e10cSrcweir    CheckBox CB_REVERSE
88cdf0e10cSrcweir    {
89cdf0e10cSrcweir        HelpID = "svx:CheckBox:DLG_CHINESEDICTIONARY:CB_REVERSE" ;
90cdf0e10cSrcweir        Pos = MAP_APPFONT ( COL_1, ROW_3 ) ;
91cdf0e10cSrcweir        Size = MAP_APPFONT ( FULL_WIDTH - COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT, RSC_CD_CHECKBOX_HEIGHT ) ;
92cdf0e10cSrcweir
93cdf0e10cSrcweir        Text [ en-US ] = "Reverse mapping" ;
94cdf0e10cSrcweir    };
95cdf0e10cSrcweir
96cdf0e10cSrcweir    FixedText FT_TERM
97cdf0e10cSrcweir    {
98cdf0e10cSrcweir        Pos = MAP_APPFONT ( COL_1, ROW_4 ) ;
99cdf0e10cSrcweir        Size = MAP_APPFONT ( COL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ;
100cdf0e10cSrcweir        Text [ en-US ] = "Term" ;
101cdf0e10cSrcweir    };
102cdf0e10cSrcweir    Edit ED_TERM
103cdf0e10cSrcweir    {
104cdf0e10cSrcweir        HelpID = "svx:Edit:DLG_CHINESEDICTIONARY:ED_TERM" ;
105cdf0e10cSrcweir        Border = TRUE ;
106cdf0e10cSrcweir        Pos = MAP_APPFONT ( COL_1, ROW_5 ) ;
107cdf0e10cSrcweir        Size = MAP_APPFONT ( COL_WIDTH, RSC_CD_TEXTBOX_HEIGHT ) ;
108cdf0e10cSrcweir    };
109cdf0e10cSrcweir
110cdf0e10cSrcweir
111cdf0e10cSrcweir    FixedText FT_MAPPING
112cdf0e10cSrcweir    {
113cdf0e10cSrcweir        Pos = MAP_APPFONT ( COL_2, ROW_4 ) ;
114cdf0e10cSrcweir        Size = MAP_APPFONT ( COL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ;
115cdf0e10cSrcweir        Text [ en-US ] = "Mapping" ;
116cdf0e10cSrcweir    };
117cdf0e10cSrcweir    Edit ED_MAPPING
118cdf0e10cSrcweir    {
119cdf0e10cSrcweir        HelpID = "svx:Edit:DLG_CHINESEDICTIONARY:ED_MAPPING" ;
120cdf0e10cSrcweir        Border = TRUE ;
121cdf0e10cSrcweir        Pos = MAP_APPFONT ( COL_2, ROW_5 ) ;
122cdf0e10cSrcweir        Size = MAP_APPFONT ( COL_WIDTH, RSC_CD_TEXTBOX_HEIGHT ) ;
123cdf0e10cSrcweir    };
124cdf0e10cSrcweir
125cdf0e10cSrcweir    FixedText FT_PROPERTY
126cdf0e10cSrcweir    {
127cdf0e10cSrcweir        Pos = MAP_APPFONT ( COL_3, ROW_4 ) ;
128cdf0e10cSrcweir        Size = MAP_APPFONT ( REST_COL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ;
129cdf0e10cSrcweir        Text [ en-US ] = "Property" ;
130cdf0e10cSrcweir    };
131cdf0e10cSrcweir    ListBox LB_PROPERTY
132cdf0e10cSrcweir    {
133cdf0e10cSrcweir        HelpID = "svx:ListBox:DLG_CHINESEDICTIONARY:LB_PROPERTY" ;
134cdf0e10cSrcweir        Border = TRUE ;
135cdf0e10cSrcweir        Pos = MAP_APPFONT ( COL_3, ROW_5 ) ;
136cdf0e10cSrcweir        Size = MAP_APPFONT ( REST_COL_WIDTH, RSC_CD_TEXTBOX_HEIGHT ) ;
137cdf0e10cSrcweir        DropDown = TRUE ;
138cdf0e10cSrcweir
139cdf0e10cSrcweir        stringlist [ en-US ] =
140cdf0e10cSrcweir        {
141cdf0e10cSrcweir            < "Other" ; Default ;   > ;
142cdf0e10cSrcweir            < "Foreign" ;           > ;
143cdf0e10cSrcweir            < "First name" ;        > ;
144cdf0e10cSrcweir            < "Last name" ;         > ;
145cdf0e10cSrcweir            < "Title" ;             > ;
146cdf0e10cSrcweir            < "Status" ;            > ;
147cdf0e10cSrcweir            < "Place name" ;        > ;
148cdf0e10cSrcweir            < "Business" ;          > ;
149cdf0e10cSrcweir            < "Adjective" ;         > ;
150cdf0e10cSrcweir            < "Idiom" ;             > ;
151cdf0e10cSrcweir            < "Abbreviation" ;      > ;
152cdf0e10cSrcweir            < "Numerical" ;         > ;
153cdf0e10cSrcweir            < "Noun" ;              > ;
154cdf0e10cSrcweir            < "Verb" ;              > ;
155cdf0e10cSrcweir            < "Brand name" ;        > ;
156cdf0e10cSrcweir        };
157cdf0e10cSrcweir    };
158cdf0e10cSrcweir
159cdf0e10cSrcweir    Control CT_MAPPINGLIST
160cdf0e10cSrcweir    {
161cdf0e10cSrcweir        Pos = MAP_APPFONT ( COL_1, ROW_6 ) ;
162cdf0e10cSrcweir        Size = MAP_APPFONT ( COL_4 - COL_1 - RSC_SP_CTRL_GROUP_X, LIST_HEIGHT ) ;
163cdf0e10cSrcweir        TabStop = TRUE ;
164cdf0e10cSrcweir    };
165cdf0e10cSrcweir
166cdf0e10cSrcweir    PushButton PB_ADD
167cdf0e10cSrcweir    {
168cdf0e10cSrcweir        HelpID = "svx:PushButton:DLG_CHINESEDICTIONARY:PB_ADD" ;
169cdf0e10cSrcweir        Pos = MAP_APPFONT ( COL_4, ROW_5 ) ;
170cdf0e10cSrcweir        Size = MAP_APPFONT ( BUTTONCOL_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ;
171cdf0e10cSrcweir
172cdf0e10cSrcweir        Text [ en-US ] = "~Add" ;
173cdf0e10cSrcweir    };
174cdf0e10cSrcweir    PushButton PB_MODIFY
175cdf0e10cSrcweir    {
176cdf0e10cSrcweir        HelpID = "svx:PushButton:DLG_CHINESEDICTIONARY:PB_MODIFY" ;
177cdf0e10cSrcweir        Pos = MAP_APPFONT ( COL_4, ROW_5a ) ;
178cdf0e10cSrcweir        Size = MAP_APPFONT ( BUTTONCOL_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ;
179cdf0e10cSrcweir
180cdf0e10cSrcweir        Text [ en-US ] = "~Modify" ;
181cdf0e10cSrcweir    };
182cdf0e10cSrcweir    PushButton PB_DELETE
183cdf0e10cSrcweir    {
184cdf0e10cSrcweir        HelpID = "svx:PushButton:DLG_CHINESEDICTIONARY:PB_DELETE" ;
185cdf0e10cSrcweir        Pos = MAP_APPFONT ( COL_4, ROW_5b ) ;
186cdf0e10cSrcweir        Size = MAP_APPFONT ( BUTTONCOL_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ;
187cdf0e10cSrcweir
188cdf0e10cSrcweir        Text [ en-US ] = "~Delete" ;
189cdf0e10cSrcweir    };
190cdf0e10cSrcweir
191cdf0e10cSrcweir    FixedLine FL_BOTTOMLINE
192cdf0e10cSrcweir    {
193cdf0e10cSrcweir        Pos = MAP_APPFONT ( 0, ROW_7 ) ;
194cdf0e10cSrcweir        Size = MAP_APPFONT ( FULL_WIDTH, RSC_CD_FIXEDLINE_HEIGHT ) ;
195cdf0e10cSrcweir    };
196cdf0e10cSrcweir
197cdf0e10cSrcweir    BUTTONS_OK_CANCEL_HELP_ABREAST( FULL_WIDTH - RSC_SP_DLG_INNERBORDER_RIGHT, ROW_8 )
198cdf0e10cSrcweir};
199cdf0e10cSrcweir
200cdf0e10cSrcweir//-----------------------------------------------------------------------------
201cdf0e10cSrcweir//defines for positions and sizes:
202cdf0e10cSrcweir
203cdf0e10cSrcweir#define T_FULL_WIDTH (220)
204cdf0e10cSrcweir#define T_FULL_HEIGHT (120)
205cdf0e10cSrcweir#define T_EDITBUTTON_WIDTH (75)
206cdf0e10cSrcweir
207cdf0e10cSrcweir#define T_COL_1 (RSC_SP_DLG_INNERBORDER_LEFT)
208cdf0e10cSrcweir#define T_COL_2 (T_COL_1+RSC_SP_FLGR_SPACE_X)
209cdf0e10cSrcweir#define T_COL_3 (T_COL_2+RSC_SP_CHK_TEXTINDENT)
210cdf0e10cSrcweir#define T_COL_4 (T_FULL_WIDTH-RSC_SP_DLG_INNERBORDER_RIGHT-T_EDITBUTTON_WIDTH)
211cdf0e10cSrcweir
212cdf0e10cSrcweir#define T_ROW_1 (RSC_SP_DLG_INNERBORDER_TOP)
213cdf0e10cSrcweir#define T_ROW_2 (T_ROW_1+RSC_CD_FIXEDLINE_HEIGHT+RSC_SP_CTRL_GROUP_Y)
214cdf0e10cSrcweir#define T_ROW_3 (T_ROW_2+RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y)
215cdf0e10cSrcweir#define T_ROW_4 (T_ROW_3+RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_DESC_Y)
216cdf0e10cSrcweir#define T_ROW_5 (T_ROW_4+RSC_CD_CHECKBOX_HEIGHT+RSC_SP_CTRL_Y)
217cdf0e10cSrcweir#define T_ROW_6 (T_ROW_5+RSC_CD_FIXEDLINE_HEIGHT+RSC_SP_CTRL_GROUP_Y)
218cdf0e10cSrcweir
219cdf0e10cSrcweir#define T_ROW_8 (T_FULL_HEIGHT-RSC_SP_DLG_INNERBORDER_BOTTOM-RSC_CD_PUSHBUTTON_HEIGHT)
220cdf0e10cSrcweir#define T_ROW_7 (T_ROW_8-RSC_CD_FIXEDLINE_HEIGHT-2)
221cdf0e10cSrcweir
222cdf0e10cSrcweir//-----------------------------------------------------------------------------
223cdf0e10cSrcweir
224cdf0e10cSrcweirModalDialog DLG_CHINESETRANSLATION
225cdf0e10cSrcweir{
226cdf0e10cSrcweir    HelpID = "svx:ModalDialog:DLG_CHINESETRANSLATION" ;
227cdf0e10cSrcweir    //HelpId = ;
228cdf0e10cSrcweir    Size = MAP_APPFONT ( T_FULL_WIDTH, T_FULL_HEIGHT ) ;
229cdf0e10cSrcweir    OutputSize = TRUE ;
230cdf0e10cSrcweir    Closeable = TRUE ;
231cdf0e10cSrcweir    Moveable = TRUE ;
232cdf0e10cSrcweir    SVLook = TRUE ;
233cdf0e10cSrcweir
234cdf0e10cSrcweir    Text [ en-US ] = "Chinese Conversion" ;
235cdf0e10cSrcweir
236cdf0e10cSrcweir    FixedLine FL_DIRECTION
237cdf0e10cSrcweir    {
238cdf0e10cSrcweir        Pos = MAP_APPFONT ( T_COL_1, T_ROW_1 ) ;
239cdf0e10cSrcweir        Size = MAP_APPFONT ( T_FULL_WIDTH - T_COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT, RSC_CD_FIXEDLINE_HEIGHT ) ;
240cdf0e10cSrcweir        Text [ en-US ] = "Conversion direction" ;
241cdf0e10cSrcweir    };
242cdf0e10cSrcweir
243cdf0e10cSrcweir    DIRECTION_RADIOBUTTONS( T_COL_2, T_ROW_2, (T_FULL_WIDTH - T_COL_2 - RSC_SP_DLG_INNERBORDER_RIGHT) )
244cdf0e10cSrcweir
245cdf0e10cSrcweir    CheckBox CB_USE_VARIANTS
246cdf0e10cSrcweir    {
247cdf0e10cSrcweir        HelpID = "svx:CheckBox:DLG_CHINESETRANSLATION:CB_USE_VARIANTS" ;
248cdf0e10cSrcweir        Pos = MAP_APPFONT ( T_COL_3, T_ROW_4 ) ;
249cdf0e10cSrcweir        Size = MAP_APPFONT ( T_FULL_WIDTH - T_COL_3 - RSC_SP_DLG_INNERBORDER_RIGHT, RSC_CD_CHECKBOX_HEIGHT ) ;
250cdf0e10cSrcweir
251cdf0e10cSrcweir        Text [ en-US ] = "~Use Taiwan, Hong Kong SAR, and Macao SAR character variants" ;
252cdf0e10cSrcweir    };
253cdf0e10cSrcweir
254cdf0e10cSrcweir    FixedLine FL_COMMONTERMS
255cdf0e10cSrcweir    {
256cdf0e10cSrcweir        Pos = MAP_APPFONT ( T_COL_1, T_ROW_5 ) ;
257cdf0e10cSrcweir        Size = MAP_APPFONT ( T_FULL_WIDTH - T_COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT, RSC_CD_FIXEDLINE_HEIGHT ) ;
258cdf0e10cSrcweir        Text [ en-US ] = "Common terms" ;
259cdf0e10cSrcweir    };
260cdf0e10cSrcweir
261cdf0e10cSrcweir    CheckBox CB_TRANSLATE_COMMONTERMS
262cdf0e10cSrcweir    {
263cdf0e10cSrcweir        HelpID = "svx:CheckBox:DLG_CHINESETRANSLATION:CB_TRANSLATE_COMMONTERMS" ;
264cdf0e10cSrcweir        Pos = MAP_APPFONT ( T_COL_2, T_ROW_6 ) ;
265cdf0e10cSrcweir        Size = MAP_APPFONT ( T_COL_4 - T_COL_2, RSC_CD_CHECKBOX_HEIGHT ) ;
266cdf0e10cSrcweir
267cdf0e10cSrcweir        Text [ en-US ] = "Translate ~common terms" ;
268cdf0e10cSrcweir    };
269cdf0e10cSrcweir
270cdf0e10cSrcweir    PushButton PB_EDITTERMS
271cdf0e10cSrcweir    {
272cdf0e10cSrcweir        HelpID = "svx:PushButton:DLG_CHINESETRANSLATION:PB_EDITTERMS" ;
273cdf0e10cSrcweir        Pos = MAP_APPFONT ( T_COL_4, T_ROW_6-(RSC_CD_PUSHBUTTON_HEIGHT-RSC_CD_CHECKBOX_HEIGHT)/2 ) ;
274cdf0e10cSrcweir        Size = MAP_APPFONT ( T_EDITBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ;
275cdf0e10cSrcweir
276cdf0e10cSrcweir        Text [ en-US ] = "~Edit Terms..." ;
277cdf0e10cSrcweir    };
278cdf0e10cSrcweir
279cdf0e10cSrcweir    FixedLine T_FL_BOTTOMLINE
280cdf0e10cSrcweir    {
281cdf0e10cSrcweir        Pos = MAP_APPFONT ( 0, T_ROW_7 ) ;
282cdf0e10cSrcweir        Size = MAP_APPFONT ( T_FULL_WIDTH, RSC_CD_FIXEDLINE_HEIGHT ) ;
283cdf0e10cSrcweir    };
284cdf0e10cSrcweir
285cdf0e10cSrcweir    BUTTONS_OK_CANCEL_HELP_ABREAST( T_FULL_WIDTH - RSC_SP_DLG_INNERBORDER_RIGHT, T_ROW_8 )
286cdf0e10cSrcweir};
287*a3cbd3e5Smseidel
288*a3cbd3e5Smseidel// ********************************************************************** EOF
289