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 <sfx2/sidebar/ResourceDefinitions.hrc> 25#include "PropertyPanel.hrc" 26#include "PagePropertyPanel.hrc" 27#include "helpid.h" 28 29// page property panel control 30Control RID_PROPERTYPANEL_SWPAGE 31{ 32 OutputSize = TRUE ; 33 DialogControl = TRUE ; 34 Border = FALSE ; 35 Size = MAP_APPFONT ( PROPERTYPAGE_WIDTH, PAGE_HEIGHT ) ; 36 HelpID = HID_PROPERTYPANEL_SWPAGE_SECTION; 37 Text = "Page" ; 38 39 FixedText FT_ORIENTATION 40 { 41 Pos = MAP_APPFONT ( FT_ORIENTATION_X, FT_ORIENTATION_Y ) ; 42 Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ; 43 Text [ en-US ] = "~Orientation:" ; 44 }; 45 ToolBox TB_ORIENTATION 46 { 47 Pos = MAP_APPFONT ( TBX_ORIENTATION_X, TBX_ORIENTATION_Y ) ; 48 HelpID = HID_SWPAGE_ORIENTATION; 49 SVLook = TRUE ; 50 TabStop = TRUE ; 51 Text = "Orientation" ; 52 ItemList = 53 { 54 ToolBoxItem 55 { 56 HelpID = HID_SWPAGE_TBI_ORIENTATION ; 57 Identifier = TBI_ORIENTATION ; 58 Text [ en-US ] = "Orientation" ; 59 DropDown = TRUE ; 60 }; 61 }; 62 }; 63 String STR_QHELP_TB_ORIENTATION 64 { 65 Text [ en-US ] = "Select the paper orientation - vertically (portrait) or horizontally (landscape) - for the current page style." ; 66 }; 67 68 FixedText FT_MARGIN 69 { 70 Pos = MAP_APPFONT ( FT_MARGIN_X, FT_MARGIN_Y ) ; 71 Size = MAP_APPFONT ( MBOX_WIDTH + 50, TEXT_HEIGHT ) ; 72 Text [ en-US ] = "~Margin:" ; 73 }; 74 ToolBox TB_MARGIN 75 { 76 SVLook = TRUE ; 77 Pos = MAP_APPFONT ( TBX_MARGIN_X, TBX_MARGIN_Y ) ; 78 HelpID = HID_SWPAGE_MARGIN ; 79 TabStop = TRUE ; 80 Text = "Margin" ; 81 ItemList = 82 { 83 ToolBoxItem 84 { 85 HelpID = HID_SWPAGE_TBI_MARGIN ; 86 Identifier = TBI_MARGIN ; 87 Text [ en-US ] = "Margin" ; 88 DropDown = TRUE ; 89 }; 90 }; 91 }; 92 String STR_QHELP_TB_MARGIN 93 { 94 Text [ en-US ] = "Select the margin values for the current page style." ; 95 }; 96 97 FixedText FT_SIZE 98 { 99 Pos = MAP_APPFONT ( FT_SIZE_X, FT_SIZE_Y ) ; 100 Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ; 101 Text [ en-US ] = "~Size:" ; 102 }; 103 ToolBox TB_SIZE 104 { 105 SVLook = TRUE ; 106 Pos = MAP_APPFONT ( TBX_SIZE_X, TBX_SIZE_Y ) ; 107 HelpID = HID_SWPAGE_SIZE ; 108 TabStop = TRUE ; 109 Text = "Size" ; 110 ItemList = 111 { 112 ToolBoxItem 113 { 114 HelpID = HID_SWPAGE_TBI_SIZE ; 115 Identifier = TBI_SIZE ; 116 Text [ en-US ] = "Size" ; 117 DropDown = TRUE ; 118 }; 119 }; 120 }; 121 String STR_QHELP_TB_SIZE 122 { 123 Text [ en-US ] = "Select a predefined paper size for the current page style." ; 124 }; 125 126 FixedText FT_COLUMN 127 { 128 Pos = MAP_APPFONT ( FT_COLUMN_X, FT_COLUMN_Y ); 129 Size = MAP_APPFONT ( MBOX_WIDTH + 50, TEXT_HEIGHT ) ; 130 Text [ en-US ] = "~Column:" ; 131 }; 132 ToolBox TB_COLUMN 133 { 134 SVLook = TRUE ; 135 Pos = MAP_APPFONT ( TBX_COLUMN_X, TBX_COLUMN_Y ) ; 136 HelpID = HID_SWPAGE_COLUMN ; 137 TabStop = TRUE ; 138 Text = "Column" ; 139 ItemList = 140 { 141 ToolBoxItem 142 { 143 HelpID = HID_SWPAGE_TBI_COLUMN ; 144 Identifier = TBI_COLUMN ; 145 Text [ en-US ] = "Column" ; 146 DropDown = TRUE ; 147 }; 148 }; 149 }; 150 String STR_QHELP_TB_COLUMN 151 { 152 Text [ en-US ] = "Select the layout and the number of columns for the current page style." ; 153 }; 154 155 Image IMG_PAGE_PORTRAIT 156 { 157 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/portraitcopy_24x24.png" ;} ; 158 }; 159 Image IMG_PAGE_LANDSCAPE 160 { 161 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/Landscapecopy_24x24.png" ;} ; 162 }; 163 Image IMG_PAGE_NARROW 164 { 165 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/format_L_narrow_24x24.png" ;} ; 166 }; 167 Image IMG_PAGE_NORMAL 168 { 169 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/format_L_normal_24x24.png" ;} ; 170 }; 171 Image IMG_PAGE_WIDE 172 { 173 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/format_L_wide_24x24.png" ;} ; 174 }; 175 Image IMG_PAGE_MIRRORED 176 { 177 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/format_L_mirror_24x24.png" ;} ; 178 }; 179 Image IMG_PAGE_MARGIN_CUSTOM 180 { 181 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/format_L_copy_24x24.png" ;} ; 182 }; 183 Image IMG_PAGE_NARROW_L 184 { 185 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/formatnarrow_24x24.png" ;} ; 186 }; 187 Image IMG_PAGE_NORMAL_L 188 { 189 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/formatnormal_24x24.png" ;} ; 190 }; 191 Image IMG_PAGE_WIDE_L 192 { 193 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/formatwide_24x24.png" ;} ; 194 }; 195 Image IMG_PAGE_MIRRORED_L 196 { 197 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/formatmirror_24x24.png" ;} ; 198 }; 199 Image IMG_PAGE_MARGIN_CUSTOM_L 200 { 201 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/formatcopy_24x24.png" ;} ; 202 }; 203 Image IMG_PAGE_A3 204 { 205 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/documentsize_L_A3_24x24.png" ;} ; 206 }; 207 Image IMG_PAGE_A4 208 { 209 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/documentsize_L_A4_24x24.png" ;} ; 210 }; 211 Image IMG_PAGE_A5 212 { 213 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/documentsize_L_A5_24x24.png" ;} ; 214 }; 215 Image IMG_PAGE_B4 216 { 217 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/documentsize_L_B4_24x24.png" ;} ; 218 }; 219 Image IMG_PAGE_B5 220 { 221 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/documentsize_L_B5_24x24.png" ;} ; 222 }; 223 Image IMG_PAGE_C5 224 { 225 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/documentsize_L_C5_24x24.png" ;} ; 226 }; 227 Image IMG_PAGE_LETTER 228 { 229 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/documentsize_L_Letter_24x24.png" ;} ; 230 }; 231 Image IMG_PAGE_LEGAL 232 { 233 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/documentsize_L_Legal_24x24.png" ;} ; 234 }; 235 Image IMG_PAGE_SIZE_NONE 236 { 237 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/documentsize_L_copy_24x24.png" ;} ; 238 }; 239 Image IMG_PAGE_A3_L 240 { 241 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/documentsizeA3_24x24.png" ;} ; 242 }; 243 Image IMG_PAGE_A4_L 244 { 245 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/documentsizeA4_24x24.png" ;} ; 246 }; 247 Image IMG_PAGE_A5_L 248 { 249 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/documentsizeA5_24x24.png" ;} ; 250 }; 251 Image IMG_PAGE_B4_L 252 { 253 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/documentsizeB4_24x24.png" ;} ; 254 }; 255 Image IMG_PAGE_B5_L 256 { 257 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/documentsizeB5_24x24.png" ;} ; 258 }; 259 Image IMG_PAGE_C5_L 260 { 261 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/documentsizeC5_24x24.png" ;} ; 262 }; 263 Image IMG_PAGE_LETTER_L 264 { 265 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/documentsizeLetter_24x24.png" ;} ; 266 }; 267 Image IMG_PAGE_LEGAL_L 268 { 269 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/documentsizeLegal_24x24.png" ;} ; 270 }; 271 Image IMG_PAGE_SIZE_NONE_L 272 { 273 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/documentsizecopy_24x24.png" ;} ; 274 }; 275 Image IMG_PAGE_COLUMN_1 276 { 277 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/column_L_1_24x24.png" ;} ; 278 }; 279 Image IMG_PAGE_COLUMN_2 280 { 281 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/column_L_2_24x24.png" ;} ; 282 }; 283 Image IMG_PAGE_COLUMN_3 284 { 285 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/column_L_3_24x24.png" ;} ; 286 }; 287 Image IMG_PAGE_COLUMN_LEFT 288 { 289 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/column_L_left_24x24.png" ;} ; 290 }; 291 Image IMG_PAGE_COLUMN_RIGHT 292 { 293 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/column_L_right_24x24.png" ;} ; 294 }; 295 Image IMG_PAGE_COLUMN_NONE 296 { 297 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/column_L_copy_24x24.png" ;} ; 298 }; 299 Image IMG_PAGE_COLUMN_1_L 300 { 301 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/column1_24x24.png" ;} ; 302 }; 303 Image IMG_PAGE_COLUMN_2_L 304 { 305 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/column2_24x24.png" ;} ; 306 }; 307 Image IMG_PAGE_COLUMN_3_L 308 { 309 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/column3_24x24.png" ;} ; 310 }; 311 Image IMG_PAGE_COLUMN_LEFT_L 312 { 313 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/columnleft_24x24.png" ;} ; 314 }; 315 Image IMG_PAGE_COLUMN_RIGHT_L 316 { 317 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/columnright_24x24.png" ;} ; 318 }; 319 Image IMG_PAGE_COLUMN_NONE_L 320 { 321 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/columncopy_24x24.png" ;} ; 322 }; 323}; 324 325// popup for page orientation attribute 326Control RID_POPUP_SWPAGE_ORIENTATION 327{ 328 OutputSize = TRUE ; 329 DialogControl = TRUE ; 330 Border = FALSE ; 331 Size = MAP_APPFONT ( POPUPPANEL_MARGIN_SMALL * 2 + POPUP_BORDER_WIDTH + VS_WIDTH, ITEM_HEIGHT * 2 + POPUPPANEL_MARGIN_SMALL * 2 ) ; 332 333 Control VS_ORIENTATION 334 { 335 Pos = MAP_APPFONT ( POPUPPANEL_MARGIN_SMALL + OFFSET_X, POPUPPANEL_MARGIN_SMALL + OFFSET_Y ) ; 336 Size = MAP_APPFONT ( VS_WIDTH, ITEM_HEIGHT * 2 ) ; 337 HelpID = HID_SWPAGE_VS_ORIENTATION ; 338 TabStop = TRUE ; 339 Text = "Orientation" ; 340 }; 341 Image IMG_PORTRAIT 342 { 343 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/portraitcopy_24x24.png" ;} ; 344 }; 345 Image IMG_LANDSCAPE 346 { 347 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/Landscapecopy_24x24.png" ;} ; 348 }; 349 String STR_PORTRAIT 350 { 351 Text [ en-US ] = "Portrait" ; 352 }; 353 String STR_LANDSCAPE 354 { 355 Text [ en-US ] = "Landscape" ; 356 }; 357}; 358 359// popup for page style's margin attributes 360Control RID_POPUP_SWPAGE_MARGIN 361{ 362 OutputSize = TRUE ; 363 DialogControl = TRUE ; 364 Border = FALSE ; 365 Size = MAP_APPFONT ( POPUPPANEL_MARGIN_SMALL * 2 + POPUP_BORDER_WIDTH + VS_WIDTH, MARGIN_PANEL_HEIGHT ) ; 366 367 Control VS_MARGIN 368 { 369 Pos = MAP_APPFONT ( POPUPPANEL_MARGIN_SMALL + OFFSET_X, POPUPPANEL_MARGIN_SMALL + OFFSET_Y ) ; 370 Size = MAP_APPFONT ( VS_WIDTH, ITEM_HEIGHT * 5 ) ; 371 HelpID = HID_SWPAGE_VS_MARGIN ; 372 TabStop = TRUE ; 373 Text = "Margin" ; 374 }; 375 FixedText FT_CUSTOM 376 { 377 Pos = MAP_APPFONT ( FT_CUSTOM_X, FT_CUSTOM_Y ) ; 378 Size = MAP_APPFONT ( MBOX_WIDTH + 30, TEXT_HEIGHT ) ; 379 Text [ en-US ] = "Custom:" ; 380 }; 381 FixedText FT_LEFT 382 { 383 Pos = MAP_APPFONT ( FT_X, FT_LEFT_Y ) ; 384 Size = MAP_APPFONT ( 25, TEXT_HEIGHT ) ; 385 Text [ en-US ] = "~Left:" ; 386 }; 387 FixedText FT_INNER 388 { 389 Pos = MAP_APPFONT ( FT_X, FT_LEFT_Y ) ; 390 Size = MAP_APPFONT ( 25, TEXT_HEIGHT ) ; 391 Text [ en-US ] = "I~nner:" ; 392 }; 393 MetricField MF_SWLEFT_MARGIN 394 { 395 Border = TRUE ; 396 Pos = MAP_APPFONT ( MF_X, LEFT_MF_Y ) ; 397 Size = MAP_APPFONT ( MBOX_WIDTH - 12, MBOX_HEIGHT ) ; 398 HelpID = HID_SWPAGE_LEFT_MARGIN ; 399 Left = TRUE ; 400 Repeat = TRUE ; 401 Spin = TRUE ; 402 Maximum = 9999 ; 403 DecimalDigits = 2 ; 404 Unit = FUNIT_CM ; 405 Last = 9999 ; 406 SpinSize = 10 ; 407 }; 408 FixedText FT_RIGHT 409 { 410 Pos = MAP_APPFONT ( FT_X, FT_RIGHT_Y ) ; 411 Size = MAP_APPFONT ( 25, TEXT_HEIGHT ) ; 412 Text [ en-US ] = "~Right:" ; 413 }; 414 FixedText FT_OUTER 415 { 416 Pos = MAP_APPFONT ( FT_X, FT_RIGHT_Y ) ; 417 Size = MAP_APPFONT ( 25, TEXT_HEIGHT ) ; 418 Text [ en-US ] = "O~uter:" ; 419 }; 420 MetricField MF_SWRIGHT_MARGIN 421 { 422 Border = TRUE ; 423 Pos = MAP_APPFONT ( MF_X, RIGHT_MF_Y ); 424 Size = MAP_APPFONT ( MBOX_WIDTH - 12, MBOX_HEIGHT ); 425 HelpID = HID_SWPAGE_RIGHT_MARGIN ; 426 Left = TRUE ; 427 Repeat = TRUE ; 428 Spin = TRUE ; 429 Maximum = 9999 ; 430 DecimalDigits = 2 ; 431 Unit = FUNIT_CM ; 432 Last = 9999 ; 433 SpinSize = 10 ; 434 }; 435 FixedText FT_TOP 436 { 437 Pos = MAP_APPFONT ( FT_X, FT_TOP_Y ) ; 438 Size = MAP_APPFONT ( 25, TEXT_HEIGHT ) ; 439 Text [ en-US ] = "~Top:" ; 440 }; 441 MetricField MF_SWTOP_MARGIN 442 { 443 Border = TRUE ; 444 Pos = MAP_APPFONT ( MF_X, TOP_MF_Y ) ; 445 Size = MAP_APPFONT ( MBOX_WIDTH - 12, MBOX_HEIGHT ) ; 446 HelpID = HID_SWPAGE_TOP_MARGIN ; 447 Left = TRUE ; 448 Repeat = TRUE ; 449 Spin = TRUE ; 450 Maximum = 9999 ; 451 DecimalDigits = 2 ; 452 Unit = FUNIT_CM ; 453 Last = 9999 ; 454 SpinSize = 10 ; 455 }; 456 FixedText FT_BOTTOM 457 { 458 Pos = MAP_APPFONT ( FT_X, FT_BOTTOM_Y ) ; 459 Size = MAP_APPFONT ( 25, TEXT_HEIGHT ) ; 460 Text [ en-US ] = "~Bottom:" ; 461 }; 462 MetricField MF_SWBOTTOM_MARGIN 463 { 464 Border = TRUE ; 465 Pos = MAP_APPFONT ( MF_X, BOTTOM_MF_Y ) ; 466 Size = MAP_APPFONT ( MBOX_WIDTH - 12, MBOX_HEIGHT ); 467 HelpID = HID_SWPAGE_BOTTOM_MARGIN ; 468 Left = TRUE ; 469 Repeat = TRUE ; 470 Spin = TRUE ; 471 Maximum = 9999 ; 472 DecimalDigits = 2 ; 473 Unit = FUNIT_CM ; 474 Last = 9999 ; 475 SpinSize = 10 ; 476 }; 477 MetricField FLD_WIDTH_HEIGHT 478 { 479 Border = TRUE ; 480 Left = TRUE ; 481 Repeat = TRUE ; 482 Spin = TRUE ; 483 Maximum = 9999 ; 484 DecimalDigits = 2 ; 485 Unit = FUNIT_CM ; 486 Last = 9999 ; 487 SpinSize = 10 ; 488 }; 489 490 Image IMG_NARROW 491 { 492 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/format_L_narrow_24x24.png" ;} ; 493 }; 494 Image IMG_NORMAL 495 { 496 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/format_L_normal_24x24.png" ;} ; 497 }; 498 Image IMG_WIDE 499 { 500 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/format_L_wide_24x24.png" ;} ; 501 }; 502 Image IMG_MIRRORED 503 { 504 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/format_L_mirror_24x24.png" ;} ; 505 }; 506 Image IMG_NARROW_L 507 { 508 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/formatnarrow_24x24.png" ;} ; 509 }; 510 Image IMG_NORMAL_L 511 { 512 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/formatnormal_24x24.png" ;} ; 513 }; 514 Image IMG_WIDE_L 515 { 516 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/formatwide_24x24.png" ;} ; 517 }; 518 Image IMG_MIRRORED_L 519 { 520 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/formatmirror_24x24.png" ;} ; 521 }; 522 Image IMG_CUSTOM 523 { 524 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/last_custom_common.png" ;} ; 525 }; 526 Image IMG_CUSTOM_DIS 527 { 528 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/last_custom_common_grey.png" ;} ; 529 }; 530 String STR_LCVALUE 531 { 532 Text [ en-US ] = "Last Custom Values" ; 533 }; 534 String STR_NARROW 535 { 536 Text [ en-US ] = "Narrow" ; 537 }; 538 String STR_NORMAL 539 { 540 Text [ en-US ] = "Normal" ; 541 }; 542 String STR_WIDE 543 { 544 Text [ en-US ] = "Wide" ; 545 }; 546 String STR_MIRRORED 547 { 548 Text [ en-US ] = "Mirrored" ; 549 }; 550 String STR_MARGIN_TOOLTIP_LEFT 551 { 552 Text [ en-US ] = "Left: " ; 553 }; 554 String STR_MARGIN_TOOLTIP_RIGHT 555 { 556 Text [ en-US ] = ". Right: " ; 557 }; 558 String STR_MARGIN_TOOLTIP_INNER 559 { 560 Text [ en-US ] = "Inner: " ; 561 }; 562 String STR_MARGIN_TOOLTIP_OUTER 563 { 564 Text [ en-US ] = ". Outer: " ; 565 }; 566 String STR_MARGIN_TOOLTIP_TOP 567 { 568 Text [ en-US ] = ". Top: " ; 569 }; 570 String STR_MARGIN_TOOLTIP_BOT 571 { 572 Text [ en-US ] = ". Bottom: " ; 573 }; 574}; 575 576// popup for page style's page size 577Control RID_POPUP_SWPAGE_SIZE 578{ 579 OutputSize = TRUE ; 580 DialogControl = TRUE ; 581 Border = FALSE ; 582 Size = MAP_APPFONT ( POPUPPANEL_MARGIN_SMALL * 2 + POPUP_BORDER_WIDTH + VS_WIDTH + 22, ITEM_HEIGHT2 * 8 + POPUPPANEL_MARGIN_SMALL*2 + CONTROL_SPACING_VERTICAL + 15 ) ; 583 584 Control VS_SIZE 585 { 586 Pos = MAP_APPFONT ( POPUPPANEL_MARGIN_SMALL + OFFSET_X, POPUPPANEL_MARGIN_SMALL + OFFSET_Y ) ; 587 Size = MAP_APPFONT ( VS_WIDTH + 22, ITEM_HEIGHT2 * 8 ) ; 588 HelpID = HID_SWPAGE_VS_SIZE ; 589 TabStop = TRUE ; 590 Text = "Size" ; 591 }; 592 PushButton CB_SIZE_MORE 593 { 594 Pos = MAP_APPFONT ( POPUPPANEL_MARGIN_SMALL + 2*OFFSET_X, POPUPPANEL_MARGIN_SMALL + 2*OFFSET_Y + ITEM_HEIGHT2*8 ) ; 595 Size = MAP_APPFONT ( VS_WIDTH - 2 + 22, 15 ) ; 596 HelpID = HID_SWPAGE_SIZE_MORE ; 597 TabStop = TRUE ; 598 Text [ en-US ] = "~More Options" ; 599 QuickHelpText [ en-US ] = "More Options" ; 600 }; 601 MetricField FLD_WIDTH_HEIGHT 602 { 603 Border = TRUE ; 604 Left = TRUE ; 605 Repeat = TRUE ; 606 Spin = TRUE ; 607 Maximum = 9999 ; 608 DecimalDigits = 2 ; 609 Unit = FUNIT_CM ; 610 Last = 9999 ; 611 SpinSize = 10 ; 612 }; 613}; 614 615// popup for page style's column attribute 616Control RID_POPUP_SWPAGE_COLUMN 617{ 618 OutputSize = TRUE ; 619 DialogControl = TRUE ; 620 Border = FALSE ; 621 Size = MAP_APPFONT ( POPUPPANEL_MARGIN_SMALL * 2 + POPUP_BORDER_WIDTH + VS_WIDTH - 15, ITEM_HEIGHT*5 + POPUPPANEL_MARGIN_SMALL*2 + CONTROL_SPACING_VERTICAL + 15 ) ; 622 623 Control VS_COLUMN 624 { 625 Pos = MAP_APPFONT ( POPUPPANEL_MARGIN_SMALL + OFFSET_X, POPUPPANEL_MARGIN_SMALL + OFFSET_Y ) ; 626 Size = MAP_APPFONT ( VS_WIDTH - 15, ITEM_HEIGHT * 5 ) ; 627 HelpID = HID_SWPAGE_VS_COLUMN ; 628 TabStop = TRUE ; 629 Text = "Column" ; 630 }; 631 PushButton CB_COLUMN_MORE 632 { 633 Pos = MAP_APPFONT ( POPUPPANEL_MARGIN_SMALL + 2 * OFFSET_X, POPUPPANEL_MARGIN_SMALL + 2 * OFFSET_Y + ITEM_HEIGHT * 5 ) ; 634 Size = MAP_APPFONT ( VS_WIDTH - 2 - 15, 15 ) ; 635 HelpID = HID_SWPAGE_COLUMN_MORE ; 636 TabStop = TRUE ; 637 Text [ en-US ] = "~More Options" ; 638 QuickHelpText [ en-US ] = "More Options" ; 639 }; 640 Image IMG_ONE 641 { 642 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/column_L_1_24x24.png" ;} ; 643 }; 644 Image IMG_TWO 645 { 646 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/column_L_2_24x24.png" ;} ; 647 }; 648 Image IMG_THREE 649 { 650 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/column_L_3_24x24.png" ;} ; 651 }; 652 Image IMG_LEFT 653 { 654 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/column_L_left_24x24.png" ;} ; 655 }; 656 Image IMG_RIGHT 657 { 658 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/column_L_right_24x24.png" ;} ; 659 }; 660 Image IMG_ONE_L 661 { 662 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/column1_24x24.png" ;} ; 663 }; 664 Image IMG_TWO_L 665 { 666 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/column2_24x24.png" ;} ; 667 }; 668 Image IMG_THREE_L 669 { 670 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/column3_24x24.png" ;} ; 671 }; 672 Image IMG_LEFT_L 673 { 674 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/columnleft_24x24.png" ;} ; 675 }; 676 Image IMG_RIGHT_L 677 { 678 ImageBitmap = Bitmap {File = "sidebar/pageproppanel/columnright_24x24.png" ;} ; 679 }; 680 String STR_ONE 681 { 682 Text [ en-US ] = "1 Column" ; 683 }; 684 String STR_TWO 685 { 686 Text [ en-US ] = "2 Columns" ; 687 }; 688 String STR_THREE 689 { 690 Text [ en-US ] = "3 Columns" ; 691 }; 692 String STR_LEFT 693 { 694 Text [ en-US ] = "Left" ; 695 }; 696 String STR_RIGHT 697 { 698 Text [ en-US ] = "Right" ; 699 }; 700}; 701 702// ******************************************************************* EOF 703