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