1*ff0525f2SOliver-Rainer Wittmann/************************************************************** 2*ff0525f2SOliver-Rainer Wittmann* 3*ff0525f2SOliver-Rainer Wittmann* Licensed to the Apache Software Foundation (ASF) under one 4*ff0525f2SOliver-Rainer Wittmann* or more contributor license agreements. See the NOTICE file 5*ff0525f2SOliver-Rainer Wittmann* distributed with this work for additional information 6*ff0525f2SOliver-Rainer Wittmann* regarding copyright ownership. The ASF licenses this file 7*ff0525f2SOliver-Rainer Wittmann* to you under the Apache License, Version 2.0 (the 8*ff0525f2SOliver-Rainer Wittmann* "License"); you may not use this file except in compliance 9*ff0525f2SOliver-Rainer Wittmann* with the License. You may obtain a copy of the License at 10*ff0525f2SOliver-Rainer Wittmann* 11*ff0525f2SOliver-Rainer Wittmann* http://www.apache.org/licenses/LICENSE-2.0 12*ff0525f2SOliver-Rainer Wittmann* 13*ff0525f2SOliver-Rainer Wittmann* Unless required by applicable law or agreed to in writing, 14*ff0525f2SOliver-Rainer Wittmann* software distributed under the License is distributed on an 15*ff0525f2SOliver-Rainer Wittmann* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*ff0525f2SOliver-Rainer Wittmann* KIND, either express or implied. See the License for the 17*ff0525f2SOliver-Rainer Wittmann* specific language governing permissions and limitations 18*ff0525f2SOliver-Rainer Wittmann* under the License. 19*ff0525f2SOliver-Rainer Wittmann* 20*ff0525f2SOliver-Rainer Wittmann*************************************************************/ 21*ff0525f2SOliver-Rainer Wittmann 22*ff0525f2SOliver-Rainer Wittmann//#include <sfx2/propertypanel.hrc> 23*ff0525f2SOliver-Rainer Wittmann#include "PropertyPanel.hrc" 24*ff0525f2SOliver-Rainer Wittmann 25*ff0525f2SOliver-Rainer Wittmann#define FT_ORIENTATION 1 26*ff0525f2SOliver-Rainer Wittmann#define TB_ORIENTATION 2 27*ff0525f2SOliver-Rainer Wittmann#define FT_MARGIN 3 28*ff0525f2SOliver-Rainer Wittmann#define TB_MARGIN 4 29*ff0525f2SOliver-Rainer Wittmann#define FT_SIZE 5 30*ff0525f2SOliver-Rainer Wittmann#define TB_SIZE 6 31*ff0525f2SOliver-Rainer Wittmann#define FT_COLUMN 7 32*ff0525f2SOliver-Rainer Wittmann#define TB_COLUMN 8 33*ff0525f2SOliver-Rainer Wittmann#define TBI_MARGIN 9 34*ff0525f2SOliver-Rainer Wittmann#define IMG_PORTRAIT 10 35*ff0525f2SOliver-Rainer Wittmann#define IMG_LANDSCAPE 11 36*ff0525f2SOliver-Rainer Wittmann#define STR_PORTRAIT 12 37*ff0525f2SOliver-Rainer Wittmann#define STR_LANDSCAPE 13 38*ff0525f2SOliver-Rainer Wittmann#define ED_SWPAPER_WIDTH 14 39*ff0525f2SOliver-Rainer Wittmann#define ED_SWPAPER_HEIGHT 15 40*ff0525f2SOliver-Rainer Wittmann#define LB_SWPAPER_TRAY 16 41*ff0525f2SOliver-Rainer Wittmann#define LB_SWPAPER_SIZE 17 42*ff0525f2SOliver-Rainer Wittmann#define MF_SWLEFT_MARGIN 18 43*ff0525f2SOliver-Rainer Wittmann#define MF_SWRIGHT_MARGIN 19 44*ff0525f2SOliver-Rainer Wittmann#define MF_SWTOP_MARGIN 20 45*ff0525f2SOliver-Rainer Wittmann#define MF_SWBOTTOM_MARGIN 21 46*ff0525f2SOliver-Rainer Wittmann#define TBI_SIZE 22 47*ff0525f2SOliver-Rainer Wittmann#define VS_SIZE 23 48*ff0525f2SOliver-Rainer Wittmann#define STR_LCVALUE 24 49*ff0525f2SOliver-Rainer Wittmann#define FT_CUSTOM 25 50*ff0525f2SOliver-Rainer Wittmann#define FLD_WIDTH_HEIGHT 26 51*ff0525f2SOliver-Rainer Wittmann 52*ff0525f2SOliver-Rainer Wittmann#define TBI_ORIENTATION 28 53*ff0525f2SOliver-Rainer Wittmann#define VS_ORIENTATION 29 54*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_PORTRAIT 30 55*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_LANDSCAPE 31 56*ff0525f2SOliver-Rainer Wittmann#define IMG_NARROW 32 57*ff0525f2SOliver-Rainer Wittmann#define IMG_NORMAL 33 58*ff0525f2SOliver-Rainer Wittmann#define IMG_WIDE 34 59*ff0525f2SOliver-Rainer Wittmann#define IMG_MIRRORED 35 60*ff0525f2SOliver-Rainer Wittmann#define STR_NARROW 36 61*ff0525f2SOliver-Rainer Wittmann#define STR_NORMAL 37 62*ff0525f2SOliver-Rainer Wittmann#define STR_WIDE 38 63*ff0525f2SOliver-Rainer Wittmann#define STR_MIRRORED 39 64*ff0525f2SOliver-Rainer Wittmann#define VS_MARGIN 40 65*ff0525f2SOliver-Rainer Wittmann#define IMG_CUSTOM 41 66*ff0525f2SOliver-Rainer Wittmann#define FT_LEFT 42 67*ff0525f2SOliver-Rainer Wittmann#define FT_RIGHT 43 68*ff0525f2SOliver-Rainer Wittmann#define FT_TOP 44 69*ff0525f2SOliver-Rainer Wittmann#define FT_BOTTOM 45 70*ff0525f2SOliver-Rainer Wittmann#define FT_INNER 46 71*ff0525f2SOliver-Rainer Wittmann#define FT_OUTER 47 72*ff0525f2SOliver-Rainer Wittmann#define TBI_COLUMN 48 73*ff0525f2SOliver-Rainer Wittmann#define VS_COLUMN 49 74*ff0525f2SOliver-Rainer Wittmann#define MBOX_WIDTH 50 75*ff0525f2SOliver-Rainer Wittmann#define IMG_ONE 51 76*ff0525f2SOliver-Rainer Wittmann#define IMG_TWO 52 77*ff0525f2SOliver-Rainer Wittmann#define IMG_THREE 53 78*ff0525f2SOliver-Rainer Wittmann#define IMG_LEFT 54 79*ff0525f2SOliver-Rainer Wittmann#define IMG_RIGHT 55 80*ff0525f2SOliver-Rainer Wittmann#define STR_ONE 56 81*ff0525f2SOliver-Rainer Wittmann#define STR_TWO 57 82*ff0525f2SOliver-Rainer Wittmann#define STR_THREE 58 83*ff0525f2SOliver-Rainer Wittmann#define STR_LEFT 59 84*ff0525f2SOliver-Rainer Wittmann#define STR_RIGHT 60 85*ff0525f2SOliver-Rainer Wittmann#define CB_COLUMN_MORE 61 86*ff0525f2SOliver-Rainer Wittmann 87*ff0525f2SOliver-Rainer Wittmann#define CB_SIZE_MORE 61 88*ff0525f2SOliver-Rainer Wittmann 89*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_NARROW 64 90*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_NORMAL 65 91*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_WIDE 63 92*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_MIRRORED 67 93*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_MARGIN_CUSTOM 68 94*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_A3 69 95*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_A4 70 96*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_A5 71 97*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_B4 72 98*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_B5 73 99*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_C5 74 100*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_LETTER 75 101*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_LEGAL 76 102*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_COLUMN_1 77 103*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_COLUMN_2 78 104*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_COLUMN_3 79 105*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_COLUMN_LEFT 80 106*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_COLUMN_RIGHT 81 107*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_SIZE_NONE 82 108*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_COLUMN_NONE 83 109*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_COLUMN_1_L 84 110*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_COLUMN_2_L 85 111*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_COLUMN_3_L 86 112*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_COLUMN_LEFT_L 87 113*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_COLUMN_RIGHT_L 88 114*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_COLUMN_NONE_L 89 115*ff0525f2SOliver-Rainer Wittmann#define IMG_ONE_L 90 116*ff0525f2SOliver-Rainer Wittmann#define IMG_TWO_L 91 117*ff0525f2SOliver-Rainer Wittmann#define IMG_THREE_L 92 118*ff0525f2SOliver-Rainer Wittmann#define IMG_LEFT_L 93 119*ff0525f2SOliver-Rainer Wittmann#define IMG_RIGHT_L 94 120*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_A3_L 95 121*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_A4_L 96 122*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_A5_L 97 123*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_B4_L 98 124*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_B5_L 99 125*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_C5_L 100 126*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_LETTER_L 101 127*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_LEGAL_L 102 128*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_SIZE_NONE_L 103 129*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_NARROW_L 104 130*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_NORMAL_L 105 131*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_WIDE_L 106 132*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_MIRRORED_L 107 133*ff0525f2SOliver-Rainer Wittmann#define IMG_PAGE_MARGIN_CUSTOM_L 108 134*ff0525f2SOliver-Rainer Wittmann#define IMG_NARROW_L 109 135*ff0525f2SOliver-Rainer Wittmann#define IMG_NORMAL_L 110 136*ff0525f2SOliver-Rainer Wittmann#define IMG_WIDE_L 111 137*ff0525f2SOliver-Rainer Wittmann#define IMG_MIRRORED_L 112 138*ff0525f2SOliver-Rainer Wittmann#define FLD_LEFT_MARGIN 113 139*ff0525f2SOliver-Rainer Wittmann#define FLD_RIGHT_MARGIN 114 140*ff0525f2SOliver-Rainer Wittmann#define FLD_TOP_MARGIN 115 141*ff0525f2SOliver-Rainer Wittmann#define FLD_BOTTOM_MARGIN 116 142*ff0525f2SOliver-Rainer Wittmann 143*ff0525f2SOliver-Rainer Wittmann#define STR_QHELP_TB_ORIENTATION 117 144*ff0525f2SOliver-Rainer Wittmann#define STR_QHELP_TB_MARGIN 118 145*ff0525f2SOliver-Rainer Wittmann#define STR_QHELP_TB_SIZE 119 146*ff0525f2SOliver-Rainer Wittmann#define STR_QHELP_TB_COLUMN 120 147*ff0525f2SOliver-Rainer Wittmann#define IMG_CUSTOM_DIS 121 148*ff0525f2SOliver-Rainer Wittmann// 149*ff0525f2SOliver-Rainer Wittmann#define STR_MARGIN_TOOLTIP_LEFT 122 150*ff0525f2SOliver-Rainer Wittmann#define STR_MARGIN_TOOLTIP_RIGHT 123 151*ff0525f2SOliver-Rainer Wittmann#define STR_MARGIN_TOOLTIP_INNER 124 152*ff0525f2SOliver-Rainer Wittmann#define STR_MARGIN_TOOLTIP_OUTER 125 153*ff0525f2SOliver-Rainer Wittmann#define STR_MARGIN_TOOLTIP_TOP 126 154*ff0525f2SOliver-Rainer Wittmann#define STR_MARGIN_TOOLTIP_BOT 127 155*ff0525f2SOliver-Rainer Wittmann 156*ff0525f2SOliver-Rainer Wittmann#define POPUP_MARGIN 4 157*ff0525f2SOliver-Rainer Wittmann#define VS_WIDTH 78 158*ff0525f2SOliver-Rainer Wittmann#define ITEM_HEIGHT 17 159*ff0525f2SOliver-Rainer Wittmann#define ITEM_HEIGHT2 15 160*ff0525f2SOliver-Rainer Wittmann 161*ff0525f2SOliver-Rainer Wittmann//========================================Position============================================== 162*ff0525f2SOliver-Rainer Wittmann 163*ff0525f2SOliver-Rainer Wittmann#define FT_ORIENTATION_X SECTIONPAGE_MARGIN_HORIZONTAL 164*ff0525f2SOliver-Rainer Wittmann#define FT_ORIENTATION_Y SECTIONPAGE_MARGIN_VERTICAL_TOP 165*ff0525f2SOliver-Rainer Wittmann#define TBX_ORIENTATION_X FT_ORIENTATION_X 166*ff0525f2SOliver-Rainer Wittmann#define TBX_ORIENTATION_Y FT_ORIENTATION_Y + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL 167*ff0525f2SOliver-Rainer Wittmann#define FT_MARGIN_X FT_ORIENTATION_X + MBOX_WIDTH + CONTROL_SPACING_HORIZONTAL 168*ff0525f2SOliver-Rainer Wittmann#define FT_MARGIN_Y FT_ORIENTATION_Y 169*ff0525f2SOliver-Rainer Wittmann#define TBX_MARGIN_X FT_MARGIN_X 170*ff0525f2SOliver-Rainer Wittmann#define TBX_MARGIN_Y TBX_ORIENTATION_Y 171*ff0525f2SOliver-Rainer Wittmann#define FT_SIZE_X FT_ORIENTATION_X 172*ff0525f2SOliver-Rainer Wittmann#define FT_SIZE_Y TBX_ORIENTATION_Y + 20 + CONTROL_SPACING_VERTICAL 173*ff0525f2SOliver-Rainer Wittmann#define TBX_SIZE_X FT_SIZE_X 174*ff0525f2SOliver-Rainer Wittmann#define TBX_SIZE_Y FT_SIZE_Y + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL 175*ff0525f2SOliver-Rainer Wittmann#define FT_COLUMN_X FT_MARGIN_X 176*ff0525f2SOliver-Rainer Wittmann#define FT_COLUMN_Y FT_SIZE_Y 177*ff0525f2SOliver-Rainer Wittmann#define TBX_COLUMN_X FT_COLUMN_X 178*ff0525f2SOliver-Rainer Wittmann#define TBX_COLUMN_Y TBX_SIZE_Y 179*ff0525f2SOliver-Rainer Wittmann 180*ff0525f2SOliver-Rainer Wittmann#define FT_CUSTOM_X POPUP_MARGIN + OFFSET_X 181*ff0525f2SOliver-Rainer Wittmann#define FT_CUSTOM_Y POPUPPANEL_MARGIN_SMALL * 2 + ITEM_HEIGHT * 5 182*ff0525f2SOliver-Rainer Wittmann 183*ff0525f2SOliver-Rainer Wittmann#define POP_BORDER_X POPUP_MARGIN + OFFSET_X + 1 184*ff0525f2SOliver-Rainer Wittmann#define POP_BORDER_Y POPUPPANEL_MARGIN_SMALL * 3 + ITEM_HEIGHT * 5 + TEXT_HEIGHT 185*ff0525f2SOliver-Rainer Wittmann#define BD_WIDTH VS_WIDTH - 6 186*ff0525f2SOliver-Rainer Wittmann#define BD_HEIGHT MBOX_HEIGHT*4 + CONTROL_SPACING_VERTICAL*5 187*ff0525f2SOliver-Rainer Wittmann 188*ff0525f2SOliver-Rainer Wittmann#define FT_X POP_BORDER_X + CONTROL_SPACING_HORIZONTAL 189*ff0525f2SOliver-Rainer Wittmann#define MF_X FT_X + 25 + CONTROL_SPACING_HORIZONTAL 190*ff0525f2SOliver-Rainer Wittmann#define LEFT_MF_Y POP_BORDER_Y + CONTROL_SPACING_VERTICAL 191*ff0525f2SOliver-Rainer Wittmann#define RIGHT_MF_Y LEFT_MF_Y + MBOX_HEIGHT + CONTROL_SPACING_VERTICAL 192*ff0525f2SOliver-Rainer Wittmann#define TOP_MF_Y RIGHT_MF_Y + MBOX_HEIGHT + CONTROL_SPACING_VERTICAL 193*ff0525f2SOliver-Rainer Wittmann#define BOTTOM_MF_Y TOP_MF_Y + MBOX_HEIGHT + CONTROL_SPACING_VERTICAL 194*ff0525f2SOliver-Rainer Wittmann#define FT_LEFT_Y LEFT_MF_Y + 1 195*ff0525f2SOliver-Rainer Wittmann#define FT_RIGHT_Y RIGHT_MF_Y + 1 196*ff0525f2SOliver-Rainer Wittmann#define FT_TOP_Y TOP_MF_Y + 1 197*ff0525f2SOliver-Rainer Wittmann#define FT_BOTTOM_Y BOTTOM_MF_Y + 1 198*ff0525f2SOliver-Rainer Wittmann 199*ff0525f2SOliver-Rainer Wittmann#define MARGIN_PANEL_HEIGHT POP_BORDER_Y + BD_HEIGHT + POPUP_MARGIN + OFFSET_Y 200*ff0525f2SOliver-Rainer Wittmann#define CUST_MORE_BUTTON_IMG_OFF_X POPUPPANEL_MARGIN_HORIZONTAL + OFFSET_X 201*ff0525f2SOliver-Rainer Wittmann#define PAGE_HEIGHT TBX_COLUMN_Y + 20 + SECTIONPAGE_MARGIN_VERTICAL_BOT