1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include "dialogs.hrc"
21 #include "helpids.hrc"
23 ModalDialog RID_XMLSECTP_MACROWARN
25 HelpId = HID_XMLSEC_TP_MACROWARN;
26 Size = MAP_APPFONT( MW_WIDTH, MW_HEIGHT );
32 Text [ en-US ] = "Security Warning";
36 Pos = MAP_APPFONT( MW_COL_1, MW_ROW_0 );
37 Size = MAP_APPFONT( MW_COL_4-MW_COL_1, 3*RSC_CD_FIXEDTEXT_HEIGHT );
43 Pos = MAP_APPFONT( MW_COL_1, MW_ROW_1 );
44 Size = MAP_APPFONT( MW_COL_4-MW_COL_1, RSC_CD_FIXEDTEXT_HEIGHT );
46 Text [ en-US ] = "The document contains document macros signed by:";
50 Pos = MAP_APPFONT( MW_COL_1, MW_ROW_1 );
51 Size = MAP_APPFONT( MW_COL_4-MW_COL_1, RSC_CD_FIXEDTEXT_HEIGHT );
53 Text [ en-US ] = "The document contains document macros.";
57 Pos = MAP_APPFONT( MW_COL_1, MW_ROW_2 );
58 Size = MAP_APPFONT( MW_COL_4-MW_COL_2, MW_ROW_3-MW_ROW_2 );
62 PushButton PB_VIEWSIGNS
64 HelpID = "xmlsecurity:PushButton:RID_XMLSECTP_MACROWARN:PB_VIEWSIGNS";
65 Pos = MAP_APPFONT( MW_COL_3, MW_ROW_2 );
66 Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
67 Text [ en-US ] = "View Signatures...";
71 Pos = MAP_APPFONT( MW_COL_1, MW_ROW_3 );
72 Size = MAP_APPFONT( MW_COL_4-MW_COL_1, RSC_CD_FIXEDTEXT_HEIGHT );
74 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.";
76 CheckBox CB_ALWAYSTRUST
78 HelpID = "xmlsecurity:CheckBox:RID_XMLSECTP_MACROWARN:CB_ALWAYSTRUST";
79 Pos = MAP_APPFONT( MW_COL_1, MW_ROW_4 );
80 Size = MAP_APPFONT( MW_COL_4-MW_COL_1, RSC_CD_CHECKBOX_HEIGHT );
81 Text [ en-US ] = "Always trust macros from this source";
83 FixedLine FL_BOTTOM_SEP
85 Pos = MAP_APPFONT( 0, DLGS_BOTTOM_FL_Y( MW_HEIGHT ) );
86 Size = MAP_APPFONT( MW_WIDTH, RSC_CD_FIXEDLINE_HEIGHT );
90 HelpID = "xmlsecurity:PushButton:RID_XMLSECTP_MACROWARN:PB_ENABLE";
91 Pos = MAP_APPFONT( DLGS_BOTTOM_OK_X( MW_WIDTH ), DLGS_BOTTOM_BTN_Y( MW_HEIGHT ) );
92 Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
93 Text [ en-US ] = "Enable Macros";
95 CancelButton PB_DISABLE
97 Pos = MAP_APPFONT( DLGS_BOTTOM_CANCEL_X( MW_WIDTH ), DLGS_BOTTOM_BTN_Y( MW_HEIGHT ) );
98 Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
99 Text [ en-US ] = "Disable Macros";
103 Pos = MAP_APPFONT( DLGS_BOTTOM_HELP_X( MW_WIDTH ), DLGS_BOTTOM_BTN_Y( MW_HEIGHT ) );
104 Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
108 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */