1*09a1d057SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*09a1d057SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*09a1d057SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*09a1d057SAndrew Rist * distributed with this work for additional information
6*09a1d057SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*09a1d057SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*09a1d057SAndrew Rist * "License"); you may not use this file except in compliance
9*09a1d057SAndrew Rist * with the License.  You may obtain a copy of the License at
10*09a1d057SAndrew Rist *
11*09a1d057SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*09a1d057SAndrew Rist *
13*09a1d057SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*09a1d057SAndrew Rist * software distributed under the License is distributed on an
15*09a1d057SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*09a1d057SAndrew Rist * KIND, either express or implied.  See the License for the
17*09a1d057SAndrew Rist * specific language governing permissions and limitations
18*09a1d057SAndrew Rist * under the License.
19*09a1d057SAndrew Rist *
20*09a1d057SAndrew Rist *************************************************************/
21*09a1d057SAndrew Rist
22*09a1d057SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir#include "chinese_translationdialog.hrc"
25cdf0e10cSrcweir#include "chinese_direction.hrc"
26cdf0e10cSrcweir
27cdf0e10cSrcweir#ifndef _SVT_CONTROLDIMS_HRC_
28cdf0e10cSrcweir#include <svtools/controldims.hrc>
29cdf0e10cSrcweir#endif
30cdf0e10cSrcweir
31cdf0e10cSrcweir//-----------------------------------------------------------------------------
32cdf0e10cSrcweir//defines for positions and sizes:
33cdf0e10cSrcweir
34cdf0e10cSrcweir#define FULL_WIDTH (220)
35cdf0e10cSrcweir#define FULL_HEIGHT (120)
36cdf0e10cSrcweir#define EDITBUTTON_WIDTH (75)
37cdf0e10cSrcweir
38cdf0e10cSrcweir#define COL_1 (RSC_SP_DLG_INNERBORDER_LEFT)
39cdf0e10cSrcweir#define COL_2 (COL_1+RSC_SP_FLGR_SPACE_X)
40cdf0e10cSrcweir#define COL_3 (COL_2+RSC_SP_CHK_TEXTINDENT)
41cdf0e10cSrcweir#define COL_4 (FULL_WIDTH-RSC_SP_DLG_INNERBORDER_RIGHT-EDITBUTTON_WIDTH)
42cdf0e10cSrcweir
43cdf0e10cSrcweir#define ROW_1 (RSC_SP_DLG_INNERBORDER_TOP)
44cdf0e10cSrcweir#define ROW_2 (ROW_1+RSC_CD_FIXEDLINE_HEIGHT+RSC_SP_CTRL_GROUP_Y)
45cdf0e10cSrcweir#define ROW_3 (ROW_2+RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y)
46cdf0e10cSrcweir#define ROW_4 (ROW_3+RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_DESC_Y)
47cdf0e10cSrcweir#define ROW_5 (ROW_4+RSC_CD_CHECKBOX_HEIGHT+RSC_SP_CTRL_Y)
48cdf0e10cSrcweir#define ROW_6 (ROW_5+RSC_CD_FIXEDLINE_HEIGHT+RSC_SP_CTRL_GROUP_Y)
49cdf0e10cSrcweir
50cdf0e10cSrcweir#define ROW_8 (FULL_HEIGHT-RSC_SP_DLG_INNERBORDER_BOTTOM-RSC_CD_PUSHBUTTON_HEIGHT)
51cdf0e10cSrcweir#define ROW_7 (ROW_8-RSC_CD_FIXEDLINE_HEIGHT-2)
52cdf0e10cSrcweir
53cdf0e10cSrcweir//-----------------------------------------------------------------------------
54cdf0e10cSrcweir
55cdf0e10cSrcweirModalDialog DLG_CHINESETRANSLATION
56cdf0e10cSrcweir{
57cdf0e10cSrcweir    HelpID = "svx:ModalDialog:DLG_CHINESETRANSLATION";
58cdf0e10cSrcweir	//HelpId = ;
59cdf0e10cSrcweir	Size = MAP_APPFONT( FULL_WIDTH, FULL_HEIGHT );
60cdf0e10cSrcweir	OutputSize = TRUE;
61cdf0e10cSrcweir	Closeable = TRUE ;
62cdf0e10cSrcweir	Moveable = TRUE ;
63cdf0e10cSrcweir	SVLook = TRUE;
64cdf0e10cSrcweir
65cdf0e10cSrcweir    Text [ en-US ] = "Chinese Conversion";
66cdf0e10cSrcweir
67cdf0e10cSrcweir    FixedLine FL_DIRECTION
68cdf0e10cSrcweir	{
69cdf0e10cSrcweir        Pos = MAP_APPFONT ( COL_1 , ROW_1 ) ;
70cdf0e10cSrcweir        Size = MAP_APPFONT ( FULL_WIDTH - COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT, RSC_CD_FIXEDLINE_HEIGHT ) ;
71cdf0e10cSrcweir		Text [ en-US ] = "Conversion direction";
72cdf0e10cSrcweir	};
73cdf0e10cSrcweir
74cdf0e10cSrcweir	DIRECTION_RADIOBUTTONS( COL_2, ROW_2, (FULL_WIDTH - COL_2 - RSC_SP_DLG_INNERBORDER_RIGHT) )
75cdf0e10cSrcweir
76cdf0e10cSrcweir	CheckBox CB_USE_VARIANTS
77cdf0e10cSrcweir	{
78cdf0e10cSrcweir	    HelpID = "svx:CheckBox:DLG_CHINESETRANSLATION:CB_USE_VARIANTS";
79cdf0e10cSrcweir		Pos = MAP_APPFONT( COL_3, ROW_4 );
80cdf0e10cSrcweir		Size = MAP_APPFONT ( FULL_WIDTH - COL_3 - RSC_SP_DLG_INNERBORDER_RIGHT, RSC_CD_CHECKBOX_HEIGHT ) ;
81cdf0e10cSrcweir
82cdf0e10cSrcweir		Text [ en-US ] = "~Use Taiwan, Hong Kong SAR, and Macao SAR character variants";
83cdf0e10cSrcweir	};
84cdf0e10cSrcweir
85cdf0e10cSrcweir	FixedLine FL_COMMONTERMS
86cdf0e10cSrcweir	{
87cdf0e10cSrcweir        Pos = MAP_APPFONT ( COL_1 , ROW_5 ) ;
88cdf0e10cSrcweir        Size = MAP_APPFONT ( FULL_WIDTH - COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT, RSC_CD_FIXEDLINE_HEIGHT ) ;
89cdf0e10cSrcweir		Text [ en-US ] = "Common terms";
90cdf0e10cSrcweir	};
91cdf0e10cSrcweir
92cdf0e10cSrcweir	CheckBox CB_TRANSLATE_COMMONTERMS
93cdf0e10cSrcweir	{
94cdf0e10cSrcweir	    HelpID = "svx:CheckBox:DLG_CHINESETRANSLATION:CB_TRANSLATE_COMMONTERMS";
95cdf0e10cSrcweir		Pos = MAP_APPFONT( COL_2, ROW_6 );
96cdf0e10cSrcweir		Size = MAP_APPFONT ( COL_4 - COL_2, RSC_CD_CHECKBOX_HEIGHT ) ;
97cdf0e10cSrcweir
98cdf0e10cSrcweir		Text [ en-US ] = "Translate ~common terms";
99cdf0e10cSrcweir	};
100cdf0e10cSrcweir
101cdf0e10cSrcweir	PushButton PB_EDITTERMS
102cdf0e10cSrcweir	{
103cdf0e10cSrcweir	    HelpID = "svx:PushButton:DLG_CHINESETRANSLATION:PB_EDITTERMS";
104cdf0e10cSrcweir		Pos = MAP_APPFONT( COL_4, ROW_6-(RSC_CD_PUSHBUTTON_HEIGHT-RSC_CD_CHECKBOX_HEIGHT)/2 );
105cdf0e10cSrcweir		Size = MAP_APPFONT( EDITBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
106cdf0e10cSrcweir
107cdf0e10cSrcweir		Text [ en-US ] = "~Edit Terms...";
108cdf0e10cSrcweir	};
109cdf0e10cSrcweir
110cdf0e10cSrcweir	FixedLine FL_BOTTOMLINE
111cdf0e10cSrcweir	{
112cdf0e10cSrcweir        Pos = MAP_APPFONT ( 0 , ROW_7 ) ;
113cdf0e10cSrcweir        Size = MAP_APPFONT ( FULL_WIDTH, RSC_CD_FIXEDLINE_HEIGHT ) ;
114cdf0e10cSrcweir	};
115cdf0e10cSrcweir
116cdf0e10cSrcweir	BUTTONS_OK_CANCEL_HELP_ABREAST( FULL_WIDTH - RSC_SP_DLG_INNERBORDER_RIGHT, ROW_8 )
117cdf0e10cSrcweir};
118