1*cdf0e10cSrcweir/************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir#include "dialogs.hrc" 29*cdf0e10cSrcweir#include "helpids.hrc" 30*cdf0e10cSrcweir 31*cdf0e10cSrcweirTabDialog RID_XMLSECTP_MACROSEC 32*cdf0e10cSrcweir{ 33*cdf0e10cSrcweir HelpID = HID_XMLSEC_TP_MACROSEC; 34*cdf0e10cSrcweir Size = MAP_APPFONT( TD_WIDTH, TD_HEIGHT ); 35*cdf0e10cSrcweir OutputSize = TRUE; 36*cdf0e10cSrcweir Closeable = TRUE; 37*cdf0e10cSrcweir Moveable = TRUE; 38*cdf0e10cSrcweir SVLook = TRUE; 39*cdf0e10cSrcweir 40*cdf0e10cSrcweir Text [ en-US ] = "Macro Security"; 41*cdf0e10cSrcweir TabControl 1 42*cdf0e10cSrcweir { 43*cdf0e10cSrcweir Pos = MAP_APPFONT( TD_SP_INNERBORDER_LEFT, TD_SP_INNERBORDER_TOP ); 44*cdf0e10cSrcweir Size = MAP_APPFONT( TP_WIDTH, TP_HEIGHT+RIDDER_HEIGHT ); 45*cdf0e10cSrcweir SVLook = TRUE ; 46*cdf0e10cSrcweir PageList = 47*cdf0e10cSrcweir { 48*cdf0e10cSrcweir PageItem 49*cdf0e10cSrcweir { 50*cdf0e10cSrcweir Identifier = RID_XMLSECTP_SECLEVEL; 51*cdf0e10cSrcweir Text [ en-US ] = "Security Level"; 52*cdf0e10cSrcweir }; 53*cdf0e10cSrcweir PageItem 54*cdf0e10cSrcweir { 55*cdf0e10cSrcweir Identifier = RID_XMLSECTP_TRUSTSOURCES; 56*cdf0e10cSrcweir Text [ en-US ] = "Trusted Sources"; 57*cdf0e10cSrcweir }; 58*cdf0e10cSrcweir }; 59*cdf0e10cSrcweir }; 60*cdf0e10cSrcweir OKButton BTN_OK 61*cdf0e10cSrcweir { 62*cdf0e10cSrcweir Pos = MAP_APPFONT( MS_COL_H, CV_ROW_A ); 63*cdf0e10cSrcweir Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 64*cdf0e10cSrcweir DefButton = TRUE; 65*cdf0e10cSrcweir }; 66*cdf0e10cSrcweir CancelButton BTN_CANCEL 67*cdf0e10cSrcweir { 68*cdf0e10cSrcweir Pos = MAP_APPFONT( MS_COL_F, CV_ROW_A ); 69*cdf0e10cSrcweir Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 70*cdf0e10cSrcweir }; 71*cdf0e10cSrcweir HelpButton BTN_HELP 72*cdf0e10cSrcweir { 73*cdf0e10cSrcweir Pos = MAP_APPFONT( MS_COL_D, CV_ROW_A ); 74*cdf0e10cSrcweir Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 75*cdf0e10cSrcweir }; 76*cdf0e10cSrcweir PushButton BTN_RESET 77*cdf0e10cSrcweir { 78*cdf0e10cSrcweir Pos = MAP_APPFONT( MS_COL_B, CV_ROW_A ); 79*cdf0e10cSrcweir Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 80*cdf0e10cSrcweir Text [ en-US ] = "Reset"; 81*cdf0e10cSrcweir }; 82*cdf0e10cSrcweir}; 83*cdf0e10cSrcweir 84*cdf0e10cSrcweirTabPage RID_XMLSECTP_SECLEVEL 85*cdf0e10cSrcweir{ 86*cdf0e10cSrcweir HelpId = HID_XMLSEC_TP_SECLEVEL; 87*cdf0e10cSrcweir Size = MAP_APPFONT( TP_WIDTH, TP_HEIGHT ); 88*cdf0e10cSrcweir OutputSize = TRUE; 89*cdf0e10cSrcweir Hide = TRUE; 90*cdf0e10cSrcweir SVLook = TRUE; 91*cdf0e10cSrcweir FixedLine FL_SECLEVEL 92*cdf0e10cSrcweir { 93*cdf0e10cSrcweir Pos = MAP_APPFONT( SL_COL_0, SL_ROW_0 ); 94*cdf0e10cSrcweir Size = MAP_APPFONT( SL_COL_3-SL_COL_0, RSC_CD_FIXEDLINE_HEIGHT ); 95*cdf0e10cSrcweir Hide = TRUE; 96*cdf0e10cSrcweir }; 97*cdf0e10cSrcweir FixedImage FI_SEC_READONLY 98*cdf0e10cSrcweir { 99*cdf0e10cSrcweir Pos = MAP_APPFONT( SL_COL_1 - 7, SL_ROW_0 + 4 ); 100*cdf0e10cSrcweir Size = MAP_APPFONT( 6, 6 ); 101*cdf0e10cSrcweir }; 102*cdf0e10cSrcweir RadioButton RB_VERYHIGH 103*cdf0e10cSrcweir { 104*cdf0e10cSrcweir HelpID = "xmlsecurity:RadioButton:RID_XMLSECTP_SECLEVEL:RB_VERYHIGH"; 105*cdf0e10cSrcweir Pos = MAP_APPFONT( SL_COL_1, SL_ROW_0 ); 106*cdf0e10cSrcweir Size = MAP_APPFONT( SL_COL_2-SL_COL_1, RSC_BIG_RADIOBUTTON ); 107*cdf0e10cSrcweir WordBreak = TRUE; 108*cdf0e10cSrcweir Text [ en-US ] = "~Very high.\nOnly macros from trusted file locations are allowed to run. All other macros, regardless whether signed or not, are disabled."; 109*cdf0e10cSrcweir }; 110*cdf0e10cSrcweir RadioButton RB_HIGH 111*cdf0e10cSrcweir { 112*cdf0e10cSrcweir HelpID = "xmlsecurity:RadioButton:RID_XMLSECTP_SECLEVEL:RB_HIGH"; 113*cdf0e10cSrcweir Pos = MAP_APPFONT( SL_COL_1, SL_ROW_1 ); 114*cdf0e10cSrcweir Size = MAP_APPFONT( SL_COL_2-SL_COL_1, RSC_BIG_RADIOBUTTON ); 115*cdf0e10cSrcweir WordBreak = TRUE; 116*cdf0e10cSrcweir Text [ en-US ] = "H~igh.\nOnly signed macros from trusted sources are allowed to run. Unsigned macros are disabled."; 117*cdf0e10cSrcweir }; 118*cdf0e10cSrcweir RadioButton RB_MEDIUM 119*cdf0e10cSrcweir { 120*cdf0e10cSrcweir HelpID = "xmlsecurity:RadioButton:RID_XMLSECTP_SECLEVEL:RB_MEDIUM"; 121*cdf0e10cSrcweir Pos = MAP_APPFONT( SL_COL_1, SL_ROW_2 ); 122*cdf0e10cSrcweir Size = MAP_APPFONT( SL_COL_2-SL_COL_1, RSC_BIG_RADIOBUTTON ); 123*cdf0e10cSrcweir WordBreak = TRUE; 124*cdf0e10cSrcweir Text [ en-US ] = "~Medium.\nConfirmation required before executing macros from untrusted sources."; 125*cdf0e10cSrcweir }; 126*cdf0e10cSrcweir RadioButton RB_LOW 127*cdf0e10cSrcweir { 128*cdf0e10cSrcweir HelpID = "xmlsecurity:RadioButton:RID_XMLSECTP_SECLEVEL:RB_LOW"; 129*cdf0e10cSrcweir Pos = MAP_APPFONT( SL_COL_1, SL_ROW_3 ); 130*cdf0e10cSrcweir Size = MAP_APPFONT( SL_COL_2-SL_COL_1, SL_ROW_4-SL_ROW_3 ); 131*cdf0e10cSrcweir WordBreak = TRUE; 132*cdf0e10cSrcweir Text [ en-US ] = "~Low (not recommended).\nAll macros will be executed without confirmation. Use this setting only if you are certain that all documents that will be opened are safe."; 133*cdf0e10cSrcweir }; 134*cdf0e10cSrcweir}; 135*cdf0e10cSrcweir 136*cdf0e10cSrcweirTabPage RID_XMLSECTP_TRUSTSOURCES 137*cdf0e10cSrcweir{ 138*cdf0e10cSrcweir HelpId = HID_XMLSEC_TP_TRUSTSOURCES; 139*cdf0e10cSrcweir Size = MAP_APPFONT( TP_WIDTH, TP_HEIGHT ); 140*cdf0e10cSrcweir OutputSize = TRUE; 141*cdf0e10cSrcweir Hide = TRUE; 142*cdf0e10cSrcweir SVLook = TRUE; 143*cdf0e10cSrcweir FixedLine FL_TRUSTCERT 144*cdf0e10cSrcweir { 145*cdf0e10cSrcweir Pos = MAP_APPFONT( TS_COL_0, TS_ROW_0 ); 146*cdf0e10cSrcweir Size = MAP_APPFONT( TS_COL_8-TS_COL_0, RSC_CD_FIXEDLINE_HEIGHT ); 147*cdf0e10cSrcweir Text [ en-US ] = "Trusted certificates"; 148*cdf0e10cSrcweir }; 149*cdf0e10cSrcweir FixedImage FI_TRUSTCERT_RO 150*cdf0e10cSrcweir { 151*cdf0e10cSrcweir Pos = MAP_APPFONT( TS_COL_1 - 7, TS_ROW_1 ); 152*cdf0e10cSrcweir Size = MAP_APPFONT( 6, 6 ); 153*cdf0e10cSrcweir }; 154*cdf0e10cSrcweir Control LB_TRUSTCERT 155*cdf0e10cSrcweir { 156*cdf0e10cSrcweir HelpId = HID_XMLSEC_CTRL_TRUSTSOURCES; 157*cdf0e10cSrcweir Pos = MAP_APPFONT( TS_COL_1, TS_ROW_1 ); 158*cdf0e10cSrcweir Size = MAP_APPFONT( TS_COL_7-TS_COL_1, RSC_CD_TABLISTBOX_HEIGHT ); 159*cdf0e10cSrcweir SVLook = TRUE; 160*cdf0e10cSrcweir Border = TRUE; 161*cdf0e10cSrcweir }; 162*cdf0e10cSrcweir String STR_HEADERBAR 163*cdf0e10cSrcweir { 164*cdf0e10cSrcweir Text [ en-US ] = "Issued to\tIssued by\tExpiration date"; 165*cdf0e10cSrcweir }; 166*cdf0e10cSrcweir PushButton PB_ADD_TRUSTCERT 167*cdf0e10cSrcweir { 168*cdf0e10cSrcweir HelpID = "xmlsecurity:PushButton:RID_XMLSECTP_TRUSTSOURCES:PB_ADD_TRUSTCERT"; 169*cdf0e10cSrcweir Pos = MAP_APPFONT( TS_COL_2, TS_ROW_2 ); 170*cdf0e10cSrcweir Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 171*cdf0e10cSrcweir Text [ en-US ] = "Add..."; 172*cdf0e10cSrcweir }; 173*cdf0e10cSrcweir PushButton PB_VIEW_TRUSTCERT 174*cdf0e10cSrcweir { 175*cdf0e10cSrcweir HelpID = "xmlsecurity:PushButton:RID_XMLSECTP_TRUSTSOURCES:PB_VIEW_TRUSTCERT"; 176*cdf0e10cSrcweir Pos = MAP_APPFONT( TS_COL_4, TS_ROW_2 ); 177*cdf0e10cSrcweir Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 178*cdf0e10cSrcweir Text [ en-US ] = "View..."; 179*cdf0e10cSrcweir }; 180*cdf0e10cSrcweir PushButton PB_REMOVE_TRUSTCERT 181*cdf0e10cSrcweir { 182*cdf0e10cSrcweir HelpID = "xmlsecurity:PushButton:RID_XMLSECTP_TRUSTSOURCES:PB_REMOVE_TRUSTCERT"; 183*cdf0e10cSrcweir Pos = MAP_APPFONT( TS_COL_6, TS_ROW_2 ); 184*cdf0e10cSrcweir Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 185*cdf0e10cSrcweir Text [ en-US ] = "Remove"; 186*cdf0e10cSrcweir }; 187*cdf0e10cSrcweir FixedLine FL_TRUSTFILELOC 188*cdf0e10cSrcweir { 189*cdf0e10cSrcweir Pos = MAP_APPFONT( TS_COL_0, TS_ROW_3 ); 190*cdf0e10cSrcweir Size = MAP_APPFONT( TS_COL_8-TS_COL_0, RSC_CD_FIXEDLINE_HEIGHT ); 191*cdf0e10cSrcweir Text [ en-US ] = "Trusted file locations"; 192*cdf0e10cSrcweir }; 193*cdf0e10cSrcweir FixedText FI_TRUSTFILELOC 194*cdf0e10cSrcweir { 195*cdf0e10cSrcweir Pos = MAP_APPFONT( TS_COL_1, TS_ROW_4 ); 196*cdf0e10cSrcweir Size = MAP_APPFONT( TS_COL_7-TS_COL_1, 3*RSC_CD_FIXEDLINE_HEIGHT ); 197*cdf0e10cSrcweir WordBreak = TRUE; 198*cdf0e10cSrcweir Text [ en-US ] = "Document macros are always executed if they have been opened from one of the following locations."; 199*cdf0e10cSrcweir }; 200*cdf0e10cSrcweir FixedImage FI_TRUSTFILE_RO 201*cdf0e10cSrcweir { 202*cdf0e10cSrcweir Pos = MAP_APPFONT( TS_COL_1 - 7, TS_ROW_5 ); 203*cdf0e10cSrcweir Size = MAP_APPFONT( 6, 6 ); 204*cdf0e10cSrcweir }; 205*cdf0e10cSrcweir ListBox LB_TRUSTFILELOC 206*cdf0e10cSrcweir { 207*cdf0e10cSrcweir HelpID = "xmlsecurity:ListBox:RID_XMLSECTP_TRUSTSOURCES:LB_TRUSTFILELOC"; 208*cdf0e10cSrcweir Pos = MAP_APPFONT( TS_COL_1, TS_ROW_5 ); 209*cdf0e10cSrcweir Size = MAP_APPFONT( TS_COL_7-TS_COL_1, TS_ROW_6-TS_ROW_5 ); 210*cdf0e10cSrcweir SVLook = TRUE; 211*cdf0e10cSrcweir Border = TRUE; 212*cdf0e10cSrcweir VScroll = TRUE; 213*cdf0e10cSrcweir Sort = TRUE; 214*cdf0e10cSrcweir }; 215*cdf0e10cSrcweir PushButton FL_ADD_TRUSTFILELOC 216*cdf0e10cSrcweir { 217*cdf0e10cSrcweir HelpID = "xmlsecurity:PushButton:RID_XMLSECTP_TRUSTSOURCES:FL_ADD_TRUSTFILELOC"; 218*cdf0e10cSrcweir Pos = MAP_APPFONT( TS_COL_4, TS_ROW_7 ); 219*cdf0e10cSrcweir Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 220*cdf0e10cSrcweir Text [ en-US ] = "Add..."; 221*cdf0e10cSrcweir }; 222*cdf0e10cSrcweir PushButton FL_REMOVE_TRUSTFILELOC 223*cdf0e10cSrcweir { 224*cdf0e10cSrcweir HelpID = "xmlsecurity:PushButton:RID_XMLSECTP_TRUSTSOURCES:FL_REMOVE_TRUSTFILELOC"; 225*cdf0e10cSrcweir Pos = MAP_APPFONT( TS_COL_6, TS_ROW_7 ); 226*cdf0e10cSrcweir Size = MAP_APPFONT( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ); 227*cdf0e10cSrcweir Text [ en-US ] = "Remove"; 228*cdf0e10cSrcweir }; 229*cdf0e10cSrcweir}; 230*cdf0e10cSrcweirString RID_XMLSECTP_READONLY_CONFIG_TIP 231*cdf0e10cSrcweir{ 232*cdf0e10cSrcweir Text [ en-US ] = "This setting is protected by the Administrator"; 233*cdf0e10cSrcweir}; 234*cdf0e10cSrcweirImage RID_XMLSECTP_LOCK 235*cdf0e10cSrcweir{ 236*cdf0e10cSrcweir ImageBitmap = Bitmap 237*cdf0e10cSrcweir { 238*cdf0e10cSrcweir File = "lock.bmp"; 239*cdf0e10cSrcweir }; 240*cdf0e10cSrcweir MaskColor = Color { Red=0xffff; Green=0x0000; Blue=0xffff; }; 241*cdf0e10cSrcweir}; 242*cdf0e10cSrcweirImage RID_XMLSECTP_LOCK_HC 243*cdf0e10cSrcweir{ 244*cdf0e10cSrcweir ImageBitmap = Bitmap 245*cdf0e10cSrcweir { 246*cdf0e10cSrcweir File = "lock_hc.bmp"; 247*cdf0e10cSrcweir }; 248*cdf0e10cSrcweir MaskColor = Color { Red=0xffff; Green=0x0000; Blue=0xffff; }; 249*cdf0e10cSrcweir}; 250*cdf0e10cSrcweir 251