1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#include <cuires.hrc>
24#include "helpid.hrc"
25
26#ifndef SVX_HANGUL_HANJA_DLG_HRC
27#include "hangulhanjadlg.hrc"
28#endif
29
30ModalDialog RID_SVX_MDLG_HANGULHANJA
31{
32	HelpId = HID_DIALOG_HANGULHANJA;
33    Size = MAP_APPFONT( 302, 175 );
34	OutputSize = TRUE;
35	Closeable = TRUE ;
36	Moveable = TRUE ;
37	SVLook = TRUE;
38
39	Text [ en-US ] = "Hangul/Hanja Conversion";
40
41	PushButton PB_FIND
42	{
43	    HelpID = "cui:PushButton:RID_SVX_MDLG_HANGULHANJA:PB_FIND";
44        Pos = MAP_APPFONT( 207, 23 );
45		Size = MAP_APPFONT( 30, 14 );
46
47		Text [ en-US ] = "~Find";
48	};
49
50	Control CTL_SUGGESTIONS
51	{
52		Pos = MAP_APPFONT( 51, 46 );
53        Size = MAP_APPFONT( 186, 30 );
54		TabStop = TRUE ;
55	};
56
57	FixedText FT_FORMAT
58	{
59		Pos = MAP_APPFONT( 6, 81 );
60		Size = MAP_APPFONT( 42, 8 );
61
62		Text [ en-US ] = "Format";
63	};
64
65	RadioButton RB_SIMPLE_CONVERSION
66	{
67	    HelpID = "cui:RadioButton:RID_SVX_MDLG_HANGULHANJA:RB_SIMPLE_CONVERSION";
68		Pos = MAP_APPFONT( 51, 81 );
69        Size = MAP_APPFONT( 60, 8 );
70
71		Group = TRUE;
72
73		Text [ en-US ] = "~Hangul/Hanja";
74	};
75
76	RadioButton RB_HANJA_HANGUL_BRACKETED
77	{
78	    HelpID = "cui:RadioButton:RID_SVX_MDLG_HANGULHANJA:RB_HANJA_HANGUL_BRACKETED";
79        Pos = MAP_APPFONT( 114, 81 );
80        Size = MAP_APPFONT( 60, 8 );
81
82		Text [ en-US ] = "Hanja (Han~gul)";
83	};
84
85	RadioButton RB_HANGUL_HANJA_BRACKETED
86	{
87	    HelpID = "cui:RadioButton:RID_SVX_MDLG_HANGULHANJA:RB_HANGUL_HANJA_BRACKETED";
88        Pos = MAP_APPFONT( 177, 81 );
89        Size = MAP_APPFONT( 60, 8 );
90
91		Text [ en-US ] = "Hang~ul (Hanja)";
92	};
93
94	RadioButton RB_HANGUL_HANJA_ABOVE
95	{
96	    HelpID = "cui:RadioButton:RID_SVX_MDLG_HANGULHANJA:RB_HANGUL_HANJA_ABOVE";
97		Pos = MAP_APPFONT( 51, 95 );
98        Size = MAP_APPFONT( 60, 16 );
99
100		// this is the _primary_ text
101		Text [ en-US ] = "Hangu~l";
102	};
103
104	RadioButton RB_HANGUL_HANJA_BELOW
105	{
106	    HelpID = "cui:RadioButton:RID_SVX_MDLG_HANGULHANJA:RB_HANGUL_HANJA_BELOW";
107        Pos = MAP_APPFONT( 114, 95 );
108        Size = MAP_APPFONT( 60, 16 );
109
110		// this is the _primary_ text
111		Text [ en-US ] = "Hang~ul";
112	};
113
114	RadioButton RB_HANJA_HANGUL_ABOVE
115	{
116	    HelpID = "cui:RadioButton:RID_SVX_MDLG_HANGULHANJA:RB_HANJA_HANGUL_ABOVE";
117        Pos = MAP_APPFONT( 56, 114 );
118        Size = MAP_APPFONT( 60, 16 );
119
120		// this is the _primary_ text
121		Text [ en-US ] = "Han~ja";
122	};
123
124	RadioButton RB_HANJA_HANGUL_BELOW
125	{
126	    HelpID = "cui:RadioButton:RID_SVX_MDLG_HANGULHANJA:RB_HANJA_HANGUL_BELOW";
127        Pos = MAP_APPFONT( 114, 114 );
128        Size = MAP_APPFONT( 60, 16 );
129
130		// this is the _primary_ text
131		Text [ en-US ] = "Ha~nja";
132	};
133
134	FixedText FT_CONVERSION
135	{
136		Pos = MAP_APPFONT( 6, 134 );
137		Size = MAP_APPFONT( 42, 8 );
138
139		Text [ en-US ] = "Conversion";
140	};
141
142	CheckBox CB_HANGUL_ONLY
143	{
144	    HelpID = "cui:CheckBox:RID_SVX_MDLG_HANGULHANJA:CB_HANGUL_ONLY";
145		Pos = MAP_APPFONT( 51, 134 );
146        Size = MAP_APPFONT( 60, 8 );
147
148		Text [ en-US ] = "Hangul ~only";
149	};
150
151	CheckBox CB_HANJA_ONLY
152	{
153	    HelpID = "cui:CheckBox:RID_SVX_MDLG_HANGULHANJA:CB_HANJA_ONLY";
154        Pos = MAP_APPFONT( 114, 134 );
155		Size = MAP_APPFONT( 55, 8 );
156
157		Text [ en-US ] = "Hanja onl~y";
158	};
159
160	// this element is only for determining where our radio button group ends (in both directions)
161	FixedText FT_RESIZE_ANCHOR
162	{
163        Pos = MAP_APPFONT( 241, 133 );
164	};
165
166	CheckBox CB_REPLACE_BY_CHARACTER
167	{
168	    HelpID = "cui:CheckBox:RID_SVX_MDLG_HANGULHANJA:CB_REPLACE_BY_CHARACTER";
169        Pos = MAP_APPFONT( 241, 81 );
170		Size = MAP_APPFONT( 55, 24 );
171
172		WordBreak = TRUE;
173
174        Text [ en-US ] = "Replace b~y character";
175	};
176
177	String STR_HANGUL
178	{
179		Text [ en-US ] = "Hangul";
180	};
181
182	String STR_HANJA
183	{
184		Text [ en-US ] = "Hanja";
185	};
186};
187
188ModalDialog RID_SVX_MDLG_HANGULHANJA_OPT
189{
190	OutputSize = TRUE ;
191	Hide = TRUE ;
192	SVLook = TRUE ;
193	HelpId = HID_HANGULHANJA_OPT_DLG;
194	Pos = MAP_APPFONT ( 0 , 0 ) ;
195    Size = MAP_APPFONT ( HHO_DLGWIDTH , HHx_DLGHIGHT ) ;
196	Text [ en-US ] = "Hangul/Hanja Options" ;
197	Moveable = TRUE ;
198	Closeable = TRUE ;
199
200    FixedText FT_USERDEFDICT
201	{
202        Pos = MAP_APPFONT ( HHO_COL_1 , HHO_ROW_1 ) ;
203        Size = MAP_APPFONT ( HHO_COL_2 - HHO_COL_1, 8 ) ;
204		Text[ en-US ] = "User-defined dictionaries";
205	};
206	Control LB_DICTS
207	{
208		Pos = MAP_APPFONT ( HHO_COL_1 , HHO_ROW_2 ) ;
209        Size = MAP_APPFONT ( HHO_COL_2 - HHO_COL_1 , HHO_ROW_7 - HHO_ROW_2 ) ;
210        HelpId = HID_HANGULHANJA_OPT_DICTS_LB;
211		TabStop = TRUE;
212		Border = TRUE;
213	};
214    FixedLine FL_OPTIONS
215	{
216        Pos = MAP_APPFONT ( HHO_COL_1 , HHO_ROW_8 ) ;
217        Size = MAP_APPFONT ( HHO_COL_4 - HHO_COL_1, 8 ) ;
218		Text[ en-US ] = "Options";
219	};
220	CheckBox CB_IGNOREPOST
221	{
222	    HelpID = "cui:CheckBox:RID_SVX_MDLG_HANGULHANJA_OPT:CB_IGNOREPOST";
223		Pos = MAP_APPFONT ( HHO_COL_1a, HHO_ROW_9 ) ;
224		Size = MAP_APPFONT ( HHO_COL_6 - HHO_COL_1a , 12 ) ;
225		Text[ en-US ] = "Ignore post-positional word";
226	};
227	CheckBox CB_SHOWRECENTLYFIRST
228	{
229	    HelpID = "cui:CheckBox:RID_SVX_MDLG_HANGULHANJA_OPT:CB_SHOWRECENTLYFIRST";
230		Pos = MAP_APPFONT ( HHO_COL_1a, HHO_ROW_11 ) ;
231		Size = MAP_APPFONT ( HHO_COL_6 - HHO_COL_1a , 12 ) ;
232		Text [ en-US ] = "Show recently used entries first";
233	};
234	CheckBox CB_AUTOREPLACEUNIQUE
235	{
236	    HelpID = "cui:CheckBox:RID_SVX_MDLG_HANGULHANJA_OPT:CB_AUTOREPLACEUNIQUE";
237		Pos = MAP_APPFONT ( HHO_COL_1a, HHO_ROW_12 ) ;
238		Size = MAP_APPFONT ( HHO_COL_6 - HHO_COL_1a , 12 ) ;
239		Text [ en-US ] = "Replace all unique entries automatically";
240	};
241	PushButton PB_HHO_NEW
242	{
243	    HelpID = "cui:PushButton:RID_SVX_MDLG_HANGULHANJA_OPT:PB_HHO_NEW";
244        Pos = MAP_APPFONT ( HHO_COL_3 , HHO_ROW_2 ) ;
245		Size = MAP_APPFONT ( HHO_COL_4 - HHO_COL_3 , 14 ) ;
246		Text [ en-US ] = "New...";
247	};
248	PushButton PB_HHO_EDIT
249	{
250	    HelpID = "cui:PushButton:RID_SVX_MDLG_HANGULHANJA_OPT:PB_HHO_EDIT";
251        Pos = MAP_APPFONT ( HHO_COL_3 , HHO_ROW_4 ) ;
252		Size = MAP_APPFONT ( HHO_COL_4 - HHO_COL_3 , 14 ) ;
253		Text [ en-US ] = "Edit...";
254	};
255	PushButton PB_HHO_DELETE
256	{
257	    HelpID = "cui:PushButton:RID_SVX_MDLG_HANGULHANJA_OPT:PB_HHO_DELETE";
258        Pos = MAP_APPFONT ( HHO_COL_3 , HHO_ROW_6 ) ;
259		Size = MAP_APPFONT ( HHO_COL_4 - HHO_COL_3 , 14 ) ;
260		Text [ en-US ] = "Delete";
261	};
262	OKButton PB_HHO_OK
263	{
264		DefButton = TRUE;
265        Pos = MAP_APPFONT ( HHO_COL_5 , HHO_ROW_a1 ) ;
266		Size = MAP_APPFONT ( HHO_COL_6 - HHO_COL_5 , 14 ) ;
267	};
268	CancelButton PB_HHO_CANCEL
269	{
270        Pos = MAP_APPFONT ( HHO_COL_5 , HHO_ROW_a3 ) ;
271		Size = MAP_APPFONT ( HHO_COL_6 - HHO_COL_5 , 14 ) ;
272	};
273	HelpButton PB_HHO_HELP
274	{
275        Pos = MAP_APPFONT ( HHO_COL_5 , HHO_ROW_a5 ) ;
276		Size = MAP_APPFONT ( HHO_COL_6 - HHO_COL_5 , 14 ) ;
277	};
278
279};
280
281
282ModalDialog RID_SVX_MDLG_HANGULHANJA_NEWDICT
283{
284	HelpId = HID_HANGULHANJA_NEWDICT_DLG;
285	OutputSize = TRUE ;
286	SVLook = TRUE ;
287	Size = MAP_APPFONT ( 213 , 66 ) ;
288	Moveable = TRUE ;
289
290	Text [ en-US ] = "New Dictionary" ;
291
292	FixedLine FL_NEWDICT
293	{
294		Pos = MAP_APPFONT ( 6 , 3 ) ;
295		Size = MAP_APPFONT ( 145 , 8 ) ;
296		Text [ en-US ] = "Dictionary" ;
297	};
298	FixedText FT_DICTNAME
299	{
300		Pos = MAP_APPFONT ( 11 , 15 ) ;
301		Size = MAP_APPFONT ( 40 , 10 ) ;
302		LeftLabel = TRUE ;
303		Text [ en-US ] = "~Name" ;
304	};
305	Edit ED_DICTNAME
306	{
307	    HelpID = "cui:Edit:RID_SVX_MDLG_HANGULHANJA_NEWDICT:ED_DICTNAME";
308		Border = TRUE ;
309		Pos = MAP_APPFONT ( 55 , 14 ) ;
310		Size = MAP_APPFONT ( 90 , 12 ) ;
311		MaxTextLength = 32 ;
312	};
313	OKButton PB_NEWDICT_OK
314	{
315		Pos = MAP_APPFONT ( 157 , 6 ) ;
316		Size = MAP_APPFONT ( 50 , 14 ) ;
317		Disable = TRUE ;
318		DefButton = TRUE ;
319	};
320	CancelButton PB_NEWDICT_ESC
321	{
322		Pos = MAP_APPFONT ( 157 , 23 ) ;
323		Size = MAP_APPFONT ( 50 , 14 ) ;
324	};
325	HelpButton PB_NEWDICT_HLP
326	{
327		Pos = MAP_APPFONT ( 157 , 43 ) ;
328		Size = MAP_APPFONT ( 50 , 14 ) ;
329	};
330};
331
332
333ModalDialog RID_SVX_MDLG_HANGULHANJA_EDIT
334{
335	OutputSize = TRUE ;
336	Hide = TRUE ;
337	SVLook = TRUE ;
338	HelpId = HID_HANGULHANJA_EDIT_DLG;
339	Pos = MAP_APPFONT ( 0 , 0 ) ;
340    Size = MAP_APPFONT ( HHE_DLGWIDTH , HHx_DLGHIGHT ) ;
341	Text [ en-US ] = "Edit Custom Dictionary" ;
342	Moveable = TRUE ;
343	Closeable = TRUE ;
344
345	String STR_EDITHINT
346	{
347		Text [ en-US ] = "[Enter text here]";
348	};
349    FixedText FT_BOOK
350	{
351        Pos = MAP_APPFONT ( HHE_COL_1 , HHE_ROW_2 ) ;
352        Size = MAP_APPFONT ( HHE_COL_2 - HHE_COL_1, 8 ) ;
353		Text [ en-US ] = "Book";
354	};
355	ListBox LB_BOOK
356	{
357	    HelpID = "cui:ListBox:RID_SVX_MDLG_HANGULHANJA_EDIT:LB_BOOK";
358		Pos = MAP_APPFONT ( HHE_COL_3 , HHE_ROW_1 ) ;
359        Size = MAP_APPFONT ( HHE_COL_4 - HHE_COL_3 , 60 ) ;
360		DropDown = TRUE;
361		Border = TRUE;
362	};
363    FixedText FT_ORIGINAL
364	{
365        Pos = MAP_APPFONT ( HHE_COL_1 , HHE_ROW_4 ) ;
366        Size = MAP_APPFONT ( HHE_COL_4 - HHE_COL_1, 8 ) ;
367		Text [ en-US ] = "Original";
368	};
369	ComboBox LB_ORIGINAL
370	{
371	    HelpID = "cui:ComboBox:RID_SVX_MDLG_HANGULHANJA_EDIT:LB_ORIGINAL";
372		Pos = MAP_APPFONT ( HHE_COL_1 , HHE_ROW_5 ) ;
373        Size = MAP_APPFONT ( HHE_COL_4 - HHE_COL_1 , 60 ) ;
374		DropDown = TRUE;
375		Border = TRUE;
376	};
377    FixedText FT_SUGGESTIONS
378	{
379        Pos = MAP_APPFONT ( HHE_COL_1 , HHE_ROW_10 ) ;
380        Size = MAP_APPFONT ( HHE_COL_4 - HHE_COL_1, 8 ) ;
381		Text [ en-US ] = "Suggestions (max. 8)";
382	};
383    Edit ED_1
384	{
385        HelpID = "cui:Edit:RID_SVX_MDLG_HANGULHANJA_EDIT:ED_1";
386		Pos = MAP_APPFONT ( HHE_COL_1 , HHE_ROW_11 ) ;
387        Size = MAP_APPFONT ( HHE_COL_3_1 - HHE_COL_1 , 12 ) ;
388		Hide = False;
389		Border = TRUE;
390	};
391    Edit ED_2
392	{
393        HelpID = "cui:Edit:RID_SVX_MDLG_HANGULHANJA_EDIT:ED_2";
394		Pos = MAP_APPFONT ( HHE_COL_1 , HHE_ROW_11 + 12 ) ;
395        Size = MAP_APPFONT ( HHE_COL_3_1 - HHE_COL_1 , 12 ) ;
396		Hide = False;
397		Border = TRUE;
398	};
399    Edit ED_3
400	{
401        HelpID = "cui:Edit:RID_SVX_MDLG_HANGULHANJA_EDIT:ED_3";
402		Pos = MAP_APPFONT ( HHE_COL_1 , HHE_ROW_11 + 24 ) ;
403        Size = MAP_APPFONT ( HHE_COL_3_1 - HHE_COL_1 , 12 ) ;
404		Hide = False;
405		Border = TRUE;
406	};
407    Edit ED_4
408	{
409        HelpID = "cui:Edit:RID_SVX_MDLG_HANGULHANJA_EDIT:ED_4";
410		Pos = MAP_APPFONT ( HHE_COL_1 , HHE_ROW_11 + 36 ) ;
411        Size = MAP_APPFONT ( HHE_COL_3_1 - HHE_COL_1 , 12 ) ;
412		Hide = False;
413		Border = TRUE;
414	};
415	ScrollBar SB_SCROLL
416	{
417        Pos = MAP_APPFONT ( HHE_COL_3_2 , HHE_ROW_11 ) ;
418		Size = MAP_APPFONT ( RSC_CD_VSCRLWIDTH , HHE_ROW_12 - HHE_ROW_11 ) ;	// height = 48
419		VScroll = TRUE ;
420		Drag = TRUE ;
421	};
422	PushButton PB_HHE_NEW
423	{
424	    HelpID = "cui:PushButton:RID_SVX_MDLG_HANGULHANJA_EDIT:PB_HHE_NEW";
425        Pos = MAP_APPFONT ( HHE_COL_5 , HHE_ROW_a1 ) ;
426		Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ;
427		Text [ en-US ] = "New";
428	};
429	PushButton PB_HHE_DELETE
430	{
431	    HelpID = "cui:PushButton:RID_SVX_MDLG_HANGULHANJA_EDIT:PB_HHE_DELETE";
432        Pos = MAP_APPFONT ( HHE_COL_5 , HHE_ROW_a3 ) ;
433		Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ;
434		Text [ en-US ] = "Delete";
435	};
436	HelpButton PB_HHE_HELP
437	{
438        Pos = MAP_APPFONT ( HHE_COL_3_0 , HHE_ROW_13 ) ;
439		Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ;
440	};
441	CancelButton PB_HHE_CLOSE
442	{
443        Pos = MAP_APPFONT ( HHE_COL_5 , HHE_ROW_13 ) ;
444		Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ;
445		Text [ en-US ] = "Close";
446	};
447};
448
449
450
451