1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: headerfooterdlg.src,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #include <svtools/controldims.hrc>
32 #include "dialogs.hrc"
33 #include "headerfooterdlg.hrc"
36 #define TAB_HEIGHT 186
38 #define DLG_WIDTH TAB_WIDTH + 6
39 #define DLG_HEIGHT TAB_HEIGHT + 6
41 TabDialog RID_SD_DLG_HEADERFOOTER
45 Size = MAP_APPFONT( DLG_WIDTH, DLG_HEIGHT );
46 Text [ en-US ] = "Header and Footer";
53 Pos = MAP_APPFONT( 3 , 3 );
54 Size = MAP_APPFONT( TAB_WIDTH , TAB_HEIGHT );
59 Identifier = RID_SD_TABPAGE_HEADERFOOTER_SLIDE;
60 PageResID = RID_SD_TABPAGE_HEADERFOOTER;
61 Text [ en-US ] = "Slide";
66 Identifier = RID_SD_TABPAGE_HEADERFOOTER_NOTESHANDOUT;
67 PageResID = RID_SD_TABPAGE_HEADERFOOTER;
68 Text [ en-US ] = "Notes and Handouts";
77 #define C1 (RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT)
78 #define C2 (RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + RSC_SP_CHK_TEXTINDENT)
79 #define C3 (RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 2 * RSC_SP_CHK_TEXTINDENT)
80 #define W1 (TAB_WIDTH - PUSHBUTTON_WIDTH - 10 * SPACE_X)
82 #define W3 (W1 - C2 - W2 - SPACE_X)
83 #define W4 ((W1 - C3 - SPACE_X) / 2)
85 #define C4 (C2 + W2 + SPACE_X)
87 #define PUSHBUTTON_WIDTH 80
89 TabPage RID_SD_TABPAGE_HEADERFOOTER
91 // HelpID = SID_ANIMATION_EFFECTS ;
92 Pos = MAP_APPFONT ( 0 , 0 ) ;
93 Size = MAP_APPFONT ( TAB_WIDTH , TAB_HEIGHT ) ;
96 #define Y0 (RSC_SP_TBPG_INNERBORDER_TOP )
98 FixedLine FL_INCLUDE_ON_PAGE
100 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT, Y0 ) ;
101 Size = MAP_APPFONT ( W1 - RSC_SP_TBPG_INNERBORDER_LEFT , RSC_CD_FIXEDLINE_HEIGHT ) ;
102 Text [ en-US ] = "Include on slide";
105 #define Y1 (Y0 + RSC_CD_FIXEDLINE_HEIGHT + SPACE_Y)
109 Pos = MAP_APPFONT ( C1, Y1 );
110 Size = MAP_APPFONT ( W1 - C1, RSC_CD_CHECKBOX_HEIGHT );
112 Text [ en-US ] = "Header";
117 Pos = MAP_APPFONT ( C2, Y1 + SPACE_Y + RSC_CD_CHECKBOX_HEIGHT + 1 );
118 Size = MAP_APPFONT ( W2, RSC_CD_FIXEDTEXT_HEIGHT );
120 Text [ en-US ] = "Header text";
125 Pos = MAP_APPFONT ( C4, Y1 + SPACE_Y + RSC_CD_CHECKBOX_HEIGHT );
126 Size = MAP_APPFONT ( W3, RSC_CD_TEXTBOX_HEIGHT );
131 #define Y2 (Y1 + 2 * SPACE_Y + RSC_CD_CHECKBOX_HEIGHT + RSC_CD_TEXTBOX_HEIGHT)
133 FixedLine FL_DATETIME
135 Pos = MAP_APPFONT ( C1, Y2 );
136 Size = MAP_APPFONT ( W1 - C1, RSC_CD_FIXEDLINE_HEIGHT );
141 Pos = MAP_APPFONT ( C1, Y2 + SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT );
142 Size = MAP_APPFONT ( W1 - C1, RSC_CD_CHECKBOX_HEIGHT );
144 Text [ en-US ] = "~Date and time";
147 RadioButton RB_DATETIME_FIXED
149 Pos = MAP_APPFONT ( C2, Y2 + 2 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT + 1 );
150 Size = MAP_APPFONT ( W2, RSC_CD_RADIOBUTTON_HEIGHT );
152 Text [ en-US ] = "Fi~xed";
155 Edit TB_DATETIME_FIXED
157 Pos = MAP_APPFONT ( C4, Y2 + 2 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT );
158 Size = MAP_APPFONT ( W3, RSC_CD_TEXTBOX_HEIGHT );
163 RadioButton RB_DATETIME_AUTOMATIC
165 Pos = MAP_APPFONT ( C2, Y2 + 3 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT + RSC_CD_TEXTBOX_HEIGHT );
166 Size = MAP_APPFONT ( 80, RSC_CD_RADIOBUTTON_HEIGHT );
168 Text [ en-US ] = "~Variable";
171 ListBox CB_DATETIME_FORMAT
173 Pos = MAP_APPFONT ( C3, Y2 + 4 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT + RSC_CD_TEXTBOX_HEIGHT + RSC_CD_RADIOBUTTON_HEIGHT );
174 Size = MAP_APPFONT ( W4, 80 );
179 FixedText FT_DATETIME_LANGUAGE
181 Pos = MAP_APPFONT ( C3 + W4 + SPACE_X, Y2 + 3 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT + RSC_CD_TEXTBOX_HEIGHT + 1 );
182 Size = MAP_APPFONT ( W4, RSC_CD_FIXEDTEXT_HEIGHT );
184 Text [ en-US ] = "~Language:";
187 ListBox CB_DATETIME_LANGUAGE
189 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 );
190 Size = MAP_APPFONT ( W4, 80 );
195 #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 )
199 Pos = MAP_APPFONT ( C1, Y3 );
200 Size = MAP_APPFONT ( W1 - C1, RSC_CD_FIXEDLINE_HEIGHT );
205 Pos = MAP_APPFONT ( C1, Y3 + SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT );
206 Size = MAP_APPFONT ( W1 - C1, RSC_CD_CHECKBOX_HEIGHT );
208 Text [ en-US ] = "Footer";
213 Pos = MAP_APPFONT ( C2, Y3 + 2 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT + 1 );
214 Size = MAP_APPFONT ( W2, RSC_CD_FIXEDTEXT_HEIGHT );
216 Text [ en-US ] = "Footer text";
221 Pos = MAP_APPFONT ( C4, Y3 + 2 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT );
222 Size = MAP_APPFONT ( W3, RSC_CD_TEXTBOX_HEIGHT );
227 #define Y4 (Y3 + 3 * SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT + RSC_CD_CHECKBOX_HEIGHT + RSC_CD_TEXTBOX_HEIGHT )
229 FixedLine FL_SLIDENUMBER
231 Pos = MAP_APPFONT ( C1, Y4 );
232 Size = MAP_APPFONT ( W1 - C1, RSC_CD_FIXEDLINE_HEIGHT );
235 CheckBox 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 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT, Y5 + SPACE_Y + RSC_CD_FIXEDLINE_HEIGHT );
254 Size = MAP_APPFONT ( W1 - RSC_SP_TBPG_INNERBORDER_LEFT, RSC_CD_CHECKBOX_HEIGHT );
256 Text [ en-US ] = "Do not show on first slide";
259 PushButton BT_APPLYTOALL
261 Pos = MAP_APPFONT ( TAB_WIDTH - 7 * SPACE_X - PUSHBUTTON_WIDTH, RSC_SP_TBPG_INNERBORDER_TOP );
262 Size = MAP_APPFONT ( PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
264 Text [ en-US ] = "Apply to All";
269 Pos = MAP_APPFONT ( TAB_WIDTH - 7 * SPACE_X - PUSHBUTTON_WIDTH, RSC_SP_TBPG_INNERBORDER_TOP + RSC_CD_PUSHBUTTON_HEIGHT + SPACE_Y );
270 Size = MAP_APPFONT ( PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
272 Text [ en-US ] = "Apply";
275 CancelButton BT_CANCEL
277 Pos = MAP_APPFONT ( TAB_WIDTH - 7 * SPACE_X - PUSHBUTTON_WIDTH, RSC_SP_TBPG_INNERBORDER_TOP + 2 * RSC_CD_PUSHBUTTON_HEIGHT + 2 * SPACE_Y );
278 Size = MAP_APPFONT ( PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
284 Pos = MAP_APPFONT ( TAB_WIDTH - 7 * SPACE_X - PUSHBUTTON_WIDTH, RSC_SP_TBPG_INNERBORDER_TOP + 3* RSC_CD_PUSHBUTTON_HEIGHT + 3 * SPACE_Y );
285 Size = MAP_APPFONT ( PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
291 Pos = MAP_APPFONT ( TAB_WIDTH - 7 * SPACE_X - PUSHBUTTON_WIDTH, TAB_HEIGHT - 6*SPACE_Y - PUSHBUTTON_WIDTH );
292 Size = MAP_APPFONT ( PUSHBUTTON_WIDTH, PUSHBUTTON_WIDTH );
295 String STR_PAGE_NUMBER
297 Text [ en-US ] = "Page number";
300 String STR_INCLUDE_ON_PAGE
302 Text [ en-US ] = "Include on page";