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 // includes ------------------------------------------------------------------ 25 26#include "templwin.hrc" 27#include <svtools/controldims.hrc> 28#include <svtools/helpid.hrc> 29#include <svtools/svtools.hrc> 30 31// Magenta and Grey as mask colors 32#define MASK_COL_MAGENTA Color { Red = 0xFFFF ; Green = 0x0000 ; Blue = 0xFFFF ; }; 33 34Control CTRL_FILEVIEW 35{ 36 Pos = MAP_APPFONT ( 0 , 0 ) ; 37 Size = MAP_APPFONT ( 200 , 180 ) ; 38}; 39 40String STR_SVT_NEWDOC 41{ 42 Text [ en-US ] = "New Document"; 43}; 44 45Image IMG_SVT_NEWDOC 46{ 47 ImageBitmap = Bitmap { File = "new_doc.bmp" ; }; 48 MaskColor = MASK_COL_MAGENTA 49}; 50 51Image IMG_SVT_NEWDOC_HC 52{ 53 ImageBitmap = Bitmap { File = "new_doc_h.bmp" ; }; 54 MaskColor = MASK_COL_MAGENTA 55}; 56 57String STR_SVT_MYDOCS 58{ 59 Text [ en-US ] = "My Documents"; 60}; 61 62Image IMG_SVT_MYDOCS 63{ 64 ImageBitmap = Bitmap { File = "my_docs.bmp" ; }; 65 MaskColor = MASK_COL_MAGENTA 66}; 67 68Image IMG_SVT_MYDOCS_HC 69{ 70 ImageBitmap = Bitmap { File = "my_docs_h.bmp" ; }; 71 MaskColor = MASK_COL_MAGENTA 72}; 73 74String STR_SVT_TEMPLATES 75{ 76 Text [ en-US ] = "Templates"; 77}; 78 79Image IMG_SVT_TEMPLATES 80{ 81 ImageBitmap = Bitmap { File = "template.bmp" ; }; 82 MaskColor = MASK_COL_MAGENTA 83}; 84 85Image IMG_SVT_TEMPLATES_HC 86{ 87 ImageBitmap = Bitmap { File = "template_h.bmp" ; }; 88 MaskColor = MASK_COL_MAGENTA 89}; 90 91String STR_SVT_SAMPLES 92{ 93 Text [ en-US ] = "Samples"; 94}; 95 96Image IMG_SVT_SAMPLES 97{ 98 ImageBitmap = Bitmap { File = "samples.bmp" ; }; 99 MaskColor = MASK_COL_MAGENTA 100}; 101 102Image IMG_SVT_SAMPLES_HC 103{ 104 ImageBitmap = Bitmap { File = "samples_h.bmp" ; }; 105 MaskColor = MASK_COL_MAGENTA 106}; 107 108ToolBox TB_SVT_FILEVIEW 109{ 110 Pos = MAP_APPFONT ( 0 , 0 ) ; 111 Size = MAP_APPFONT ( 100 , 12 ) ; 112 ItemList = 113 { 114 ToolBoxItem 115 { 116 Identifier = TI_DOCTEMPLATE_BACK; 117 HelpId = HID_TEMPLATEDLG_TB_BACK; 118 Text [ en-US ] = "Back" ; 119 }; 120 ToolBoxItem 121 { 122 Identifier = TI_DOCTEMPLATE_PREV; 123 HelpId = HID_TEMPLATEDLG_TB_PREV; 124 Text [ en-US ] = "Up One Level" ; 125 }; 126 ToolBoxItem 127 { 128 Type = TOOLBOXITEM_SEPARATOR ; 129 }; 130 ToolBoxItem 131 { 132 Identifier = TI_DOCTEMPLATE_PRINT; 133 HelpId = HID_TEMPLATEDLG_TB_PRINT; 134 Text [ en-US ] = "Print" ; 135 }; 136 }; 137}; 138 139Image IMG_SVT_DOCTEMPLATE_BACK_SMALL 140{ 141 ImageBitmap = Bitmap { File = "back_small.bmp" ; }; 142 MaskColor = MASK_COL_MAGENTA 143}; 144Image IMG_SVT_DOCTEMPLATE_BACK_LARGE 145{ 146 ImageBitmap = Bitmap { File = "back_large.bmp" ; }; 147 MaskColor = MASK_COL_MAGENTA 148}; 149Image IMG_SVT_DOCTEMPLATE_PREV_SMALL 150{ 151 ImageBitmap = Bitmap { File = "up_small.bmp" ; }; 152 MaskColor = MASK_COL_MAGENTA 153}; 154Image IMG_SVT_DOCTEMPLATE_PREV_LARGE 155{ 156 ImageBitmap = Bitmap { File = "up_large.bmp" ; }; 157 MaskColor = MASK_COL_MAGENTA 158}; 159Image IMG_SVT_DOCTEMPLATE_PRINT_SMALL 160{ 161 ImageBitmap = Bitmap { File = "sc05509.bmp" ; }; 162 MaskColor = MASK_COL_MAGENTA 163}; 164Image IMG_SVT_DOCTEMPLATE_PRINT_LARGE 165{ 166 ImageBitmap = Bitmap { File = "lc05509.bmp" ; }; 167 MaskColor = MASK_COL_MAGENTA 168}; 169Image IMG_SVT_DOCTEMPL_HC_BACK_SMALL 170{ 171 ImageBitmap = Bitmap { File = "back_small_h.bmp" ; }; 172 MaskColor = MASK_COL_MAGENTA 173}; 174Image IMG_SVT_DOCTEMPL_HC_BACK_LARGE 175{ 176 ImageBitmap = Bitmap { File = "back_large_h.bmp" ; }; 177 MaskColor = MASK_COL_MAGENTA 178}; 179Image IMG_SVT_DOCTEMPL_HC_PREV_SMALL 180{ 181 ImageBitmap = Bitmap { File = "up_small_h.bmp" ; }; 182 MaskColor = MASK_COL_MAGENTA 183}; 184Image IMG_SVT_DOCTEMPL_HC_PREV_LARGE 185{ 186 ImageBitmap = Bitmap { File = "up_large_h.bmp" ; }; 187 MaskColor = MASK_COL_MAGENTA 188}; 189Image IMG_SVT_DOCTEMPL_HC_PRINT_SMALL 190{ 191 ImageBitmap = Bitmap { File = "sch05509.bmp" ; }; 192 MaskColor = MASK_COL_MAGENTA 193}; 194Image IMG_SVT_DOCTEMPL_HC_PRINT_LARGE 195{ 196 ImageBitmap = Bitmap { File = "lch05509.bmp" ; }; 197 MaskColor = MASK_COL_MAGENTA 198}; 199 200ToolBox TB_SVT_FRAMEWIN 201{ 202 Pos = MAP_APPFONT ( 0 , 0 ) ; 203 Size = MAP_APPFONT ( 100 , 12 ) ; 204 ItemList = 205 { 206 ToolBoxItem 207 { 208 RadioCheck = TRUE; 209 AutoCheck = TRUE; 210 Identifier = TI_DOCTEMPLATE_DOCINFO; 211 HelpId = HID_TEMPLATEDLG_TB_DOCINFO; 212 Text [ en-US ] = "Document Properties" ; 213 }; 214 ToolBoxItem 215 { 216 RadioCheck = TRUE; 217 AutoCheck = TRUE; 218 Identifier = TI_DOCTEMPLATE_PREVIEW; 219 HelpId = HID_TEMPLATEDLG_TB_PREVIEW; 220 Text [ en-US ] = "Preview" ; 221 }; 222 }; 223}; 224 225Image IMG_SVT_DOCTEMPLATE_DOCINFO_SMALL 226{ 227 ImageBitmap = Bitmap { File = "info_small.bmp" ; }; 228 MaskColor = MASK_COL_MAGENTA 229}; 230Image IMG_SVT_DOCTEMPLATE_DOCINFO_LARGE 231{ 232 ImageBitmap = Bitmap { File = "info_large.bmp" ; }; 233 MaskColor = MASK_COL_MAGENTA 234}; 235Image IMG_SVT_DOCTEMPLATE_PREVIEW_SMALL 236{ 237 ImageBitmap = Bitmap { File = "preview_small.bmp" ; }; 238 MaskColor = MASK_COL_MAGENTA 239}; 240Image IMG_SVT_DOCTEMPLATE_PREVIEW_LARGE 241{ 242 ImageBitmap = Bitmap { File = "preview_large.bmp" ; }; 243 MaskColor = MASK_COL_MAGENTA 244}; 245Image IMG_SVT_DOCTEMPL_HC_DOCINFO_SMALL 246{ 247 ImageBitmap = Bitmap { File = "info_small_h.bmp" ; }; 248 MaskColor = MASK_COL_MAGENTA 249}; 250Image IMG_SVT_DOCTEMPL_HC_DOCINFO_LARGE 251{ 252 ImageBitmap = Bitmap { File = "info_large_h.bmp" ; }; 253 MaskColor = MASK_COL_MAGENTA 254}; 255Image IMG_SVT_DOCTEMPL_HC_PREVIEW_SMALL 256{ 257 ImageBitmap = Bitmap { File = "preview_small_h.bmp" ; }; 258 MaskColor = MASK_COL_MAGENTA 259}; 260Image IMG_SVT_DOCTEMPL_HC_PREVIEW_LARGE 261{ 262 ImageBitmap = Bitmap { File = "preview_large_h.bmp" ; }; 263 MaskColor = MASK_COL_MAGENTA 264}; 265 266ModalDialog DLG_DOCTEMPLATE 267{ 268 HelpId = HID_TEMPLATEDLG_DIALOG ; 269 OutputSize = TRUE ; 270 SVLook = TRUE ; 271 Size = MAP_APPFONT( 320, 250 ); 272 Text [ en-US ] = "Templates and Documents" ; 273 Moveable = TRUE ; 274 FixedText FT_DOCTEMPLATE_LINK 275 { 276 Left = TRUE ; 277 Pos = MAP_APPFONT ( 6 , 208 ) ; 278 Size = MAP_APPFONT ( 311 , RSC_CD_FIXEDTEXT_HEIGHT ) ; 279 Text [ en-US ] = "~Get more templates online..."; 280 }; 281 FixedLine FL_DOCTEMPLATE 282 { 283 Pos = MAP_APPFONT( 0, 219 ); 284 Size = MAP_APPFONT( 320, 8 ); 285 }; 286 PushButton BTN_DOCTEMPLATE_MANAGE 287 { 288 HelpID = "svtools:PushButton:DLG_DOCTEMPLATE:BTN_DOCTEMPLATE_MANAGE"; 289 Pos = MAP_APPFONT( 6, 230 ); 290 Size = MAP_APPFONT( 50, 14 ); 291 Text [ en-US ] = "Organi~ze..."; 292 }; 293 PushButton BTN_DOCTEMPLATE_EDIT 294 { 295 HelpID = "svtools:PushButton:DLG_DOCTEMPLATE:BTN_DOCTEMPLATE_EDIT"; 296 Pos = MAP_APPFONT( 59, 230 ); 297 Size = MAP_APPFONT( 50, 14 ); 298 Text [ en-US ] = "~Edit"; 299 }; 300 OKButton BTN_DOCTEMPLATE_OPEN 301 { 302 Pos = MAP_APPFONT( 155, 230 ); 303 Size = MAP_APPFONT( 50, 14 ); 304 DefButton = TRUE; 305 Text [ en-US ] = "~Open"; 306 }; 307 CancelButton BTN_DOCTEMPLATE_CANCEL 308 { 309 Pos = MAP_APPFONT( 208, 230 ); 310 Size = MAP_APPFONT( 50, 14 ); 311 }; 312 HelpButton BTN_DOCTEMPLATE_HELP 313 { 314 Pos = MAP_APPFONT( 264, 230 ); 315 Size = MAP_APPFONT( 50, 14 ); 316 }; 317}; 318 319StringArray STRARY_SVT_DOCINFO 320{ 321 ItemList [ en-US ] = 322 { 323 < "Title" ; DI_TITLE ; > ; 324 < "By" ; DI_FROM ; > ; 325 < "Date" ; DI_DATE ; > ; 326 < "Keywords" ; DI_KEYWORDS ; > ; 327 < "Description" ; DI_DESCRIPTION ; > ; 328 < "Type" ; DI_MIMETYPE ; > ; 329 < "Modified on" ; DI_MODIFIEDDATE ; > ; 330 < "Modified by" ; DI_MODIFIEDBY ; > ; 331 < "Printed on" ; DI_PRINTDATE ; > ; 332 < "Printed by" ; DI_PRINTBY ; > ; 333 < "Subject" ; DI_THEME ; > ; 334 < "Size" ; DI_SIZE ; > ; 335 }; 336 }; 337 338String STR_SVT_NEWDOC_HELP 339{ 340 Text [ en-US ] = "Click here to create new documents."; 341}; 342String STR_SVT_MYDOCS_HELP 343{ 344 Text [ en-US ] = "Contains your letters, reports and other documents"; 345}; 346String STR_SVT_TEMPLATES_HELP 347{ 348 Text [ en-US ] = "Contains templates for creating new documents"; 349}; 350String STR_SVT_SAMPLES_HELP 351{ 352 Text [ en-US ] = "Contains a selection of sample letters, reports and other documents"; 353}; 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375