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