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 ************************************************************************/
28 #include "dialogs.hrc"
29 #include "helpids.hrc"
31 ModalDialog RID_XMLSECTP_MACROWARN
33 HelpId = HID_XMLSEC_TP_MACROWARN;
34 Size = MAP_APPFONT( MW_WIDTH, MW_HEIGHT );
40 Text [ en-US ] = "Security Warning";
44 Pos = MAP_APPFONT( MW_COL_1, MW_ROW_0 );
45 Size = MAP_APPFONT( MW_COL_4-MW_COL_1, 3*RSC_CD_FIXEDTEXT_HEIGHT );
51 Pos = MAP_APPFONT( MW_COL_1, MW_ROW_1 );
52 Size = MAP_APPFONT( MW_COL_4-MW_COL_1, RSC_CD_FIXEDTEXT_HEIGHT );
54 Text [ en-US ] = "The document contains document macros signed by:";
58 Pos = MAP_APPFONT( MW_COL_1, MW_ROW_1 );
59 Size = MAP_APPFONT( MW_COL_4-MW_COL_1, RSC_CD_FIXEDTEXT_HEIGHT );
61 Text [ en-US ] = "The document contains document macros.";
65 Pos = MAP_APPFONT( MW_COL_1, MW_ROW_2 );
66 Size = MAP_APPFONT( MW_COL_4-MW_COL_2, MW_ROW_3-MW_ROW_2 );
70 PushButton PB_VIEWSIGNS
72 Pos = MAP_APPFONT( MW_COL_3, MW_ROW_2 );
73 Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
74 Text [ en-US ] = "View Signatures...";
78 Pos = MAP_APPFONT( MW_COL_1, MW_ROW_3 );
79 Size = MAP_APPFONT( MW_COL_4-MW_COL_1, RSC_CD_FIXEDTEXT_HEIGHT );
81 Text [ en-US ] = "Macros may contain viruses. Disabling macros for a document is always save. If you disable macros you may lose functionality provided by the document macros.";
83 CheckBox CB_ALWAYSTRUST
85 Pos = MAP_APPFONT( MW_COL_1, MW_ROW_4 );
86 Size = MAP_APPFONT( MW_COL_4-MW_COL_1, RSC_CD_CHECKBOX_HEIGHT );
87 Text [ en-US ] = "Always trust macros from this source";
89 FixedLine FL_BOTTOM_SEP
91 Pos = MAP_APPFONT( 0, DLGS_BOTTOM_FL_Y( MW_HEIGHT ) );
92 Size = MAP_APPFONT( MW_WIDTH, RSC_CD_FIXEDLINE_HEIGHT );
96 Pos = MAP_APPFONT( DLGS_BOTTOM_OK_X( MW_WIDTH ), DLGS_BOTTOM_BTN_Y( MW_HEIGHT ) );
97 Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
98 Text [ en-US ] = "Enable Macros";
100 CancelButton PB_DISABLE
102 Pos = MAP_APPFONT( DLGS_BOTTOM_CANCEL_X( MW_WIDTH ), DLGS_BOTTOM_BTN_Y( MW_HEIGHT ) );
103 Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
104 Text [ en-US ] = "Disable Macros";
108 Pos = MAP_APPFONT( DLGS_BOTTOM_HELP_X( MW_WIDTH ), DLGS_BOTTOM_BTN_Y( MW_HEIGHT ) );
109 Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );