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#include "dialogs.hrc"
29#include "helpids.hrc"
30
31ModalDialog RID_XMLSECTP_MACROWARN
32{
33    HelpId = HID_XMLSEC_TP_MACROWARN;
34	Size = MAP_APPFONT( MW_WIDTH, MW_HEIGHT );
35	OutputSize = TRUE;
36	Closeable = TRUE;
37	Moveable = TRUE;
38	SVLook = TRUE;
39
40	Text [ en-US ] = "Security Warning";
41
42	FixedText FI_DOCNAME
43	{
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 );
46        Wordbreak = TRUE;
47		Text [ en-US ] = "";
48	};
49	FixedText FI_DESCR1A
50	{
51        Pos = MAP_APPFONT( MW_COL_1, MW_ROW_1 );
52        Size = MAP_APPFONT( MW_COL_4-MW_COL_1, RSC_CD_FIXEDTEXT_HEIGHT );
53        Wordbreak = TRUE;
54		Text [ en-US ] = "The document contains document macros signed by:";
55	};
56	FixedText FI_DESCR1B
57	{
58        Pos = MAP_APPFONT( MW_COL_1, MW_ROW_1 );
59        Size = MAP_APPFONT( MW_COL_4-MW_COL_1, RSC_CD_FIXEDTEXT_HEIGHT );
60        Wordbreak = TRUE;
61		Text [ en-US ] = "The document contains document macros.";
62	};
63	FixedText FI_SIGNS
64	{
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 );
67        Wordbreak = TRUE;
68		Text [ en-US ] = "";
69	};
70	PushButton PB_VIEWSIGNS
71	{
72	    HelpID = "xmlsecurity:PushButton:RID_XMLSECTP_MACROWARN:PB_VIEWSIGNS";
73        Pos = MAP_APPFONT( MW_COL_3, MW_ROW_2 );
74        Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
75		Text [ en-US ] = "View Signatures...";
76	};
77	FixedText FI_DESCR2
78	{
79        Pos = MAP_APPFONT( MW_COL_1, MW_ROW_3 );
80        Size = MAP_APPFONT( MW_COL_4-MW_COL_1, RSC_CD_FIXEDTEXT_HEIGHT );
81        Wordbreak = TRUE;
82		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	};
84	CheckBox CB_ALWAYSTRUST
85	{
86	    HelpID = "xmlsecurity:CheckBox:RID_XMLSECTP_MACROWARN:CB_ALWAYSTRUST";
87        Pos = MAP_APPFONT( MW_COL_1, MW_ROW_4 );
88        Size = MAP_APPFONT( MW_COL_4-MW_COL_1, RSC_CD_CHECKBOX_HEIGHT );
89		Text [ en-US ] = "Always trust macros from this source";
90	};
91    FixedLine FL_BOTTOM_SEP
92	{
93        Pos = MAP_APPFONT( 0, DLGS_BOTTOM_FL_Y( MW_HEIGHT ) );
94        Size = MAP_APPFONT( MW_WIDTH, RSC_CD_FIXEDLINE_HEIGHT );
95	};
96	PushButton PB_ENABLE
97	{
98	    HelpID = "xmlsecurity:PushButton:RID_XMLSECTP_MACROWARN:PB_ENABLE";
99        Pos = MAP_APPFONT( DLGS_BOTTOM_OK_X( MW_WIDTH ), DLGS_BOTTOM_BTN_Y( MW_HEIGHT ) );
100		Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
101		Text [ en-US ] = "Enable Macros";
102	};
103	CancelButton PB_DISABLE
104	{
105        Pos = MAP_APPFONT( DLGS_BOTTOM_CANCEL_X( MW_WIDTH ), DLGS_BOTTOM_BTN_Y( MW_HEIGHT ) );
106		Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
107		Text [ en-US ] = "Disable Macros";
108	};
109	HelpButton BTN_HELP
110	{
111        Pos = MAP_APPFONT( DLGS_BOTTOM_HELP_X( MW_WIDTH ), DLGS_BOTTOM_BTN_Y( MW_HEIGHT ) );
112		Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
113	};
114};
115
116