2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 #include "secmacrowarnings.hrc"
24 ModalDialog RID_XMLSECDLG_MACROWARN
26 HelpId = HID_XMLSECDLG_MACROWARN;
27 Size = MAP_APPFONT( MW_WIDTH, MW_HEIGHT );
33 Text [ en-US ] = "%PRODUCTNAME - Security Warning";
37 Pos = MAP_APPFONT( MW_COL_0, MW_ROW_0 );
38 Size = MAP_APPFONT( MW_SYMBOL_WIDTH, MW_SYMBOL_HEIGHT );
42 Pos = MAP_APPFONT( MW_COL_1, MW_ROW_0+RSC_CD_FIXEDTEXT_HEIGHT );
43 Size = MAP_APPFONT( MW_COL_4-MW_COL_1, 2*RSC_CD_FIXEDTEXT_HEIGHT );
48 Pos = MAP_APPFONT( MW_COL_1, MW_ROW_1 );
49 Size = MAP_APPFONT( MW_COL_4-MW_COL_1, RSC_CD_FIXEDTEXT_HEIGHT );
51 Text [ en-US ] = "The document contains document macros signed by:";
55 Pos = MAP_APPFONT( MW_COL_1, MW_ROW_1 );
56 Size = MAP_APPFONT( MW_COL_4-MW_COL_1, RSC_CD_FIXEDTEXT_HEIGHT );
58 Text [ en-US ] = "The document contains document macros.";
62 Pos = MAP_APPFONT( MW_COL_1, MW_ROW_2 );
63 Size = MAP_APPFONT( MW_COL_2-MW_COL_1, MW_ROW_3-MW_ROW_2-RSC_SP_CTRL_DESC_Y );
66 PushButton PB_VIEWSIGNS
68 HelpID = "uui:PushButton:RID_XMLSECDLG_MACROWARN:PB_VIEWSIGNS";
69 Pos = MAP_APPFONT( MW_COL_3, MW_ROW_2 );
70 Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
71 Text [ en-US ] = "View Signatures...";
75 Pos = MAP_APPFONT( MW_COL_1, MW_ROW_3 );
76 Size = MAP_APPFONT( MW_COL_4-MW_COL_1, 4*RSC_CD_FIXEDTEXT_HEIGHT );
78 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.";
80 CheckBox CB_ALWAYSTRUST
82 HelpID = "uui:CheckBox:RID_XMLSECDLG_MACROWARN:CB_ALWAYSTRUST";
83 Pos = MAP_APPFONT( MW_COL_1, MW_ROW_4 );
84 Size = MAP_APPFONT( MW_COL_4-MW_COL_1, RSC_CD_CHECKBOX_HEIGHT );
85 Text [ en-US ] = "Always trust macros from this source";
87 FixedLine FL_BOTTOM_SEP
89 Pos = MAP_APPFONT( 0, MW_ROW_5 );
90 Size = MAP_APPFONT( MW_WIDTH, RSC_CD_FIXEDLINE_HEIGHT );
94 Pos = MAP_APPFONT( DLGS_BOTTOM_OK_X( MW_WIDTH ), MW_ROW_6 );
95 Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
96 Text [ en-US ] = "~Enable Macros";
98 CancelButton PB_DISABLE
100 Pos = MAP_APPFONT( DLGS_BOTTOM_CANCEL_X( MW_WIDTH ), MW_ROW_6 );
101 Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
103 Text [ en-US ] = "~Disable Macros";
107 Pos = MAP_APPFONT( DLGS_BOTTOM_HELP_X( MW_WIDTH ), MW_ROW_6 );
108 Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );