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