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