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