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 "AreaPropertyPanel.hrc" 25#include <sfx2/sidebar/ResourceDefinitions.hrc> 26#include <svx/dialogs.hrc> 27#include "helpid.hrc" 28 29#define TOOLBOX_WIDTH 50 30#define TOOLBOX_HEIGHT 17 31 32Control RID_SIDEBAR_AREA_PANEL 33{ 34 OutputSize = TRUE ; 35 DialogControl = TRUE ; 36 Border = FALSE ; 37 Size = MAP_APPFONT ( PROPERTYPAGE_WIDTH, SECTIONPAGE_MARGIN_VERTICAL_TOP + SECTIONPAGE_MARGIN_VERTICAL_BOT + 2 * ( FIXED_TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL + CBOX_HEIGHT ) + CONTROL_SPACING_VERTICAL ) ; 38 HelpID = HID_PROPERTYPANEL_AREA_SECTION ; 39 Text [ en-US ] = "Area" ; 40 41 FixedText FT_COLOR_LIST 42 { 43 Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL, SECTIONPAGE_MARGIN_VERTICAL_TOP ) ; 44 Size = MAP_APPFONT ( FIXED_TEXT_WIDTH + 50, FIXED_TEXT_HEIGHT ) ; 45 Text [ en-US ] = "~Fill:" ; 46 }; 47 FixedText FL_TRSP_TEXT 48 { 49 Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL, SECTIONPAGE_MARGIN_VERTICAL_TOP + FIXED_TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL + CBOX_HEIGHT + CONTROL_SPACING_VERTICAL ) ; 50 Size = MAP_APPFONT ( FIXED_TEXT_WIDTH + 50, FIXED_TEXT_HEIGHT ) ; 51 Text [ en-US ] = "~Transparency:" ; 52 }; 53 ToolBox TB_COLOR 54 { 55 HelpID = HID_PPROPERTYPANEL_AREA_TBX_COLOR; 56 SVLook = TRUE ; 57 Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL + MBOX_WIDTH + CONTROL_SPACING_HORIZONTAL, SECTIONPAGE_MARGIN_VERTICAL_TOP + FIXED_TEXT_HEIGHT + 1 ) ; 58 Size = MAP_APPFONT ( TOOLBOX_WIDTH, TOOLBOX_HEIGHT ) ; 59 TabStop = TRUE ; 60 Text = "Color" ; 61 ItemList = 62 { 63 ToolBoxItem 64 { 65 Identifier = TBI_COLOR ; 66 HelpID = HID_PPROPERTYPANEL_AREA_TBI_COLOR ; 67 DropDown = TRUE ; 68 Text = "Color" ; 69 }; 70 }; 71 }; 72 String STR_HELP_COLOR 73 { 74 Text [ en-US ] = "Select the color to apply." ; 75 }; 76 String STR_HELP_TYPE 77 { 78 Text [ en-US ] = "Select the fill type to apply." ; 79 }; 80 String STR_HELP_ATTR 81 { 82 Text [ en-US ] = "Select the effect to apply." ; 83 }; 84 Image IMG_AXIAL 85 { 86 ImageBitmap = Bitmap {File = "symphony/axial.png" ;} ; 87 }; 88 Image IMG_ELLI 89 { 90 ImageBitmap = Bitmap {File = "symphony/ellipsoid.png" ;} ; 91 }; 92 Image IMG_QUAD 93 { 94 ImageBitmap = Bitmap {File = "symphony/Quadratic.png" ;} ; 95 }; 96 Image IMG_RADIAL 97 { 98 ImageBitmap = Bitmap {File = "symphony/radial.png" ;} ; 99 }; 100 Image IMG_SQUARE 101 { 102 ImageBitmap = Bitmap {File = "symphony/Square.png" ;} ; 103 }; 104 Image IMG_LINEAR 105 { 106 ImageBitmap = Bitmap {File = "symphony/linear.png" ;} ; 107 }; 108 Image IMG_COLOR 109 { 110 ImageBitmap = Bitmap {File = "symphony/fill_color.png" ;} ; 111 }; 112 113 // high contract 114 Image IMG_AXIAL_H 115 { 116 ImageBitmap = Bitmap {File = "symphony/axial_h.png" ;} ; 117 }; 118 Image IMG_ELLI_H 119 { 120 ImageBitmap = Bitmap {File = "symphony/ellipsoid_h.png" ;} ; 121 }; 122 Image IMG_QUAD_H 123 { 124 ImageBitmap = Bitmap {File = "symphony/Quadratic_h.png" ;} ; 125 }; 126 Image IMG_RADIAL_H 127 { 128 ImageBitmap = Bitmap {File = "symphony/radial_h.png" ;} ; 129 }; 130 Image IMG_SQUARE_H 131 { 132 ImageBitmap = Bitmap {File = "symphony/Square_h.png" ;} ; 133 }; 134 Image IMG_LINEAR_H 135 { 136 ImageBitmap = Bitmap {File = "symphony/linear_h.png" ;} ; 137 }; 138 Image IMG_COLOR_H 139 { 140 ImageBitmap = Bitmap {File = "symphony/fill_color_h.png" ;} ; 141 }; 142 143 //===================================================================================================================================== 144 ListBox LB_TRGR_TYPES 145 { 146 Border = TRUE ; 147 Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL, SECTIONPAGE_MARGIN_VERTICAL_TOP + 2 * ( FIXED_TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL ) + CBOX_HEIGHT + CONTROL_SPACING_VERTICAL ) ; 148 Size = MAP_APPFONT ( MBOX_WIDTH, LISTBOX_HEIGHT ) ; 149 QuickHelpText [ en-US ] = "Select the type of transparency to apply." ; 150 TabStop = TRUE ; 151 DropDown = TRUE ; 152 HelpID = HID_PPROPERTYPANEL_AREA_LB_TRGR_TYPES ; 153 StringList [ en-US ] = 154 { 155 < "None" ; Default ; > ; 156 < "Solid" ; Default ; > ; 157 < "Linear" ; Default ; > ; 158 < "Axial" ; Default ; > ; 159 < "Radial" ; Default ; > ; 160 < "Ellipsoid" ; Default ; > ; 161 < "Quadratic" ; Default ; > ; 162 < "Square" ; Default ; > ; 163 }; 164 }; 165 166 MetricField MTR_TRANSPARENT 167 { 168 Border = TRUE ; 169 Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL + MBOX_WIDTH + CONTROL_SPACING_HORIZONTAL, SECTIONPAGE_MARGIN_VERTICAL_TOP + 2 * ( FIXED_TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL ) + CBOX_HEIGHT + CONTROL_SPACING_VERTICAL ) ; 170 Size = MAP_APPFONT ( MBOX_WIDTH + 1, MBOX_HEIGHT ) ; 171 HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRANSPARENT ; 172 QuickHelpText [ en-US ] = "Specify 0 % for fully opaque through 100 % for fully transparent." ; 173 TabStop = TRUE ; 174 Repeat = TRUE ; 175 Spin = TRUE ; 176 Maximum = 100 ; 177 StrictFormat = TRUE ; 178 Unit = FUNIT_PERCENT ; 179 Last = 100 ; 180 SpinSize = 5 ; 181 }; 182 183 ToolBox BTN_GRADIENT 184 { 185 Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL + MBOX_WIDTH + CONTROL_SPACING_HORIZONTAL, SECTIONPAGE_MARGIN_VERTICAL_TOP + 2 * ( FIXED_TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL ) + CBOX_HEIGHT + CONTROL_SPACING_VERTICAL ) ; 186 HelpID = HID_PPROPERTYPANEL_AREA_TBX_GRADIENT ; 187 SVLook = TRUE ; 188 Border = FALSE ; 189 TabStop = TRUE ; 190 Text = "Gradient" ; 191 ItemList = 192 { 193 ToolBoxItem 194 { 195 Identifier = TBI_BTX_GRADIENT ; 196 HelpID = HID_PPROPERTYPANEL_AREA_TBI_GRADIENT ; 197 ItemBitmap = Bitmap 198 { 199 File = "symphony/linear.png" ; 200 }; 201 DropDown = TRUE ; 202 Text = "Gradient" ; 203 }; 204 }; 205 }; 206 String STR_HELP_GRADIENT 207 { 208 Text [ en-US ] = "Specify the variation of gradient transparency." ; 209 }; 210}; 211 212Control RID_POPUPPANEL_AREAPAGE_TRGR 213{ 214 OutputSize = TRUE ; 215 DialogControl = TRUE ; 216 Border = FALSE ; 217 218// Size = MAP_APPFONT ( POP_WIDTH, POP_HEIGHT ) ; 219 220 FixedText FT_TRGR_CENTER_X 221 { 222 Size = MAP_APPFONT ( CONTROL_WIDTH, FIXED_TEXT_HEIGHT ) ; 223 Text [ en-US ] = "Center ~X:" ; 224 }; 225 MetricField MTR_TRGR_CENTER_X 226 { 227 Border = TRUE ; 228 Size = MAP_APPFONT ( CONTROL_WIDTH, MBOX_HEIGHT ) ; 229 HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_CENTER_X ; 230 QuickHelpText [ en-US ] = "Specify the horizontal offset percentage from the center for the gradient shading style. 50 % is the horizontal center." ; 231 TabStop = TRUE ; 232 Repeat = TRUE ; 233 Spin = TRUE ; 234 Maximum = 100 ; 235 StrictFormat = TRUE ; 236 Unit = FUNIT_PERCENT ; 237 Last = 100 ; 238 SpinSize = 5 ; 239 }; 240 FixedText FT_TRGR_CENTER_Y 241 { 242 Size = MAP_APPFONT ( CONTROL_WIDTH + POPUPPANEL_MARGIN_HORIZONTAL, FIXED_TEXT_HEIGHT ) ; // wj 243 Text [ en-US ] = "Center ~Y:" ; 244 }; 245 MetricField MTR_TRGR_CENTER_Y 246 { 247 Border = TRUE ; 248 Size = MAP_APPFONT ( CONTROL_WIDTH, MBOX_HEIGHT ) ; 249 HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_CENTER_Y ; 250 QuickHelpText [ en-US ] = "Specify the vertical offset percentage from the center for the gradient shading style. 50 % is the vertical center." ; 251 TabStop = TRUE ; 252 Repeat = TRUE ; 253 Spin = TRUE ; 254 Maximum = 100 ; 255 StrictFormat = TRUE ; 256 Unit = FUNIT_PERCENT ; 257 Last = 100 ; 258 SpinSize = 5 ; 259 }; 260 FixedText FT_TRGR_ANGLE 261 { 262 Size = MAP_APPFONT ( CONTROL_WIDTH * 2 + POPUPPANEL_MARGIN_HORIZONTAL + CONTROL_SPACING_HORIZONTAL, FIXED_TEXT_HEIGHT ) ; // wj 263 Text [ en-US ] = "~Angle:" ; 264 }; 265 MetricField MTR_TRGR_ANGLE 266 { 267 Border = TRUE ; 268 Size = MAP_APPFONT ( CONTROL_WIDTH, MBOX_HEIGHT ) ; 269 HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_ANGLE ; 270 QuickHelpText [ en-US ] = "Specify the angle of rotation for the gradient shading style." ; 271 TabStop = FALSE ; 272 Repeat = TRUE ; 273 Spin = TRUE ; 274 Minimum = -9999 ; 275 Maximum = 9999 ; 276 Unit = FUNIT_CUSTOM ; 277 SpinSize = 1 ; 278 CustomUnitText [ en-US ] = " degrees" ; 279 }; 280 FixedText FT_TRGR_START_VALUE 281 { 282 Size = MAP_APPFONT ( CONTROL_WIDTH, FIXED_TEXT_HEIGHT ) ; 283 Text [ en-US ] = "~Start value:" ; 284 }; 285 MetricField MTR_TRGR_START_VALUE 286 { 287 Border = TRUE ; 288 Size = MAP_APPFONT ( CONTROL_WIDTH, MBOX_HEIGHT ) ; 289 HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_SVALUE ; 290 QuickHelpText [ en-US ] = "Enter a transparency value for the beginning point of the gradient, where 0 % is fully opaque and 100 % is fully transparent." ; 291 TabStop = TRUE ; 292 Repeat = TRUE ; 293 Spin = TRUE ; 294 Maximum = 100 ; 295 StrictFormat = TRUE ; 296 Unit = FUNIT_PERCENT ; 297 Last = 100 ; 298 SpinSize = 5 ; 299 }; 300 FixedText FT_TRGR_END_VALUE 301 { 302 Size = MAP_APPFONT ( CONTROL_WIDTH + POPUPPANEL_MARGIN_HORIZONTAL, FIXED_TEXT_HEIGHT ) ; //wj 303 Text [ en-US ] = "~End value:" ; 304 }; 305 MetricField MTR_TRGR_END_VALUE 306 { 307 Border = TRUE ; 308 Size = MAP_APPFONT ( CONTROL_WIDTH, MBOX_HEIGHT ) ; 309 HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_EVALUE ; 310 QuickHelpText [ en-US ] = "Enter a transparency value for the endpoint of the gradient, where 0 % is fully opaque and 100 % is fully transparent." ; 311 TabStop = TRUE ; 312 Repeat = TRUE ; 313 Spin = TRUE ; 314 Maximum = 100 ; 315 StrictFormat = TRUE ; 316 Unit = FUNIT_PERCENT ; 317 Last = 100 ; 318 SpinSize = 5 ; 319 }; 320 FixedText FT_TRGR_BORDER 321 { 322 Size = MAP_APPFONT ( CONTROL_WIDTH * 2 + POPUPPANEL_MARGIN_HORIZONTAL + CONTROL_SPACING_HORIZONTAL, FIXED_TEXT_HEIGHT ) ; 323 Text [ en-US ] = "~Border:" ; 324 }; 325 MetricField MTR_TRGR_BORDER 326 { 327 Border = TRUE ; 328 Size = MAP_APPFONT ( CONTROL_WIDTH, MBOX_HEIGHT ) ; 329 HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_BORDER ; 330 QuickHelpText [ en-US ] = "Specify the border value of gradient transparency." ; 331 TabStop = TRUE ; 332 Repeat = TRUE ; 333 Spin = TRUE ; 334 Maximum = 100 ; 335 StrictFormat = TRUE ; 336 Unit = FUNIT_PERCENT ; 337 Last = 100 ; 338 SpinSize = 5 ; 339 }; 340 //===================================================================================================================================== 341 342 ToolBox BTN_LEFT_SECOND 343 { 344 Border = FALSE ; 345 HelpID = HID_PPROPERTYPANEL_AREA_BTN_LEFT_SECOND ; 346 SVLook = TRUE ; 347 Border = FALSE ; 348 TabStop = TRUE ; 349 Text = "Rotate Left" ; 350 ItemList = 351 { 352 ToolBoxItem 353 { 354 Identifier = TBI_LEFT ; 355 Text = "Rotate Left" ; 356 ItemBitmap = Bitmap 357 { 358 // File = "symphony/rotate_left.png" ; 359 }; 360 }; 361 }; 362 }; 363 ToolBox BTN_RIGHT_FIRST 364 { 365 Border = FALSE ; 366 HelpID = HID_PPROPERTYPANEL_AREA_BTN_RIGHT_FIRST ; 367 SVLook = TRUE ; 368 Border = FALSE ; 369 TabStop = TRUE ; 370 Text = "Rotate Right" ; 371 ItemList = 372 { 373 ToolBoxItem 374 { 375 Identifier = TBI_RIGHT ; 376 Text = "Rotate Right" ; 377 ItemBitmap = Bitmap 378 { 379 // File = "symphony/rotate_right.png" ; 380 }; 381 }; 382 }; 383 }; 384 String STR_HELP_LEFT 385 { 386 Text [ en-US ] = "Rotate counterclockwise by 45 degrees." ; 387 }; 388 String STR_HELP_RIGHT 389 { 390 Text [ en-US ] = "Rotate clockwise by 45 degrees." ; 391 }; 392 Image IMG_ROT_LEFT 393 { 394 ImageBitmap = Bitmap {File = "symphony/rotate_left.png" ;} ; 395 }; 396 Image IMG_ROT_RIGHT 397 { 398 ImageBitmap = Bitmap {File = "symphony/rotate_right.png" ;} ; 399 }; 400}; 401Control RID_POPUPPANEL_AERAPAGE_COLOR 402{ 403 OutputSize = TRUE ; 404 DialogControl = TRUE ; 405 Border = FALSE ; 406 Size = MAP_APPFONT ( POPUP_COLOR_PICKER_WIDTH, POPUP_COLOR_PICKER_HEIGHT ) ; 407 408 Control VS_COLOR 409 { 410 HelpID = HID_PPROPERTYPANEL_AREA_COLOR_VS ; 411 Hide = TRUE ; 412 Pos = MAP_APPFONT ( OFFSET_X, OFFSET_Y ) ; 413 Size = MAP_APPFONT ( POPUP_COLOR_PICKER_WIDTH - OFFSET_X * 2, POPUP_COLOR_PICKER_HEIGHT - OFFSET_Y * 2 ) ; 414 TabStop = TRUE ; 415 Text = "Color" ; 416 }; 417}; 418 419// ********************************************************************** EOF 420