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