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"
21 #include "chinese_direction.hrc"
23 #include <svtools/controldims.hrc>
25 //-----------------------------------------------------------------------------
26 //defines for positions and sizes:
28 #define FULL_WIDTH (245)
29 #define FULL_HEIGHT (165)
31 #define ROW_1 (RSC_SP_DLG_INNERBORDER_TOP)
32 #define ROW_2 (ROW_1+RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y)
33 #define ROW_3 (ROW_2+RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y)
34 #define ROW_4 (ROW_3+RSC_CD_CHECKBOX_HEIGHT+RSC_SP_CTRL_GROUP_Y)
35 #define ROW_5 (ROW_4+RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_DESC_Y)
36 #define ROW_6 (ROW_5+RSC_CD_TEXTBOX_HEIGHT+RSC_SP_CTRL_DESC_Y)
38 #define ROW_5a (ROW_5+RSC_CD_PUSHBUTTON_HEIGHT+RSC_SP_CTRL_DESC_Y)
39 #define ROW_5b (ROW_5a+RSC_CD_PUSHBUTTON_HEIGHT+RSC_SP_CTRL_DESC_Y)
41 #define ROW_8 (FULL_HEIGHT-RSC_SP_DLG_INNERBORDER_BOTTOM-RSC_CD_PUSHBUTTON_HEIGHT)
42 #define ROW_7 (ROW_8-RSC_CD_FIXEDLINE_HEIGHT-2)
44 #define LIST_HEIGHT (ROW_7-RSC_SP_CTRL_Y-ROW_6)
47 #define BUTTONCOL_WIDTH 40
48 #define COL_1 (RSC_SP_DLG_INNERBORDER_LEFT+RSC_SP_FLGR_SPACE_X)
49 #define COL_2 (COL_1+COL_WIDTH+1)
50 #define COL_3 (COL_2+COL_WIDTH+1)
51 #define COL_4 (FULL_WIDTH-RSC_SP_DLG_INNERBORDER_RIGHT-BUTTONCOL_WIDTH)
53 #define REST_COL_WIDTH (COL_4-COL_3-RSC_SP_CTRL_GROUP_X)
55 //-----------------------------------------------------------------------------
57 ModalDialog DLG_CHINESEDICTIONARY
59 HelpID = "svx:ModalDialog:DLG_CHINESEDICTIONARY";
61 Size = MAP_APPFONT( FULL_WIDTH, FULL_HEIGHT );
67 Text [ en-US ] = "Edit Dictionary";
69 DIRECTION_RADIOBUTTONS( COL_1, ROW_1, FULL_WIDTH - COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT )
73 HelpID = "svx:CheckBox:DLG_CHINESEDICTIONARY:CB_REVERSE";
74 Pos = MAP_APPFONT ( COL_1, ROW_3 ) ;
75 Size = MAP_APPFONT ( FULL_WIDTH - COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT , RSC_CD_CHECKBOX_HEIGHT ) ;
77 Text [ en-US ] = "Reverse mapping";
82 Pos = MAP_APPFONT ( COL_1 , ROW_4 ) ;
83 Size = MAP_APPFONT ( COL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ;
84 Text [ en-US ] = "Term";
88 HelpID = "svx:Edit:DLG_CHINESEDICTIONARY:ED_TERM";
90 Pos = MAP_APPFONT ( COL_1 , ROW_5 ) ;
91 Size = MAP_APPFONT ( COL_WIDTH , RSC_CD_TEXTBOX_HEIGHT ) ;
97 Pos = MAP_APPFONT ( COL_2 , ROW_4 ) ;
98 Size = MAP_APPFONT ( COL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ;
99 Text [ en-US ] = "Mapping";
103 HelpID = "svx:Edit:DLG_CHINESEDICTIONARY:ED_MAPPING";
105 Pos = MAP_APPFONT ( COL_2 , ROW_5 ) ;
106 Size = MAP_APPFONT ( COL_WIDTH , RSC_CD_TEXTBOX_HEIGHT ) ;
109 FixedText FT_PROPERTY
111 Pos = MAP_APPFONT ( COL_3 , ROW_4 ) ;
112 Size = MAP_APPFONT ( REST_COL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ;
113 Text [ en-US ] = "Property";
117 HelpID = "svx:ListBox:DLG_CHINESEDICTIONARY:LB_PROPERTY";
119 Pos = MAP_APPFONT ( COL_3 , ROW_5 ) ;
120 Size = MAP_APPFONT ( REST_COL_WIDTH , RSC_CD_TEXTBOX_HEIGHT ) ;
123 stringlist [ en-US ] =
125 < "Other" ; Default ; > ;
135 < "Abbreviation" ; > ;
143 Control CT_MAPPINGLIST
145 Pos = MAP_APPFONT ( COL_1, ROW_6 ) ;
146 Size = MAP_APPFONT ( COL_4 - COL_1 - RSC_SP_CTRL_GROUP_X, LIST_HEIGHT ) ;
152 HelpID = "svx:PushButton:DLG_CHINESEDICTIONARY:PB_ADD";
153 Pos = MAP_APPFONT( COL_4, ROW_5 );
154 Size = MAP_APPFONT( BUTTONCOL_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT );
156 Text [ en-US ] = "~Add";
160 HelpID = "svx:PushButton:DLG_CHINESEDICTIONARY:PB_MODIFY";
161 Pos = MAP_APPFONT( COL_4, ROW_5a );
162 Size = MAP_APPFONT( BUTTONCOL_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT );
164 Text [ en-US ] = "~Modify";
168 HelpID = "svx:PushButton:DLG_CHINESEDICTIONARY:PB_DELETE";
169 Pos = MAP_APPFONT( COL_4, ROW_5b );
170 Size = MAP_APPFONT( BUTTONCOL_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT );
172 Text [ en-US ] = "~Delete";
175 FixedLine FL_BOTTOMLINE
177 Pos = MAP_APPFONT ( 0 , ROW_7 ) ;
178 Size = MAP_APPFONT ( FULL_WIDTH, RSC_CD_FIXEDLINE_HEIGHT ) ;
181 BUTTONS_OK_CANCEL_HELP_ABREAST( FULL_WIDTH - RSC_SP_DLG_INNERBORDER_RIGHT, ROW_8 )
184 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */