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