1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include "chinese_dictionarydialog.hrc"
22 #include <svtools/controldims.hrc>
24 #define DIRECTION_RADIOBUTTONS( D_XPOS, D_YPOS, D_FULLWIDTH ) \
25 RadioButton RB_TO_SIMPLIFIED \
27 Pos = MAP_APPFONT( D_XPOS, D_YPOS ); \
28 Size = MAP_APPFONT ( D_FULLWIDTH, RSC_CD_RADIOBUTTON_HEIGHT ) ; \
29 Text [ en-US ] = "~Traditional Chinese to simplified Chinese"; \
31 RadioButton RB_TO_TRADITIONAL \
33 Pos = MAP_APPFONT( D_XPOS, D_YPOS + RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y ); \
34 Size = MAP_APPFONT ( D_FULLWIDTH, RSC_CD_RADIOBUTTON_HEIGHT ) ; \
35 Text [ en-US ] = "~Simplified Chinese to traditional Chinese"; \
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
72 HelpID = "svx:ModalDialog:DLG_CHINESEDICTIONARY";
74 Size = MAP_APPFONT( FULL_WIDTH, FULL_HEIGHT );
80 Text [ en-US ] = "Edit Dictionary";
82 DIRECTION_RADIOBUTTONS( COL_1, ROW_1, FULL_WIDTH - COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT )
86 HelpID = "svx:CheckBox:DLG_CHINESEDICTIONARY:CB_REVERSE";
87 Pos = MAP_APPFONT ( COL_1, ROW_3 ) ;
88 Size = MAP_APPFONT ( FULL_WIDTH - COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT , RSC_CD_CHECKBOX_HEIGHT ) ;
90 Text [ en-US ] = "Reverse mapping";
95 Pos = MAP_APPFONT ( COL_1 , ROW_4 ) ;
96 Size = MAP_APPFONT ( COL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ;
97 Text [ en-US ] = "Term";
101 HelpID = "svx:Edit:DLG_CHINESEDICTIONARY:ED_TERM";
103 Pos = MAP_APPFONT ( COL_1 , ROW_5 ) ;
104 Size = MAP_APPFONT ( COL_WIDTH , RSC_CD_TEXTBOX_HEIGHT ) ;
110 Pos = MAP_APPFONT ( COL_2 , ROW_4 ) ;
111 Size = MAP_APPFONT ( COL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ;
112 Text [ en-US ] = "Mapping";
116 HelpID = "svx:Edit:DLG_CHINESEDICTIONARY:ED_MAPPING";
118 Pos = MAP_APPFONT ( COL_2 , ROW_5 ) ;
119 Size = MAP_APPFONT ( COL_WIDTH , RSC_CD_TEXTBOX_HEIGHT ) ;
122 FixedText FT_PROPERTY
124 Pos = MAP_APPFONT ( COL_3 , ROW_4 ) ;
125 Size = MAP_APPFONT ( REST_COL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ;
126 Text [ en-US ] = "Property";
130 HelpID = "svx:ListBox:DLG_CHINESEDICTIONARY:LB_PROPERTY";
132 Pos = MAP_APPFONT ( COL_3 , ROW_5 ) ;
133 Size = MAP_APPFONT ( REST_COL_WIDTH , RSC_CD_TEXTBOX_HEIGHT ) ;
136 stringlist [ en-US ] =
138 < "Other" ; Default ; > ;
148 < "Abbreviation" ; > ;
156 Control CT_MAPPINGLIST
158 Pos = MAP_APPFONT ( COL_1, ROW_6 ) ;
159 Size = MAP_APPFONT ( COL_4 - COL_1 - RSC_SP_CTRL_GROUP_X, LIST_HEIGHT ) ;
165 HelpID = "svx:PushButton:DLG_CHINESEDICTIONARY:PB_ADD";
166 Pos = MAP_APPFONT( COL_4, ROW_5 );
167 Size = MAP_APPFONT( BUTTONCOL_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT );
169 Text [ en-US ] = "~Add";
173 HelpID = "svx:PushButton:DLG_CHINESEDICTIONARY:PB_MODIFY";
174 Pos = MAP_APPFONT( COL_4, ROW_5a );
175 Size = MAP_APPFONT( BUTTONCOL_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT );
177 Text [ en-US ] = "~Modify";
181 HelpID = "svx:PushButton:DLG_CHINESEDICTIONARY:PB_DELETE";
182 Pos = MAP_APPFONT( COL_4, ROW_5b );
183 Size = MAP_APPFONT( BUTTONCOL_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT );
185 Text [ en-US ] = "~Delete";
188 FixedLine FL_BOTTOMLINE
190 Pos = MAP_APPFONT ( 0 , ROW_7 ) ;
191 Size = MAP_APPFONT ( FULL_WIDTH, RSC_CD_FIXEDLINE_HEIGHT ) ;
194 BUTTONS_OK_CANCEL_HELP_ABREAST( FULL_WIDTH - RSC_SP_DLG_INNERBORDER_RIGHT, ROW_8 )
197 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */