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
24#include "chinese_translationdialog.hrc"
25#include "chinese_direction.hrc"
26
27#ifndef _SVT_CONTROLDIMS_HRC_
28#include <svtools/controldims.hrc>
29#endif
30
31//-----------------------------------------------------------------------------
32//defines for positions and sizes:
33
34#define FULL_WIDTH (220)
35#define FULL_HEIGHT (120)
36#define EDITBUTTON_WIDTH (75)
37
38#define COL_1 (RSC_SP_DLG_INNERBORDER_LEFT)
39#define COL_2 (COL_1+RSC_SP_FLGR_SPACE_X)
40#define COL_3 (COL_2+RSC_SP_CHK_TEXTINDENT)
41#define COL_4 (FULL_WIDTH-RSC_SP_DLG_INNERBORDER_RIGHT-EDITBUTTON_WIDTH)
42
43#define ROW_1 (RSC_SP_DLG_INNERBORDER_TOP)
44#define ROW_2 (ROW_1+RSC_CD_FIXEDLINE_HEIGHT+RSC_SP_CTRL_GROUP_Y)
45#define ROW_3 (ROW_2+RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y)
46#define ROW_4 (ROW_3+RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_DESC_Y)
47#define ROW_5 (ROW_4+RSC_CD_CHECKBOX_HEIGHT+RSC_SP_CTRL_Y)
48#define ROW_6 (ROW_5+RSC_CD_FIXEDLINE_HEIGHT+RSC_SP_CTRL_GROUP_Y)
49
50#define ROW_8 (FULL_HEIGHT-RSC_SP_DLG_INNERBORDER_BOTTOM-RSC_CD_PUSHBUTTON_HEIGHT)
51#define ROW_7 (ROW_8-RSC_CD_FIXEDLINE_HEIGHT-2)
52
53//-----------------------------------------------------------------------------
54
55ModalDialog DLG_CHINESETRANSLATION
56{
57    HelpID = "svx:ModalDialog:DLG_CHINESETRANSLATION";
58	//HelpId = ;
59	Size = MAP_APPFONT( FULL_WIDTH, FULL_HEIGHT );
60	OutputSize = TRUE;
61	Closeable = TRUE ;
62	Moveable = TRUE ;
63	SVLook = TRUE;
64
65    Text [ en-US ] = "Chinese Conversion";
66
67    FixedLine FL_DIRECTION
68	{
69        Pos = MAP_APPFONT ( COL_1 , ROW_1 ) ;
70        Size = MAP_APPFONT ( FULL_WIDTH - COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT, RSC_CD_FIXEDLINE_HEIGHT ) ;
71		Text [ en-US ] = "Conversion direction";
72	};
73
74	DIRECTION_RADIOBUTTONS( COL_2, ROW_2, (FULL_WIDTH - COL_2 - RSC_SP_DLG_INNERBORDER_RIGHT) )
75
76	CheckBox CB_USE_VARIANTS
77	{
78	    HelpID = "svx:CheckBox:DLG_CHINESETRANSLATION:CB_USE_VARIANTS";
79		Pos = MAP_APPFONT( COL_3, ROW_4 );
80		Size = MAP_APPFONT ( FULL_WIDTH - COL_3 - RSC_SP_DLG_INNERBORDER_RIGHT, RSC_CD_CHECKBOX_HEIGHT ) ;
81
82		Text [ en-US ] = "~Use Taiwan, Hong Kong SAR, and Macao SAR character variants";
83	};
84
85	FixedLine FL_COMMONTERMS
86	{
87        Pos = MAP_APPFONT ( COL_1 , ROW_5 ) ;
88        Size = MAP_APPFONT ( FULL_WIDTH - COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT, RSC_CD_FIXEDLINE_HEIGHT ) ;
89		Text [ en-US ] = "Common terms";
90	};
91
92	CheckBox CB_TRANSLATE_COMMONTERMS
93	{
94	    HelpID = "svx:CheckBox:DLG_CHINESETRANSLATION:CB_TRANSLATE_COMMONTERMS";
95		Pos = MAP_APPFONT( COL_2, ROW_6 );
96		Size = MAP_APPFONT ( COL_4 - COL_2, RSC_CD_CHECKBOX_HEIGHT ) ;
97
98		Text [ en-US ] = "Translate ~common terms";
99	};
100
101	PushButton PB_EDITTERMS
102	{
103	    HelpID = "svx:PushButton:DLG_CHINESETRANSLATION:PB_EDITTERMS";
104		Pos = MAP_APPFONT( COL_4, ROW_6-(RSC_CD_PUSHBUTTON_HEIGHT-RSC_CD_CHECKBOX_HEIGHT)/2 );
105		Size = MAP_APPFONT( EDITBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
106
107		Text [ en-US ] = "~Edit Terms...";
108	};
109
110	FixedLine FL_BOTTOMLINE
111	{
112        Pos = MAP_APPFONT ( 0 , ROW_7 ) ;
113        Size = MAP_APPFONT ( FULL_WIDTH, RSC_CD_FIXEDLINE_HEIGHT ) ;
114	};
115
116	BUTTONS_OK_CANCEL_HELP_ABREAST( FULL_WIDTH - RSC_SP_DLG_INNERBORDER_RIGHT, ROW_8 )
117};
118