1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28#define __RSC 29 30#include "secmacrowarnings.hrc" 31#include "ids.hrc" 32 33ModalDialog RID_XMLSECDLG_MACROWARN 34{ 35 HelpId = HID_XMLSECDLG_MACROWARN; 36 Size = MAP_APPFONT( MW_WIDTH, MW_HEIGHT ); 37 OutputSize = TRUE; 38 Closeable = FALSE; 39 Moveable = TRUE; 40 SVLook = TRUE; 41 42 Text [ en-US ] = "%PRODUCTNAME - Security Warning"; 43 44 FixedImage IMG_SYMBOL 45 { 46 Pos = MAP_APPFONT( MW_COL_0, MW_ROW_0 ); 47 Size = MAP_APPFONT( MW_SYMBOL_WIDTH, MW_SYMBOL_HEIGHT ); 48 }; 49 FixedText FI_DOCNAME 50 { 51 Pos = MAP_APPFONT( MW_COL_1, MW_ROW_0+RSC_CD_FIXEDTEXT_HEIGHT ); 52 Size = MAP_APPFONT( MW_COL_4-MW_COL_1, 2*RSC_CD_FIXEDTEXT_HEIGHT ); 53 Wordbreak = TRUE; 54 }; 55 FixedText FI_DESCR1A 56 { 57 Pos = MAP_APPFONT( MW_COL_1, MW_ROW_1 ); 58 Size = MAP_APPFONT( MW_COL_4-MW_COL_1, RSC_CD_FIXEDTEXT_HEIGHT ); 59 Wordbreak = TRUE; 60 Text [ en-US ] = "The document contains document macros signed by:"; 61 }; 62 FixedText FI_DESCR1B 63 { 64 Pos = MAP_APPFONT( MW_COL_1, MW_ROW_1 ); 65 Size = MAP_APPFONT( MW_COL_4-MW_COL_1, RSC_CD_FIXEDTEXT_HEIGHT ); 66 Wordbreak = TRUE; 67 Text [ en-US ] = "The document contains document macros."; 68 }; 69 FixedText FI_SIGNS 70 { 71 Pos = MAP_APPFONT( MW_COL_1, MW_ROW_2 ); 72 Size = MAP_APPFONT( MW_COL_2-MW_COL_1, MW_ROW_3-MW_ROW_2-RSC_SP_CTRL_DESC_Y ); 73 Wordbreak = TRUE; 74 }; 75 PushButton PB_VIEWSIGNS 76 { 77 HelpID = "uui:PushButton:RID_XMLSECDLG_MACROWARN:PB_VIEWSIGNS"; 78 Pos = MAP_APPFONT( MW_COL_3, MW_ROW_2 ); 79 Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 80 Text [ en-US ] = "View Signatures..."; 81 }; 82 FixedText FI_DESCR2 83 { 84 Pos = MAP_APPFONT( MW_COL_1, MW_ROW_3 ); 85 Size = MAP_APPFONT( MW_COL_4-MW_COL_1, 4*RSC_CD_FIXEDTEXT_HEIGHT ); 86 Wordbreak = TRUE; 87 Text [ en-US ] = "Macros may contain viruses. Disabling macros for a document is always safe. If you disable macros you may lose functionality provided by the document macros."; 88 }; 89 CheckBox CB_ALWAYSTRUST 90 { 91 HelpID = "uui:CheckBox:RID_XMLSECDLG_MACROWARN:CB_ALWAYSTRUST"; 92 Pos = MAP_APPFONT( MW_COL_1, MW_ROW_4 ); 93 Size = MAP_APPFONT( MW_COL_4-MW_COL_1, RSC_CD_CHECKBOX_HEIGHT ); 94 Text [ en-US ] = "Always trust macros from this source"; 95 }; 96 FixedLine FL_BOTTOM_SEP 97 { 98 Pos = MAP_APPFONT( 0, MW_ROW_5 ); 99 Size = MAP_APPFONT( MW_WIDTH, RSC_CD_FIXEDLINE_HEIGHT ); 100 }; 101 OKButton PB_ENABLE 102 { 103 Pos = MAP_APPFONT( DLGS_BOTTOM_OK_X( MW_WIDTH ), MW_ROW_6 ); 104 Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 105 Text [ en-US ] = "~Enable Macros"; 106 }; 107 CancelButton PB_DISABLE 108 { 109 Pos = MAP_APPFONT( DLGS_BOTTOM_CANCEL_X( MW_WIDTH ), MW_ROW_6 ); 110 Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 111 DefButton = TRUE; 112 Text [ en-US ] = "~Disable Macros"; 113 }; 114 HelpButton BTN_HELP 115 { 116 Pos = MAP_APPFONT( DLGS_BOTTOM_HELP_X( MW_WIDTH ), MW_ROW_6 ); 117 Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 118 }; 119}; 120 121