2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #include <sfx2/sidebar/ResourceDefinitions.hrc>
20 #include "PropertyPanel.hrc"
21 #include "PagePropertyPanel.hrc"
24 // page property panel control
25 Control RID_PROPERTYPANEL_SWPAGE
30 Size = MAP_APPFONT( PROPERTYPAGE_WIDTH, PAGE_HEIGHT );
31 HelpID = HID_PROPERTYPANEL_SWPAGE_SECTION;
34 FixedText FT_ORIENTATION
36 Pos = MAP_APPFONT ( FT_ORIENTATION_X, FT_ORIENTATION_Y );
37 Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT) ;
38 Text [ en-US ] = "~Orientation:";
40 ToolBox TB_ORIENTATION
42 Pos = MAP_APPFONT (TBX_ORIENTATION_X, TBX_ORIENTATION_Y) ;
43 HelpID = HID_SWPAGE_ORIENTATION;
46 Text = "Orientation" ;
51 HelpID = HID_SWPAGE_TBI_ORIENTATION;
52 Identifier = TBI_ORIENTATION ;
53 Text [ en-US ] = "Orientation" ;
58 String STR_QHELP_TB_ORIENTATION
60 Text [ en-US ] = "Select the paper orientation - vertically (portrait) or horizontally (landscape) - for the current page style.";
65 Pos = MAP_APPFONT ( FT_MARGIN_X, FT_MARGIN_Y );
66 Size = MAP_APPFONT ( MBOX_WIDTH + 50, TEXT_HEIGHT) ;
67 Text [ en-US ] = "~Margin:";
72 Pos = MAP_APPFONT (TBX_MARGIN_X, TBX_MARGIN_Y) ;
73 HelpID = HID_SWPAGE_MARGIN;
80 HelpID = HID_SWPAGE_TBI_MARGIN;
81 Identifier = TBI_MARGIN ;
82 Text [ en-US ] = "Margin" ;
87 String STR_QHELP_TB_MARGIN
89 Text [ en-US ] = "Select the margin values for the current page style.";
94 Pos = MAP_APPFONT ( FT_SIZE_X, FT_SIZE_Y );
95 Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT) ;
96 Text [ en-US ] = "~Size:";
101 Pos = MAP_APPFONT ( TBX_SIZE_X , TBX_SIZE_Y ) ;
102 HelpID = HID_SWPAGE_SIZE;
109 HelpID = HID_SWPAGE_TBI_SIZE;
110 Identifier = TBI_SIZE ;
111 Text [ en-US ] = "Size" ;
116 String STR_QHELP_TB_SIZE
118 Text [ en-US ] = "Select a predefined paper size for the current page style.";
123 Pos = MAP_APPFONT ( FT_COLUMN_X, FT_COLUMN_Y );
124 Size = MAP_APPFONT ( MBOX_WIDTH + 50, TEXT_HEIGHT) ;
125 Text [ en-US ] = "~Column:";
130 Pos = MAP_APPFONT ( TBX_COLUMN_X , TBX_COLUMN_Y ) ;
131 HelpID = HID_SWPAGE_COLUMN;
138 HelpID = HID_SWPAGE_TBI_COLUMN;
139 Identifier = TBI_COLUMN;
140 Text [ en-US ] = "Column" ;
145 String STR_QHELP_TB_COLUMN
147 Text [ en-US ] = "Select the layout and the number of columns for the current page style.";
150 Image IMG_PAGE_PORTRAIT
152 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/portraitcopy_24x24.png";};
154 Image IMG_PAGE_LANDSCAPE
156 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/Landscapecopy_24x24.png";};
158 Image IMG_PAGE_NARROW
160 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/format_L_narrow_24x24.png";};
162 Image IMG_PAGE_NORMAL
164 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/format_L_nomal_24x24.png";};
168 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/format_L_wide_24x24.png";};
170 Image IMG_PAGE_MIRRORED
172 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/format_L_mirror_24x24.png";};
174 Image IMG_PAGE_MARGIN_CUSTOM
176 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/format_L_copy_24x24.png";};
178 Image IMG_PAGE_NARROW_L
180 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/formatnarrow_24x24.png";};
182 Image IMG_PAGE_NORMAL_L
184 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/formatnormal_24x24.png";};
186 Image IMG_PAGE_WIDE_L
188 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/formatwide_24x24.png";};
190 Image IMG_PAGE_MIRRORED_L
192 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/formatmirror_24x24.png";};
194 Image IMG_PAGE_MARGIN_CUSTOM_L
196 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/formatcopy_24x24.png";};
200 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsize_L_A3_24x24.png";};
204 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsize_L_A4_24x24.png";};
208 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsize_L_A5_24x24.png";};
212 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsize_L_B4_24x24.png";};
216 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsize_L_B5_24x24.png";};
220 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsize_L_C5_24x24.png";};
222 Image IMG_PAGE_LETTER
224 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsize_L_copy_24x24.png";};
228 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsize_L_copy_24x24.png";};
230 Image IMG_PAGE_SIZE_NONE
232 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsize_L_copy_24x24.png";};
236 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsizeA3_24x24.png";};
240 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsizeA4_24x24.png";};
244 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsizeA5_24x24.png";};
248 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsizeB4_24x24.png";};
252 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsizeB5_24x24.png";};
256 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsizeC5_24x24.png";};
258 Image IMG_PAGE_LETTER_L
260 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsizecopy_24x24.png";};
262 Image IMG_PAGE_LEGAL_L
264 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsizecopy_24x24.png";};
266 Image IMG_PAGE_SIZE_NONE_L
268 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsizecopy_24x24.png";};
270 Image IMG_PAGE_COLUMN_1
272 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column_L_1_24x24.png";};
274 Image IMG_PAGE_COLUMN_2
276 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column_L_2_24x24.png";};
278 Image IMG_PAGE_COLUMN_3
280 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column_L_3_24x24.png";};
282 Image IMG_PAGE_COLUMN_LEFT
284 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column_L_left_24x24.png";};
286 Image IMG_PAGE_COLUMN_RIGHT
288 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column_L_right_24x24.png";};
290 Image IMG_PAGE_COLUMN_NONE
292 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column_L_copy_24x24.png";};
294 Image IMG_PAGE_COLUMN_1_L
296 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column1_24x24.png";};
298 Image IMG_PAGE_COLUMN_2_L
300 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column2_24x24.png";};
302 Image IMG_PAGE_COLUMN_3_L
304 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column3_24x24.png";};
306 Image IMG_PAGE_COLUMN_LEFT_L
308 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/columnleft_24x24.png";};
310 Image IMG_PAGE_COLUMN_RIGHT_L
312 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/columnright_24x24.png";};
314 Image IMG_PAGE_COLUMN_NONE_L
316 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/columncopy_24x24.png";};
320 // popup for page orientation attribute
321 Control RID_POPUP_SWPAGE_ORIENTATION
324 DialogControl = TRUE;
326 Size = MAP_APPFONT( POPUPPANEL_MARGIN_SMALL * 2 + POPUP_BORDER_WIDTH + VS_WIDTH, ITEM_HEIGHT*2 + POPUPPANEL_MARGIN_SMALL*2 );
328 Control VS_ORIENTATION
330 Pos = MAP_APPFONT( POPUPPANEL_MARGIN_SMALL + OFFSET_X, POPUPPANEL_MARGIN_SMALL + OFFSET_Y);
331 Size = MAP_APPFONT ( VS_WIDTH , ITEM_HEIGHT*2);
332 HelpID = HID_SWPAGE_VS_ORIENTATION;
334 Text = "Orientation";
338 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/portraitcopy_24x24.png";};
342 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/Landscapecopy_24x24.png";};
346 Text [ en-US ] = "Portrait";
350 Text [ en-US ] = "Landscape";
354 // popup for page style's margin attributes
355 Control RID_POPUP_SWPAGE_MARGIN
358 DialogControl = TRUE;
360 Size = MAP_APPFONT( POPUPPANEL_MARGIN_SMALL * 2 + POPUP_BORDER_WIDTH + VS_WIDTH, MARGIN_PANEL_HEIGHT );
364 Pos = MAP_APPFONT( POPUPPANEL_MARGIN_SMALL + OFFSET_X, POPUPPANEL_MARGIN_SMALL + OFFSET_Y );
365 Size = MAP_APPFONT ( VS_WIDTH , ITEM_HEIGHT*5);
366 HelpID = HID_SWPAGE_VS_MARGIN;
372 Pos = MAP_APPFONT ( FT_CUSTOM_X, FT_CUSTOM_Y );
373 Size = MAP_APPFONT ( MBOX_WIDTH + 30, TEXT_HEIGHT) ;
374 Text [ en-US ] = "Custom:";
378 Pos = MAP_APPFONT ( FT_X, FT_LEFT_Y );
379 Size = MAP_APPFONT ( 25, TEXT_HEIGHT) ;
380 Text [ en-US ] = "~Left:";
384 Pos = MAP_APPFONT ( FT_X, FT_LEFT_Y );
385 Size = MAP_APPFONT ( 25, TEXT_HEIGHT) ;
386 Text [ en-US ] = "I~nner:";
388 MetricField MF_SWLEFT_MARGIN
391 Pos = MAP_APPFONT ( MF_X , LEFT_MF_Y );
392 Size = MAP_APPFONT ( MBOX_WIDTH - 12, MBOX_HEIGHT );
393 HelpID = HID_SWPAGE_LEFT_MARGIN;
405 Pos = MAP_APPFONT ( FT_X, FT_RIGHT_Y );
406 Size = MAP_APPFONT ( 25, TEXT_HEIGHT) ;
407 Text [ en-US ] = "~Right:";
411 Pos = MAP_APPFONT ( FT_X, FT_RIGHT_Y );
412 Size = MAP_APPFONT ( 25, TEXT_HEIGHT) ;
413 Text [ en-US ] = "O~uter:";
415 MetricField MF_SWRIGHT_MARGIN
418 Pos = MAP_APPFONT ( MF_X , RIGHT_MF_Y );
419 Size = MAP_APPFONT ( MBOX_WIDTH - 12, MBOX_HEIGHT );
420 HelpID = HID_SWPAGE_RIGHT_MARGIN;
432 Pos = MAP_APPFONT ( FT_X, FT_TOP_Y );
433 Size = MAP_APPFONT ( 25, TEXT_HEIGHT) ;
434 Text [ en-US ] = "~Top:";
436 MetricField MF_SWTOP_MARGIN
439 Pos = MAP_APPFONT ( MF_X , TOP_MF_Y );
440 Size = MAP_APPFONT ( MBOX_WIDTH - 12, MBOX_HEIGHT );
441 HelpID = HID_SWPAGE_TOP_MARGIN;
453 Pos = MAP_APPFONT ( FT_X, FT_BOTTOM_Y );
454 Size = MAP_APPFONT ( 25, TEXT_HEIGHT) ;
455 Text [ en-US ] = "~Bottom:";
457 MetricField MF_SWBOTTOM_MARGIN
460 Pos = MAP_APPFONT ( MF_X , BOTTOM_MF_Y );
461 Size = MAP_APPFONT ( MBOX_WIDTH - 12, MBOX_HEIGHT );
462 HelpID = HID_SWPAGE_BOTTOM_MARGIN;
472 MetricField FLD_WIDTH_HEIGHT
487 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/format_L_narrow_24x24.png";};
491 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/format_L_nomal_24x24.png";};
495 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/format_L_wide_24x24.png";};
499 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/format_L_mirror_24x24.png";};
503 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/formatnarrow_24x24.png";};
507 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/formatnormal_24x24.png";};
511 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/formatwide_24x24.png";};
515 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/formatmirror_24x24.png";};
519 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/last_custom_common.png";};
523 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/last_custom_common_grey.png";};
527 Text [ en-US ] = "Last Custom Values";
531 Text [ en-US ] = "Narrow";
535 Text [ en-US ] = "Normal";
539 Text [ en-US ] = "Wide";
543 Text [ en-US ] = "Mirrored";
545 String STR_MARGIN_TOOLTIP_LEFT
547 Text [ en-US ] = "Left: ";
549 String STR_MARGIN_TOOLTIP_RIGHT
551 Text [ en-US ] = ". Right: ";
553 String STR_MARGIN_TOOLTIP_INNER
555 Text [ en-US ] = "Inner: ";
557 String STR_MARGIN_TOOLTIP_OUTER
559 Text [ en-US ] = ". Outer: ";
561 String STR_MARGIN_TOOLTIP_TOP
563 Text [ en-US ] = ". Top: ";
565 String STR_MARGIN_TOOLTIP_BOT
567 Text [ en-US ] = ". Bottom: ";
571 // popup for page style's page size
572 Control RID_POPUP_SWPAGE_SIZE
575 DialogControl = TRUE;
577 Size = MAP_APPFONT( POPUPPANEL_MARGIN_SMALL * 2 + POPUP_BORDER_WIDTH + VS_WIDTH + 22, ITEM_HEIGHT2*8 + POPUPPANEL_MARGIN_SMALL*2 + CONTROL_SPACING_VERTICAL + 15 );
581 Pos = MAP_APPFONT( POPUPPANEL_MARGIN_SMALL + OFFSET_X, POPUPPANEL_MARGIN_SMALL + OFFSET_Y);
582 Size = MAP_APPFONT ( VS_WIDTH + 22 , ITEM_HEIGHT2*8);
583 HelpID = HID_SWPAGE_VS_SIZE;
587 PushButton CB_SIZE_MORE
589 Pos = MAP_APPFONT ( POPUPPANEL_MARGIN_SMALL + 2*OFFSET_X, POPUPPANEL_MARGIN_SMALL + 2*OFFSET_Y + ITEM_HEIGHT2*8 ) ;
590 Size = MAP_APPFONT ( VS_WIDTH - 2 + 22, 15 ) ;
591 HelpID = HID_SWPAGE_SIZE_MORE;
593 Text [ en-US ] = "~More Options";
594 QuickHelpText [ en-US ] = "More Options" ;
596 MetricField FLD_WIDTH_HEIGHT
610 // popup for page style's column attribute
611 Control RID_POPUP_SWPAGE_COLUMN
614 DialogControl = TRUE;
616 Size = MAP_APPFONT( POPUPPANEL_MARGIN_SMALL * 2 + POPUP_BORDER_WIDTH + VS_WIDTH - 15, ITEM_HEIGHT*5 + POPUPPANEL_MARGIN_SMALL*2 + CONTROL_SPACING_VERTICAL + 15 );
620 Pos = MAP_APPFONT( POPUPPANEL_MARGIN_SMALL + OFFSET_X, POPUPPANEL_MARGIN_SMALL + OFFSET_Y);
621 Size = MAP_APPFONT ( VS_WIDTH -15 , ITEM_HEIGHT*5);
622 HelpID = HID_SWPAGE_VS_COLUMN;
626 PushButton CB_COLUMN_MORE
628 Pos = MAP_APPFONT ( POPUPPANEL_MARGIN_SMALL + 2*OFFSET_X, POPUPPANEL_MARGIN_SMALL + 2*OFFSET_Y + ITEM_HEIGHT*5 ) ;
629 Size = MAP_APPFONT ( VS_WIDTH - 2 - 15, 15 ) ;
630 HelpID = HID_SWPAGE_COLUMN_MORE;
632 Text [ en-US ] = "~More Options";
633 QuickHelpText [ en-US ] = "More Options" ;
637 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column_L_1_24x24.png";};
641 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column_L_2_24x24.png";};
645 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column_L_3_24x24.png";};
649 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column_L_left_24x24.png";};
653 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column_L_right_24x24.png";};
657 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column1_24x24.png";};
661 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column2_24x24.png";};
665 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column3_24x24.png";};
669 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/columnleft_24x24.png";};
673 ImageBitmap = Bitmap{File = "sidebar/pageproppanel/columnright_24x24.png";};
677 Text [ en-US ] = "1 Column";
681 Text [ en-US ] = "2 Columns";
685 Text [ en-US ] = "3 Columns";
689 Text [ en-US ] = "Left";
693 Text [ en-US ] = "Right";