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