1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
|
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <svtools/controldims.hrc>
#include "dialogs.hrc"
#include "headerfooterdlg.hrc"
#define TAB_WIDTH 290
#define TAB_HEIGHT 186
#define DLG_WIDTH TAB_WIDTH + 6
#define DLG_HEIGHT TAB_HEIGHT + 6
TabDialog RID_SD_DLG_HEADERFOOTER
{
OutputSize = TRUE;
SVLook = TRUE;
Size = MAP_APPFONT( DLG_WIDTH, DLG_HEIGHT );
Text [ en-US ] = "Header and Footer";
Moveable = TRUE;
Closeable = TRUE;
TabControl 1
{
OutputSize = TRUE;
Pos = MAP_APPFONT( 3 , 3 );
Size = MAP_APPFONT( TAB_WIDTH , TAB_HEIGHT );
PageList =
{
PageItem
{
Identifier = RID_SD_TABPAGE_HEADERFOOTER_SLIDE;
PageResID = RID_SD_TABPAGE_HEADERFOOTER;
Text [ en-US ] = "Slide";
};
PageItem
{
Identifier = RID_SD_TABPAGE_HEADERFOOTER_NOTESHANDOUT;
PageResID = RID_SD_TABPAGE_HEADERFOOTER;
Text [ en-US ] = "Notes and Handouts";
};
};
};
};
#define SPACE_Y 3
#define SPACE_X 3
#define C1 (RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT)
#define C2 (RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + RSC_SP_CHK_TEXTINDENT)
#define C3 (RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 2 * RSC_SP_CHK_TEXTINDENT)
#define W1 (TAB_WIDTH - PUSHBUTTON_WIDTH - 10 * SPACE_X)
#define W2 (60)
#define W3 (W1 - C2 - W2 - SPACE_X)
#define W4 ((W1 - C3 - SPACE_X) / 2)
#define C4 (C2 + W2 + SPACE_X)
#define PUSHBUTTON_WIDTH 80
TabPage RID_SD_TABPAGE_HEADERFOOTER
{
// HelpID = SID_ANIMATION_EFFECTS ;
Pos = MAP_APPFONT ( 0 , 0 ) ;
Size = MAP_APPFONT ( TAB_WIDTH , TAB_HEIGHT ) ;
Hide = TRUE;
#define Y0 (RSC_SP_TBPG_INNERBORDER_TOP )
FixedLine FL_INCLUDE_ON_PAGE
{
Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT, Y0 ) ;
Size = MAP_APPFONT ( W1 - RSC_SP_TBPG_INNERBORDER_LEFT , RSC_CD_FIXEDLINE_HEIGHT ) ;
Text [ en-US ] = "Include on slide";
};
#define Y1 (Y0 + RSC_CD_FIXEDLINE_HEIGHT + SPACE_Y)
CheckBox CB_HEADER
{
HelpID = "sd:CheckBox:RID_SD_TABPAGE_HEADERFOOTER:CB_HEADER";
Pos = MAP_APPFONT ( C1, Y1 );
Size = MAP_APPFONT ( W1 - C1, RSC_CD_CHECKBOX_HEIGHT );
TabStop = TRUE ;
Text [ en-US ] = "Header";
};
FixedText FT_HEADER
{
Pos = MAP_APPFONT ( C2, Y1 + SPACE_Y + RSC_CD_CHECKBOX_HEIGHT + 1 );
Size = MAP_APPFONT ( W2, RSC_CD_FIXEDTEXT_HEIGHT );
TabStop = TRUE ;
Text [ en-US ] = "Header text";
};
Edit TB_HEADER_FIXED
{
HelpID = "sd:Edit:RID_SD_TABPAGE_HEADERFOOTER:TB_HEADER_FIXED";
Pos = MAP_APPFONT ( C4, Y1 + SPACE_Y + RSC_CD_CHECKBOX_HEIGHT );
Size = MAP_APPFONT ( W3, RSC_CD_TEXTBOX_HEIGHT );
TabStop = TRUE ;
Border = TRUE ;
};
#define Y2 (Y1 + 2 * SPACE_Y + RSC_CD_CHECKBOX_HEIGHT + RSC_CD_TEXTBOX_HEIGHT)
FixedLine FL_DATETIME
{
Pos = MAP_APPFONT ( C1, Y2 );
Size = MAP_APPFONT ( W1 - C1, RSC_CD_FIXEDLINE_HEIGHT );
};
CheckBox CB_DATETIME
{
HelpID = "sd:CheckBox:RID_SD_TABPAGE_HEADERFOOTER:CB_DATETIME";
Pos = MAP_APPFONT ( C1, Y2 + SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT );
Size = MAP_APPFONT ( W1 - C1, RSC_CD_CHECKBOX_HEIGHT );
TabStop = TRUE ;
Text [ en-US ] = "~Date and time";
};
RadioButton RB_DATETIME_FIXED
{
HelpID = "sd:RadioButton:RID_SD_TABPAGE_HEADERFOOTER:RB_DATETIME_FIXED";
Pos = MAP_APPFONT ( C2, Y2 + 2 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT + 1 );
Size = MAP_APPFONT ( W2, RSC_CD_RADIOBUTTON_HEIGHT );
TabStop = TRUE ;
Text [ en-US ] = "Fi~xed";
};
Edit TB_DATETIME_FIXED
{
HelpID = "sd:Edit:RID_SD_TABPAGE_HEADERFOOTER:TB_DATETIME_FIXED";
Pos = MAP_APPFONT ( C4, Y2 + 2 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT );
Size = MAP_APPFONT ( W3, RSC_CD_TEXTBOX_HEIGHT );
TabStop = TRUE ;
Border = TRUE ;
};
RadioButton RB_DATETIME_AUTOMATIC
{
HelpID = "sd:RadioButton:RID_SD_TABPAGE_HEADERFOOTER:RB_DATETIME_AUTOMATIC";
Pos = MAP_APPFONT ( C2, Y2 + 3 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT + RSC_CD_TEXTBOX_HEIGHT );
Size = MAP_APPFONT ( 80, RSC_CD_RADIOBUTTON_HEIGHT );
TabStop = TRUE ;
Text [ en-US ] = "~Variable";
};
ListBox CB_DATETIME_FORMAT
{
HelpID = "sd:ListBox:RID_SD_TABPAGE_HEADERFOOTER:CB_DATETIME_FORMAT";
Pos = MAP_APPFONT ( C3, Y2 + 4 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT + RSC_CD_TEXTBOX_HEIGHT + RSC_CD_RADIOBUTTON_HEIGHT );
Size = MAP_APPFONT ( W4, 80 );
TabStop = TRUE ;
DropDown = TRUE ;
};
FixedText FT_DATETIME_LANGUAGE
{
Pos = MAP_APPFONT ( C3 + W4 + SPACE_X, Y2 + 3 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT + RSC_CD_TEXTBOX_HEIGHT + 1 );
Size = MAP_APPFONT ( W4, RSC_CD_FIXEDTEXT_HEIGHT );
TabStop = TRUE ;
Text [ en-US ] = "~Language:";
};
ListBox CB_DATETIME_LANGUAGE
{
HelpID = "sd:ListBox:RID_SD_TABPAGE_HEADERFOOTER:CB_DATETIME_LANGUAGE";
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 );
Size = MAP_APPFONT ( W4, 80 );
TabStop = TRUE ;
DropDown = TRUE ;
};
#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 )
FixedLine FL_FOOTER
{
Pos = MAP_APPFONT ( C1, Y3 );
Size = MAP_APPFONT ( W1 - C1, RSC_CD_FIXEDLINE_HEIGHT );
};
CheckBox CB_FOOTER
{
HelpID = "sd:CheckBox:RID_SD_TABPAGE_HEADERFOOTER:CB_FOOTER";
Pos = MAP_APPFONT ( C1, Y3 + SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT );
Size = MAP_APPFONT ( W1 - C1, RSC_CD_CHECKBOX_HEIGHT );
TabStop = TRUE ;
Text [ en-US ] = "Footer";
};
FixedText FT_FOOTER
{
Pos = MAP_APPFONT ( C2, Y3 + 2 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT + 1 );
Size = MAP_APPFONT ( W2, RSC_CD_FIXEDTEXT_HEIGHT );
TabStop = TRUE ;
Text [ en-US ] = "Footer text";
};
Edit TB_FOOTER_FIXED
{
HelpID = "sd:Edit:RID_SD_TABPAGE_HEADERFOOTER:TB_FOOTER_FIXED";
Pos = MAP_APPFONT ( C4, Y3 + 2 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT );
Size = MAP_APPFONT ( W3, RSC_CD_TEXTBOX_HEIGHT );
TabStop = TRUE ;
Border = TRUE ;
};
#define Y4 (Y3 + 3 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT + RSC_CD_TEXTBOX_HEIGHT )
FixedLine FL_SLIDENUMBER
{
Pos = MAP_APPFONT ( C1, Y4 );
Size = MAP_APPFONT ( W1 - C1, RSC_CD_FIXEDLINE_HEIGHT );
};
CheckBox CB_SLIDENUMBER
{
HelpID = "sd:CheckBox:RID_SD_TABPAGE_HEADERFOOTER:CB_SLIDENUMBER";
Pos = MAP_APPFONT ( C1, Y4 + SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT );
Size = MAP_APPFONT ( W1 - C1, RSC_CD_CHECKBOX_HEIGHT );
TabStop = TRUE ;
Text [ en-US ] = "Slide number";
};
#define Y5 (Y4 + 2 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT )
FixedLine FL_NOTONTITLE
{
Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT, Y5 ) ;
Size = MAP_APPFONT ( W1 - RSC_SP_TBPG_INNERBORDER_LEFT, RSC_CD_FIXEDLINE_HEIGHT );
};
CheckBox CB_NOTONTITLE
{
HelpID = "sd:CheckBox:RID_SD_TABPAGE_HEADERFOOTER:CB_NOTONTITLE";
Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT, Y5 + SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT );
Size = MAP_APPFONT ( W1 - RSC_SP_TBPG_INNERBORDER_LEFT, RSC_CD_CHECKBOX_HEIGHT );
TabStop = TRUE ;
Text [ en-US ] = "Do not show on first slide";
};
PushButton BT_APPLYTOALL
{
HelpID = "sd:PushButton:RID_SD_TABPAGE_HEADERFOOTER:BT_APPLYTOALL";
Pos = MAP_APPFONT ( TAB_WIDTH - 7 * SPACE_X - PUSHBUTTON_WIDTH, RSC_SP_TBPG_INNERBORDER_TOP );
Size = MAP_APPFONT ( PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
TabStop = TRUE ;
Text [ en-US ] = "Apply to All";
};
PushButton BT_APPLY
{
HelpID = "sd:PushButton:RID_SD_TABPAGE_HEADERFOOTER:BT_APPLY";
Pos = MAP_APPFONT ( TAB_WIDTH - 7 * SPACE_X - PUSHBUTTON_WIDTH, RSC_SP_TBPG_INNERBORDER_TOP + RSC_CD_PUSHBUTTON_HEIGHT + SPACE_Y );
Size = MAP_APPFONT ( PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
TabStop = TRUE ;
Text [ en-US ] = "Apply";
};
CancelButton BT_CANCEL
{
Pos = MAP_APPFONT ( TAB_WIDTH - 7 * SPACE_X - PUSHBUTTON_WIDTH, RSC_SP_TBPG_INNERBORDER_TOP + 2 * RSC_CD_PUSHBUTTON_HEIGHT + 2 * SPACE_Y );
Size = MAP_APPFONT ( PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
TabStop = TRUE ;
};
HelpButton BT_HELP
{
Pos = MAP_APPFONT ( TAB_WIDTH - 7 * SPACE_X - PUSHBUTTON_WIDTH, RSC_SP_TBPG_INNERBORDER_TOP + 3* RSC_CD_PUSHBUTTON_HEIGHT + 3 * SPACE_Y );
Size = MAP_APPFONT ( PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
TabStop = TRUE ;
};
Control CT_PREVIEW
{
Pos = MAP_APPFONT ( TAB_WIDTH - 7 * SPACE_X - PUSHBUTTON_WIDTH, TAB_HEIGHT - 6*SPACE_Y - PUSHBUTTON_WIDTH );
Size = MAP_APPFONT ( PUSHBUTTON_WIDTH, PUSHBUTTON_WIDTH );
};
String STR_PAGE_NUMBER
{
Text [ en-US ] = "Page number";
};
String STR_INCLUDE_ON_PAGE
{
Text [ en-US ] = "Include on page";
};
};
|