1*cdf0e10cSrcweir/************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir#include "chinese_translationdialog.hrc" 29*cdf0e10cSrcweir#include "chinese_direction.hrc" 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir#ifndef _SVT_CONTROLDIMS_HRC_ 32*cdf0e10cSrcweir#include <svtools/controldims.hrc> 33*cdf0e10cSrcweir#endif 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir//----------------------------------------------------------------------------- 36*cdf0e10cSrcweir//defines for positions and sizes: 37*cdf0e10cSrcweir 38*cdf0e10cSrcweir#define FULL_WIDTH (220) 39*cdf0e10cSrcweir#define FULL_HEIGHT (120) 40*cdf0e10cSrcweir#define EDITBUTTON_WIDTH (75) 41*cdf0e10cSrcweir 42*cdf0e10cSrcweir#define COL_1 (RSC_SP_DLG_INNERBORDER_LEFT) 43*cdf0e10cSrcweir#define COL_2 (COL_1+RSC_SP_FLGR_SPACE_X) 44*cdf0e10cSrcweir#define COL_3 (COL_2+RSC_SP_CHK_TEXTINDENT) 45*cdf0e10cSrcweir#define COL_4 (FULL_WIDTH-RSC_SP_DLG_INNERBORDER_RIGHT-EDITBUTTON_WIDTH) 46*cdf0e10cSrcweir 47*cdf0e10cSrcweir#define ROW_1 (RSC_SP_DLG_INNERBORDER_TOP) 48*cdf0e10cSrcweir#define ROW_2 (ROW_1+RSC_CD_FIXEDLINE_HEIGHT+RSC_SP_CTRL_GROUP_Y) 49*cdf0e10cSrcweir#define ROW_3 (ROW_2+RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y) 50*cdf0e10cSrcweir#define ROW_4 (ROW_3+RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_DESC_Y) 51*cdf0e10cSrcweir#define ROW_5 (ROW_4+RSC_CD_CHECKBOX_HEIGHT+RSC_SP_CTRL_Y) 52*cdf0e10cSrcweir#define ROW_6 (ROW_5+RSC_CD_FIXEDLINE_HEIGHT+RSC_SP_CTRL_GROUP_Y) 53*cdf0e10cSrcweir 54*cdf0e10cSrcweir#define ROW_8 (FULL_HEIGHT-RSC_SP_DLG_INNERBORDER_BOTTOM-RSC_CD_PUSHBUTTON_HEIGHT) 55*cdf0e10cSrcweir#define ROW_7 (ROW_8-RSC_CD_FIXEDLINE_HEIGHT-2) 56*cdf0e10cSrcweir 57*cdf0e10cSrcweir//----------------------------------------------------------------------------- 58*cdf0e10cSrcweir 59*cdf0e10cSrcweirModalDialog DLG_CHINESETRANSLATION 60*cdf0e10cSrcweir{ 61*cdf0e10cSrcweir HelpID = "svx:ModalDialog:DLG_CHINESETRANSLATION"; 62*cdf0e10cSrcweir //HelpId = ; 63*cdf0e10cSrcweir Size = MAP_APPFONT( FULL_WIDTH, FULL_HEIGHT ); 64*cdf0e10cSrcweir OutputSize = TRUE; 65*cdf0e10cSrcweir Closeable = TRUE ; 66*cdf0e10cSrcweir Moveable = TRUE ; 67*cdf0e10cSrcweir SVLook = TRUE; 68*cdf0e10cSrcweir 69*cdf0e10cSrcweir Text [ en-US ] = "Chinese Conversion"; 70*cdf0e10cSrcweir 71*cdf0e10cSrcweir FixedLine FL_DIRECTION 72*cdf0e10cSrcweir { 73*cdf0e10cSrcweir Pos = MAP_APPFONT ( COL_1 , ROW_1 ) ; 74*cdf0e10cSrcweir Size = MAP_APPFONT ( FULL_WIDTH - COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT, RSC_CD_FIXEDLINE_HEIGHT ) ; 75*cdf0e10cSrcweir Text [ en-US ] = "Conversion direction"; 76*cdf0e10cSrcweir }; 77*cdf0e10cSrcweir 78*cdf0e10cSrcweir DIRECTION_RADIOBUTTONS( COL_2, ROW_2, (FULL_WIDTH - COL_2 - RSC_SP_DLG_INNERBORDER_RIGHT) ) 79*cdf0e10cSrcweir 80*cdf0e10cSrcweir CheckBox CB_USE_VARIANTS 81*cdf0e10cSrcweir { 82*cdf0e10cSrcweir HelpID = "svx:CheckBox:DLG_CHINESETRANSLATION:CB_USE_VARIANTS"; 83*cdf0e10cSrcweir Pos = MAP_APPFONT( COL_3, ROW_4 ); 84*cdf0e10cSrcweir Size = MAP_APPFONT ( FULL_WIDTH - COL_3 - RSC_SP_DLG_INNERBORDER_RIGHT, RSC_CD_CHECKBOX_HEIGHT ) ; 85*cdf0e10cSrcweir 86*cdf0e10cSrcweir Text [ en-US ] = "~Use Taiwan, Hong Kong SAR, and Macao SAR character variants"; 87*cdf0e10cSrcweir }; 88*cdf0e10cSrcweir 89*cdf0e10cSrcweir FixedLine FL_COMMONTERMS 90*cdf0e10cSrcweir { 91*cdf0e10cSrcweir Pos = MAP_APPFONT ( COL_1 , ROW_5 ) ; 92*cdf0e10cSrcweir Size = MAP_APPFONT ( FULL_WIDTH - COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT, RSC_CD_FIXEDLINE_HEIGHT ) ; 93*cdf0e10cSrcweir Text [ en-US ] = "Common terms"; 94*cdf0e10cSrcweir }; 95*cdf0e10cSrcweir 96*cdf0e10cSrcweir CheckBox CB_TRANSLATE_COMMONTERMS 97*cdf0e10cSrcweir { 98*cdf0e10cSrcweir HelpID = "svx:CheckBox:DLG_CHINESETRANSLATION:CB_TRANSLATE_COMMONTERMS"; 99*cdf0e10cSrcweir Pos = MAP_APPFONT( COL_2, ROW_6 ); 100*cdf0e10cSrcweir Size = MAP_APPFONT ( COL_4 - COL_2, RSC_CD_CHECKBOX_HEIGHT ) ; 101*cdf0e10cSrcweir 102*cdf0e10cSrcweir Text [ en-US ] = "Translate ~common terms"; 103*cdf0e10cSrcweir }; 104*cdf0e10cSrcweir 105*cdf0e10cSrcweir PushButton PB_EDITTERMS 106*cdf0e10cSrcweir { 107*cdf0e10cSrcweir HelpID = "svx:PushButton:DLG_CHINESETRANSLATION:PB_EDITTERMS"; 108*cdf0e10cSrcweir Pos = MAP_APPFONT( COL_4, ROW_6-(RSC_CD_PUSHBUTTON_HEIGHT-RSC_CD_CHECKBOX_HEIGHT)/2 ); 109*cdf0e10cSrcweir Size = MAP_APPFONT( EDITBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 110*cdf0e10cSrcweir 111*cdf0e10cSrcweir Text [ en-US ] = "~Edit Terms..."; 112*cdf0e10cSrcweir }; 113*cdf0e10cSrcweir 114*cdf0e10cSrcweir FixedLine FL_BOTTOMLINE 115*cdf0e10cSrcweir { 116*cdf0e10cSrcweir Pos = MAP_APPFONT ( 0 , ROW_7 ) ; 117*cdf0e10cSrcweir Size = MAP_APPFONT ( FULL_WIDTH, RSC_CD_FIXEDLINE_HEIGHT ) ; 118*cdf0e10cSrcweir }; 119*cdf0e10cSrcweir 120*cdf0e10cSrcweir BUTTONS_OK_CANCEL_HELP_ABREAST( FULL_WIDTH - RSC_SP_DLG_INNERBORDER_RIGHT, ROW_8 ) 121*cdf0e10cSrcweir}; 122