1*766ce4d0SZheng Fan/************************************************************** 2*766ce4d0SZheng Fan * 3*766ce4d0SZheng Fan * Licensed to the Apache Software Foundation (ASF) under one 4*766ce4d0SZheng Fan * or more contributor license agreements. See the NOTICE file 5*766ce4d0SZheng Fan * distributed with this work for additional information 6*766ce4d0SZheng Fan * regarding copyright ownership. The ASF licenses this file 7*766ce4d0SZheng Fan * to you under the Apache License, Version 2.0 (the 8*766ce4d0SZheng Fan * "License"); you may not use this file except in compliance 9*766ce4d0SZheng Fan * with the License. You may obtain a copy of the License at 10*766ce4d0SZheng Fan * 11*766ce4d0SZheng Fan * http://www.apache.org/licenses/LICENSE-2.0 12*766ce4d0SZheng Fan * 13*766ce4d0SZheng Fan * Unless required by applicable law or agreed to in writing, 14*766ce4d0SZheng Fan * software distributed under the License is distributed on an 15*766ce4d0SZheng Fan * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*766ce4d0SZheng Fan * KIND, either express or implied. See the License for the 17*766ce4d0SZheng Fan * specific language governing permissions and limitations 18*766ce4d0SZheng Fan * under the License. 19*766ce4d0SZheng Fan * 20*766ce4d0SZheng Fan *************************************************************/ 21*766ce4d0SZheng Fan 22*766ce4d0SZheng Fan#include "svx/dialogs.hrc" 23*766ce4d0SZheng Fan 24*766ce4d0SZheng Fan#define BT_SUBSTLEFT 1 25*766ce4d0SZheng Fan#define BT_SUBSTCENTER 2 26*766ce4d0SZheng Fan#define BT_SUBSTRIGHT 3 27*766ce4d0SZheng Fan#define BT_SUBSTJUSTIFY 4 28*766ce4d0SZheng Fan#define BT_BTX_LINESP 1 29*766ce4d0SZheng Fan#define BT_TBX_INDENT_INC 1 30*766ce4d0SZheng Fan#define BT_TBX_INDENT_DEC 2 31*766ce4d0SZheng Fan#define BT_TBX_UL_INC 1 32*766ce4d0SZheng Fan#define BT_TBX_UL_DEC 2 33*766ce4d0SZheng Fan#define ID_HANGING_INDENT 3 34*766ce4d0SZheng Fan#define BT_TBX_INDENT_PROMOTE 1 35*766ce4d0SZheng Fan#define BT_TBX_INDENT_DEMOTE 2 36*766ce4d0SZheng Fan#define SD_HANGING_INDENT 3 37*766ce4d0SZheng Fan#define MF_BEFORE_INDENT 2 38*766ce4d0SZheng Fan#define MF_AFTER_INDENT 4 39*766ce4d0SZheng Fan#define MF_FL_INDENT 6 40*766ce4d0SZheng Fan#define TBX_HORIZONTALALIGNMENT 5 41*766ce4d0SZheng Fan#define IMG_LEFT_PARA 7 42*766ce4d0SZheng Fan#define IMG_CENTER_PARA 8 43*766ce4d0SZheng Fan#define IMG_RIGHT_PARA 9 44*766ce4d0SZheng Fan#define IMG_JUSTIFY_PARA 10 45*766ce4d0SZheng Fan#define IMG_INDENT_INC 11 46*766ce4d0SZheng Fan#define IMG_INDENT_DEC 12 47*766ce4d0SZheng Fan#define IMG_PARA_INC 13 48*766ce4d0SZheng Fan#define IMG_PARA_DEC 14 49*766ce4d0SZheng Fan#define IMG_INDENT_HANG 15 50*766ce4d0SZheng Fan#define FT_INDENT 16 51*766ce4d0SZheng Fan#define TBX_INDENT_INC_DEC 17 52*766ce4d0SZheng Fan#define FI_SPACE1 18 53*766ce4d0SZheng Fan#define FI_SPACE2 19 54*766ce4d0SZheng Fan#define FI_INDENT1 20 55*766ce4d0SZheng Fan#define FI_INDENT2 21 56*766ce4d0SZheng Fan#define FI_INDENT3 22 57*766ce4d0SZheng Fan#define IMG_SPACE3 23 58*766ce4d0SZheng Fan#define TBX_LINESP 25 59*766ce4d0SZheng Fan#define IMG_SPACE1 26 60*766ce4d0SZheng Fan#define IMG_INDENT1 27 61*766ce4d0SZheng Fan#define IMG_INDENT2 28 62*766ce4d0SZheng Fan#define IMG_SPACE2 29 63*766ce4d0SZheng Fan#define IMG_INDENT3 30 64*766ce4d0SZheng Fan#define FT_SPACING 31 65*766ce4d0SZheng Fan#define TBX_UL_INC_DEC 33 66*766ce4d0SZheng Fan#define MF_ABOVE_PARASPACING 32 67*766ce4d0SZheng Fan#define MF_BELOW_PARASPACING 34 68*766ce4d0SZheng Fan#define TBX_INDENT_PRO_DEMOTE 35 69*766ce4d0SZheng Fan#define TBX_VERT_ALIGN 40 70*766ce4d0SZheng Fan#define IL_VERT_ALIGN 41 71*766ce4d0SZheng Fan#define ILH_VERT_ALIGN 42 72*766ce4d0SZheng Fan#define TBX_NUM_BULLET 44 73*766ce4d0SZheng Fan#define IL_NUM_BULLET 45 74*766ce4d0SZheng Fan#define ILH_NUM_BULLET 46 75*766ce4d0SZheng Fan#define FT_BACK_COLOR 47 76*766ce4d0SZheng Fan#define TBX_BACK_COLOR 48 77*766ce4d0SZheng Fan#define TBI_BACK_COLOR 49 78*766ce4d0SZheng Fan#define IMG_BACK_COLOR 50 79*766ce4d0SZheng Fan#define IMG_BACK_COLOR_H 51 80*766ce4d0SZheng Fan#define IL_NUM_BULLET_RTL 52 //sym2_7380 81*766ce4d0SZheng Fan#define TBI_VERT_ALIGN_TOP 60 82*766ce4d0SZheng Fan#define TBI_VERT_ALIGN_CENTER 61 83*766ce4d0SZheng Fan#define TBI_VERT_ALIGN_BOT 62 84*766ce4d0SZheng Fan#define TBI_NUMBERING 63 85*766ce4d0SZheng Fan#define TBI_BULLET 64 86*766ce4d0SZheng Fan#define TBI_HOR_ALIGN_LEFT 65 87*766ce4d0SZheng Fan#define TBI_HOR_ALIGN_CENTER 66 88*766ce4d0SZheng Fan#define TBI_HOR_ALIGN_RIGHT 67 89*766ce4d0SZheng Fan#define TBI_HOR_ALIGN_JUSTIFY 68 90*766ce4d0SZheng Fan#define TBI_INDENT_INC 69 91*766ce4d0SZheng Fan#define TBI_INDENT_DEC 70 92*766ce4d0SZheng Fan#define TBI_UL_INC 71 93*766ce4d0SZheng Fan#define TBI_UL_DEC 72 94*766ce4d0SZheng Fan#define IMG_INDENT_INC_BD 73 95*766ce4d0SZheng Fan#define IMG_INDENT_DEC_BD 74 96*766ce4d0SZheng Fan 97*766ce4d0SZheng Fan//for vertical alignment 98*766ce4d0SZheng Fan#define IID_VERT_TOP 1 99*766ce4d0SZheng Fan#define IID_VERT_CENTER 2 100*766ce4d0SZheng Fan#define IID_VERT_BOTTOM 3 101*766ce4d0SZheng Fan 102*766ce4d0SZheng Fan//for numbering and bullett 103*766ce4d0SZheng Fan#define IID_BULLET 1 104*766ce4d0SZheng Fan#define IID_NUMBER 2 105*766ce4d0SZheng Fan//============================== popup bullet and numbering & back color ========================= 106*766ce4d0SZheng Fan#define VS_VALUES 1 107*766ce4d0SZheng Fan#define IL_BULLET_BITMAPS 2 108*766ce4d0SZheng Fan#define CB_BULLET_MORE 4 109*766ce4d0SZheng Fan#define BMP_BULLET_MORE 5 110*766ce4d0SZheng Fan#define BMP_BULLET_MORE_H 6 111*766ce4d0SZheng Fan#define IMG_SEPERATOR_BULLET 7 112*766ce4d0SZheng Fan 113*766ce4d0SZheng Fan#define VS_NUMBERING 10 114*766ce4d0SZheng Fan#define CB_NUMBERING_MORE 12 115*766ce4d0SZheng Fan#define BMP_NUMERING_MORE 13 116*766ce4d0SZheng Fan#define BMP_NUMERING_MORE_H 14 117*766ce4d0SZheng Fan#define IMG_SEPERATOR_NUMBERING 15 118*766ce4d0SZheng Fan#define VS_FONT_COLOR 1 119*766ce4d0SZheng Fan#define STR_NOFILL 2 120*766ce4d0SZheng Fan 121*766ce4d0SZheng Fan//============================== line space popup page ============================== 122*766ce4d0SZheng Fan 123*766ce4d0SZheng Fan#define LB_LINE_SPACING 1 124*766ce4d0SZheng Fan#define ED_SBINDE_LINEDISTPERCENT 2 125*766ce4d0SZheng Fan#define ED_SBINDE_LINEDISTPOINT 3 126*766ce4d0SZheng Fan 127*766ce4d0SZheng Fan#define FT_CUSTOM 14 128*766ce4d0SZheng Fan#define FT_LINE_SPACING 15 129*766ce4d0SZheng Fan#define FT_OF 16 130*766ce4d0SZheng Fan#define IMG_SPACING1 18 131*766ce4d0SZheng Fan#define IMG_SPACING115 19 132*766ce4d0SZheng Fan#define IMG_SPACING15 20 133*766ce4d0SZheng Fan#define IMG_SPACING2 21 134*766ce4d0SZheng Fan#define IMG_SPACINGLCUSTOM 22 135*766ce4d0SZheng Fan#define IMG_SEL_SPACING1 23 136*766ce4d0SZheng Fan#define IMG_SEL_SPACING115 24 137*766ce4d0SZheng Fan#define IMG_SEL_SPACING15 25 138*766ce4d0SZheng Fan#define IMG_SEL_SPACING2 26 139*766ce4d0SZheng Fan#define IMG_LPCUSTOMNOBORDER 27 140*766ce4d0SZheng Fan#define FI_CUSTOM_NOBORDER_LSPACE 28 141*766ce4d0SZheng Fan#define LINE_SPACING 29 142*766ce4d0SZheng Fan#define STR_SPACING1 30 143*766ce4d0SZheng Fan#define STR_SPACING115 31 144*766ce4d0SZheng Fan#define STR_SPACING15 32 145*766ce4d0SZheng Fan#define STR_SPACING2 33 146*766ce4d0SZheng Fan#define IMG_CUSTOM 34 147*766ce4d0SZheng Fan#define IMG_CUSTOM_GRAY 35 148*766ce4d0SZheng Fan#define STR_LCVALUE 36 149*766ce4d0SZheng Fan#define STR_LS_SINGLE 37 150*766ce4d0SZheng Fan#define STR_LS_115 38 151*766ce4d0SZheng Fan#define STR_LS_15 39 152*766ce4d0SZheng Fan#define STR_LS_DOUBLE 40 153*766ce4d0SZheng Fan#define STR_LSPACING 41 154*766ce4d0SZheng Fan#define STR_LS_OF 42 155*766ce4d0SZheng Fan 156*766ce4d0SZheng Fan//============================== Help ID ============================== 157*766ce4d0SZheng Fan#define HID_TBX_HORIZONTALALIGNMENT "HID_TBX_HORIZONTALALIGNMENT" 158*766ce4d0SZheng Fan#define HID_TBI_HOR_ALIGN_LEFT "HID_TBI_HOR_ALIGN_LEFT" 159*766ce4d0SZheng Fan#define HID_TBI_HOR_ALIGN_CENTER "HID_TBI_HOR_ALIGN_CENTER" 160*766ce4d0SZheng Fan#define HID_TBI_HOR_ALIGN_RIGHT "HID_TBI_HOR_ALIGN_RIGHT" 161*766ce4d0SZheng Fan#define HID_TBI_HOR_ALIGN_JUSTIFY "HID_TBI_HOR_ALIGN_JUSTIFY" 162*766ce4d0SZheng Fan 163*766ce4d0SZheng Fan#define HID_TBX_VERT_ALIGN "HID_TBX_VERT_ALIGN" 164*766ce4d0SZheng Fan#define HID_TBI_VERT_ALIGN_TOP "HID_TBI_VERT_ALIGN_TOP" 165*766ce4d0SZheng Fan#define HID_TBI_VERT_ALIGN_CENTER "HID_TBI_VERT_ALIGN_CENTER" 166*766ce4d0SZheng Fan#define HID_TBI_VERT_ALIGN_BOT "HID_TBI_VERT_ALIGN_BOT" 167*766ce4d0SZheng Fan 168*766ce4d0SZheng Fan#define HID_TBX_INDENT "HID_TBX_INDENT" 169*766ce4d0SZheng Fan#define HID_TBI_INDENT "HID_TBI_INDENT" 170*766ce4d0SZheng Fan//#define HID_TBX_LINESP 705263129 171*766ce4d0SZheng Fan//#define HID_TBI_LINESP 705262617 172*766ce4d0SZheng Fan#define HID_TBX_GRSPACE "HID_TBX_GRSPACE" 173*766ce4d0SZheng Fan#define HID_TBI_GRSPACE "HID_TBI_GRSPACE" 174*766ce4d0SZheng Fan#define HID_TBX_BACK_COLOR "HID_TBX_BACK_COLOR" 175*766ce4d0SZheng Fan#define HID_TBI_BACK_COLOR "HID_TBI_BACK_COLOR" 176*766ce4d0SZheng Fan 177*766ce4d0SZheng Fan//#define HID_TBX_INDENT_INC_DEC 705263121 178*766ce4d0SZheng Fan//#define HID_TBI_INDENT_DEC 705262662 179*766ce4d0SZheng Fan//#define HID_TBI_INDENT_INC 705262661 180*766ce4d0SZheng Fan//#define HID_TBX_UL_INC_DEC 705263137 181*766ce4d0SZheng Fan//#define HID_TBI_UL_INC 705262663 182*766ce4d0SZheng Fan//#define HID_TBI_UL_DEC 705262664 183*766ce4d0SZheng Fan 184*766ce4d0SZheng Fan//#define HID_TBX_NUM_BULLET 705263148 185*766ce4d0SZheng Fan//#define HID_TBI_NUMBERING 705262655 186*766ce4d0SZheng Fan//#define HID_TBI_BULLET 705262656 187*766ce4d0SZheng Fan 188*766ce4d0SZheng Fan#define HID_POPUP_BULLET_CB_BULLET_MORE "HID_POPUP_BULLET_CB_BULLET_MORE" 189*766ce4d0SZheng Fan#define HID_POPUP_BULLET_VS_VALUES "HID_POPUP_BULLET_VS_VALUES" 190*766ce4d0SZheng Fan#define HID_POPUP_NUM_CB_NUMBERING_MORE "HID_POPUP_NUM_CB_NUMBERING_MORE" 191*766ce4d0SZheng Fan#define HID_POPUP_NUM_VS_NUMBERING "HID_POPUP_NUM_VS_NUMBERING" 192*766ce4d0SZheng Fan 193*766ce4d0SZheng Fan#define HID_POPUP_INDENT_ED_INDENT_LEFTINDENT "HID_POPUP_INDENT_ED_INDENT_LEFTINDENT" 194*766ce4d0SZheng Fan#define HID_POPUP_INDENT_ED_INDENT_RIGHTINDENT "HID_POPUP_INDENT_ED_INDENT_RIGHTINDENT" 195*766ce4d0SZheng Fan#define HID_POPUP_INDENT_ED_INDENT_FLINDENT "HID_POPUP_INDENT_ED_INDENT_FLINDENT" 196*766ce4d0SZheng Fan#define HID_POPUP_INDENT_TBX_INDENT_NONE "HID_POPUP_INDENT_TBX_INDENT_NONE" 197*766ce4d0SZheng Fan#define HID_POPUP_INDENT_TBI_INDENT_NONE "HID_POPUP_INDENT_TBI_INDENT_NONE" 198*766ce4d0SZheng Fan#define HID_POPUP_INDENT_TBX_INDENT_BEFORE1 "HID_POPUP_INDENT_TBX_INDENT_BEFORE1" 199*766ce4d0SZheng Fan#define HID_POPUP_INDENT_TBI_INDENT_BEFORE1 "HID_POPUP_INDENT_TBI_INDENT_BEFORE1" 200*766ce4d0SZheng Fan#define HID_POPUP_INDENT_TBX_INDENT_BEFORE2 "HID_POPUP_INDENT_TBX_INDENT_BEFORE2" 201*766ce4d0SZheng Fan#define HID_POPUP_INDENT_TBI_INDENT_BEFORE2 "HID_POPUP_INDENT_TBI_INDENT_BEFORE2" 202*766ce4d0SZheng Fan#define HID_POPUP_INDENT_TBX_INDENT_FLINE "HID_POPUP_INDENT_TBX_INDENT_FLINE" 203*766ce4d0SZheng Fan#define HID_POPUP_INDENT_TBI_INDENT_FLINE "HID_POPUP_INDENT_TBI_INDENT_FLINE" 204*766ce4d0SZheng Fan#define HID_POPUP_INDENT_TBX_INDENT_HANGING "HID_POPUP_INDENT_TBX_INDENT_HANGING" 205*766ce4d0SZheng Fan#define HID_POPUP_INDENT_TBI_INDENT_HANGING "HID_POPUP_INDENT_TBI_INDENT_HANGING" 206*766ce4d0SZheng Fan#define HID_POPUP_INDENT_TBX_INDENT_LCUSTOM "HID_POPUP_INDENT_TBX_INDENT_LCUSTOM" 207*766ce4d0SZheng Fan#define HID_POPUP_INDENT_TBI_INDENT_LCUSTOM "HID_POPUP_INDENT_TBI_INDENT_LCUSTOM" 208*766ce4d0SZheng Fan 209*766ce4d0SZheng Fan#define HID_POPUP_LS_LB_LINE_SPACING "HID_POPUP_LS_LB_LINE_SPACING" 210*766ce4d0SZheng Fan#define HID_POPUP_LS_ED_SBINDE_LINEDISTPERCENT "HID_POPUP_LS_ED_SBINDE_LINEDISTPERCENT" 211*766ce4d0SZheng Fan#define HID_POPUP_LS_ED_SBINDE_LINEDISTPOINT "HID_POPUP_LS_ED_SBINDE_LINEDISTPOINT" 212*766ce4d0SZheng Fan#define HID_POPUP_LS_TBX_LINESP_1 "HID_POPUP_LS_TBX_LINESP_1" 213*766ce4d0SZheng Fan#define HID_POPUP_LS_TBI_LINESP_1 "HID_POPUP_LS_TBI_LINESP_1" 214*766ce4d0SZheng Fan#define HID_POPUP_LS_TBX_LINESP_15 "HID_POPUP_LS_TBX_LINESP_15" 215*766ce4d0SZheng Fan#define HID_POPUP_LS_TBI_LINESP_15 "HID_POPUP_LS_TBI_LINESP_15" 216*766ce4d0SZheng Fan#define HID_POPUP_LS_TBX_LINESP_2 "HID_POPUP_LS_TBX_LINESP_2" 217*766ce4d0SZheng Fan#define HID_POPUP_LS_TBI_LINESP_2 "HID_POPUP_LS_TBI_LINESP_2" 218*766ce4d0SZheng Fan#define HID_POPUP_LS_TBX_LINESP_115 "HID_POPUP_LS_TBX_LINESP_115" 219*766ce4d0SZheng Fan#define HID_POPUP_LS_TBI_LINESP_115 "HID_POPUP_LS_TBI_LINESP_115" 220*766ce4d0SZheng Fan#define HID_POPUP_LS_TBX_LINESP_LCUSTOM "HID_POPUP_LS_TBX_LINESP_LCUSTOM" 221*766ce4d0SZheng Fan#define HID_POPUP_LS_TBI_LINESP_LCUSTOM "HID_POPUP_LS_TBI_LINESP_LCUSTOM" 222*766ce4d0SZheng Fan 223*766ce4d0SZheng Fan#define HID_POPUP_PS_ED_SBINDE_TOPDIST "HID_POPUP_PS_ED_SBINDE_TOPDIST" 224*766ce4d0SZheng Fan#define HID_POPUP_PS_ED_SBINDE_BOTTOMDIST "HID_POPUP_PS_ED_SBINDE_BOTTOMDIST" 225*766ce4d0SZheng Fan#define HID_POPUP_PS_TBX_NORMAL "HID_POPUP_PS_TBX_NORMAL" 226*766ce4d0SZheng Fan#define HID_POPUP_PS_TBI_NORMAL "HID_POPUP_PS_TBI_NORMAL" 227*766ce4d0SZheng Fan#define HID_POPUP_PS_TBX_NARROW "HID_POPUP_PS_TBX_NARROW" 228*766ce4d0SZheng Fan#define HID_POPUP_PS_TBI_NARROW "HID_POPUP_PS_TBI_NARROW" 229*766ce4d0SZheng Fan#define HID_POPUP_PS_TBX_WIDE "HID_POPUP_PS_TBX_WIDE" 230*766ce4d0SZheng Fan#define HID_POPUP_PS_TBI_WIDE "HID_POPUP_PS_TBI_WIDE" 231*766ce4d0SZheng Fan#define HID_POPUP_PS_TBX_LASTCUSTOM "HID_POPUP_PS_TBX_LASTCUSTOM" 232*766ce4d0SZheng Fan#define HID_POPUP_PS_TBI_LASTCUSTOM "HID_POPUP_PS_TBI_LASTCUSTOM" 233*766ce4d0SZheng Fan 234*766ce4d0SZheng Fan//============================== Property ============================== 235*766ce4d0SZheng Fan#define _FIXED_TEXT_HEIGHT 9 236*766ce4d0SZheng Fan#define _FIXED_TEXT_WIDTH 40 237*766ce4d0SZheng Fan#define CONTROL_HEIGHT 15 238*766ce4d0SZheng Fan#define CONTROL_WIDTH 45 239*766ce4d0SZheng Fan#define ALIGNMENT_TBX_HEIGHT 17 240*766ce4d0SZheng Fan#define ALIGNMENT_TBX_WIDTH 13 241*766ce4d0SZheng Fan#define LISTBOX_HEIGHT 80 242*766ce4d0SZheng Fan#define IMAGE_SIZE 16 243*766ce4d0SZheng Fan#define POPUP_TOOLBOX_SIZE 32 244*766ce4d0SZheng Fan#define TOOLBOX_HEIGHT 22 245*766ce4d0SZheng Fan#define TOOLBOX_WIDTH 23 246*766ce4d0SZheng Fan#define TEXT_SPACING_VERTICAL 2 247*766ce4d0SZheng Fan#define BUTTON_SPACING 18 248*766ce4d0SZheng Fan//#define TOOLBOX_ITEM_HEIGHT 17 249*766ce4d0SZheng Fan#define VS_SPACING_WIDTH 78 250*766ce4d0SZheng Fan 251*766ce4d0SZheng Fan//==============================Section page position============================== 252*766ce4d0SZheng Fan 253*766ce4d0SZheng Fan#define TBX_HORI_ALIGN_X SECTIONPAGE_MARGIN_HORIZONTAL + TBX_OUT_BORDER_OFFSET_X/2 254*766ce4d0SZheng Fan#define TBX_HORI_ALIGN_Y SECTIONPAGE_MARGIN_VERTICAL_TOP 255*766ce4d0SZheng Fan 256*766ce4d0SZheng Fan#define TBX_VERT_ALIGN_X TBX_HORI_ALIGN_X + TBX_OUT_BORDER_OFFSET_X*2 + TOOLBOX_ITEM_WIDTH * 4 + CONTROL_SPACING_HORIZONTAL 257*766ce4d0SZheng Fan#define TBX_VERT_ALIGN_Y TBX_HORI_ALIGN_Y 258*766ce4d0SZheng Fan 259*766ce4d0SZheng Fan#define TBX_NUM_BULLET_X TBX_HORI_ALIGN_X 260*766ce4d0SZheng Fan#define TBX_NUM_BULLET_Y TBX_HORI_ALIGN_Y + TOOLBOX_ITEM_HEIGHT + CONTROL_SPACING_VERTICAL - 1 261*766ce4d0SZheng Fan 262*766ce4d0SZheng Fan#define TBX_BACK_COLOR_X TBX_HORI_ALIGN_X + TBX_OUT_BORDER_OFFSET_X*2 + TOOLBOX_ITEM_WIDTH * 3 + CONTROL_SPACING_HORIZONTAL 263*766ce4d0SZheng Fan#define TBX_BACK_COLOR_Y TBX_NUM_BULLET_Y 264*766ce4d0SZheng Fan 265*766ce4d0SZheng Fan#define FT_PARA_SPACE_X SECTIONPAGE_MARGIN_HORIZONTAL 266*766ce4d0SZheng Fan#define FT_PARA_SPACE_Y TBX_NUM_BULLET_Y + TOOLBOX_ITEM_HEIGHT + CONTROL_SPACING_VERTICAL - 3 267*766ce4d0SZheng Fan#define FT_PARA_SPACE_Y2 TBX_HORI_ALIGN_Y + TOOLBOX_ITEM_HEIGHT + CONTROL_SPACING_VERTICAL - 2 268*766ce4d0SZheng Fan 269*766ce4d0SZheng Fan#define TBX_PARA_SPACE_INC_DEC_X TBX_HORI_ALIGN_X 270*766ce4d0SZheng Fan#define TBX_PARA_SPACE_INC_DEC_Y FT_PARA_SPACE_Y + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL 271*766ce4d0SZheng Fan#define TBX_PARA_SPACE_INC_DEC_Y2 FT_PARA_SPACE_Y2 + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL 272*766ce4d0SZheng Fan 273*766ce4d0SZheng Fan#define FT_PARA_INDENT_X TBX_VERT_ALIGN_X 274*766ce4d0SZheng Fan#define FT_PARA_INDENT_Y FT_PARA_SPACE_Y 275*766ce4d0SZheng Fan#define FT_PARA_INDENT_Y2 FT_PARA_SPACE_Y2 276*766ce4d0SZheng Fan 277*766ce4d0SZheng Fan#define TBX_PARA_INDENT_INC_DEC_X TBX_VERT_ALIGN_X 278*766ce4d0SZheng Fan#define TBX_PARA_INDENT_INC_DEC_Y TBX_PARA_SPACE_INC_DEC_Y 279*766ce4d0SZheng Fan#define TBX_PARA_INDENT_INC_DEC_Y2 TBX_PARA_SPACE_INC_DEC_Y2 280*766ce4d0SZheng Fan 281*766ce4d0SZheng Fan#define MBX_TOP_DIST_X FT_PARA_SPACE_X + TOOLBOX_ITEM_WIDTH 282*766ce4d0SZheng Fan#define MBX_TOP_DIST_Y TBX_PARA_SPACE_INC_DEC_Y + TOOLBOX_ITEM_WIDTH + CONTROL_SPACING_VERTICAL + 4*TBX_OUT_BORDER_OFFSET_Y - 1 283*766ce4d0SZheng Fan#define MBX_TOP_DIST_Y2 TBX_PARA_SPACE_INC_DEC_Y2 + TOOLBOX_ITEM_WIDTH + CONTROL_SPACING_VERTICAL + 4*TBX_OUT_BORDER_OFFSET_Y - 1 284*766ce4d0SZheng Fan#define MBX_BOT_DIST_X MBX_TOP_DIST_X 285*766ce4d0SZheng Fan#define MBX_BOT_DIST_Y MBX_TOP_DIST_Y + MBOX_HEIGHT + CONTROL_SPACING_VERTICAL 286*766ce4d0SZheng Fan#define MBX_BOT_DIST_Y2 MBX_TOP_DIST_Y2 + MBOX_HEIGHT + CONTROL_SPACING_VERTICAL 287*766ce4d0SZheng Fan 288*766ce4d0SZheng Fan#define IMG_SPACE_X FT_PARA_SPACE_X - 3 289*766ce4d0SZheng Fan#define IMG_SPACE1_Y MBX_TOP_DIST_Y - 1 290*766ce4d0SZheng Fan#define IMG_SPACE2_Y MBX_BOT_DIST_Y - 1 291*766ce4d0SZheng Fan#define IMG_SPACE1_Y2 MBX_TOP_DIST_Y2 - 1 292*766ce4d0SZheng Fan#define IMG_SPACE2_Y2 MBX_BOT_DIST_Y2 - 1 293*766ce4d0SZheng Fan 294*766ce4d0SZheng Fan#define MBX_LEFT_DIST_X FT_PARA_INDENT_X + TOOLBOX_ITEM_WIDTH 295*766ce4d0SZheng Fan#define MBX_LEFT_DIST_Y MBX_TOP_DIST_Y 296*766ce4d0SZheng Fan#define MBX_LEFT_DIST_Y2 MBX_TOP_DIST_Y2 297*766ce4d0SZheng Fan#define MBX_RIGHT_DIST_X MBX_LEFT_DIST_X 298*766ce4d0SZheng Fan#define MBX_RIGHT_DIST_Y MBX_BOT_DIST_Y 299*766ce4d0SZheng Fan#define MBX_RIGHT_DIST_Y2 MBX_BOT_DIST_Y2 300*766ce4d0SZheng Fan#define MBX_FLINE_DIST_X MBX_LEFT_DIST_X 301*766ce4d0SZheng Fan#define MBX_FLINE_DIST_Y MBX_RIGHT_DIST_Y + MBOX_HEIGHT + CONTROL_SPACING_VERTICAL 302*766ce4d0SZheng Fan#define MBX_FLINE_DIST_Y2 MBX_RIGHT_DIST_Y2 + MBOX_HEIGHT + CONTROL_SPACING_VERTICAL 303*766ce4d0SZheng Fan 304*766ce4d0SZheng Fan#define IMG_INDENT_X FT_PARA_INDENT_X - 4 305*766ce4d0SZheng Fan#define IMG_INDENT1_Y MBX_LEFT_DIST_Y - 1 306*766ce4d0SZheng Fan#define IMG_INDENT2_Y MBX_RIGHT_DIST_Y - 1 307*766ce4d0SZheng Fan#define IMG_INDENT3_Y MBX_FLINE_DIST_Y - 1 308*766ce4d0SZheng Fan#define IMG_INDENT1_Y2 MBX_LEFT_DIST_Y2 - 1 309*766ce4d0SZheng Fan#define IMG_INDENT2_Y2 MBX_RIGHT_DIST_Y2- 1 310*766ce4d0SZheng Fan#define IMG_INDENT3_Y2 MBX_FLINE_DIST_Y2- 1 311*766ce4d0SZheng Fan 312*766ce4d0SZheng Fan#define TBX_LINE_SPACE_X TBX_HORI_ALIGN_X 313*766ce4d0SZheng Fan#define TBX_LINE_SPACE_Y MBX_FLINE_DIST_Y 314*766ce4d0SZheng Fan#define TBX_LINE_SPACE_Y2 MBX_FLINE_DIST_Y2 315*766ce4d0SZheng Fan 316*766ce4d0SZheng Fan#define PARA_SECTIONPAGE_HEIGHT MBX_FLINE_DIST_Y + TOOLBOX_ITEM_HEIGHT + SECTIONPAGE_MARGIN_VERTICAL_BOT 317*766ce4d0SZheng Fan#define PARA_SECTIONPAGE_HEIGHT_2 MBX_FLINE_DIST_Y2 + TOOLBOX_ITEM_HEIGHT + SECTIONPAGE_MARGIN_VERTICAL_BOT 318*766ce4d0SZheng Fan 319*766ce4d0SZheng Fan#define LINE_X_WHITE FT_PARA_INDENT_X - 5 320*766ce4d0SZheng Fan#define LINE_TOP_Y FT_PARA_INDENT_Y + 1 321*766ce4d0SZheng Fan#define LINE_TOP_Y2 FT_PARA_INDENT_Y2 + 1 322*766ce4d0SZheng Fan#define LINE_BOT_Y TBX_LINE_SPACE_Y + TOOLBOX_ITEM_HEIGHT - 1 323*766ce4d0SZheng Fan#define LINE_BOT_Y2 TBX_LINE_SPACE_Y2 + TOOLBOX_ITEM_HEIGHT - 1 324*766ce4d0SZheng Fan 325*766ce4d0SZheng Fan//==============================numbering and bullet============================== 326*766ce4d0SZheng Fan#define NB_MARGIN_VERTICAL POPUPPANEL_MARGIN_VERTICAL 327*766ce4d0SZheng Fan#define NB_MARGIN_HORIZONTAL POPUPPANEL_MARGIN_HORIZONTAL 328*766ce4d0SZheng Fan#define SPACING_VERTICAL_S3 8 329*766ce4d0SZheng Fan//#define SPACING_VERTICAL_S1 12 330*766ce4d0SZheng Fan#define POPUPPANEL_MARGIN_NB 4 331*766ce4d0SZheng Fan 332*766ce4d0SZheng Fan#define NB_IMAGE_WIDTH 25 333*766ce4d0SZheng Fan#define NB_IMAGE_HEIGHT 25 334*766ce4d0SZheng Fan#define NB_IMAGE_SPACING 5 335*766ce4d0SZheng Fan 336*766ce4d0SZheng Fan#define BULLET_IMAGE_WIDTH NB_IMAGE_WIDTH 337*766ce4d0SZheng Fan#define BULLET_IMAGE_HEIGHT NB_IMAGE_HEIGHT 338*766ce4d0SZheng Fan#define BULLET_IMAGE_SPACING NB_IMAGE_SPACING 339*766ce4d0SZheng Fan 340*766ce4d0SZheng Fan#define NUM_IMAGE_WIDTH 25 341*766ce4d0SZheng Fan#define NUM_IMAGE_HEIGHT 35 342*766ce4d0SZheng Fan#define NUM_IMAGE_SPACING NB_IMAGE_SPACING 343*766ce4d0SZheng Fan 344*766ce4d0SZheng Fan#define FIXED_TEXT_HEIGHT 13 345*766ce4d0SZheng Fan#define FIXED_TEXT_WIDTH 80 346*766ce4d0SZheng Fan#define CUST_MORE_BUTTON_HEIGHT 15 347*766ce4d0SZheng Fan 348*766ce4d0SZheng Fan#define VS_WIDTH_BULLET BULLET_IMAGE_WIDTH*3+BULLET_IMAGE_SPACING*2 349*766ce4d0SZheng Fan#define VS_HEIGHT_BULLET BULLET_IMAGE_HEIGHT*4+BULLET_IMAGE_SPACING*3 350*766ce4d0SZheng Fan#define VS_WIDTH_NUM NUM_IMAGE_WIDTH*3+NB_IMAGE_SPACING*2 351*766ce4d0SZheng Fan#define VS_HEIGHT_NUM NUM_IMAGE_HEIGHT*3+NB_IMAGE_SPACING*2 352*766ce4d0SZheng Fan 353*766ce4d0SZheng Fan#define POPUP_WIDTH_BULLET VS_WIDTH_BULLET + POPUPPANEL_MARGIN_NB * 2 354*766ce4d0SZheng Fan#define POPUP_HEIGHT_BULLET VS_HEIGHT_BULLET + POPUPPANEL_MARGIN_NB * 3 + CUST_MORE_BUTTON_HEIGHT 355*766ce4d0SZheng Fan#define POPUP_WIDTH_NUM VS_WIDTH_NUM + POPUPPANEL_MARGIN_NB * 2 356*766ce4d0SZheng Fan#define POPUP_HEIGHT_NUM VS_HEIGHT_NUM + POPUPPANEL_MARGIN_NB * 3 + CUST_MORE_BUTTON_HEIGHT 357*766ce4d0SZheng Fan 358*766ce4d0SZheng Fan#define CUST_MORE_BUTTON_X 1 359*766ce4d0SZheng Fan#define CUST_MORE_BUTTON_IMG_OFF_X 2 //NB_MARGIN_HORIZONTAL - CUST_MORE_BUTTON_X + OFFSET_X 360*766ce4d0SZheng Fan 361*766ce4d0SZheng Fan//==============================Line Spacing popup page======================= 362*766ce4d0SZheng Fan 363*766ce4d0SZheng Fan#define POPUP_PAGE_HEIGHT POP_BORDER_Y + BD_HEIGHT + POPUPPANEL_MARGIN_NB + OFFSET_Y 364*766ce4d0SZheng Fan#define POP_FT_CUSTOM_X POPUPPANEL_MARGIN_NB + OFFSET_X 365*766ce4d0SZheng Fan#define POP_FT_CUSTOM_Y POPUPPANEL_MARGIN_SMALL * 2 + 17 * 5 366*766ce4d0SZheng Fan#define POP_BORDER_X POPUPPANEL_MARGIN_NB + OFFSET_X + 1 367*766ce4d0SZheng Fan#define POP_BORDER_Y POPUPPANEL_MARGIN_SMALL * 3 + 17 * 5 + TEXT_HEIGHT 368*766ce4d0SZheng Fan#define BD_WIDTH VS_SPACING_WIDTH - 6 369*766ce4d0SZheng Fan#define BD_HEIGHT TEXT_HEIGHT*2 + CONTROL_HEIGHT*2 + CONTROL_SPACING_VERTICAL*3 + TEXT_CONTROL_SPACING_VERTICAL*2 - 4 370*766ce4d0SZheng Fan 371*766ce4d0SZheng Fan#define FT_1_X POP_BORDER_X + POPUPPANEL_MARGIN_LARGE 372*766ce4d0SZheng Fan#define FT_1_Y POP_BORDER_Y + CONTROL_SPACING_VERTICAL 373*766ce4d0SZheng Fan#define EDIT_1_X FT_1_X 374*766ce4d0SZheng Fan#define EDIT_1_Y FT_1_Y + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL 375*766ce4d0SZheng Fan#define FT_2_X FT_1_X 376*766ce4d0SZheng Fan#define FT_2_Y EDIT_1_Y + CONTROL_HEIGHT + CONTROL_SPACING_VERTICAL - 3 377*766ce4d0SZheng Fan#define EDIT_2_X FT_1_X 378*766ce4d0SZheng Fan#define EDIT_2_Y FT_2_Y + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL