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