1766ce4d0SZheng Fan/**************************************************************
2*f51ffce5Smseidel *
3766ce4d0SZheng Fan * Licensed to the Apache Software Foundation (ASF) under one
4766ce4d0SZheng Fan * or more contributor license agreements.  See the NOTICE file
5766ce4d0SZheng Fan * distributed with this work for additional information
6766ce4d0SZheng Fan * regarding copyright ownership.  The ASF licenses this file
7766ce4d0SZheng Fan * to you under the Apache License, Version 2.0 (the
8766ce4d0SZheng Fan * "License"); you may not use this file except in compliance
9766ce4d0SZheng Fan * with the License.  You may obtain a copy of the License at
10*f51ffce5Smseidel *
11766ce4d0SZheng Fan *   http://www.apache.org/licenses/LICENSE-2.0
12*f51ffce5Smseidel *
13766ce4d0SZheng Fan * Unless required by applicable law or agreed to in writing,
14766ce4d0SZheng Fan * software distributed under the License is distributed on an
15766ce4d0SZheng Fan * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16766ce4d0SZheng Fan * KIND, either express or implied.  See the License for the
17766ce4d0SZheng Fan * specific language governing permissions and limitations
18766ce4d0SZheng Fan * under the License.
19*f51ffce5Smseidel *
20766ce4d0SZheng Fan *************************************************************/
21766ce4d0SZheng Fan
22*f51ffce5Smseidel
23*f51ffce5Smseidel
24766ce4d0SZheng Fan#include "svx/dialogs.hrc"
25766ce4d0SZheng Fan
26*f51ffce5Smseidel#define BT_SUBSTLEFT                                 1
27*f51ffce5Smseidel#define BT_SUBSTCENTER                               2
28*f51ffce5Smseidel#define BT_SUBSTRIGHT                                3
29*f51ffce5Smseidel#define BT_SUBSTJUSTIFY                              4
30766ce4d0SZheng Fan#define BT_BTX_LINESP                                1
31766ce4d0SZheng Fan#define BT_TBX_INDENT_INC                            1
32766ce4d0SZheng Fan#define BT_TBX_INDENT_DEC                            2
33766ce4d0SZheng Fan#define BT_TBX_UL_INC                                1
34766ce4d0SZheng Fan#define BT_TBX_UL_DEC                                2
35766ce4d0SZheng Fan#define ID_HANGING_INDENT							 3
36766ce4d0SZheng Fan#define BT_TBX_INDENT_PROMOTE					     1
37766ce4d0SZheng Fan#define BT_TBX_INDENT_DEMOTE					     2
38766ce4d0SZheng Fan#define SD_HANGING_INDENT						     3
39766ce4d0SZheng Fan#define MF_BEFORE_INDENT						     2
40766ce4d0SZheng Fan#define MF_AFTER_INDENT						         4
41766ce4d0SZheng Fan#define MF_FL_INDENT							     6
42*f51ffce5Smseidel#define TBX_HORIZONTALALIGNMENT                      5
43766ce4d0SZheng Fan#define IMG_INDENT_HANG								 15
44*f51ffce5Smseidel#define FT_INDENT                                    16
45766ce4d0SZheng Fan#define TBX_INDENT_INC_DEC                           17
46766ce4d0SZheng Fan#define FI_SPACE1								     18
47766ce4d0SZheng Fan#define FI_SPACE2								     19
48766ce4d0SZheng Fan#define FI_INDENT1								     20
49766ce4d0SZheng Fan#define FI_INDENT2								     21
50766ce4d0SZheng Fan#define FI_INDENT3								     22
51766ce4d0SZheng Fan#define IMG_SPACE3							         23
52766ce4d0SZheng Fan#define TBX_LINESP                                   25
53766ce4d0SZheng Fan#define IMG_SPACE1                                   26
54766ce4d0SZheng Fan#define IMG_INDENT1                                  27
55766ce4d0SZheng Fan#define IMG_INDENT2                                  28
56766ce4d0SZheng Fan#define IMG_SPACE2                                   29
57766ce4d0SZheng Fan#define IMG_INDENT3                                  30
58766ce4d0SZheng Fan#define FT_SPACING                                   31
59766ce4d0SZheng Fan#define TBX_UL_INC_DEC                               33
60766ce4d0SZheng Fan#define MF_ABOVE_PARASPACING						 32
61766ce4d0SZheng Fan#define MF_BELOW_PARASPACING						 34
62766ce4d0SZheng Fan#define TBX_INDENT_PRO_DEMOTE						 35
63766ce4d0SZheng Fan#define TBX_VERT_ALIGN		40
64766ce4d0SZheng Fan#define TBX_NUM_BULLET		44
65766ce4d0SZheng Fan#define IL_NUM_BULLET		45
66766ce4d0SZheng Fan#define ILH_NUM_BULLET		46
67766ce4d0SZheng Fan#define FT_BACK_COLOR		47
68766ce4d0SZheng Fan#define TBX_BACK_COLOR		48
69766ce4d0SZheng Fan#define TBI_BACK_COLOR		49
70766ce4d0SZheng Fan#define IMG_BACK_COLOR		50
71766ce4d0SZheng Fan#define	IMG_BACK_COLOR_H	51
72766ce4d0SZheng Fan#define IL_NUM_BULLET_RTL		52	//sym2_7380
73766ce4d0SZheng Fan#define TBI_VERT_ALIGN_TOP	    60
74766ce4d0SZheng Fan#define TBI_VERT_ALIGN_CENTER	61
75766ce4d0SZheng Fan#define TBI_VERT_ALIGN_BOT	    62
76766ce4d0SZheng Fan#define TBI_NUMBERING	        63
77766ce4d0SZheng Fan#define TBI_BULLET	            64
78766ce4d0SZheng Fan#define TBI_HOR_ALIGN_LEFT	    65
79766ce4d0SZheng Fan#define TBI_HOR_ALIGN_CENTER	66
80766ce4d0SZheng Fan#define TBI_HOR_ALIGN_RIGHT	    67
81766ce4d0SZheng Fan#define TBI_HOR_ALIGN_JUSTIFY	68
82766ce4d0SZheng Fan#define TBI_INDENT_INC		    69
83766ce4d0SZheng Fan#define TBI_INDENT_DEC		    70
84766ce4d0SZheng Fan#define TBI_UL_INC			    71
85766ce4d0SZheng Fan#define TBI_UL_DEC			    72
86766ce4d0SZheng Fan
87*f51ffce5Smseidel// for vertical alignment
88766ce4d0SZheng Fan#define IID_VERT_TOP		1
89766ce4d0SZheng Fan#define IID_VERT_CENTER		2
90766ce4d0SZheng Fan#define IID_VERT_BOTTOM		3
91766ce4d0SZheng Fan
92*f51ffce5Smseidel// for numbering and bullet
93766ce4d0SZheng Fan#define IID_BULLET			1
94766ce4d0SZheng Fan#define IID_NUMBER			2
95766ce4d0SZheng Fan//============================== popup bullet and numbering & back color =========================
96766ce4d0SZheng Fan#define VS_VALUES			1
97766ce4d0SZheng Fan#define IL_BULLET_BITMAPS	2
98766ce4d0SZheng Fan#define CB_BULLET_MORE		4
99766ce4d0SZheng Fan
100766ce4d0SZheng Fan#define VS_NUMBERING		10
101766ce4d0SZheng Fan#define CB_NUMBERING_MORE	12
102766ce4d0SZheng Fan#define VS_FONT_COLOR		1
103766ce4d0SZheng Fan#define STR_NOFILL			2
104766ce4d0SZheng Fan
105766ce4d0SZheng Fan//============================== line space popup page ==============================
106766ce4d0SZheng Fan
107766ce4d0SZheng Fan#define LB_LINE_SPACING                    1
108766ce4d0SZheng Fan#define ED_SBINDE_LINEDISTPERCENT          2
109766ce4d0SZheng Fan#define ED_SBINDE_LINEDISTPOINT	           3
110766ce4d0SZheng Fan
111766ce4d0SZheng Fan#define FT_CUSTOM                          14
112766ce4d0SZheng Fan#define FT_LINE_SPACING                    15
113*f51ffce5Smseidel#define FT_OF                              16
114766ce4d0SZheng Fan#define IMG_SPACING1                       18
115766ce4d0SZheng Fan#define IMG_SPACING115                     19
116766ce4d0SZheng Fan#define IMG_SPACING15                      20
117766ce4d0SZheng Fan#define IMG_SPACING2                       21
118766ce4d0SZheng Fan#define IMG_SEL_SPACING1                   23
119766ce4d0SZheng Fan#define IMG_SEL_SPACING115                 24
120766ce4d0SZheng Fan#define IMG_SEL_SPACING15                  25
121766ce4d0SZheng Fan#define IMG_SEL_SPACING2                   26
122766ce4d0SZheng Fan#define IMG_LPCUSTOMNOBORDER               27
123766ce4d0SZheng Fan#define FI_CUSTOM_NOBORDER_LSPACE          28
124766ce4d0SZheng Fan#define LINE_SPACING					   29
125766ce4d0SZheng Fan#define STR_SPACING1					   30
126766ce4d0SZheng Fan#define STR_SPACING115                     31
127766ce4d0SZheng Fan#define STR_SPACING15                      32
128766ce4d0SZheng Fan#define STR_SPACING2                       33
129766ce4d0SZheng Fan#define IMG_CUSTOM					       34
130766ce4d0SZheng Fan#define IMG_CUSTOM_GRAY				       35
131766ce4d0SZheng Fan#define STR_LCVALUE						   36
132766ce4d0SZheng Fan#define STR_LS_SINGLE					   37
133766ce4d0SZheng Fan#define STR_LS_115					       38
134766ce4d0SZheng Fan#define STR_LS_15					       39
135766ce4d0SZheng Fan#define STR_LS_DOUBLE					   40
136766ce4d0SZheng Fan#define STR_LSPACING					   41
137766ce4d0SZheng Fan#define STR_LS_OF					       42
138766ce4d0SZheng Fan
139766ce4d0SZheng Fan//============================== Help ID ==============================
140*f51ffce5Smseidel#define HID_TBX_HORIZONTALALIGNMENT	"HID_TBX_HORIZONTALALIGNMENT"
141*f51ffce5Smseidel#define HID_TBI_HOR_ALIGN_LEFT		"HID_TBI_HOR_ALIGN_LEFT"
142766ce4d0SZheng Fan#define HID_TBI_HOR_ALIGN_CENTER	"HID_TBI_HOR_ALIGN_CENTER"
143766ce4d0SZheng Fan#define HID_TBI_HOR_ALIGN_RIGHT		"HID_TBI_HOR_ALIGN_RIGHT"
144766ce4d0SZheng Fan#define HID_TBI_HOR_ALIGN_JUSTIFY	"HID_TBI_HOR_ALIGN_JUSTIFY"
145766ce4d0SZheng Fan
146766ce4d0SZheng Fan#define HID_TBX_VERT_ALIGN			"HID_TBX_VERT_ALIGN"
147766ce4d0SZheng Fan#define HID_TBI_VERT_ALIGN_TOP		"HID_TBI_VERT_ALIGN_TOP"
148766ce4d0SZheng Fan#define HID_TBI_VERT_ALIGN_CENTER	"HID_TBI_VERT_ALIGN_CENTER"
149766ce4d0SZheng Fan#define HID_TBI_VERT_ALIGN_BOT		"HID_TBI_VERT_ALIGN_BOT"
150766ce4d0SZheng Fan
151*f51ffce5Smseidel#define HID_TBX_INDENT "HID_TBX_INDENT"
152766ce4d0SZheng Fan#define HID_TBI_INDENT "HID_TBI_INDENT"
153*f51ffce5Smseidel//#define HID_TBX_LINESP 705263129
154766ce4d0SZheng Fan//#define HID_TBI_LINESP 705262617
155766ce4d0SZheng Fan#define HID_TBX_GRSPACE "HID_TBX_GRSPACE"
156766ce4d0SZheng Fan#define HID_TBI_GRSPACE "HID_TBI_GRSPACE"
157766ce4d0SZheng Fan#define HID_TBX_BACK_COLOR	"HID_TBX_BACK_COLOR"
158766ce4d0SZheng Fan#define HID_TBI_BACK_COLOR	"HID_TBI_BACK_COLOR"
159766ce4d0SZheng Fan
160766ce4d0SZheng Fan//#define HID_TBX_INDENT_INC_DEC 705263121
161766ce4d0SZheng Fan//#define HID_TBI_INDENT_DEC 705262662
162766ce4d0SZheng Fan//#define HID_TBI_INDENT_INC 705262661
163766ce4d0SZheng Fan//#define HID_TBX_UL_INC_DEC 705263137
164766ce4d0SZheng Fan//#define HID_TBI_UL_INC 705262663
165766ce4d0SZheng Fan//#define HID_TBI_UL_DEC 705262664
166766ce4d0SZheng Fan
167766ce4d0SZheng Fan//#define HID_TBX_NUM_BULLET 705263148
168766ce4d0SZheng Fan//#define HID_TBI_NUMBERING 705262655
169766ce4d0SZheng Fan//#define HID_TBI_BULLET	705262656
170766ce4d0SZheng Fan
171766ce4d0SZheng Fan#define HID_POPUP_BULLET_CB_BULLET_MORE	"HID_POPUP_BULLET_CB_BULLET_MORE"
172766ce4d0SZheng Fan#define HID_POPUP_BULLET_VS_VALUES		"HID_POPUP_BULLET_VS_VALUES"
173766ce4d0SZheng Fan#define HID_POPUP_NUM_CB_NUMBERING_MORE "HID_POPUP_NUM_CB_NUMBERING_MORE"
174766ce4d0SZheng Fan#define HID_POPUP_NUM_VS_NUMBERING		"HID_POPUP_NUM_VS_NUMBERING"
175766ce4d0SZheng Fan
176766ce4d0SZheng Fan#define HID_POPUP_INDENT_ED_INDENT_LEFTINDENT	"HID_POPUP_INDENT_ED_INDENT_LEFTINDENT"
177766ce4d0SZheng Fan#define HID_POPUP_INDENT_ED_INDENT_RIGHTINDENT	"HID_POPUP_INDENT_ED_INDENT_RIGHTINDENT"
178766ce4d0SZheng Fan#define HID_POPUP_INDENT_ED_INDENT_FLINDENT		"HID_POPUP_INDENT_ED_INDENT_FLINDENT"
179766ce4d0SZheng Fan#define HID_POPUP_INDENT_TBX_INDENT_NONE	"HID_POPUP_INDENT_TBX_INDENT_NONE"
180766ce4d0SZheng Fan#define HID_POPUP_INDENT_TBI_INDENT_NONE	"HID_POPUP_INDENT_TBI_INDENT_NONE"
181766ce4d0SZheng Fan#define HID_POPUP_INDENT_TBX_INDENT_BEFORE1	"HID_POPUP_INDENT_TBX_INDENT_BEFORE1"
182766ce4d0SZheng Fan#define HID_POPUP_INDENT_TBI_INDENT_BEFORE1	"HID_POPUP_INDENT_TBI_INDENT_BEFORE1"
183766ce4d0SZheng Fan#define HID_POPUP_INDENT_TBX_INDENT_BEFORE2 "HID_POPUP_INDENT_TBX_INDENT_BEFORE2"
184766ce4d0SZheng Fan#define HID_POPUP_INDENT_TBI_INDENT_BEFORE2 "HID_POPUP_INDENT_TBI_INDENT_BEFORE2"
185766ce4d0SZheng Fan#define HID_POPUP_INDENT_TBX_INDENT_FLINE	"HID_POPUP_INDENT_TBX_INDENT_FLINE"
186766ce4d0SZheng Fan#define HID_POPUP_INDENT_TBI_INDENT_FLINE	"HID_POPUP_INDENT_TBI_INDENT_FLINE"
187766ce4d0SZheng Fan#define HID_POPUP_INDENT_TBX_INDENT_HANGING	"HID_POPUP_INDENT_TBX_INDENT_HANGING"
188766ce4d0SZheng Fan#define HID_POPUP_INDENT_TBI_INDENT_HANGING "HID_POPUP_INDENT_TBI_INDENT_HANGING"
189766ce4d0SZheng Fan#define HID_POPUP_INDENT_TBX_INDENT_LCUSTOM "HID_POPUP_INDENT_TBX_INDENT_LCUSTOM"
190766ce4d0SZheng Fan#define HID_POPUP_INDENT_TBI_INDENT_LCUSTOM "HID_POPUP_INDENT_TBI_INDENT_LCUSTOM"
191766ce4d0SZheng Fan
192766ce4d0SZheng Fan#define HID_POPUP_LS_LB_LINE_SPACING			"HID_POPUP_LS_LB_LINE_SPACING"
193766ce4d0SZheng Fan#define HID_POPUP_LS_ED_SBINDE_LINEDISTPERCENT	"HID_POPUP_LS_ED_SBINDE_LINEDISTPERCENT"
194766ce4d0SZheng Fan#define HID_POPUP_LS_ED_SBINDE_LINEDISTPOINT	 "HID_POPUP_LS_ED_SBINDE_LINEDISTPOINT"
195766ce4d0SZheng Fan#define HID_POPUP_LS_TBX_LINESP_1				"HID_POPUP_LS_TBX_LINESP_1"
196766ce4d0SZheng Fan#define HID_POPUP_LS_TBI_LINESP_1				"HID_POPUP_LS_TBI_LINESP_1"
197766ce4d0SZheng Fan#define HID_POPUP_LS_TBX_LINESP_15				"HID_POPUP_LS_TBX_LINESP_15"
198766ce4d0SZheng Fan#define HID_POPUP_LS_TBI_LINESP_15				"HID_POPUP_LS_TBI_LINESP_15"
199766ce4d0SZheng Fan#define HID_POPUP_LS_TBX_LINESP_2				"HID_POPUP_LS_TBX_LINESP_2"
200766ce4d0SZheng Fan#define HID_POPUP_LS_TBI_LINESP_2				"HID_POPUP_LS_TBI_LINESP_2"
201766ce4d0SZheng Fan#define HID_POPUP_LS_TBX_LINESP_115				"HID_POPUP_LS_TBX_LINESP_115"
202766ce4d0SZheng Fan#define HID_POPUP_LS_TBI_LINESP_115				"HID_POPUP_LS_TBI_LINESP_115"
203766ce4d0SZheng Fan#define HID_POPUP_LS_TBX_LINESP_LCUSTOM			"HID_POPUP_LS_TBX_LINESP_LCUSTOM"
204766ce4d0SZheng Fan#define HID_POPUP_LS_TBI_LINESP_LCUSTOM			"HID_POPUP_LS_TBI_LINESP_LCUSTOM"
205766ce4d0SZheng Fan
206766ce4d0SZheng Fan#define HID_POPUP_PS_ED_SBINDE_TOPDIST		"HID_POPUP_PS_ED_SBINDE_TOPDIST"
207766ce4d0SZheng Fan#define HID_POPUP_PS_ED_SBINDE_BOTTOMDIST	"HID_POPUP_PS_ED_SBINDE_BOTTOMDIST"
208766ce4d0SZheng Fan#define HID_POPUP_PS_TBX_NORMAL				"HID_POPUP_PS_TBX_NORMAL"
209766ce4d0SZheng Fan#define HID_POPUP_PS_TBI_NORMAL				"HID_POPUP_PS_TBI_NORMAL"
210766ce4d0SZheng Fan#define HID_POPUP_PS_TBX_NARROW				"HID_POPUP_PS_TBX_NARROW"
211766ce4d0SZheng Fan#define HID_POPUP_PS_TBI_NARROW				"HID_POPUP_PS_TBI_NARROW"
212766ce4d0SZheng Fan#define HID_POPUP_PS_TBX_WIDE				"HID_POPUP_PS_TBX_WIDE"
213766ce4d0SZheng Fan#define HID_POPUP_PS_TBI_WIDE				"HID_POPUP_PS_TBI_WIDE"
214766ce4d0SZheng Fan#define HID_POPUP_PS_TBX_LASTCUSTOM			"HID_POPUP_PS_TBX_LASTCUSTOM"
215766ce4d0SZheng Fan#define HID_POPUP_PS_TBI_LASTCUSTOM			"HID_POPUP_PS_TBI_LASTCUSTOM"
216766ce4d0SZheng Fan
217766ce4d0SZheng Fan//============================== Property ==============================
218766ce4d0SZheng Fan#define _FIXED_TEXT_HEIGHT          9
219766ce4d0SZheng Fan#define _FIXED_TEXT_WIDTH           40
220766ce4d0SZheng Fan#define CONTROL_HEIGHT		        15
221766ce4d0SZheng Fan#define CONTROL_WIDTH		        45
222766ce4d0SZheng Fan#define ALIGNMENT_TBX_HEIGHT        17
223766ce4d0SZheng Fan#define ALIGNMENT_TBX_WIDTH         13
224766ce4d0SZheng Fan#define LISTBOX_HEIGHT              80
225766ce4d0SZheng Fan#define IMAGE_SIZE                  16
226766ce4d0SZheng Fan#define POPUP_TOOLBOX_SIZE          32
227766ce4d0SZheng Fan#define TOOLBOX_HEIGHT              22
228766ce4d0SZheng Fan#define TOOLBOX_WIDTH               23
229766ce4d0SZheng Fan#define TEXT_SPACING_VERTICAL       2
230766ce4d0SZheng Fan#define BUTTON_SPACING              18
231766ce4d0SZheng Fan//#define TOOLBOX_ITEM_HEIGHT			17
232766ce4d0SZheng Fan#define VS_SPACING_WIDTH		    78
233766ce4d0SZheng Fan
234766ce4d0SZheng Fan//==============================Section page position==============================
235766ce4d0SZheng Fan
236766ce4d0SZheng Fan#define TBX_HORI_ALIGN_X	SECTIONPAGE_MARGIN_HORIZONTAL + TBX_OUT_BORDER_OFFSET_X/2
237766ce4d0SZheng Fan#define TBX_HORI_ALIGN_Y	SECTIONPAGE_MARGIN_VERTICAL_TOP
238766ce4d0SZheng Fan
239766ce4d0SZheng Fan#define TBX_VERT_ALIGN_X	TBX_HORI_ALIGN_X + TBX_OUT_BORDER_OFFSET_X*2 + TOOLBOX_ITEM_WIDTH * 4 + CONTROL_SPACING_HORIZONTAL
240766ce4d0SZheng Fan#define TBX_VERT_ALIGN_Y	TBX_HORI_ALIGN_Y
241766ce4d0SZheng Fan
242766ce4d0SZheng Fan#define TBX_NUM_BULLET_X	TBX_HORI_ALIGN_X
243766ce4d0SZheng Fan#define TBX_NUM_BULLET_Y	TBX_HORI_ALIGN_Y + TOOLBOX_ITEM_HEIGHT + CONTROL_SPACING_VERTICAL - 1
244766ce4d0SZheng Fan
245766ce4d0SZheng Fan#define TBX_BACK_COLOR_X	TBX_HORI_ALIGN_X + TBX_OUT_BORDER_OFFSET_X*2 + TOOLBOX_ITEM_WIDTH * 3 + CONTROL_SPACING_HORIZONTAL
246766ce4d0SZheng Fan#define TBX_BACK_COLOR_Y	TBX_NUM_BULLET_Y
247766ce4d0SZheng Fan
248766ce4d0SZheng Fan#define FT_PARA_SPACE_X		SECTIONPAGE_MARGIN_HORIZONTAL
249766ce4d0SZheng Fan#define FT_PARA_SPACE_Y		TBX_NUM_BULLET_Y + TOOLBOX_ITEM_HEIGHT + CONTROL_SPACING_VERTICAL - 3
250766ce4d0SZheng Fan#define FT_PARA_SPACE_Y2	TBX_HORI_ALIGN_Y + TOOLBOX_ITEM_HEIGHT + CONTROL_SPACING_VERTICAL - 2
251766ce4d0SZheng Fan
252766ce4d0SZheng Fan#define TBX_PARA_SPACE_INC_DEC_X	TBX_HORI_ALIGN_X
253766ce4d0SZheng Fan#define TBX_PARA_SPACE_INC_DEC_Y	FT_PARA_SPACE_Y + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL
254766ce4d0SZheng Fan#define TBX_PARA_SPACE_INC_DEC_Y2	FT_PARA_SPACE_Y2 + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL
255766ce4d0SZheng Fan
256766ce4d0SZheng Fan#define FT_PARA_INDENT_X	TBX_VERT_ALIGN_X
257766ce4d0SZheng Fan#define FT_PARA_INDENT_Y	FT_PARA_SPACE_Y
258766ce4d0SZheng Fan#define FT_PARA_INDENT_Y2	FT_PARA_SPACE_Y2
259766ce4d0SZheng Fan
260766ce4d0SZheng Fan#define TBX_PARA_INDENT_INC_DEC_X	TBX_VERT_ALIGN_X
261766ce4d0SZheng Fan#define TBX_PARA_INDENT_INC_DEC_Y	TBX_PARA_SPACE_INC_DEC_Y
262766ce4d0SZheng Fan#define TBX_PARA_INDENT_INC_DEC_Y2	TBX_PARA_SPACE_INC_DEC_Y2
263766ce4d0SZheng Fan
264766ce4d0SZheng Fan#define MBX_TOP_DIST_X		FT_PARA_SPACE_X + TOOLBOX_ITEM_WIDTH
265766ce4d0SZheng 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
266766ce4d0SZheng 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
267766ce4d0SZheng Fan#define MBX_BOT_DIST_X		MBX_TOP_DIST_X
268766ce4d0SZheng Fan#define MBX_BOT_DIST_Y		MBX_TOP_DIST_Y + MBOX_HEIGHT + CONTROL_SPACING_VERTICAL
269766ce4d0SZheng Fan#define MBX_BOT_DIST_Y2		MBX_TOP_DIST_Y2 + MBOX_HEIGHT + CONTROL_SPACING_VERTICAL
270766ce4d0SZheng Fan
271766ce4d0SZheng Fan#define IMG_SPACE_X		    FT_PARA_SPACE_X - 3
272766ce4d0SZheng Fan#define IMG_SPACE1_Y		MBX_TOP_DIST_Y  - 1
273766ce4d0SZheng Fan#define IMG_SPACE2_Y		MBX_BOT_DIST_Y  - 1
274766ce4d0SZheng Fan#define IMG_SPACE1_Y2		MBX_TOP_DIST_Y2  - 1
275766ce4d0SZheng Fan#define IMG_SPACE2_Y2		MBX_BOT_DIST_Y2  - 1
276766ce4d0SZheng Fan
277766ce4d0SZheng Fan#define MBX_LEFT_DIST_X		FT_PARA_INDENT_X + TOOLBOX_ITEM_WIDTH
278766ce4d0SZheng Fan#define MBX_LEFT_DIST_Y		MBX_TOP_DIST_Y
279766ce4d0SZheng Fan#define MBX_LEFT_DIST_Y2	MBX_TOP_DIST_Y2
280766ce4d0SZheng Fan#define MBX_RIGHT_DIST_X	MBX_LEFT_DIST_X
281766ce4d0SZheng Fan#define MBX_RIGHT_DIST_Y	MBX_BOT_DIST_Y
282766ce4d0SZheng Fan#define MBX_RIGHT_DIST_Y2	MBX_BOT_DIST_Y2
283766ce4d0SZheng Fan#define MBX_FLINE_DIST_X	MBX_LEFT_DIST_X
284766ce4d0SZheng Fan#define MBX_FLINE_DIST_Y	MBX_RIGHT_DIST_Y + MBOX_HEIGHT + CONTROL_SPACING_VERTICAL
285766ce4d0SZheng Fan#define MBX_FLINE_DIST_Y2	MBX_RIGHT_DIST_Y2 + MBOX_HEIGHT + CONTROL_SPACING_VERTICAL
286766ce4d0SZheng Fan
287766ce4d0SZheng Fan#define IMG_INDENT_X		FT_PARA_INDENT_X - 4
288766ce4d0SZheng Fan#define IMG_INDENT1_Y		MBX_LEFT_DIST_Y - 1
289766ce4d0SZheng Fan#define IMG_INDENT2_Y		MBX_RIGHT_DIST_Y - 1
290766ce4d0SZheng Fan#define IMG_INDENT3_Y		MBX_FLINE_DIST_Y - 1
291766ce4d0SZheng Fan#define IMG_INDENT1_Y2		MBX_LEFT_DIST_Y2 - 1
292766ce4d0SZheng Fan#define IMG_INDENT2_Y2		MBX_RIGHT_DIST_Y2- 1
293766ce4d0SZheng Fan#define IMG_INDENT3_Y2		MBX_FLINE_DIST_Y2- 1
294766ce4d0SZheng Fan
295766ce4d0SZheng Fan#define TBX_LINE_SPACE_X	TBX_HORI_ALIGN_X
296766ce4d0SZheng Fan#define TBX_LINE_SPACE_Y	MBX_FLINE_DIST_Y
297766ce4d0SZheng Fan#define TBX_LINE_SPACE_Y2	MBX_FLINE_DIST_Y2
298766ce4d0SZheng Fan
299766ce4d0SZheng Fan#define PARA_SECTIONPAGE_HEIGHT		MBX_FLINE_DIST_Y + TOOLBOX_ITEM_HEIGHT + SECTIONPAGE_MARGIN_VERTICAL_BOT
300766ce4d0SZheng Fan#define PARA_SECTIONPAGE_HEIGHT_2	MBX_FLINE_DIST_Y2 + TOOLBOX_ITEM_HEIGHT + SECTIONPAGE_MARGIN_VERTICAL_BOT
301766ce4d0SZheng Fan
302766ce4d0SZheng Fan#define LINE_X_WHITE		FT_PARA_INDENT_X - 5
303766ce4d0SZheng Fan#define LINE_TOP_Y			FT_PARA_INDENT_Y + 1
304766ce4d0SZheng Fan#define LINE_TOP_Y2			FT_PARA_INDENT_Y2 + 1
305766ce4d0SZheng Fan#define LINE_BOT_Y			TBX_LINE_SPACE_Y + TOOLBOX_ITEM_HEIGHT - 1
306766ce4d0SZheng Fan#define LINE_BOT_Y2			TBX_LINE_SPACE_Y2 + TOOLBOX_ITEM_HEIGHT - 1
307766ce4d0SZheng Fan
308766ce4d0SZheng Fan//==============================numbering and bullet==============================
309766ce4d0SZheng Fan#define NB_MARGIN_VERTICAL		POPUPPANEL_MARGIN_VERTICAL
310766ce4d0SZheng Fan#define NB_MARGIN_HORIZONTAL	POPUPPANEL_MARGIN_HORIZONTAL
311766ce4d0SZheng Fan#define SPACING_VERTICAL_S3		    8
312766ce4d0SZheng Fan//#define SPACING_VERTICAL_S1		12
313766ce4d0SZheng Fan#define POPUPPANEL_MARGIN_NB   4
314766ce4d0SZheng Fan
315766ce4d0SZheng Fan#define NB_IMAGE_WIDTH		25
316766ce4d0SZheng Fan#define NB_IMAGE_HEIGHT		25
317766ce4d0SZheng Fan#define NB_IMAGE_SPACING	5
318766ce4d0SZheng Fan
319766ce4d0SZheng Fan#define BULLET_IMAGE_WIDTH		NB_IMAGE_WIDTH
320766ce4d0SZheng Fan#define BULLET_IMAGE_HEIGHT		NB_IMAGE_HEIGHT
321766ce4d0SZheng Fan#define BULLET_IMAGE_SPACING	NB_IMAGE_SPACING
322766ce4d0SZheng Fan
323766ce4d0SZheng Fan#define NUM_IMAGE_WIDTH		25
324766ce4d0SZheng Fan#define NUM_IMAGE_HEIGHT	35
325766ce4d0SZheng Fan#define NUM_IMAGE_SPACING	NB_IMAGE_SPACING
326766ce4d0SZheng Fan
327766ce4d0SZheng Fan#define FIXED_TEXT_HEIGHT        13
328766ce4d0SZheng Fan#define FIXED_TEXT_WIDTH         80
329766ce4d0SZheng Fan#define CUST_MORE_BUTTON_HEIGHT	 15
330766ce4d0SZheng Fan
331766ce4d0SZheng Fan#define VS_WIDTH_BULLET		BULLET_IMAGE_WIDTH*3+BULLET_IMAGE_SPACING*2
332766ce4d0SZheng Fan#define VS_HEIGHT_BULLET	BULLET_IMAGE_HEIGHT*4+BULLET_IMAGE_SPACING*3
333766ce4d0SZheng Fan#define VS_WIDTH_NUM		NUM_IMAGE_WIDTH*3+NB_IMAGE_SPACING*2
334766ce4d0SZheng Fan#define VS_HEIGHT_NUM		NUM_IMAGE_HEIGHT*3+NB_IMAGE_SPACING*2
335766ce4d0SZheng Fan
336766ce4d0SZheng Fan#define POPUP_WIDTH_BULLET	VS_WIDTH_BULLET + POPUPPANEL_MARGIN_NB * 2
337766ce4d0SZheng Fan#define POPUP_HEIGHT_BULLET	VS_HEIGHT_BULLET + POPUPPANEL_MARGIN_NB * 3 + CUST_MORE_BUTTON_HEIGHT
338766ce4d0SZheng Fan#define POPUP_WIDTH_NUM		VS_WIDTH_NUM + POPUPPANEL_MARGIN_NB * 2
339766ce4d0SZheng Fan#define POPUP_HEIGHT_NUM	VS_HEIGHT_NUM + POPUPPANEL_MARGIN_NB * 3 + CUST_MORE_BUTTON_HEIGHT
340766ce4d0SZheng Fan
341766ce4d0SZheng Fan#define CUST_MORE_BUTTON_X	1
342766ce4d0SZheng Fan#define CUST_MORE_BUTTON_IMG_OFF_X		2	//NB_MARGIN_HORIZONTAL - CUST_MORE_BUTTON_X + OFFSET_X
343766ce4d0SZheng Fan
344766ce4d0SZheng Fan//==============================Line Spacing popup page=======================
345766ce4d0SZheng Fan
346766ce4d0SZheng Fan#define POPUP_PAGE_HEIGHT    POP_BORDER_Y + BD_HEIGHT + POPUPPANEL_MARGIN_NB + OFFSET_Y
347766ce4d0SZheng Fan#define POP_FT_CUSTOM_X      POPUPPANEL_MARGIN_NB + OFFSET_X
348766ce4d0SZheng Fan#define POP_FT_CUSTOM_Y      POPUPPANEL_MARGIN_SMALL * 2 + 17 * 5
349766ce4d0SZheng Fan#define POP_BORDER_X         POPUPPANEL_MARGIN_NB + OFFSET_X + 1
350766ce4d0SZheng Fan#define POP_BORDER_Y         POPUPPANEL_MARGIN_SMALL * 3 + 17 * 5 + TEXT_HEIGHT
351766ce4d0SZheng Fan#define BD_WIDTH             VS_SPACING_WIDTH - 6
352766ce4d0SZheng Fan#define BD_HEIGHT            TEXT_HEIGHT*2 + CONTROL_HEIGHT*2 + CONTROL_SPACING_VERTICAL*3 + TEXT_CONTROL_SPACING_VERTICAL*2 - 4
353766ce4d0SZheng Fan
354766ce4d0SZheng Fan#define FT_1_X               POP_BORDER_X + POPUPPANEL_MARGIN_LARGE
355766ce4d0SZheng Fan#define FT_1_Y               POP_BORDER_Y + CONTROL_SPACING_VERTICAL
356766ce4d0SZheng Fan#define EDIT_1_X             FT_1_X
357766ce4d0SZheng Fan#define EDIT_1_Y             FT_1_Y + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL
358766ce4d0SZheng Fan#define FT_2_X               FT_1_X
359766ce4d0SZheng Fan#define FT_2_Y               EDIT_1_Y + CONTROL_HEIGHT + CONTROL_SPACING_VERTICAL - 3
360766ce4d0SZheng Fan#define EDIT_2_X             FT_1_X
361*f51ffce5Smseidel#define EDIT_2_Y             FT_2_Y + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL
362