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 // include --------------------------------------------------------------- 24#include <svx/svxids.hrc> 25#include <svx/dialogs.hrc> 26#include "fontwork.hrc" 27#include "helpid.hrc" 28 29 // pragma ---------------------------------------------------------------- 30#define REDUCED_WIDTH 6 31#define REMOVED_VS_FORMS_HEIGHT (30 + 6) 32 33 // RID_SVXDLG_FONTWORK --------------------------------------------------- 34DockingWindow RID_SVXDLG_FONTWORK 35{ 36 HelpId = CMD_SID_FONTWORK ; 37 OutputSize = TRUE ; 38 SVLook = TRUE ; 39 Hide = TRUE ; 40 Pos = MAP_APPFONT ( 0 , 0 ) ; 41 Size = MAP_APPFONT ( 89 - REDUCED_WIDTH , 193 - REMOVED_VS_FORMS_HEIGHT ) ; 42 Text [ en-US ] = "Fontwork" ; 43 Moveable = TRUE ; 44 Zoomable = TRUE ; 45 Closeable = TRUE ; 46 Dockable = TRUE ; 47 EnableResizing = TRUE ; 48 ToolBox TBX_STYLE 49 { 50 SVLook = TRUE ; 51 Pos = MAP_APPFONT ( 6 , 41 - REMOVED_VS_FORMS_HEIGHT ) ; 52 ItemList = 53 { 54 ToolBoxItem 55 { 56 AutoCheck = TRUE ; 57 Identifier = TBI_STYLE_OFF ; 58 HelpId = HID_FONTWORK_TBI_STYLE_OFF ; 59 Text [ en-US ] = "Off" ; 60 }; 61 ToolBoxItem 62 { 63 Type = TOOLBOXITEM_SEPARATOR ; 64 }; 65 ToolBoxItem 66 { 67 AutoCheck = TRUE ; 68 RadioCheck = TRUE ; 69 Identifier = TBI_STYLE_ROTATE ; 70 HelpId = HID_FONTWORK_TBI_STYLE_ROTATE ; 71 Text [ en-US ] = "Rotate" ; 72 }; 73 ToolBoxItem 74 { 75 AutoCheck = TRUE ; 76 RadioCheck = TRUE ; 77 Identifier = TBI_STYLE_UPRIGHT ; 78 HelpId = HID_FONTWORK_TBI_STYLE_UPRIGHT ; 79 Text [ en-US ] = "Upright" ; 80 }; 81 ToolBoxItem 82 { 83 AutoCheck = TRUE ; 84 RadioCheck = TRUE ; 85 Identifier = TBI_STYLE_SLANTX ; 86 HelpId = HID_FONTWORK_TBI_STYLE_SLANTX ; 87 Text [ en-US ] = "Slant Horizontal" ; 88 }; 89 ToolBoxItem 90 { 91 AutoCheck = TRUE ; 92 RadioCheck = TRUE ; 93 Identifier = TBI_STYLE_SLANTY ; 94 HelpId = HID_FONTWORK_TBI_STYLE_SLANTY ; 95 Text [ en-US ] = "Slant Vertical" ; 96 }; 97 }; 98 }; 99 ToolBox TBX_ADJUST 100 { 101 SVLook = TRUE ; 102 Pos = MAP_APPFONT ( 6 , 63 - REMOVED_VS_FORMS_HEIGHT ) ; 103 ItemList = 104 { 105 ToolBoxItem 106 { 107 AutoCheck = TRUE ; 108 Checkable = TRUE ; 109 Identifier = TBI_ADJUST_MIRROR ; 110 HelpId = HID_FONTWORK_TBI_ADJUST_MIRROR ; 111 Text [ en-US ] = "Orientation" ; 112 }; 113 ToolBoxItem 114 { 115 Type = TOOLBOXITEM_SEPARATOR ; 116 }; 117 ToolBoxItem 118 { 119 AutoCheck = TRUE ; 120 RadioCheck = TRUE ; 121 Identifier = TBI_ADJUST_LEFT ; 122 HelpId = HID_FONTWORK_TBI_ADJUST_LEFT ; 123 Text [ en-US ] = "Align Left" ; 124 }; 125 ToolBoxItem 126 { 127 AutoCheck = TRUE ; 128 RadioCheck = TRUE ; 129 Identifier = TBI_ADJUST_CENTER ; 130 HelpId = HID_FONTWORK_TBI_ADJUST_CENTER ; 131 Text [ en-US ] = "Center" ; 132 }; 133 ToolBoxItem 134 { 135 AutoCheck = TRUE ; 136 RadioCheck = TRUE ; 137 Identifier = TBI_ADJUST_RIGHT ; 138 HelpId = HID_FONTWORK_TBI_ADJUST_RIGHT ; 139 Text [ en-US ] = "Align Right" ; 140 }; 141 ToolBoxItem 142 { 143 AutoCheck = TRUE ; 144 RadioCheck = TRUE ; 145 Identifier = TBI_ADJUST_AUTOSIZE ; 146 HelpId = HID_FONTWORK_TBI_ADJUST_AUTOSIZE ; 147 Text [ en-US ] = "AutoSize Text" ; 148 }; 149 }; 150 }; 151 FixedImage FB_DISTANCE 152 { 153 Pos = MAP_APPFONT ( 10 , 84 - REMOVED_VS_FORMS_HEIGHT ) ; 154 Size = MAP_APPFONT ( 14 , 15 ) ; 155 }; 156 MetricField MTR_FLD_DISTANCE 157 { 158 HelpID = "svx:MetricField:RID_SVXDLG_FONTWORK:MTR_FLD_DISTANCE"; 159 Border = TRUE ; 160 Pos = MAP_APPFONT ( 29 , 85 - REMOVED_VS_FORMS_HEIGHT ) ; 161 Size = MAP_APPFONT ( 48 , 12 ) ; 162 TabStop = TRUE ; 163 Repeat = TRUE ; 164 Spin = TRUE ; 165 Minimum = -5000000 ; 166 Maximum = 5000000 ; 167 StrictFormat = TRUE ; 168 DecimalDigits = 2 ; 169 Unit = FUNIT_MM ; 170 First = -5000000 ; 171 Last = 5000000 ; 172 SpinSize = 50 ; 173 QuickHelpText [ en-US ] = "Distance" ; 174 175 }; 176 FixedImage FB_TEXTSTART 177 { 178 Pos = MAP_APPFONT ( 10 , 99 - REMOVED_VS_FORMS_HEIGHT ) ; 179 Size = MAP_APPFONT ( 14 , 15 ) ; 180 }; 181 MetricField MTR_FLD_TEXTSTART 182 { 183 HelpID = "svx:MetricField:RID_SVXDLG_FONTWORK:MTR_FLD_TEXTSTART"; 184 Border = TRUE ; 185 Pos = MAP_APPFONT ( 29 , 100 - REMOVED_VS_FORMS_HEIGHT ) ; 186 Size = MAP_APPFONT ( 48 , 12 ) ; 187 TabStop = TRUE ; 188 Repeat = TRUE ; 189 Spin = TRUE ; 190 Maximum = 5000000 ; 191 StrictFormat = TRUE ; 192 DecimalDigits = 2 ; 193 Unit = FUNIT_MM ; 194 Last = 5000000 ; 195 SpinSize = 50 ; 196 QuickHelpText [ en-US ] = "Indent" ; 197 }; 198 ToolBox TBX_SHADOW 199 { 200 SVLook = TRUE ; 201 Pos = MAP_APPFONT ( 6 , 122 - REMOVED_VS_FORMS_HEIGHT ) ; 202 ItemList = 203 { 204 ToolBoxItem 205 { 206 AutoCheck = TRUE ; 207 Checkable = TRUE ; 208 Identifier = TBI_SHOWFORM ; 209 HelpId = HID_FONTWORK_TBI_SHOWFORM ; 210 Text [ en-US ] = "Contour" ; 211 }; 212 ToolBoxItem 213 { 214 AutoCheck = TRUE ; 215 Checkable = TRUE ; 216 Identifier = TBI_OUTLINE ; 217 HelpId = HID_FONTWORK_TBI_OUTLINE ; 218 Text [ en-US ] = "Text Contour" ; 219 }; 220 ToolBoxItem 221 { 222 Type = TOOLBOXITEM_SEPARATOR ; 223 }; 224 ToolBoxItem 225 { 226 AutoCheck = TRUE ; 227 RadioCheck = TRUE ; 228 Identifier = TBI_SHADOW_OFF ; 229 HelpId = HID_FONTWORK_TBI_SHADOW_OFF ; 230 Text [ en-US ] = "No Shadow" ; 231 }; 232 ToolBoxItem 233 { 234 AutoCheck = TRUE ; 235 RadioCheck = TRUE ; 236 Identifier = TBI_SHADOW_NORMAL ; 237 HelpId = HID_FONTWORK_TBI_SHADOW_NORMAL ; 238 Text [ en-US ] = "Vertical" ; 239 }; 240 ToolBoxItem 241 { 242 AutoCheck = TRUE ; 243 RadioCheck = TRUE ; 244 Identifier = TBI_SHADOW_SLANT ; 245 HelpId = HID_FONTWORK_TBI_SHADOW_SLANT ; 246 Text [ en-US ] = "Slant" ; 247 }; 248 }; 249 }; 250 FixedImage FB_SHADOW_X 251 { 252 Pos = MAP_APPFONT ( 10 , 143 - REMOVED_VS_FORMS_HEIGHT ) ; 253 Size = MAP_APPFONT ( 14 , 15 ) ; 254 }; 255 MetricField MTR_FLD_SHADOW_X 256 { 257 HelpID = "svx:MetricField:RID_SVXDLG_FONTWORK:MTR_FLD_SHADOW_X"; 258 Border = TRUE ; 259 Pos = MAP_APPFONT ( 29 , 144 - REMOVED_VS_FORMS_HEIGHT ) ; 260 Size = MAP_APPFONT ( 48 , 12 ) ; 261 TabStop = TRUE ; 262 Repeat = TRUE ; 263 Spin = TRUE ; 264 Minimum = -5000000 ; 265 Maximum = 5000000 ; 266 StrictFormat = TRUE ; 267 DecimalDigits = 2 ; 268 Unit = FUNIT_MM ; 269 CustomUnitText [ en-US ] = " degrees" ; 270 First = -5000000 ; 271 Last = 5000000 ; 272 SpinSize = 50 ; 273 QuickHelpText [ en-US ] = "Distance X" ; 274 }; 275 FixedImage FB_SHADOW_Y 276 { 277 Pos = MAP_APPFONT ( 10 , 158 - REMOVED_VS_FORMS_HEIGHT ) ; 278 Size = MAP_APPFONT ( 14 , 15 ) ; 279 }; 280 MetricField MTR_FLD_SHADOW_Y 281 { 282 HelpID = "svx:MetricField:RID_SVXDLG_FONTWORK:MTR_FLD_SHADOW_Y"; 283 Border = TRUE ; 284 Pos = MAP_APPFONT ( 29 , 159 - REMOVED_VS_FORMS_HEIGHT ) ; 285 Size = MAP_APPFONT ( 48 , 12 ) ; 286 TabStop = TRUE ; 287 Repeat = TRUE ; 288 Spin = TRUE ; 289 Maximum = 5000000 ; 290 StrictFormat = TRUE ; 291 DecimalDigits = 2 ; 292 Unit = FUNIT_MM ; 293 Last = 5000000 ; 294 SpinSize = 50 ; 295 QuickHelpText [ en-US ] = "Distance Y" ; 296 }; 297 ListBox CLB_SHADOW_COLOR 298 { 299 HelpID = "svx:ListBox:RID_SVXDLG_FONTWORK:CLB_SHADOW_COLOR"; 300 Border = TRUE ; 301 Pos = MAP_APPFONT ( 6 , 174 - REMOVED_VS_FORMS_HEIGHT ) ; 302 Size = MAP_APPFONT ( 71 , 60 ) ; 303 DropDown = TRUE ; 304 QuickHelpText [ en-US ] = "Shadow Color" ; 305 Text = "-"; 306 }; 307 308#define FONTWORK_IDLIST \ 309 IdList = \ 310 { \ 311 TBI_STYLE_OFF ; \ 312 TBI_STYLE_ROTATE ; \ 313 TBI_STYLE_UPRIGHT ; \ 314 TBI_STYLE_SLANTX ; \ 315 TBI_STYLE_SLANTY ; \ 316 TBI_ADJUST_MIRROR ; \ 317 TBI_ADJUST_LEFT ; \ 318 TBI_ADJUST_CENTER ; \ 319 TBI_ADJUST_RIGHT ; \ 320 TBI_ADJUST_AUTOSIZE ; \ 321 TBI_SHOWFORM ; \ 322 TBI_OUTLINE ; \ 323 TBI_SHADOW_OFF ; \ 324 TBI_SHADOW_NORMAL ; \ 325 TBI_SHADOW_SLANT ; \ 326 TBI_SHADOW_XDIST ; \ 327 TBI_SHADOW_YDIST ; \ 328 TBI_SHADOW_ANGLE ; \ 329 TBI_SHADOW_SIZE ; \ 330 TBI_DISTANCE ; \ 331 TBI_TEXTSTART ; \ 332 }; \ 333 IdCount = { 21 ; }; 334 335 #define IMAGE_STDBTN_COLOR Color { Red = 0xff00; Green = 0x0000; Blue = 0xff00; } 336 337 ImageList IL_FONTWORK 338 { 339 Prefix = "fw"; 340 MaskColor = IMAGE_STDBTN_COLOR ; 341 FONTWORK_IDLIST 342 }; 343 ImageList ILH_FONTWORK 344 { 345 Prefix = "fwh"; 346 MaskColor = IMAGE_STDBTN_COLOR ; 347 FONTWORK_IDLIST 348 }; 349}; 350 351// ********************************************************************** 352// EOF 353