xref: /AOO41X/main/xmlsecurity/source/dialogs/warnings.src (revision d3e0dd8eb215533c15e891ee35bd141abe9397ee)
13cbdc576SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
33cbdc576SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
43cbdc576SAndrew Rist * or more contributor license agreements.  See the NOTICE file
53cbdc576SAndrew Rist * distributed with this work for additional information
63cbdc576SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
73cbdc576SAndrew Rist * to you under the Apache License, Version 2.0 (the
83cbdc576SAndrew Rist * "License"); you may not use this file except in compliance
93cbdc576SAndrew Rist * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir *
113cbdc576SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
133cbdc576SAndrew Rist * Unless required by applicable law or agreed to in writing,
143cbdc576SAndrew Rist * software distributed under the License is distributed on an
153cbdc576SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
163cbdc576SAndrew Rist * KIND, either express or implied.  See the License for the
173cbdc576SAndrew Rist * specific language governing permissions and limitations
183cbdc576SAndrew Rist * under the License.
19cdf0e10cSrcweir *
203cbdc576SAndrew Rist *************************************************************/
213cbdc576SAndrew Rist
223cbdc576SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir#include "dialogs.hrc"
25cdf0e10cSrcweir#include "helpids.hrc"
26cdf0e10cSrcweir
27cdf0e10cSrcweirModalDialog RID_XMLSECTP_MACROWARN
28cdf0e10cSrcweir{
29cdf0e10cSrcweir    HelpId = HID_XMLSEC_TP_MACROWARN;
30cdf0e10cSrcweir	Size = MAP_APPFONT( MW_WIDTH, MW_HEIGHT );
31cdf0e10cSrcweir	OutputSize = TRUE;
32cdf0e10cSrcweir	Closeable = TRUE;
33cdf0e10cSrcweir	Moveable = TRUE;
34cdf0e10cSrcweir	SVLook = TRUE;
35cdf0e10cSrcweir
36cdf0e10cSrcweir	Text [ en-US ] = "Security Warning";
37cdf0e10cSrcweir
38cdf0e10cSrcweir	FixedText FI_DOCNAME
39cdf0e10cSrcweir	{
40cdf0e10cSrcweir        Pos = MAP_APPFONT( MW_COL_1, MW_ROW_0 );
41cdf0e10cSrcweir        Size = MAP_APPFONT( MW_COL_4-MW_COL_1, 3*RSC_CD_FIXEDTEXT_HEIGHT );
42cdf0e10cSrcweir        Wordbreak = TRUE;
43cdf0e10cSrcweir		Text [ en-US ] = "";
44cdf0e10cSrcweir	};
45cdf0e10cSrcweir	FixedText FI_DESCR1A
46cdf0e10cSrcweir	{
47cdf0e10cSrcweir        Pos = MAP_APPFONT( MW_COL_1, MW_ROW_1 );
48cdf0e10cSrcweir        Size = MAP_APPFONT( MW_COL_4-MW_COL_1, RSC_CD_FIXEDTEXT_HEIGHT );
49cdf0e10cSrcweir        Wordbreak = TRUE;
50cdf0e10cSrcweir		Text [ en-US ] = "The document contains document macros signed by:";
51cdf0e10cSrcweir	};
52cdf0e10cSrcweir	FixedText FI_DESCR1B
53cdf0e10cSrcweir	{
54cdf0e10cSrcweir        Pos = MAP_APPFONT( MW_COL_1, MW_ROW_1 );
55cdf0e10cSrcweir        Size = MAP_APPFONT( MW_COL_4-MW_COL_1, RSC_CD_FIXEDTEXT_HEIGHT );
56cdf0e10cSrcweir        Wordbreak = TRUE;
57cdf0e10cSrcweir		Text [ en-US ] = "The document contains document macros.";
58cdf0e10cSrcweir	};
59cdf0e10cSrcweir	FixedText FI_SIGNS
60cdf0e10cSrcweir	{
61cdf0e10cSrcweir        Pos = MAP_APPFONT( MW_COL_1, MW_ROW_2 );
62cdf0e10cSrcweir        Size = MAP_APPFONT( MW_COL_4-MW_COL_2, MW_ROW_3-MW_ROW_2 );
63cdf0e10cSrcweir        Wordbreak = TRUE;
64cdf0e10cSrcweir		Text [ en-US ] = "";
65cdf0e10cSrcweir	};
66cdf0e10cSrcweir	PushButton PB_VIEWSIGNS
67cdf0e10cSrcweir	{
68cdf0e10cSrcweir	    HelpID = "xmlsecurity:PushButton:RID_XMLSECTP_MACROWARN:PB_VIEWSIGNS";
69cdf0e10cSrcweir        Pos = MAP_APPFONT( MW_COL_3, MW_ROW_2 );
70cdf0e10cSrcweir        Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
71cdf0e10cSrcweir		Text [ en-US ] = "View Signatures...";
72cdf0e10cSrcweir	};
73cdf0e10cSrcweir	FixedText FI_DESCR2
74cdf0e10cSrcweir	{
75cdf0e10cSrcweir        Pos = MAP_APPFONT( MW_COL_1, MW_ROW_3 );
76cdf0e10cSrcweir        Size = MAP_APPFONT( MW_COL_4-MW_COL_1, RSC_CD_FIXEDTEXT_HEIGHT );
77cdf0e10cSrcweir        Wordbreak = TRUE;
78*6b30edc8SJürgen Schmidt		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.";
79cdf0e10cSrcweir	};
80cdf0e10cSrcweir	CheckBox CB_ALWAYSTRUST
81cdf0e10cSrcweir	{
82cdf0e10cSrcweir	    HelpID = "xmlsecurity:CheckBox:RID_XMLSECTP_MACROWARN:CB_ALWAYSTRUST";
83cdf0e10cSrcweir        Pos = MAP_APPFONT( MW_COL_1, MW_ROW_4 );
84cdf0e10cSrcweir        Size = MAP_APPFONT( MW_COL_4-MW_COL_1, RSC_CD_CHECKBOX_HEIGHT );
85cdf0e10cSrcweir		Text [ en-US ] = "Always trust macros from this source";
86cdf0e10cSrcweir	};
87cdf0e10cSrcweir    FixedLine FL_BOTTOM_SEP
88cdf0e10cSrcweir	{
89cdf0e10cSrcweir        Pos = MAP_APPFONT( 0, DLGS_BOTTOM_FL_Y( MW_HEIGHT ) );
90cdf0e10cSrcweir        Size = MAP_APPFONT( MW_WIDTH, RSC_CD_FIXEDLINE_HEIGHT );
91cdf0e10cSrcweir	};
92cdf0e10cSrcweir	PushButton PB_ENABLE
93cdf0e10cSrcweir	{
94cdf0e10cSrcweir	    HelpID = "xmlsecurity:PushButton:RID_XMLSECTP_MACROWARN:PB_ENABLE";
95cdf0e10cSrcweir        Pos = MAP_APPFONT( DLGS_BOTTOM_OK_X( MW_WIDTH ), DLGS_BOTTOM_BTN_Y( MW_HEIGHT ) );
96cdf0e10cSrcweir		Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
97cdf0e10cSrcweir		Text [ en-US ] = "Enable Macros";
98cdf0e10cSrcweir	};
99cdf0e10cSrcweir	CancelButton PB_DISABLE
100cdf0e10cSrcweir	{
101cdf0e10cSrcweir        Pos = MAP_APPFONT( DLGS_BOTTOM_CANCEL_X( MW_WIDTH ), DLGS_BOTTOM_BTN_Y( MW_HEIGHT ) );
102cdf0e10cSrcweir		Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
103cdf0e10cSrcweir		Text [ en-US ] = "Disable Macros";
104cdf0e10cSrcweir	};
105cdf0e10cSrcweir	HelpButton BTN_HELP
106cdf0e10cSrcweir	{
107cdf0e10cSrcweir        Pos = MAP_APPFONT( DLGS_BOTTOM_HELP_X( MW_WIDTH ), DLGS_BOTTOM_BTN_Y( MW_HEIGHT ) );
108cdf0e10cSrcweir		Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT );
109cdf0e10cSrcweir	};
110cdf0e10cSrcweir};
111cdf0e10cSrcweir
112