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 "LinePropertyPanel.hrc" 23#include <sfx2/sidebar/ResourceDefinitions.hrc> 24#include <svx/dialogs.hrc> 25#include "helpid.hrc" 26 27Control RID_SIDEBAR_LINE_PANEL 28{ 29 OutputSize = TRUE ; 30 DialogControl = TRUE ; 31 Border = FALSE ; 32 Text = "Line" ; 33 34 Size = MAP_APPFONT( 35 PROPERTYPAGE_WIDTH, 36 SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*4 + TEXT_CONTROL_SPACING_VERTICAL*4 + TOOLBOX_HEIGHT*3 + CONTROL_SPACING_VERTICAL*3 + CBOX_HEIGHT + SECTIONPAGE_MARGIN_VERTICAL_BOT ) ; 37 HelpID = HID_PROPERTYPANEL_LINE_SECTION ; 38 39 FixedText FT_WIDTH 40 { 41 Pos = MAP_APPFONT( SECTIONPAGE_MARGIN_HORIZONTAL, SECTIONPAGE_MARGIN_VERTICAL_TOP ) ; 42 Size = MAP_APPFONT (TOOLBOX_WIDTH, TEXT_HEIGHT ) ; 43 Text [ en-US ] = "~Width:" ; 44 }; 45 ToolBox TB_WIDTH 46 { 47 SVLook = TRUE ; 48 Pos = MAP_APPFONT (SECTIONPAGE_MARGIN_HORIZONTAL, SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL) ; 49 Size = MAP_APPFONT (TOOLBOX_WIDTH ,TOOLBOX_HEIGHT ) ; 50 TabStop = TRUE ; 51 HelpID = HID_PPROPERTYPANEL_LINE_TBX_WIDTH ; 52 Text = "Width" ; 53 ItemList = 54 { 55 ToolBoxItem 56 { 57 Identifier = TBI_WIDTH ; 58 DropDown = TRUE ; 59 Text [ en-US ] = "Width" ; 60 HelpID = HID_PPROPERTYPANEL_LINE_TBI_WIDTH ; 61 }; 62 }; 63 }; 64 String STR_QH_TB_WIDTH 65 { 66 Text [ en-US ] = "Select the width of the line." ; 67 }; 68 69 FixedText FT_COLOR 70 { 71 Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL + TOOLBOX_WIDTH + 3, SECTIONPAGE_MARGIN_VERTICAL_TOP ) ; 72 Size = MAP_APPFONT (TOOLBOX_WIDTH, TEXT_HEIGHT ) ; 73 Text [ en-US ] = "~Color:" ; 74 }; 75 ToolBox TB_COLOR 76 { 77 SVLook = TRUE ; 78 Pos = MAP_APPFONT (SECTIONPAGE_MARGIN_HORIZONTAL + TOOLBOX_WIDTH + 4, SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL) ; 79 Size = MAP_APPFONT (TOOLBOX_WIDTH ,TOOLBOX_HEIGHT ) ; 80 TabStop = TRUE ; 81 HelpID = HID_PPROPERTYPANEL_LINE_TBX_COLOR; 82 Text = "Color" ; 83 ItemList = 84 { 85 ToolBoxItem 86 { 87 Identifier = TBI_COLOR ; 88 DropDown = TRUE ; 89 Text [ en-US ] = "Color" ; 90 HelpID = HID_PPROPERTYPANEL_LINE_TBI_COLOR ; 91 }; 92 }; 93 }; 94 String STR_QH_TB_COLOR 95 { 96 Text [ en-US ] = "Select the color of the line." ; 97 }; 98 99 FixedText FT_STYLE 100 { 101 Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL, SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL + TOOLBOX_HEIGHT + CONTROL_SPACING_VERTICAL) ; 102 Size = MAP_APPFONT (TOOLBOX_WIDTH, TEXT_HEIGHT ) ; 103 Text [ en-US ] = "~Style:" ; 104 }; 105 ListBox LB_STYLE 106 { 107 Border = TRUE ; 108 HelpID = HID_PPROPERTYPANEL_LINE_TBX_STYLE ; 109 Pos = MAP_APPFONT (SECTIONPAGE_MARGIN_HORIZONTAL, SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*2 + TEXT_CONTROL_SPACING_VERTICAL*2 + TOOLBOX_HEIGHT + CONTROL_SPACING_VERTICAL) ; 110 Size = MAP_APPFONT (TOOLBOX_WIDTH ,LISTBOX_HEIGHT ) ; 111 TabStop = TRUE ; 112 DropDown = TRUE ; 113 DDExtraWidth = TRUE ; 114 QuickHelpText [ en-US ] = "Select the style of the line." ; 115 }; 116 117 FixedText FT_TRANSPARENT 118 { 119 Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL + TOOLBOX_WIDTH + 3, SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL + TOOLBOX_HEIGHT + CONTROL_SPACING_VERTICAL) ; 120 Size = MAP_APPFONT (TOOLBOX_WIDTH, TEXT_HEIGHT ) ; 121 Text [ en-US ] = "~Transparency:" ; 122 }; 123 MetricField MF_TRANSPARENT 124 { 125 Border = TRUE ; 126 HelpID = HID_PPROPERTYPANEL_LINE_MTR_TRANCEPARENCE ; 127 Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL + TOOLBOX_WIDTH + 3, SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*2 + TEXT_CONTROL_SPACING_VERTICAL*2 + TOOLBOX_HEIGHT + CONTROL_SPACING_VERTICAL) ; 128 Size = MAP_APPFONT ( TOOLBOX_WIDTH + 1, 12 ) ; 129 TabStop = TRUE ; 130 Repeat = TRUE ; 131 Spin = TRUE ; 132 Maximum = 100 ; 133 StrictFormat = TRUE ; 134 Unit = FUNIT_PERCENT ; 135 Last = 100 ; 136 SpinSize = 5 ; 137 QuickHelpText [ en-US ] = "Specify the transparency of the line." ; 138 }; 139 140 FixedText FT_ARROW 141 { 142 Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL, SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*2 + TEXT_CONTROL_SPACING_VERTICAL*2 + TOOLBOX_HEIGHT*2 + CONTROL_SPACING_VERTICAL*2) ; 143 Size = MAP_APPFONT (TOOLBOX_WIDTH * 2 + 3, TEXT_HEIGHT ) ; 144 Text [ en-US ] = "~Arrow:" ; 145 }; 146 ListBox LB_START 147 { 148 Border = TRUE ; 149 HelpID = HID_PPROPERTYPANEL_LINE_LB_START; 150 Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL, SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*3 + TEXT_CONTROL_SPACING_VERTICAL*3 + TOOLBOX_HEIGHT*2 + CONTROL_SPACING_VERTICAL*2 ) ; 151 Size = MAP_APPFONT ( TOOLBOX_WIDTH, LISTBOX_HEIGHT ) ; 152 TabStop = TRUE ; 153 DropDown = TRUE ; 154 DDExtraWidth = TRUE ; 155 QuickHelpText [ en-US ] = "Select the style of the beginning arrowhead." ; 156 }; 157 ListBox LB_END 158 { 159 Border = TRUE ; 160 HelpID = HID_PPROPERTYPANEL_LINE_LB_END ; 161 Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL + TOOLBOX_WIDTH + 3, SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*3 + TEXT_CONTROL_SPACING_VERTICAL*3 + TOOLBOX_HEIGHT*2 + CONTROL_SPACING_VERTICAL*2 ) ; 162 Size = MAP_APPFONT ( TOOLBOX_WIDTH + 1, LISTBOX_HEIGHT ) ; 163 TabStop = TRUE ; 164 DropDown = TRUE ; 165 DDExtraWidth = TRUE ; 166 QuickHelpText [ en-US ] = "Select the style of the ending arrowhead." ; 167 }; 168 169 FixedText FT_EDGESTYLE 170 { 171 Pos = MAP_APPFONT ( 172 SECTIONPAGE_MARGIN_HORIZONTAL, 173 SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*3 + TEXT_CONTROL_SPACING_VERTICAL*3 + TOOLBOX_HEIGHT*3 + CONTROL_SPACING_VERTICAL*3) ; 174 Size = MAP_APPFONT (TOOLBOX_WIDTH * 2 + 3, TEXT_HEIGHT ) ; 175 Text [ en-US ] = "~Corner style" ; 176 }; 177 ListBox LB_EDGESTYLE 178 { 179 HelpID = HID_PPROPERTYPANEL_LINE_LB_EDGESTYLE ; 180 Border = TRUE ; 181 Pos = MAP_APPFONT ( 182 SECTIONPAGE_MARGIN_HORIZONTAL , 183 SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*4 + TEXT_CONTROL_SPACING_VERTICAL*4 + TOOLBOX_HEIGHT*3 + CONTROL_SPACING_VERTICAL*3 ) ; 184 Size = MAP_APPFONT ( TOOLBOX_WIDTH, LISTBOX_HEIGHT ) ; 185 TabStop = TRUE ; 186 DropDown = TRUE ; 187 DDExtraWidth = TRUE ; 188 QuickHelpText [ en-US ] = "Select the style of the edge connections." ; 189 StringList [ en-US ] = 190 { 191 < "Rounded" ; Default ; > ; 192 < "- none -" ; > ; 193 < "Mitered" ; > ; 194 < "Beveled" ; > ; 195 }; 196 }; 197 FixedText FT_CAPSTYLE 198 { 199 Pos = MAP_APPFONT ( 200 SECTIONPAGE_MARGIN_HORIZONTAL + TOOLBOX_WIDTH + 3, 201 SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*3 + TEXT_CONTROL_SPACING_VERTICAL*3 + TOOLBOX_HEIGHT*3 + CONTROL_SPACING_VERTICAL*3) ; 202 Size = MAP_APPFONT (TOOLBOX_WIDTH * 2 + 3, TEXT_HEIGHT ) ; 203 Text [ en-US ] = "Ca~p style" ; 204 }; 205 ListBox LB_CAPSTYLE 206 { 207 HelpID = HID_PPROPERTYPANEL_LINE_LB_CAPSTYLE ; 208 Border = TRUE ; 209 Pos = MAP_APPFONT ( 210 SECTIONPAGE_MARGIN_HORIZONTAL + TOOLBOX_WIDTH + 3, 211 SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*4 + TEXT_CONTROL_SPACING_VERTICAL*4 + TOOLBOX_HEIGHT*3 + CONTROL_SPACING_VERTICAL*3 ) ; 212 Size = MAP_APPFONT ( TOOLBOX_WIDTH, LISTBOX_HEIGHT ) ; 213 TabStop = TRUE ; 214 DropDown = TRUE ; 215 DDExtraWidth = TRUE ; 216 QuickHelpText [ en-US ] = "Select the style of the line caps." ; 217 StringList [ en-US ] = 218 { 219 < "Flat" ; Default ; > ; // Same string as in Excel 220 < "Round" ; > ; 221 < "Square" ; > ; 222 }; 223 }; 224 225 Image IMG_COLOR 226 { 227 ImageBitmap = Bitmap{File = "symphony/Line_color.png" ;}; 228 }; 229 Image IMG_COLOR_NO 230 { 231 ImageBitmap = Bitmap{File = "symphony/no color.png" ;}; 232 }; 233 234 Image IMG_NONE_ICON 235 { 236 ImageBitmap = Bitmap{File = "symphony/blank.png" ;}; 237 }; 238 239 //WIDTH ICON 240 Image IMG_WIDTH1_ICON 241 { 242 ImageBitmap = Bitmap{File = "symphony/width1.png" ;}; 243 }; 244 Image IMG_WIDTH2_ICON 245 { 246 ImageBitmap = Bitmap{File = "symphony/width2.png" ;}; 247 }; 248 Image IMG_WIDTH3_ICON 249 { 250 ImageBitmap = Bitmap{File = "symphony/width3.png" ;}; 251 }; 252 Image IMG_WIDTH4_ICON 253 { 254 ImageBitmap = Bitmap{File = "symphony/width4.png" ;}; 255 }; 256 Image IMG_WIDTH5_ICON 257 { 258 ImageBitmap = Bitmap{File = "symphony/width5.png" ;}; 259 }; 260 Image IMG_WIDTH6_ICON 261 { 262 ImageBitmap = Bitmap{File = "symphony/width6.png" ;}; 263 }; 264 Image IMG_WIDTH7_ICON 265 { 266 ImageBitmap = Bitmap{File = "symphony/width7.png" ;}; 267 }; 268 Image IMG_WIDTH8_ICON 269 { 270 ImageBitmap = Bitmap{File = "symphony/width8.png" ;}; 271 }; 272 273 //high contrast for line width 274 //WIDTH ICON 275 Image IMG_WIDTH1_ICON_H 276 { 277 ImageBitmap = Bitmap{File = "symphony/width1_h.png" ;}; 278 }; 279 Image IMG_WIDTH2_ICON_H 280 { 281 ImageBitmap = Bitmap{File = "symphony/width2_h.png" ;}; 282 }; 283 Image IMG_WIDTH3_ICON_H 284 { 285 ImageBitmap = Bitmap{File = "symphony/width3_h.png" ;}; 286 }; 287 Image IMG_WIDTH4_ICON_H 288 { 289 ImageBitmap = Bitmap{File = "symphony/width4_h.png" ;}; 290 }; 291 Image IMG_WIDTH5_ICON_H 292 { 293 ImageBitmap = Bitmap{File = "symphony/width5_h.png" ;}; 294 }; 295 Image IMG_WIDTH6_ICON_H 296 { 297 ImageBitmap = Bitmap{File = "symphony/width6_h.png" ;}; 298 }; 299 Image IMG_WIDTH7_ICON_H 300 { 301 ImageBitmap = Bitmap{File = "symphony/width7_h.png" ;}; 302 }; 303 Image IMG_WIDTH8_ICON_H 304 { 305 ImageBitmap = Bitmap{File = "symphony/width8_h.png" ;}; 306 }; 307}; 308Control RID_POPUPPANEL_LINEPAGE_COLOR 309{ 310 OutputSize = TRUE ; 311 DialogControl = TRUE ; 312 Border = FALSE ; 313 Size = MAP_APPFONT ( POPUP_COLOR_PICKER_WIDTH, POPUP_COLOR_PICKER_HEIGHT ) ; 314 315 Control VS_COLOR 316 { 317 HelpId = HID_PPROPERTYPANEL_LINE_VS_COLOR ; 318 Hide = TRUE ; 319 Pos = MAP_APPFONT ( OFFSET_X, OFFSET_Y ) ; 320 Size = MAP_APPFONT ( POPUP_COLOR_PICKER_WIDTH - OFFSET_X * 2, POPUP_COLOR_PICKER_HEIGHT - OFFSET_Y * 2) ; 321 TabStop = TRUE ; 322 Text = "Color" ; 323 }; 324}; 325Control RID_POPUPPANEL_LINEPAGE_STYLE 326{ 327 OutputSize = TRUE ; 328 DialogControl = TRUE ; 329 Border = FALSE ; 330 331 Size = MAP_APPFONT( 332 POPUPPANEL_MARGIN_SMALL * 2 + POPUP_BORDER_WIDTH , 333 13 + POPUP_BORDER_HEIGHT + POPUPPANEL_MARGIN_SMALL * 2 + POPUPPANEL_MARGIN_LARGE) ; 334 335 Control VS_STYLE 336 { 337 HelpId = HID_PPROPERTYPANEL_LINE_VS_STYLE ; 338 Hide = TRUE ; 339 Pos = MAP_APPFONT ( POPUPPANEL_MARGIN_SMALL + OFFSET_X, POPUPPANEL_MARGIN_SMALL + OFFSET_Y ) ; 340 Size = MAP_APPFONT ( 93, 13 * 12) ; 341 TabStop = TRUE ; 342 Text = "Style" ; 343 }; 344 345 PushButton PB_OPTIONS 346 { 347 HelpId = HID_PPROPERTYPANEL_LINE_BTN_STYLE ; 348 Pos = MAP_APPFONT ( POPUPPANEL_MARGIN_LARGE + OFFSET_X, POPUPPANEL_MARGIN_SMALL * 2 + OFFSET_Y ) ; 349 Size = MAP_APPFONT ( 93, 13 ) ; 350 TabStop = TRUE ; 351 Text [ en-US ] = "~More Options..." ; 352 }; 353}; 354Control RID_POPUPPANEL_LINEPAGE_WIDTH 355{ 356 OutputSize = TRUE ; 357 DialogControl = TRUE ; 358 Border = FALSE ; 359 360 Size = MAP_APPFONT ( POPUPPANEL_MARGIN_SMALL * 2 + POPUP_BORDER_WIDTH + 80, POPUPPANEL_MARGIN_SMALL + POPUPPANEL_MARGIN_LARGE + POPUP_BORDER_WIDTH + 12 * 9 + POPUPPANEL_MARGIN_SMALL * 2 + TEXT_HEIGHT + (POPUPPANEL_MARGIN_LARGE * 2 + TEXT_HEIGHT + 12 + TEXT_CONTROL_SPACING_VERTICAL)) ; 361 362 Control VS_WIDTH 363 { 364 HelpId = HID_PPROPERTYPANEL_LINE_VS_WIDTH ; 365 Hide = TRUE ; 366 Pos = MAP_APPFONT( POPUPPANEL_MARGIN_SMALL + OFFSET_X, POPUPPANEL_MARGIN_SMALL + OFFSET_Y ) ; 367 Size = MAP_APPFONT ( 80, 12 * 9); 368 TabStop = TRUE ; 369 Text = "Width" ; 370 }; 371 FixedText FT_CUSTOME 372 { 373 Pos = MAP_APPFONT ( POPUPPANEL_MARGIN_LARGE + OFFSET_X, POPUPPANEL_MARGIN_SMALL + OFFSET_Y + 12 * 9 + POPUPPANEL_MARGIN_SMALL ) ; 374 Size = MAP_APPFONT ( 80, TEXT_HEIGHT ) ; 375 Text [ en-US ] = "Custom:" ; 376 }; 377 FixedText FT_LINE_WIDTH 378 { 379 Pos = MAP_APPFONT ( CUSTOM_X + POPUPPANEL_MARGIN_LARGE, CUSTOM_Y + POPUPPANEL_MARGIN_LARGE) ; 380 Size = MAP_APPFONT ( 74 - POPUPPANEL_MARGIN_LARGE * 2, TEXT_HEIGHT ) ; 381 Text [ en-US ] = "Line ~width:" ; 382 }; 383 MetricField MF_WIDTH 384 { 385 Border = TRUE ; 386 HelpID = HID_PPROPERTYPANEL_LINE_MTR_WIDTH ; 387 Pos = MAP_APPFONT ( CUSTOM_X + POPUPPANEL_MARGIN_LARGE, CUSTOM_Y + POPUPPANEL_MARGIN_LARGE + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL) ; 388 Size = MAP_APPFONT ( 40, 12 ) ; 389 TabStop = TRUE ; 390 Right = TRUE ; 391 Repeat = TRUE ; 392 Spin = TRUE ; 393 Maximum = 5000 ; 394 StrictFormat = TRUE ; 395 DecimalDigits = 2 ; 396 Value = 1 ; 397 Unit = FUNIT_MM ; 398 Last = 5000 ; 399 SpinSize = 10 ; 400 QuickHelpText [ en-US ] = "Specify the width of the line." ; 401 }; 402 403 Image IMG_WIDTH_CUSTOM 404 { 405 ImageBitmap = Bitmap{File = "symphony/last_custom_common.png" ;}; 406 }; 407 Image IMG_WIDTH_CUSTOM_GRAY 408 { 409 ImageBitmap = Bitmap{File = "symphony/last_custom_common_grey.png" ;}; 410 }; 411 String STR_WIDTH_LAST_CUSTOM 412 { 413 Text [ en-US ] = "Last Custom Value" ; 414 }; 415 String STR_PT 416 { 417 Text [ en-US ] = "pt" ; 418 }; 419}; 420 421// ********************************************************************** EOF 422