/* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #include #include "PropertyPanel.hrc" #include "PagePropertyPanel.hrc" #include "helpid.h" // page property panel control Control RID_PROPERTYPANEL_SWPAGE { OutputSize = TRUE; DialogControl = TRUE; Border = FALSE; Size = MAP_APPFONT( PROPERTYPAGE_WIDTH, PAGE_HEIGHT ); HelpID = HID_PROPERTYPANEL_SWPAGE_SECTION; Text = "Page"; FixedText FT_ORIENTATION { Pos = MAP_APPFONT ( FT_ORIENTATION_X, FT_ORIENTATION_Y ); Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT) ; Text [ en-US ] = "~Orientation:"; }; ToolBox TB_ORIENTATION { Pos = MAP_APPFONT (TBX_ORIENTATION_X, TBX_ORIENTATION_Y) ; HelpID = HID_SWPAGE_ORIENTATION; SVLook = TRUE ; TabStop = TRUE ; Text = "Orientation" ; ItemList = { ToolBoxItem { HelpID = HID_SWPAGE_TBI_ORIENTATION; Identifier = TBI_ORIENTATION ; Text [ en-US ] = "Orientation" ; DropDown = TRUE ; }; }; }; String STR_QHELP_TB_ORIENTATION { Text [ en-US ] = "Select the paper orientation - vertically (portrait) or horizontally (landscape) - for the current page style."; }; FixedText FT_MARGIN { Pos = MAP_APPFONT ( FT_MARGIN_X, FT_MARGIN_Y ); Size = MAP_APPFONT ( MBOX_WIDTH + 50, TEXT_HEIGHT) ; Text [ en-US ] = "~Margin:"; }; ToolBox TB_MARGIN { SVLook = TRUE ; Pos = MAP_APPFONT (TBX_MARGIN_X, TBX_MARGIN_Y) ; HelpID = HID_SWPAGE_MARGIN; TabStop = TRUE ; Text = "Margin" ; ItemList = { ToolBoxItem { HelpID = HID_SWPAGE_TBI_MARGIN; Identifier = TBI_MARGIN ; Text [ en-US ] = "Margin" ; DropDown = TRUE ; }; }; }; String STR_QHELP_TB_MARGIN { Text [ en-US ] = "Select the margin values for the current page style."; }; FixedText FT_SIZE { Pos = MAP_APPFONT ( FT_SIZE_X, FT_SIZE_Y ); Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT) ; Text [ en-US ] = "~Size:"; }; ToolBox TB_SIZE { SVLook = TRUE ; Pos = MAP_APPFONT ( TBX_SIZE_X , TBX_SIZE_Y ) ; HelpID = HID_SWPAGE_SIZE; TabStop = TRUE ; Text = "Size" ; ItemList = { ToolBoxItem { HelpID = HID_SWPAGE_TBI_SIZE; Identifier = TBI_SIZE ; Text [ en-US ] = "Size" ; DropDown = TRUE ; }; }; }; String STR_QHELP_TB_SIZE { Text [ en-US ] = "Select a predefined paper size for the current page style."; }; FixedText FT_COLUMN { Pos = MAP_APPFONT ( FT_COLUMN_X, FT_COLUMN_Y ); Size = MAP_APPFONT ( MBOX_WIDTH + 50, TEXT_HEIGHT) ; Text [ en-US ] = "~Column:"; }; ToolBox TB_COLUMN { SVLook = TRUE ; Pos = MAP_APPFONT ( TBX_COLUMN_X , TBX_COLUMN_Y ) ; HelpID = HID_SWPAGE_COLUMN; TabStop = TRUE ; Text = "Column" ; ItemList = { ToolBoxItem { HelpID = HID_SWPAGE_TBI_COLUMN; Identifier = TBI_COLUMN; Text [ en-US ] = "Column" ; DropDown = TRUE ; }; }; }; String STR_QHELP_TB_COLUMN { Text [ en-US ] = "Select the layout and the number of columns for the current page style."; }; Image IMG_PAGE_PORTRAIT { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/portraitcopy_24x24.png";}; }; Image IMG_PAGE_LANDSCAPE { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/Landscapecopy_24x24.png";}; }; Image IMG_PAGE_NARROW { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/format_L_narrow_24x24.png";}; }; Image IMG_PAGE_NORMAL { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/format_L_nomal_24x24.png";}; }; Image IMG_PAGE_WIDE { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/format_L_wide_24x24.png";}; }; Image IMG_PAGE_MIRRORED { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/format_L_mirror_24x24.png";}; }; Image IMG_PAGE_MARGIN_CUSTOM { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/format_L_copy_24x24.png";}; }; Image IMG_PAGE_NARROW_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/formatnarrow_24x24.png";}; }; Image IMG_PAGE_NORMAL_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/formatnormal_24x24.png";}; }; Image IMG_PAGE_WIDE_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/formatwide_24x24.png";}; }; Image IMG_PAGE_MIRRORED_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/formatmirror_24x24.png";}; }; Image IMG_PAGE_MARGIN_CUSTOM_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/formatcopy_24x24.png";}; }; Image IMG_PAGE_A3 { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsize_L_A3_24x24.png";}; }; Image IMG_PAGE_A4 { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsize_L_A4_24x24.png";}; }; Image IMG_PAGE_A5 { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsize_L_A5_24x24.png";}; }; Image IMG_PAGE_B4 { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsize_L_B4_24x24.png";}; }; Image IMG_PAGE_B5 { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsize_L_B5_24x24.png";}; }; Image IMG_PAGE_C5 { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsize_L_C5_24x24.png";}; }; Image IMG_PAGE_LETTER { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsize_L_copy_24x24.png";}; }; Image IMG_PAGE_LEGAL { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsize_L_copy_24x24.png";}; }; Image IMG_PAGE_SIZE_NONE { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsize_L_copy_24x24.png";}; }; Image IMG_PAGE_A3_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsizeA3_24x24.png";}; }; Image IMG_PAGE_A4_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsizeA4_24x24.png";}; }; Image IMG_PAGE_A5_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsizeA5_24x24.png";}; }; Image IMG_PAGE_B4_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsizeB4_24x24.png";}; }; Image IMG_PAGE_B5_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsizeB5_24x24.png";}; }; Image IMG_PAGE_C5_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsizeC5_24x24.png";}; }; Image IMG_PAGE_LETTER_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsizecopy_24x24.png";}; }; Image IMG_PAGE_LEGAL_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsizecopy_24x24.png";}; }; Image IMG_PAGE_SIZE_NONE_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/documentsizecopy_24x24.png";}; }; Image IMG_PAGE_COLUMN_1 { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column_L_1_24x24.png";}; }; Image IMG_PAGE_COLUMN_2 { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column_L_2_24x24.png";}; }; Image IMG_PAGE_COLUMN_3 { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column_L_3_24x24.png";}; }; Image IMG_PAGE_COLUMN_LEFT { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column_L_left_24x24.png";}; }; Image IMG_PAGE_COLUMN_RIGHT { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column_L_right_24x24.png";}; }; Image IMG_PAGE_COLUMN_NONE { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column_L_copy_24x24.png";}; }; Image IMG_PAGE_COLUMN_1_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column1_24x24.png";}; }; Image IMG_PAGE_COLUMN_2_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column2_24x24.png";}; }; Image IMG_PAGE_COLUMN_3_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column3_24x24.png";}; }; Image IMG_PAGE_COLUMN_LEFT_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/columnleft_24x24.png";}; }; Image IMG_PAGE_COLUMN_RIGHT_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/columnright_24x24.png";}; }; Image IMG_PAGE_COLUMN_NONE_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/columncopy_24x24.png";}; }; }; // popup for page orientation attribute Control RID_POPUP_SWPAGE_ORIENTATION { OutputSize = TRUE; DialogControl = TRUE; Border = FALSE; Size = MAP_APPFONT( POPUPPANEL_MARGIN_SMALL * 2 + POPUP_BORDER_WIDTH + VS_WIDTH, ITEM_HEIGHT*2 + POPUPPANEL_MARGIN_SMALL*2 ); Control VS_ORIENTATION { Pos = MAP_APPFONT( POPUPPANEL_MARGIN_SMALL + OFFSET_X, POPUPPANEL_MARGIN_SMALL + OFFSET_Y); Size = MAP_APPFONT ( VS_WIDTH , ITEM_HEIGHT*2); HelpID = HID_SWPAGE_VS_ORIENTATION; TabStop = TRUE ; Text = "Orientation"; }; Image IMG_PORTRAIT { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/portraitcopy_24x24.png";}; }; Image IMG_LANDSCAPE { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/Landscapecopy_24x24.png";}; }; String STR_PORTRAIT { Text [ en-US ] = "Portrait"; }; String STR_LANDSCAPE { Text [ en-US ] = "Landscape"; }; }; // popup for page style's margin attributes Control RID_POPUP_SWPAGE_MARGIN { OutputSize = TRUE; DialogControl = TRUE; Border = FALSE; Size = MAP_APPFONT( POPUPPANEL_MARGIN_SMALL * 2 + POPUP_BORDER_WIDTH + VS_WIDTH, MARGIN_PANEL_HEIGHT ); Control VS_MARGIN { Pos = MAP_APPFONT( POPUPPANEL_MARGIN_SMALL + OFFSET_X, POPUPPANEL_MARGIN_SMALL + OFFSET_Y ); Size = MAP_APPFONT ( VS_WIDTH , ITEM_HEIGHT*5); HelpID = HID_SWPAGE_VS_MARGIN; TabStop = TRUE ; Text = "Margin"; }; FixedText FT_CUSTOM { Pos = MAP_APPFONT ( FT_CUSTOM_X, FT_CUSTOM_Y ); Size = MAP_APPFONT ( MBOX_WIDTH + 30, TEXT_HEIGHT) ; Text [ en-US ] = "Custom:"; }; FixedText FT_LEFT { Pos = MAP_APPFONT ( FT_X, FT_LEFT_Y ); Size = MAP_APPFONT ( 25, TEXT_HEIGHT) ; Text [ en-US ] = "~Left:"; }; FixedText FT_INNER { Pos = MAP_APPFONT ( FT_X, FT_LEFT_Y ); Size = MAP_APPFONT ( 25, TEXT_HEIGHT) ; Text [ en-US ] = "I~nner:"; }; MetricField MF_SWLEFT_MARGIN { Border = TRUE; Pos = MAP_APPFONT ( MF_X , LEFT_MF_Y ); Size = MAP_APPFONT ( MBOX_WIDTH - 12, MBOX_HEIGHT ); HelpID = HID_SWPAGE_LEFT_MARGIN; Left = TRUE; Repeat = TRUE; Spin = TRUE; Maximum = 9999; DecimalDigits = 2; Unit = FUNIT_CM; Last = 9999; SpinSize = 10; }; FixedText FT_RIGHT { Pos = MAP_APPFONT ( FT_X, FT_RIGHT_Y ); Size = MAP_APPFONT ( 25, TEXT_HEIGHT) ; Text [ en-US ] = "~Right:"; }; FixedText FT_OUTER { Pos = MAP_APPFONT ( FT_X, FT_RIGHT_Y ); Size = MAP_APPFONT ( 25, TEXT_HEIGHT) ; Text [ en-US ] = "O~uter:"; }; MetricField MF_SWRIGHT_MARGIN { Border = TRUE; Pos = MAP_APPFONT ( MF_X , RIGHT_MF_Y ); Size = MAP_APPFONT ( MBOX_WIDTH - 12, MBOX_HEIGHT ); HelpID = HID_SWPAGE_RIGHT_MARGIN; Left = TRUE; Repeat = TRUE; Spin = TRUE; Maximum = 9999; DecimalDigits = 2; Unit = FUNIT_CM; Last = 9999; SpinSize = 10; }; FixedText FT_TOP { Pos = MAP_APPFONT ( FT_X, FT_TOP_Y ); Size = MAP_APPFONT ( 25, TEXT_HEIGHT) ; Text [ en-US ] = "~Top:"; }; MetricField MF_SWTOP_MARGIN { Border = TRUE; Pos = MAP_APPFONT ( MF_X , TOP_MF_Y ); Size = MAP_APPFONT ( MBOX_WIDTH - 12, MBOX_HEIGHT ); HelpID = HID_SWPAGE_TOP_MARGIN; Left = TRUE; Repeat = TRUE; Spin = TRUE; Maximum = 9999; DecimalDigits = 2; Unit = FUNIT_CM; Last = 9999; SpinSize = 10; }; FixedText FT_BOTTOM { Pos = MAP_APPFONT ( FT_X, FT_BOTTOM_Y ); Size = MAP_APPFONT ( 25, TEXT_HEIGHT) ; Text [ en-US ] = "~Bottom:"; }; MetricField MF_SWBOTTOM_MARGIN { Border = TRUE; Pos = MAP_APPFONT ( MF_X , BOTTOM_MF_Y ); Size = MAP_APPFONT ( MBOX_WIDTH - 12, MBOX_HEIGHT ); HelpID = HID_SWPAGE_BOTTOM_MARGIN; Left = TRUE; Repeat = TRUE; Spin = TRUE; Maximum = 9999; DecimalDigits = 2; Unit = FUNIT_CM; Last = 9999; SpinSize = 10; }; MetricField FLD_WIDTH_HEIGHT { Border = TRUE; Left = TRUE; Repeat = TRUE; Spin = TRUE; Maximum = 9999; DecimalDigits = 2; Unit = FUNIT_CM; Last = 9999; SpinSize = 10; }; Image IMG_NARROW { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/format_L_narrow_24x24.png";}; }; Image IMG_NORMAL { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/format_L_nomal_24x24.png";}; }; Image IMG_WIDE { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/format_L_wide_24x24.png";}; }; Image IMG_MIRRORED { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/format_L_mirror_24x24.png";}; }; Image IMG_NARROW_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/formatnarrow_24x24.png";}; }; Image IMG_NORMAL_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/formatnormal_24x24.png";}; }; Image IMG_WIDE_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/formatwide_24x24.png";}; }; Image IMG_MIRRORED_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/formatmirror_24x24.png";}; }; Image IMG_CUSTOM { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/last_custom_common.png";}; }; Image IMG_CUSTOM_DIS { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/last_custom_common_grey.png";}; }; String STR_LCVALUE { Text [ en-US ] = "Last Custom Values"; }; String STR_NARROW { Text [ en-US ] = "Narrow"; }; String STR_NORMAL { Text [ en-US ] = "Normal"; }; String STR_WIDE { Text [ en-US ] = "Wide"; }; String STR_MIRRORED { Text [ en-US ] = "Mirrored"; }; String STR_MARGIN_TOOLTIP_LEFT { Text [ en-US ] = "Left: "; }; String STR_MARGIN_TOOLTIP_RIGHT { Text [ en-US ] = ". Right: "; }; String STR_MARGIN_TOOLTIP_INNER { Text [ en-US ] = "Inner: "; }; String STR_MARGIN_TOOLTIP_OUTER { Text [ en-US ] = ". Outer: "; }; String STR_MARGIN_TOOLTIP_TOP { Text [ en-US ] = ". Top: "; }; String STR_MARGIN_TOOLTIP_BOT { Text [ en-US ] = ". Bottom: "; }; }; // popup for page style's page size Control RID_POPUP_SWPAGE_SIZE { OutputSize = TRUE; DialogControl = TRUE; Border = FALSE; Size = MAP_APPFONT( POPUPPANEL_MARGIN_SMALL * 2 + POPUP_BORDER_WIDTH + VS_WIDTH + 22, ITEM_HEIGHT2*8 + POPUPPANEL_MARGIN_SMALL*2 + CONTROL_SPACING_VERTICAL + 15 ); Control VS_SIZE { Pos = MAP_APPFONT( POPUPPANEL_MARGIN_SMALL + OFFSET_X, POPUPPANEL_MARGIN_SMALL + OFFSET_Y); Size = MAP_APPFONT ( VS_WIDTH + 22 , ITEM_HEIGHT2*8); HelpID = HID_SWPAGE_VS_SIZE; TabStop = TRUE ; Text = "Size"; }; PushButton CB_SIZE_MORE { Pos = MAP_APPFONT ( POPUPPANEL_MARGIN_SMALL + 2*OFFSET_X, POPUPPANEL_MARGIN_SMALL + 2*OFFSET_Y + ITEM_HEIGHT2*8 ) ; Size = MAP_APPFONT ( VS_WIDTH - 2 + 22, 15 ) ; HelpID = HID_SWPAGE_SIZE_MORE; TabStop = TRUE ; Text [ en-US ] = "~More Options"; QuickHelpText [ en-US ] = "More Options" ; }; MetricField FLD_WIDTH_HEIGHT { Border = TRUE; Left = TRUE; Repeat = TRUE; Spin = TRUE; Maximum = 9999; DecimalDigits = 2; Unit = FUNIT_CM; Last = 9999; SpinSize = 10; }; }; // popup for page style's column attribute Control RID_POPUP_SWPAGE_COLUMN { OutputSize = TRUE; DialogControl = TRUE; Border = FALSE; Size = MAP_APPFONT( POPUPPANEL_MARGIN_SMALL * 2 + POPUP_BORDER_WIDTH + VS_WIDTH - 15, ITEM_HEIGHT*5 + POPUPPANEL_MARGIN_SMALL*2 + CONTROL_SPACING_VERTICAL + 15 ); Control VS_COLUMN { Pos = MAP_APPFONT( POPUPPANEL_MARGIN_SMALL + OFFSET_X, POPUPPANEL_MARGIN_SMALL + OFFSET_Y); Size = MAP_APPFONT ( VS_WIDTH -15 , ITEM_HEIGHT*5); HelpID = HID_SWPAGE_VS_COLUMN; TabStop = TRUE ; Text = "Column"; }; PushButton CB_COLUMN_MORE { Pos = MAP_APPFONT ( POPUPPANEL_MARGIN_SMALL + 2*OFFSET_X, POPUPPANEL_MARGIN_SMALL + 2*OFFSET_Y + ITEM_HEIGHT*5 ) ; Size = MAP_APPFONT ( VS_WIDTH - 2 - 15, 15 ) ; HelpID = HID_SWPAGE_COLUMN_MORE; TabStop = TRUE ; Text [ en-US ] = "~More Options"; QuickHelpText [ en-US ] = "More Options" ; }; Image IMG_ONE { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column_L_1_24x24.png";}; }; Image IMG_TWO { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column_L_2_24x24.png";}; }; Image IMG_THREE { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column_L_3_24x24.png";}; }; Image IMG_LEFT { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column_L_left_24x24.png";}; }; Image IMG_RIGHT { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column_L_right_24x24.png";}; }; Image IMG_ONE_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column1_24x24.png";}; }; Image IMG_TWO_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column2_24x24.png";}; }; Image IMG_THREE_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/column3_24x24.png";}; }; Image IMG_LEFT_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/columnleft_24x24.png";}; }; Image IMG_RIGHT_L { ImageBitmap = Bitmap{File = "sidebar/pageproppanel/columnright_24x24.png";}; }; String STR_ONE { Text [ en-US ] = "1 Column"; }; String STR_TWO { Text [ en-US ] = "2 Columns"; }; String STR_THREE { Text [ en-US ] = "3 Columns"; }; String STR_LEFT { Text [ en-US ] = "Left"; }; String STR_RIGHT { Text [ en-US ] = "Right"; }; };