1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: chinese_translationdialog.src,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #include "chinese_translationdialog.hrc"
32 #include "chinese_direction.hrc"
34 #ifndef _SVT_CONTROLDIMS_HRC_
35 #include <svtools/controldims.hrc>
38 //-----------------------------------------------------------------------------
39 //defines for positions and sizes:
41 #define FULL_WIDTH (220)
42 #define FULL_HEIGHT (120)
43 #define EDITBUTTON_WIDTH (75)
45 #define COL_1 (RSC_SP_DLG_INNERBORDER_LEFT)
46 #define COL_2 (COL_1+RSC_SP_FLGR_SPACE_X)
47 #define COL_3 (COL_2+RSC_SP_CHK_TEXTINDENT)
48 #define COL_4 (FULL_WIDTH-RSC_SP_DLG_INNERBORDER_RIGHT-EDITBUTTON_WIDTH)
50 #define ROW_1 (RSC_SP_DLG_INNERBORDER_TOP)
51 #define ROW_2 (ROW_1+RSC_CD_FIXEDLINE_HEIGHT+RSC_SP_CTRL_GROUP_Y)
52 #define ROW_3 (ROW_2+RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y)
53 #define ROW_4 (ROW_3+RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_DESC_Y)
54 #define ROW_5 (ROW_4+RSC_CD_CHECKBOX_HEIGHT+RSC_SP_CTRL_Y)
55 #define ROW_6 (ROW_5+RSC_CD_FIXEDLINE_HEIGHT+RSC_SP_CTRL_GROUP_Y)
57 #define ROW_8 (FULL_HEIGHT-RSC_SP_DLG_INNERBORDER_BOTTOM-RSC_CD_PUSHBUTTON_HEIGHT)
58 #define ROW_7 (ROW_8-RSC_CD_FIXEDLINE_HEIGHT-2)
60 //-----------------------------------------------------------------------------
62 ModalDialog DLG_CHINESETRANSLATION
65 Size = MAP_APPFONT( FULL_WIDTH, FULL_HEIGHT );
71 Text [ en-US ] = "Chinese Translation";
73 FixedLine FL_DIRECTION
75 Pos = MAP_APPFONT ( COL_1 , ROW_1 ) ;
76 Size = MAP_APPFONT ( FULL_WIDTH - COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT, RSC_CD_FIXEDLINE_HEIGHT ) ;
77 Text [ en-US ] = "Translation direction";
80 DIRECTION_RADIOBUTTONS( COL_2, ROW_2, (FULL_WIDTH - COL_2 - RSC_SP_DLG_INNERBORDER_RIGHT) )
82 CheckBox CB_USE_VARIANTS
84 Pos = MAP_APPFONT( COL_3, ROW_4 );
85 Size = MAP_APPFONT ( FULL_WIDTH - COL_3 - RSC_SP_DLG_INNERBORDER_RIGHT, RSC_CD_CHECKBOX_HEIGHT ) ;
87 Text [ en-US ] = "~Use Taiwan, Hong Kong SAR, and Macao SAR character variants";
90 FixedLine FL_COMMONTERMS
92 Pos = MAP_APPFONT ( COL_1 , ROW_5 ) ;
93 Size = MAP_APPFONT ( FULL_WIDTH - COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT, RSC_CD_FIXEDLINE_HEIGHT ) ;
94 Text [ en-US ] = "Common terms";
97 CheckBox CB_TRANSLATE_COMMONTERMS
99 Pos = MAP_APPFONT( COL_2, ROW_6 );
100 Size = MAP_APPFONT ( COL_4 - COL_2, RSC_CD_CHECKBOX_HEIGHT ) ;
102 Text [ en-US ] = "Translate ~common terms";
105 PushButton PB_EDITTERMS
107 Pos = MAP_APPFONT( COL_4, ROW_6-(RSC_CD_PUSHBUTTON_HEIGHT-RSC_CD_CHECKBOX_HEIGHT)/2 );
108 Size = MAP_APPFONT( EDITBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
110 Text [ en-US ] = "~Edit Terms...";
113 FixedLine FL_BOTTOMLINE
115 Pos = MAP_APPFONT ( 0 , ROW_7 ) ;
116 Size = MAP_APPFONT ( FULL_WIDTH, RSC_CD_FIXEDLINE_HEIGHT ) ;
119 BUTTONS_OK_CANCEL_HELP_ABREAST( FULL_WIDTH - RSC_SP_DLG_INNERBORDER_RIGHT, ROW_8 )