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_dictionarydialog.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_dictionarydialog.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 (245)
42 #define FULL_HEIGHT (165)
44 #define ROW_1 (RSC_SP_DLG_INNERBORDER_TOP)
45 #define ROW_2 (ROW_1+RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y)
46 #define ROW_3 (ROW_2+RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y)
47 #define ROW_4 (ROW_3+RSC_CD_CHECKBOX_HEIGHT+RSC_SP_CTRL_GROUP_Y)
48 #define ROW_5 (ROW_4+RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_DESC_Y)
49 #define ROW_6 (ROW_5+RSC_CD_TEXTBOX_HEIGHT+RSC_SP_CTRL_DESC_Y)
51 #define ROW_5a (ROW_5+RSC_CD_PUSHBUTTON_HEIGHT+RSC_SP_CTRL_DESC_Y)
52 #define ROW_5b (ROW_5a+RSC_CD_PUSHBUTTON_HEIGHT+RSC_SP_CTRL_DESC_Y)
54 #define ROW_8 (FULL_HEIGHT-RSC_SP_DLG_INNERBORDER_BOTTOM-RSC_CD_PUSHBUTTON_HEIGHT)
55 #define ROW_7 (ROW_8-RSC_CD_FIXEDLINE_HEIGHT-2)
57 #define LIST_HEIGHT (ROW_7-RSC_SP_CTRL_Y-ROW_6)
60 #define BUTTONCOL_WIDTH 40
61 #define COL_1 (RSC_SP_DLG_INNERBORDER_LEFT+RSC_SP_FLGR_SPACE_X)
62 #define COL_2 (COL_1+COL_WIDTH+1)
63 #define COL_3 (COL_2+COL_WIDTH+1)
64 #define COL_4 (FULL_WIDTH-RSC_SP_DLG_INNERBORDER_RIGHT-BUTTONCOL_WIDTH)
66 #define REST_COL_WIDTH (COL_4-COL_3-RSC_SP_CTRL_GROUP_X)
68 //-----------------------------------------------------------------------------
70 ModalDialog DLG_CHINESEDICTIONARY
73 Size = MAP_APPFONT( FULL_WIDTH, FULL_HEIGHT );
79 Text [ en-US ] = "Edit Dictionary";
81 DIRECTION_RADIOBUTTONS( COL_1, ROW_1, FULL_WIDTH - COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT )
85 Pos = MAP_APPFONT ( COL_1, ROW_3 ) ;
86 Size = MAP_APPFONT ( FULL_WIDTH - COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT , RSC_CD_CHECKBOX_HEIGHT ) ;
88 Text [ en-US ] = "Reverse mapping";
93 Pos = MAP_APPFONT ( COL_1 , ROW_4 ) ;
94 Size = MAP_APPFONT ( COL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ;
95 Text [ en-US ] = "Term";
100 Pos = MAP_APPFONT ( COL_1 , ROW_5 ) ;
101 Size = MAP_APPFONT ( COL_WIDTH , RSC_CD_TEXTBOX_HEIGHT ) ;
107 Pos = MAP_APPFONT ( COL_2 , ROW_4 ) ;
108 Size = MAP_APPFONT ( COL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ;
109 Text [ en-US ] = "Mapping";
114 Pos = MAP_APPFONT ( COL_2 , ROW_5 ) ;
115 Size = MAP_APPFONT ( COL_WIDTH , RSC_CD_TEXTBOX_HEIGHT ) ;
118 FixedText FT_PROPERTY
120 Pos = MAP_APPFONT ( COL_3 , ROW_4 ) ;
121 Size = MAP_APPFONT ( REST_COL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ;
122 Text [ en-US ] = "Property";
127 Pos = MAP_APPFONT ( COL_3 , ROW_5 ) ;
128 Size = MAP_APPFONT ( REST_COL_WIDTH , RSC_CD_TEXTBOX_HEIGHT ) ;
131 stringlist [ en-US ] =
133 < "Other" ; Default ; > ;
143 < "Abbreviation" ; > ;
151 Control CT_MAPPINGLIST
153 Pos = MAP_APPFONT ( COL_1, ROW_6 ) ;
154 Size = MAP_APPFONT ( COL_4 - COL_1 - RSC_SP_CTRL_GROUP_X, LIST_HEIGHT ) ;
160 Pos = MAP_APPFONT( COL_4, ROW_5 );
161 Size = MAP_APPFONT( BUTTONCOL_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT );
163 Text [ en-US ] = "~Add";
167 Pos = MAP_APPFONT( COL_4, ROW_5a );
168 Size = MAP_APPFONT( BUTTONCOL_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT );
170 Text [ en-US ] = "~Modify";
174 Pos = MAP_APPFONT( COL_4, ROW_5b );
175 Size = MAP_APPFONT( BUTTONCOL_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT );
177 Text [ en-US ] = "~Delete";
180 FixedLine FL_BOTTOMLINE
182 Pos = MAP_APPFONT ( 0 , ROW_7 ) ;
183 Size = MAP_APPFONT ( FULL_WIDTH, RSC_CD_FIXEDLINE_HEIGHT ) ;
186 BUTTONS_OK_CANCEL_HELP_ABREAST( FULL_WIDTH - RSC_SP_DLG_INNERBORDER_RIGHT, ROW_8 )