xref: /trunk/main/sd/source/ui/dlg/headerfooterdlg.src (revision cdf0e10c)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27
28#include <svtools/controldims.hrc>
29#include "dialogs.hrc"
30#include "headerfooterdlg.hrc"
31
32#define TAB_WIDTH	290
33#define TAB_HEIGHT	186
34
35#define DLG_WIDTH	TAB_WIDTH + 6
36#define DLG_HEIGHT	TAB_HEIGHT + 6
37
38TabDialog RID_SD_DLG_HEADERFOOTER
39{
40	OutputSize = TRUE;
41	SVLook = TRUE;
42	Size = MAP_APPFONT( DLG_WIDTH, DLG_HEIGHT );
43	Text [ en-US ] = "Header and Footer";
44	Moveable = TRUE;
45	Closeable = TRUE;
46
47	TabControl 1
48	{
49		OutputSize = TRUE;
50		Pos = MAP_APPFONT( 3 , 3 );
51		Size = MAP_APPFONT( TAB_WIDTH , TAB_HEIGHT );
52		PageList =
53		{
54			PageItem
55			{
56				Identifier = RID_SD_TABPAGE_HEADERFOOTER_SLIDE;
57				PageResID = RID_SD_TABPAGE_HEADERFOOTER;
58				Text [ en-US ] = "Slide";
59			};
60
61			PageItem
62			{
63				Identifier = RID_SD_TABPAGE_HEADERFOOTER_NOTESHANDOUT;
64				PageResID = RID_SD_TABPAGE_HEADERFOOTER;
65				Text [ en-US ] = "Notes and Handouts";
66			};
67		};
68	};
69};
70
71#define SPACE_Y	3
72#define SPACE_X	3
73
74#define C1	(RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT)
75#define C2  (RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + RSC_SP_CHK_TEXTINDENT)
76#define C3	(RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 2 * RSC_SP_CHK_TEXTINDENT)
77#define W1	(TAB_WIDTH - PUSHBUTTON_WIDTH - 10 * SPACE_X)
78#define W2	(60)
79#define W3	(W1 - C2 - W2 - SPACE_X)
80#define W4	((W1 - C3 - SPACE_X) / 2)
81
82#define C4	(C2 + W2 + SPACE_X)
83
84#define PUSHBUTTON_WIDTH	80
85
86TabPage RID_SD_TABPAGE_HEADERFOOTER
87{
88//	HelpID = SID_ANIMATION_EFFECTS ;
89	Pos = MAP_APPFONT ( 0 , 0 ) ;
90	Size = MAP_APPFONT ( TAB_WIDTH , TAB_HEIGHT ) ;
91	Hide = TRUE;
92
93#define Y0	(RSC_SP_TBPG_INNERBORDER_TOP )
94
95	FixedLine FL_INCLUDE_ON_PAGE
96	{
97		Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT, Y0 ) ;
98		Size = MAP_APPFONT ( W1 - RSC_SP_TBPG_INNERBORDER_LEFT , RSC_CD_FIXEDLINE_HEIGHT ) ;
99		Text [ en-US ] = "Include on slide";
100	};
101
102#define Y1	(Y0 + RSC_CD_FIXEDLINE_HEIGHT + SPACE_Y)
103
104	CheckBox CB_HEADER
105	{
106	    HelpID = "sd:CheckBox:RID_SD_TABPAGE_HEADERFOOTER:CB_HEADER";
107		Pos = MAP_APPFONT ( C1, Y1 );
108		Size = MAP_APPFONT ( W1 - C1, RSC_CD_CHECKBOX_HEIGHT );
109		TabStop = TRUE ;
110		Text [ en-US ] = "Header";
111	};
112
113	FixedText FT_HEADER
114	{
115		Pos = MAP_APPFONT ( C2, Y1 + SPACE_Y + RSC_CD_CHECKBOX_HEIGHT + 1 );
116		Size = MAP_APPFONT ( W2, RSC_CD_FIXEDTEXT_HEIGHT );
117		TabStop = TRUE ;
118		Text [ en-US ] = "Header text";
119	};
120
121	Edit TB_HEADER_FIXED
122	{
123	    HelpID = "sd:Edit:RID_SD_TABPAGE_HEADERFOOTER:TB_HEADER_FIXED";
124		Pos = MAP_APPFONT ( C4, Y1 + SPACE_Y + RSC_CD_CHECKBOX_HEIGHT );
125		Size = MAP_APPFONT ( W3, RSC_CD_TEXTBOX_HEIGHT );
126		TabStop = TRUE ;
127		Border = TRUE ;
128	};
129
130#define Y2 (Y1 + 2 * SPACE_Y + RSC_CD_CHECKBOX_HEIGHT + RSC_CD_TEXTBOX_HEIGHT)
131
132	FixedLine FL_DATETIME
133	{
134		Pos = MAP_APPFONT ( C1, Y2 );
135		Size = MAP_APPFONT ( W1 - C1, RSC_CD_FIXEDLINE_HEIGHT );
136	};
137
138	CheckBox CB_DATETIME
139	{
140	    HelpID = "sd:CheckBox:RID_SD_TABPAGE_HEADERFOOTER:CB_DATETIME";
141		Pos = MAP_APPFONT ( C1, Y2 + SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT );
142		Size = MAP_APPFONT ( W1 - C1, RSC_CD_CHECKBOX_HEIGHT );
143		TabStop = TRUE ;
144		Text [ en-US ] = "~Date and time";
145	};
146
147	RadioButton RB_DATETIME_FIXED
148	{
149	    HelpID = "sd:RadioButton:RID_SD_TABPAGE_HEADERFOOTER:RB_DATETIME_FIXED";
150		Pos = MAP_APPFONT ( C2, Y2 + 2 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT + 1 );
151		Size = MAP_APPFONT ( W2, RSC_CD_RADIOBUTTON_HEIGHT );
152		TabStop = TRUE ;
153		Text [ en-US ] = "Fi~xed";
154	};
155
156	Edit TB_DATETIME_FIXED
157	{
158	    HelpID = "sd:Edit:RID_SD_TABPAGE_HEADERFOOTER:TB_DATETIME_FIXED";
159		Pos = MAP_APPFONT ( C4, Y2 + 2 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT );
160		Size = MAP_APPFONT ( W3, RSC_CD_TEXTBOX_HEIGHT );
161		TabStop = TRUE ;
162		Border = TRUE ;
163	};
164
165	RadioButton RB_DATETIME_AUTOMATIC
166	{
167	    HelpID = "sd:RadioButton:RID_SD_TABPAGE_HEADERFOOTER:RB_DATETIME_AUTOMATIC";
168		Pos = MAP_APPFONT ( C2, Y2 + 3 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT + RSC_CD_TEXTBOX_HEIGHT );
169		Size = MAP_APPFONT ( 80, RSC_CD_RADIOBUTTON_HEIGHT );
170		TabStop = TRUE ;
171		Text [ en-US ] = "~Variable";
172	};
173
174	ListBox CB_DATETIME_FORMAT
175	{
176	    HelpID = "sd:ListBox:RID_SD_TABPAGE_HEADERFOOTER:CB_DATETIME_FORMAT";
177		Pos = MAP_APPFONT ( C3, Y2 + 4 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT + RSC_CD_TEXTBOX_HEIGHT + RSC_CD_RADIOBUTTON_HEIGHT  );
178		Size = MAP_APPFONT ( W4, 80 );
179		TabStop = TRUE ;
180		DropDown = TRUE ;
181	};
182
183	FixedText FT_DATETIME_LANGUAGE
184	{
185		Pos = MAP_APPFONT ( C3 + W4 + SPACE_X, Y2 + 3 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT + RSC_CD_TEXTBOX_HEIGHT + 1 );
186		Size = MAP_APPFONT ( W4, RSC_CD_FIXEDTEXT_HEIGHT );
187		TabStop = TRUE ;
188		Text [ en-US ] = "~Language:";
189	};
190
191	ListBox CB_DATETIME_LANGUAGE
192	{
193	    HelpID = "sd:ListBox:RID_SD_TABPAGE_HEADERFOOTER:CB_DATETIME_LANGUAGE";
194		Pos = MAP_APPFONT ( C3 + W4 + SPACE_X, Y2 + 4 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT + RSC_CD_TEXTBOX_HEIGHT + RSC_CD_RADIOBUTTON_HEIGHT  );
195		Size = MAP_APPFONT ( W4, 80 );
196		TabStop = TRUE ;
197		DropDown = TRUE ;
198	};
199
200#define Y3	(Y2 + 5 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT + RSC_CD_TEXTBOX_HEIGHT + RSC_CD_RADIOBUTTON_HEIGHT + RSC_CD_DROPDOWN_HEIGHT )
201
202	FixedLine FL_FOOTER
203	{
204		Pos = MAP_APPFONT ( C1, Y3 );
205		Size = MAP_APPFONT ( W1 - C1, RSC_CD_FIXEDLINE_HEIGHT );
206	};
207
208	CheckBox CB_FOOTER
209	{
210	    HelpID = "sd:CheckBox:RID_SD_TABPAGE_HEADERFOOTER:CB_FOOTER";
211		Pos = MAP_APPFONT ( C1, Y3 + SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT );
212		Size = MAP_APPFONT ( W1 - C1, RSC_CD_CHECKBOX_HEIGHT );
213		TabStop = TRUE ;
214		Text [ en-US ] = "Footer";
215	};
216
217	FixedText FT_FOOTER
218	{
219		Pos = MAP_APPFONT ( C2, Y3 + 2 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT + 1 );
220		Size = MAP_APPFONT ( W2, RSC_CD_FIXEDTEXT_HEIGHT );
221		TabStop = TRUE ;
222		Text [ en-US ] = "Footer text";
223	};
224
225	Edit TB_FOOTER_FIXED
226	{
227	    HelpID = "sd:Edit:RID_SD_TABPAGE_HEADERFOOTER:TB_FOOTER_FIXED";
228		Pos = MAP_APPFONT ( C4, Y3 + 2 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT );
229		Size = MAP_APPFONT ( W3, RSC_CD_TEXTBOX_HEIGHT );
230		TabStop = TRUE ;
231		Border = TRUE ;
232	};
233
234#define Y4	(Y3 + 3 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT + RSC_CD_TEXTBOX_HEIGHT )
235
236	FixedLine FL_SLIDENUMBER
237	{
238		Pos = MAP_APPFONT ( C1, Y4 );
239		Size = MAP_APPFONT ( W1 - C1, RSC_CD_FIXEDLINE_HEIGHT );
240	};
241
242	CheckBox CB_SLIDENUMBER
243	{
244	    HelpID = "sd:CheckBox:RID_SD_TABPAGE_HEADERFOOTER:CB_SLIDENUMBER";
245		Pos = MAP_APPFONT ( C1, Y4 + SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT );
246		Size = MAP_APPFONT ( W1 - C1, RSC_CD_CHECKBOX_HEIGHT );
247		TabStop = TRUE ;
248		Text [ en-US ] = "Slide number";
249	};
250
251#define Y5	(Y4 + 2 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT )
252
253	FixedLine FL_NOTONTITLE
254	{
255		Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT, Y5 ) ;
256		Size = MAP_APPFONT ( W1 - RSC_SP_TBPG_INNERBORDER_LEFT, RSC_CD_FIXEDLINE_HEIGHT );
257	};
258
259	CheckBox CB_NOTONTITLE
260	{
261	    HelpID = "sd:CheckBox:RID_SD_TABPAGE_HEADERFOOTER:CB_NOTONTITLE";
262		Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT, Y5 + SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT );
263		Size = MAP_APPFONT ( W1 - RSC_SP_TBPG_INNERBORDER_LEFT, RSC_CD_CHECKBOX_HEIGHT );
264		TabStop = TRUE ;
265		Text [ en-US ] = "Do not show on first slide";
266	};
267
268	PushButton BT_APPLYTOALL
269	{
270	    HelpID = "sd:PushButton:RID_SD_TABPAGE_HEADERFOOTER:BT_APPLYTOALL";
271		Pos = MAP_APPFONT ( TAB_WIDTH - 7 * SPACE_X - PUSHBUTTON_WIDTH, RSC_SP_TBPG_INNERBORDER_TOP );
272		Size = MAP_APPFONT ( PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
273		TabStop = TRUE ;
274		Text [ en-US ] = "Apply to All";
275	};
276
277	PushButton BT_APPLY
278	{
279	    HelpID = "sd:PushButton:RID_SD_TABPAGE_HEADERFOOTER:BT_APPLY";
280		Pos = MAP_APPFONT ( TAB_WIDTH - 7 * SPACE_X - PUSHBUTTON_WIDTH, RSC_SP_TBPG_INNERBORDER_TOP + RSC_CD_PUSHBUTTON_HEIGHT + SPACE_Y );
281		Size = MAP_APPFONT ( PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
282		TabStop = TRUE ;
283		Text [ en-US ] = "Apply";
284	};
285
286	CancelButton BT_CANCEL
287	{
288		Pos = MAP_APPFONT ( TAB_WIDTH - 7 * SPACE_X - PUSHBUTTON_WIDTH, RSC_SP_TBPG_INNERBORDER_TOP + 2 * RSC_CD_PUSHBUTTON_HEIGHT + 2 * SPACE_Y );
289		Size = MAP_APPFONT ( PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
290		TabStop = TRUE ;
291	};
292
293	HelpButton BT_HELP
294	{
295		Pos = MAP_APPFONT ( TAB_WIDTH - 7 * SPACE_X - PUSHBUTTON_WIDTH, RSC_SP_TBPG_INNERBORDER_TOP + 3* RSC_CD_PUSHBUTTON_HEIGHT + 3 * SPACE_Y );
296		Size = MAP_APPFONT ( PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
297		TabStop = TRUE ;
298	};
299
300	Control CT_PREVIEW
301	{
302		Pos = MAP_APPFONT ( TAB_WIDTH - 7 * SPACE_X - PUSHBUTTON_WIDTH, TAB_HEIGHT - 6*SPACE_Y - PUSHBUTTON_WIDTH );
303		Size = MAP_APPFONT ( PUSHBUTTON_WIDTH, PUSHBUTTON_WIDTH );
304	};
305
306	String STR_PAGE_NUMBER
307	{
308		Text [ en-US ] = "Page number";
309	};
310
311	String STR_INCLUDE_ON_PAGE
312	{
313		Text [ en-US ] = "Include on page";
314	};
315};
316
317
318