1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
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.
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).
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.
26 ************************************************************************/
30 #include "secmacrowarnings.hrc"
33 ModalDialog RID_XMLSECDLG_MACROWARN
35 HelpId = HID_XMLSECDLG_MACROWARN;
36 Size = MAP_APPFONT( MW_WIDTH, MW_HEIGHT );
42 Text [ en-US ] = "%PRODUCTNAME - Security Warning";
46 Pos = MAP_APPFONT( MW_COL_0, MW_ROW_0 );
47 Size = MAP_APPFONT( MW_SYMBOL_WIDTH, MW_SYMBOL_HEIGHT );
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 );
57 Pos = MAP_APPFONT( MW_COL_1, MW_ROW_1 );
58 Size = MAP_APPFONT( MW_COL_4-MW_COL_1, RSC_CD_FIXEDTEXT_HEIGHT );
60 Text [ en-US ] = "The document contains document macros signed by:";
64 Pos = MAP_APPFONT( MW_COL_1, MW_ROW_1 );
65 Size = MAP_APPFONT( MW_COL_4-MW_COL_1, RSC_CD_FIXEDTEXT_HEIGHT );
67 Text [ en-US ] = "The document contains document macros.";
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 );
75 PushButton PB_VIEWSIGNS
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...";
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 );
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.";
89 CheckBox CB_ALWAYSTRUST
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";
96 FixedLine FL_BOTTOM_SEP
98 Pos = MAP_APPFONT( 0, MW_ROW_5 );
99 Size = MAP_APPFONT( MW_WIDTH, RSC_CD_FIXEDLINE_HEIGHT );
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";
107 CancelButton PB_DISABLE
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 );
112 Text [ en-US ] = "~Disable Macros";
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 );