1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24#include "chinese_dictionarydialog.hrc" 25#include "chinese_direction.hrc" 26 27#ifndef _SVT_CONTROLDIMS_HRC_ 28#include <svtools/controldims.hrc> 29#endif 30 31//----------------------------------------------------------------------------- 32//defines for positions and sizes: 33 34#define FULL_WIDTH (245) 35#define FULL_HEIGHT (165) 36 37#define ROW_1 (RSC_SP_DLG_INNERBORDER_TOP) 38#define ROW_2 (ROW_1+RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y) 39#define ROW_3 (ROW_2+RSC_CD_RADIOBUTTON_HEIGHT+RSC_SP_CTRL_GROUP_Y) 40#define ROW_4 (ROW_3+RSC_CD_CHECKBOX_HEIGHT+RSC_SP_CTRL_GROUP_Y) 41#define ROW_5 (ROW_4+RSC_CD_FIXEDTEXT_HEIGHT+RSC_SP_CTRL_DESC_Y) 42#define ROW_6 (ROW_5+RSC_CD_TEXTBOX_HEIGHT+RSC_SP_CTRL_DESC_Y) 43 44#define ROW_5a (ROW_5+RSC_CD_PUSHBUTTON_HEIGHT+RSC_SP_CTRL_DESC_Y) 45#define ROW_5b (ROW_5a+RSC_CD_PUSHBUTTON_HEIGHT+RSC_SP_CTRL_DESC_Y) 46 47#define ROW_8 (FULL_HEIGHT-RSC_SP_DLG_INNERBORDER_BOTTOM-RSC_CD_PUSHBUTTON_HEIGHT) 48#define ROW_7 (ROW_8-RSC_CD_FIXEDLINE_HEIGHT-2) 49 50#define LIST_HEIGHT (ROW_7-RSC_SP_CTRL_Y-ROW_6) 51 52#define COL_WIDTH 60 53#define BUTTONCOL_WIDTH 40 54#define COL_1 (RSC_SP_DLG_INNERBORDER_LEFT+RSC_SP_FLGR_SPACE_X) 55#define COL_2 (COL_1+COL_WIDTH+1) 56#define COL_3 (COL_2+COL_WIDTH+1) 57#define COL_4 (FULL_WIDTH-RSC_SP_DLG_INNERBORDER_RIGHT-BUTTONCOL_WIDTH) 58 59#define REST_COL_WIDTH (COL_4-COL_3-RSC_SP_CTRL_GROUP_X) 60 61//----------------------------------------------------------------------------- 62 63ModalDialog DLG_CHINESEDICTIONARY 64{ 65 HelpID = "svx:ModalDialog:DLG_CHINESEDICTIONARY"; 66 //HelpId = ; 67 Size = MAP_APPFONT( FULL_WIDTH, FULL_HEIGHT ); 68 OutputSize = TRUE; 69 Closeable = TRUE ; 70 Moveable = TRUE ; 71 SVLook = TRUE; 72 73 Text [ en-US ] = "Edit Dictionary"; 74 75 DIRECTION_RADIOBUTTONS( COL_1, ROW_1, FULL_WIDTH - COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT ) 76 77 CheckBox CB_REVERSE 78 { 79 HelpID = "svx:CheckBox:DLG_CHINESEDICTIONARY:CB_REVERSE"; 80 Pos = MAP_APPFONT ( COL_1, ROW_3 ) ; 81 Size = MAP_APPFONT ( FULL_WIDTH - COL_1 - RSC_SP_DLG_INNERBORDER_RIGHT , RSC_CD_CHECKBOX_HEIGHT ) ; 82 83 Text [ en-US ] = "Reverse mapping"; 84 }; 85 86 FixedText FT_TERM 87 { 88 Pos = MAP_APPFONT ( COL_1 , ROW_4 ) ; 89 Size = MAP_APPFONT ( COL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ; 90 Text [ en-US ] = "Term"; 91 }; 92 Edit ED_TERM 93 { 94 HelpID = "svx:Edit:DLG_CHINESEDICTIONARY:ED_TERM"; 95 Border = TRUE ; 96 Pos = MAP_APPFONT ( COL_1 , ROW_5 ) ; 97 Size = MAP_APPFONT ( COL_WIDTH , RSC_CD_TEXTBOX_HEIGHT ) ; 98 }; 99 100 101 FixedText FT_MAPPING 102 { 103 Pos = MAP_APPFONT ( COL_2 , ROW_4 ) ; 104 Size = MAP_APPFONT ( COL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ; 105 Text [ en-US ] = "Mapping"; 106 }; 107 Edit ED_MAPPING 108 { 109 HelpID = "svx:Edit:DLG_CHINESEDICTIONARY:ED_MAPPING"; 110 Border = TRUE ; 111 Pos = MAP_APPFONT ( COL_2 , ROW_5 ) ; 112 Size = MAP_APPFONT ( COL_WIDTH , RSC_CD_TEXTBOX_HEIGHT ) ; 113 }; 114 115 FixedText FT_PROPERTY 116 { 117 Pos = MAP_APPFONT ( COL_3 , ROW_4 ) ; 118 Size = MAP_APPFONT ( REST_COL_WIDTH, RSC_CD_FIXEDTEXT_HEIGHT ) ; 119 Text [ en-US ] = "Property"; 120 }; 121 ListBox LB_PROPERTY 122 { 123 HelpID = "svx:ListBox:DLG_CHINESEDICTIONARY:LB_PROPERTY"; 124 Border = TRUE ; 125 Pos = MAP_APPFONT ( COL_3 , ROW_5 ) ; 126 Size = MAP_APPFONT ( REST_COL_WIDTH , RSC_CD_TEXTBOX_HEIGHT ) ; 127 DropDown = TRUE ; 128 129 stringlist [ en-US ] = 130 { 131 < "Other" ; Default ; > ; 132 < "Foreign" ; > ; 133 < "First name" ; > ; 134 < "Last name" ; > ; 135 < "Title" ; > ; 136 < "Status" ; > ; 137 < "Place name" ; > ; 138 < "Business" ; > ; 139 < "Adjective" ; > ; 140 < "Idiom" ; > ; 141 < "Abbreviation" ; > ; 142 < "Numerical" ; > ; 143 < "Noun" ; > ; 144 < "Verb" ; > ; 145 < "Brand name" ; > ; 146 }; 147 }; 148 149 Control CT_MAPPINGLIST 150 { 151 Pos = MAP_APPFONT ( COL_1, ROW_6 ) ; 152 Size = MAP_APPFONT ( COL_4 - COL_1 - RSC_SP_CTRL_GROUP_X, LIST_HEIGHT ) ; 153 TabStop = TRUE ; 154 }; 155 156 PushButton PB_ADD 157 { 158 HelpID = "svx:PushButton:DLG_CHINESEDICTIONARY:PB_ADD"; 159 Pos = MAP_APPFONT( COL_4, ROW_5 ); 160 Size = MAP_APPFONT( BUTTONCOL_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ); 161 162 Text [ en-US ] = "~Add"; 163 }; 164 PushButton PB_MODIFY 165 { 166 HelpID = "svx:PushButton:DLG_CHINESEDICTIONARY:PB_MODIFY"; 167 Pos = MAP_APPFONT( COL_4, ROW_5a ); 168 Size = MAP_APPFONT( BUTTONCOL_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ); 169 170 Text [ en-US ] = "~Modify"; 171 }; 172 PushButton PB_DELETE 173 { 174 HelpID = "svx:PushButton:DLG_CHINESEDICTIONARY:PB_DELETE"; 175 Pos = MAP_APPFONT( COL_4, ROW_5b ); 176 Size = MAP_APPFONT( BUTTONCOL_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ); 177 178 Text [ en-US ] = "~Delete"; 179 }; 180 181 FixedLine FL_BOTTOMLINE 182 { 183 Pos = MAP_APPFONT ( 0 , ROW_7 ) ; 184 Size = MAP_APPFONT ( FULL_WIDTH, RSC_CD_FIXEDLINE_HEIGHT ) ; 185 }; 186 187 BUTTONS_OK_CANCEL_HELP_ABREAST( FULL_WIDTH - RSC_SP_DLG_INNERBORDER_RIGHT, ROW_8 ) 188}; 189