1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include <svtools/controldims.hrc>
21 #include "dialogs.hrc"
22 #include "headerfooterdlg.hrc"
25 #define TAB_HEIGHT 186
27 #define DLG_WIDTH TAB_WIDTH + 6
28 #define DLG_HEIGHT TAB_HEIGHT + 6
30 TabDialog RID_SD_DLG_HEADERFOOTER
34 Size = MAP_APPFONT( DLG_WIDTH, DLG_HEIGHT );
35 Text [ en-US ] = "Header and Footer";
42 Pos = MAP_APPFONT( 3 , 3 );
43 Size = MAP_APPFONT( TAB_WIDTH , TAB_HEIGHT );
48 Identifier = RID_SD_TABPAGE_HEADERFOOTER_SLIDE;
49 PageResID = RID_SD_TABPAGE_HEADERFOOTER;
50 Text [ en-US ] = "Slide";
55 Identifier = RID_SD_TABPAGE_HEADERFOOTER_NOTESHANDOUT;
56 PageResID = RID_SD_TABPAGE_HEADERFOOTER;
57 Text [ en-US ] = "Notes and Handouts";
66 #define C1 (RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT)
67 #define C2 (RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + RSC_SP_CHK_TEXTINDENT)
68 #define C3 (RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 2 * RSC_SP_CHK_TEXTINDENT)
69 #define W1 (TAB_WIDTH - PUSHBUTTON_WIDTH - 10 * SPACE_X)
71 #define W3 (W1 - C2 - W2 - SPACE_X)
72 #define W4 ((W1 - C3 - SPACE_X) / 2)
74 #define C4 (C2 + W2 + SPACE_X)
76 #define PUSHBUTTON_WIDTH 80
78 TabPage RID_SD_TABPAGE_HEADERFOOTER
80 // HelpID = SID_ANIMATION_EFFECTS ;
81 Pos = MAP_APPFONT ( 0 , 0 ) ;
82 Size = MAP_APPFONT ( TAB_WIDTH , TAB_HEIGHT ) ;
85 #define Y0 (RSC_SP_TBPG_INNERBORDER_TOP )
87 FixedLine FL_INCLUDE_ON_PAGE
89 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT, Y0 ) ;
90 Size = MAP_APPFONT ( W1 - RSC_SP_TBPG_INNERBORDER_LEFT , RSC_CD_FIXEDLINE_HEIGHT ) ;
91 Text [ en-US ] = "Include on slide";
94 #define Y1 (Y0 + RSC_CD_FIXEDLINE_HEIGHT + SPACE_Y)
98 HelpID = "sd:CheckBox:RID_SD_TABPAGE_HEADERFOOTER:CB_HEADER";
99 Pos = MAP_APPFONT ( C1, Y1 );
100 Size = MAP_APPFONT ( W1 - C1, RSC_CD_CHECKBOX_HEIGHT );
102 Text [ en-US ] = "Header";
107 Pos = MAP_APPFONT ( C2, Y1 + SPACE_Y + RSC_CD_CHECKBOX_HEIGHT + 1 );
108 Size = MAP_APPFONT ( W2, RSC_CD_FIXEDTEXT_HEIGHT );
110 Text [ en-US ] = "Header text";
115 HelpID = "sd:Edit:RID_SD_TABPAGE_HEADERFOOTER:TB_HEADER_FIXED";
116 Pos = MAP_APPFONT ( C4, Y1 + SPACE_Y + RSC_CD_CHECKBOX_HEIGHT );
117 Size = MAP_APPFONT ( W3, RSC_CD_TEXTBOX_HEIGHT );
122 #define Y2 (Y1 + 2 * SPACE_Y + RSC_CD_CHECKBOX_HEIGHT + RSC_CD_TEXTBOX_HEIGHT)
124 FixedLine FL_DATETIME
126 Pos = MAP_APPFONT ( C1, Y2 );
127 Size = MAP_APPFONT ( W1 - C1, RSC_CD_FIXEDLINE_HEIGHT );
132 HelpID = "sd:CheckBox:RID_SD_TABPAGE_HEADERFOOTER:CB_DATETIME";
133 Pos = MAP_APPFONT ( C1, Y2 + SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT );
134 Size = MAP_APPFONT ( W1 - C1, RSC_CD_CHECKBOX_HEIGHT );
136 Text [ en-US ] = "~Date and time";
139 RadioButton RB_DATETIME_FIXED
141 HelpID = "sd:RadioButton:RID_SD_TABPAGE_HEADERFOOTER:RB_DATETIME_FIXED";
142 Pos = MAP_APPFONT ( C2, Y2 + 2 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT + 1 );
143 Size = MAP_APPFONT ( W2, RSC_CD_RADIOBUTTON_HEIGHT );
145 Text [ en-US ] = "Fi~xed";
148 Edit TB_DATETIME_FIXED
150 HelpID = "sd:Edit:RID_SD_TABPAGE_HEADERFOOTER:TB_DATETIME_FIXED";
151 Pos = MAP_APPFONT ( C4, Y2 + 2 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT );
152 Size = MAP_APPFONT ( W3, RSC_CD_TEXTBOX_HEIGHT );
157 RadioButton RB_DATETIME_AUTOMATIC
159 HelpID = "sd:RadioButton:RID_SD_TABPAGE_HEADERFOOTER:RB_DATETIME_AUTOMATIC";
160 Pos = MAP_APPFONT ( C2, Y2 + 3 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT + RSC_CD_TEXTBOX_HEIGHT );
161 Size = MAP_APPFONT ( 80, RSC_CD_RADIOBUTTON_HEIGHT );
163 Text [ en-US ] = "~Variable";
166 ListBox CB_DATETIME_FORMAT
168 HelpID = "sd:ListBox:RID_SD_TABPAGE_HEADERFOOTER:CB_DATETIME_FORMAT";
169 Pos = MAP_APPFONT ( C3, Y2 + 4 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT + RSC_CD_TEXTBOX_HEIGHT + RSC_CD_RADIOBUTTON_HEIGHT );
170 Size = MAP_APPFONT ( W4, 80 );
175 FixedText FT_DATETIME_LANGUAGE
177 Pos = MAP_APPFONT ( C3 + W4 + SPACE_X, Y2 + 3 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT + RSC_CD_TEXTBOX_HEIGHT + 1 );
178 Size = MAP_APPFONT ( W4, RSC_CD_FIXEDTEXT_HEIGHT );
180 Text [ en-US ] = "~Language:";
183 ListBox CB_DATETIME_LANGUAGE
185 HelpID = "sd:ListBox:RID_SD_TABPAGE_HEADERFOOTER:CB_DATETIME_LANGUAGE";
186 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 );
187 Size = MAP_APPFONT ( W4, 80 );
192 #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 )
196 Pos = MAP_APPFONT ( C1, Y3 );
197 Size = MAP_APPFONT ( W1 - C1, RSC_CD_FIXEDLINE_HEIGHT );
202 HelpID = "sd:CheckBox:RID_SD_TABPAGE_HEADERFOOTER:CB_FOOTER";
203 Pos = MAP_APPFONT ( C1, Y3 + SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT );
204 Size = MAP_APPFONT ( W1 - C1, RSC_CD_CHECKBOX_HEIGHT );
206 Text [ en-US ] = "Footer";
211 Pos = MAP_APPFONT ( C2, Y3 + 2 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT + 1 );
212 Size = MAP_APPFONT ( W2, RSC_CD_FIXEDTEXT_HEIGHT );
214 Text [ en-US ] = "Footer text";
219 HelpID = "sd:Edit:RID_SD_TABPAGE_HEADERFOOTER:TB_FOOTER_FIXED";
220 Pos = MAP_APPFONT ( C4, Y3 + 2 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT );
221 Size = MAP_APPFONT ( W3, RSC_CD_TEXTBOX_HEIGHT );
226 #define Y4 (Y3 + 3 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT + RSC_CD_TEXTBOX_HEIGHT )
228 FixedLine FL_SLIDENUMBER
230 Pos = MAP_APPFONT ( C1, Y4 );
231 Size = MAP_APPFONT ( W1 - C1, RSC_CD_FIXEDLINE_HEIGHT );
234 CheckBox CB_SLIDENUMBER
236 HelpID = "sd:CheckBox:RID_SD_TABPAGE_HEADERFOOTER:CB_SLIDENUMBER";
237 Pos = MAP_APPFONT ( C1, Y4 + SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT );
238 Size = MAP_APPFONT ( W1 - C1, RSC_CD_CHECKBOX_HEIGHT );
240 Text [ en-US ] = "Slide number";
243 #define Y5 (Y4 + 2 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT )
245 FixedLine FL_NOTONTITLE
247 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT, Y5 ) ;
248 Size = MAP_APPFONT ( W1 - RSC_SP_TBPG_INNERBORDER_LEFT, RSC_CD_FIXEDLINE_HEIGHT );
251 CheckBox CB_NOTONTITLE
253 HelpID = "sd:CheckBox:RID_SD_TABPAGE_HEADERFOOTER:CB_NOTONTITLE";
254 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT, Y5 + SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT );
255 Size = MAP_APPFONT ( W1 - RSC_SP_TBPG_INNERBORDER_LEFT, RSC_CD_CHECKBOX_HEIGHT );
257 Text [ en-US ] = "Do not show on first slide";
260 PushButton BT_APPLYTOALL
262 HelpID = "sd:PushButton:RID_SD_TABPAGE_HEADERFOOTER:BT_APPLYTOALL";
263 Pos = MAP_APPFONT ( TAB_WIDTH - 7 * SPACE_X - PUSHBUTTON_WIDTH, RSC_SP_TBPG_INNERBORDER_TOP );
264 Size = MAP_APPFONT ( PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
266 Text [ en-US ] = "Apply to All";
271 HelpID = "sd:PushButton:RID_SD_TABPAGE_HEADERFOOTER:BT_APPLY";
272 Pos = MAP_APPFONT ( TAB_WIDTH - 7 * SPACE_X - PUSHBUTTON_WIDTH, RSC_SP_TBPG_INNERBORDER_TOP + RSC_CD_PUSHBUTTON_HEIGHT + SPACE_Y );
273 Size = MAP_APPFONT ( PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
275 Text [ en-US ] = "Apply";
278 CancelButton BT_CANCEL
280 Pos = MAP_APPFONT ( TAB_WIDTH - 7 * SPACE_X - PUSHBUTTON_WIDTH, RSC_SP_TBPG_INNERBORDER_TOP + 2 * RSC_CD_PUSHBUTTON_HEIGHT + 2 * SPACE_Y );
281 Size = MAP_APPFONT ( PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
287 Pos = MAP_APPFONT ( TAB_WIDTH - 7 * SPACE_X - PUSHBUTTON_WIDTH, RSC_SP_TBPG_INNERBORDER_TOP + 3* RSC_CD_PUSHBUTTON_HEIGHT + 3 * SPACE_Y );
288 Size = MAP_APPFONT ( PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
294 Pos = MAP_APPFONT ( TAB_WIDTH - 7 * SPACE_X - PUSHBUTTON_WIDTH, TAB_HEIGHT - 6*SPACE_Y - PUSHBUTTON_WIDTH );
295 Size = MAP_APPFONT ( PUSHBUTTON_WIDTH, PUSHBUTTON_WIDTH );
298 String STR_PAGE_NUMBER
300 Text [ en-US ] = "Page number";
303 String STR_INCLUDE_ON_PAGE
305 Text [ en-US ] = "Include on page";
309 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */