13cbdc576SAndrew Rist/************************************************************** 263e57358Smseidel * 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 8*64296bf4Smseidel * "License"); you may not use this file except in compliance 93cbdc576SAndrew Rist * with the License. You may obtain a copy of the License at 1063e57358Smseidel * 113cbdc576SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 1263e57358Smseidel * 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. 1963e57358Smseidel * 203cbdc576SAndrew Rist *************************************************************/ 213cbdc576SAndrew Rist 2202f7a3b7Smseidel 23cdf0e10cSrcweir 24cdf0e10cSrcweir#include "dialogs.hrc" 25cdf0e10cSrcweir#include "helpids.hrc" 26cdf0e10cSrcweir 27cdf0e10cSrcweirTabDialog RID_XMLSECTP_MACROSEC 28cdf0e10cSrcweir{ 2963e57358Smseidel HelpID = HID_XMLSEC_TP_MACROSEC ; 3063e57358Smseidel Size = MAP_APPFONT ( TD_WIDTH, TD_HEIGHT ) ; 3163e57358Smseidel OutputSize = TRUE ; 3263e57358Smseidel Closeable = TRUE ; 3363e57358Smseidel Moveable = TRUE ; 3463e57358Smseidel SVLook = TRUE ; 35cdf0e10cSrcweir 3663e57358Smseidel Text [ en-US ] = "Macro Security" ; 37cdf0e10cSrcweir TabControl 1 38cdf0e10cSrcweir { 3963e57358Smseidel Pos = MAP_APPFONT ( TD_SP_INNERBORDER_LEFT, TD_SP_INNERBORDER_TOP ) ; 4063e57358Smseidel Size = MAP_APPFONT ( TP_WIDTH, TP_HEIGHT+RIDDER_HEIGHT ) ; 41cdf0e10cSrcweir SVLook = TRUE ; 42cdf0e10cSrcweir PageList = 43cdf0e10cSrcweir { 44cdf0e10cSrcweir PageItem 45cdf0e10cSrcweir { 4663e57358Smseidel Identifier = RID_XMLSECTP_SECLEVEL ; 4763e57358Smseidel Text [ en-US ] = "Security Level" ; 48cdf0e10cSrcweir }; 49cdf0e10cSrcweir PageItem 50cdf0e10cSrcweir { 5163e57358Smseidel Identifier = RID_XMLSECTP_TRUSTSOURCES ; 5263e57358Smseidel Text [ en-US ] = "Trusted Sources" ; 53cdf0e10cSrcweir }; 54cdf0e10cSrcweir }; 55cdf0e10cSrcweir }; 56cdf0e10cSrcweir OKButton BTN_OK 57cdf0e10cSrcweir { 5863e57358Smseidel Pos = MAP_APPFONT ( MS_COL_H, CV_ROW_A ) ; 5963e57358Smseidel Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ; 60cdf0e10cSrcweir DefButton = TRUE; 61cdf0e10cSrcweir }; 62cdf0e10cSrcweir CancelButton BTN_CANCEL 63cdf0e10cSrcweir { 6463e57358Smseidel Pos = MAP_APPFONT ( MS_COL_F, CV_ROW_A ) ; 6563e57358Smseidel Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ; 66cdf0e10cSrcweir }; 67cdf0e10cSrcweir HelpButton BTN_HELP 68cdf0e10cSrcweir { 6963e57358Smseidel Pos = MAP_APPFONT ( MS_COL_D, CV_ROW_A ) ; 7063e57358Smseidel Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ; 71cdf0e10cSrcweir }; 72cdf0e10cSrcweir PushButton BTN_RESET 73cdf0e10cSrcweir { 7463e57358Smseidel Pos = MAP_APPFONT ( MS_COL_B, CV_ROW_A ) ; 7563e57358Smseidel Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ; 7663e57358Smseidel Text [ en-US ] = "Reset" ; 77cdf0e10cSrcweir }; 78cdf0e10cSrcweir}; 79cdf0e10cSrcweir 80cdf0e10cSrcweirTabPage RID_XMLSECTP_SECLEVEL 81cdf0e10cSrcweir{ 8263e57358Smseidel HelpId = HID_XMLSEC_TP_SECLEVEL ; 8363e57358Smseidel Size = MAP_APPFONT ( TP_WIDTH, TP_HEIGHT ) ; 8463e57358Smseidel OutputSize = TRUE ; 8563e57358Smseidel Hide = TRUE ; 8663e57358Smseidel SVLook = TRUE ; 87cdf0e10cSrcweir FixedLine FL_SECLEVEL 88cdf0e10cSrcweir { 8963e57358Smseidel Pos = MAP_APPFONT ( SL_COL_0, SL_ROW_0 ) ; 9063e57358Smseidel Size = MAP_APPFONT ( SL_COL_3-SL_COL_0, RSC_CD_FIXEDLINE_HEIGHT ) ; 9163e57358Smseidel Hide = TRUE ; 92cdf0e10cSrcweir }; 9363e57358Smseidel FixedImage FI_SEC_READONLY 94cdf0e10cSrcweir { 9563e57358Smseidel Pos = MAP_APPFONT ( SL_COL_1 - 7, SL_ROW_0 + 4 ) ; 9663e57358Smseidel Size = MAP_APPFONT ( 6, 6 ) ; 9763e57358Smseidel }; 9863e57358Smseidel RadioButton RB_VERYHIGH 9963e57358Smseidel { 10063e57358Smseidel HelpID = "xmlsecurity:RadioButton:RID_XMLSECTP_SECLEVEL:RB_VERYHIGH" ; 10163e57358Smseidel Pos = MAP_APPFONT ( SL_COL_1, SL_ROW_0 ) ; 10263e57358Smseidel Size = MAP_APPFONT ( SL_COL_2-SL_COL_1, RSC_BIG_RADIOBUTTON ) ; 103cdf0e10cSrcweir WordBreak = TRUE; 10463e57358Smseidel 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." ; 105cdf0e10cSrcweir }; 106cdf0e10cSrcweir RadioButton RB_HIGH 107cdf0e10cSrcweir { 10863e57358Smseidel HelpID = "xmlsecurity:RadioButton:RID_XMLSECTP_SECLEVEL:RB_HIGH" ; 10963e57358Smseidel Pos = MAP_APPFONT ( SL_COL_1, SL_ROW_1 ) ; 11063e57358Smseidel Size = MAP_APPFONT ( SL_COL_2-SL_COL_1, RSC_BIG_RADIOBUTTON ) ; 11163e57358Smseidel WordBreak = TRUE ; 11263e57358Smseidel Text [ en-US ] = "H~igh.\nOnly signed macros from trusted sources are allowed to run. Unsigned macros are disabled." ; 113cdf0e10cSrcweir }; 114cdf0e10cSrcweir RadioButton RB_MEDIUM 115cdf0e10cSrcweir { 11663e57358Smseidel HelpID = "xmlsecurity:RadioButton:RID_XMLSECTP_SECLEVEL:RB_MEDIUM" ; 11763e57358Smseidel Pos = MAP_APPFONT ( SL_COL_1, SL_ROW_2 ) ; 11863e57358Smseidel Size = MAP_APPFONT ( SL_COL_2-SL_COL_1, RSC_BIG_RADIOBUTTON ) ; 11963e57358Smseidel WordBreak = TRUE ; 12063e57358Smseidel Text [ en-US ] = "~Medium.\nConfirmation required before executing macros from untrusted sources." ; 121cdf0e10cSrcweir }; 122cdf0e10cSrcweir RadioButton RB_LOW 123cdf0e10cSrcweir { 12463e57358Smseidel HelpID = "xmlsecurity:RadioButton:RID_XMLSECTP_SECLEVEL:RB_LOW" ; 12563e57358Smseidel Pos = MAP_APPFONT ( SL_COL_1, SL_ROW_3 ) ; 12663e57358Smseidel Size = MAP_APPFONT ( SL_COL_2-SL_COL_1, SL_ROW_4-SL_ROW_3 ) ; 12763e57358Smseidel WordBreak = TRUE ; 12863e57358Smseidel 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." ; 129cdf0e10cSrcweir }; 130cdf0e10cSrcweir}; 131cdf0e10cSrcweir 132cdf0e10cSrcweirTabPage RID_XMLSECTP_TRUSTSOURCES 133cdf0e10cSrcweir{ 13463e57358Smseidel HelpId = HID_XMLSEC_TP_TRUSTSOURCES ; 13563e57358Smseidel Size = MAP_APPFONT ( TP_WIDTH, TP_HEIGHT ) ; 13663e57358Smseidel OutputSize = TRUE ; 13763e57358Smseidel Hide = TRUE ; 13863e57358Smseidel SVLook = TRUE ; 139cdf0e10cSrcweir FixedLine FL_TRUSTCERT 140cdf0e10cSrcweir { 14163e57358Smseidel Pos = MAP_APPFONT ( TS_COL_0, TS_ROW_0 ) ; 14263e57358Smseidel Size = MAP_APPFONT ( TS_COL_8-TS_COL_0, RSC_CD_FIXEDLINE_HEIGHT ) ; 14363e57358Smseidel Text [ en-US ] = "Trusted certificates" ; 144cdf0e10cSrcweir }; 14563e57358Smseidel FixedImage FI_TRUSTCERT_RO 146cdf0e10cSrcweir { 14763e57358Smseidel Pos = MAP_APPFONT ( TS_COL_1 - 7, TS_ROW_1 ) ; 14863e57358Smseidel Size = MAP_APPFONT ( 6, 6 ) ; 14963e57358Smseidel }; 15063e57358Smseidel Control LB_TRUSTCERT 15163e57358Smseidel { 15263e57358Smseidel HelpId = HID_XMLSEC_CTRL_TRUSTSOURCES ; 15363e57358Smseidel Pos = MAP_APPFONT ( TS_COL_1, TS_ROW_1 ) ; 15463e57358Smseidel Size = MAP_APPFONT ( TS_COL_7-TS_COL_1, RSC_CD_TABLISTBOX_HEIGHT ) ; 15563e57358Smseidel SVLook = TRUE ; 15663e57358Smseidel Border = TRUE ; 157cdf0e10cSrcweir }; 158cdf0e10cSrcweir String STR_HEADERBAR 159cdf0e10cSrcweir { 16063e57358Smseidel Text [ en-US ] = "Issued to\tIssued by\tExpiration date" ; 161cdf0e10cSrcweir }; 162cdf0e10cSrcweir PushButton PB_ADD_TRUSTCERT 163cdf0e10cSrcweir { 16463e57358Smseidel HelpID = "xmlsecurity:PushButton:RID_XMLSECTP_TRUSTSOURCES:PB_ADD_TRUSTCERT" ; 16563e57358Smseidel Pos = MAP_APPFONT ( TS_COL_2, TS_ROW_2 ) ; 16663e57358Smseidel Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ; 16763e57358Smseidel Text [ en-US ] = "Add..." ; 168cdf0e10cSrcweir }; 169cdf0e10cSrcweir PushButton PB_VIEW_TRUSTCERT 170cdf0e10cSrcweir { 17163e57358Smseidel HelpID = "xmlsecurity:PushButton:RID_XMLSECTP_TRUSTSOURCES:PB_VIEW_TRUSTCERT" ; 17263e57358Smseidel Pos = MAP_APPFONT ( TS_COL_4, TS_ROW_2 ) ; 17363e57358Smseidel Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ; 17463e57358Smseidel Text [ en-US ] = "View..." ; 175cdf0e10cSrcweir }; 176cdf0e10cSrcweir PushButton PB_REMOVE_TRUSTCERT 177cdf0e10cSrcweir { 17863e57358Smseidel HelpID = "xmlsecurity:PushButton:RID_XMLSECTP_TRUSTSOURCES:PB_REMOVE_TRUSTCERT" ; 17963e57358Smseidel Pos = MAP_APPFONT ( TS_COL_6, TS_ROW_2 ) ; 18063e57358Smseidel Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ; 18163e57358Smseidel Text [ en-US ] = "Remove" ; 182cdf0e10cSrcweir }; 183cdf0e10cSrcweir FixedLine FL_TRUSTFILELOC 184cdf0e10cSrcweir { 18563e57358Smseidel Pos = MAP_APPFONT ( TS_COL_0, TS_ROW_3 ) ; 18663e57358Smseidel Size = MAP_APPFONT ( TS_COL_8-TS_COL_0, RSC_CD_FIXEDLINE_HEIGHT ) ; 18763e57358Smseidel Text [ en-US ] = "Trusted file locations" ; 188cdf0e10cSrcweir }; 189cdf0e10cSrcweir FixedText FI_TRUSTFILELOC 190cdf0e10cSrcweir { 19163e57358Smseidel Pos = MAP_APPFONT ( TS_COL_1, TS_ROW_4 ) ; 19263e57358Smseidel Size = MAP_APPFONT ( TS_COL_7-TS_COL_1, 3*RSC_CD_FIXEDLINE_HEIGHT ) ; 19363e57358Smseidel WordBreak = TRUE ; 19463e57358Smseidel Text [ en-US ] = "Document macros are always executed if they have been opened from one of the following locations." ; 19563e57358Smseidel }; 19663e57358Smseidel FixedImage FI_TRUSTFILE_RO 19763e57358Smseidel { 19863e57358Smseidel Pos = MAP_APPFONT ( TS_COL_1 - 7, TS_ROW_5 ) ; 19963e57358Smseidel Size = MAP_APPFONT ( 6, 6 ) ; 20063e57358Smseidel }; 20163e57358Smseidel ListBox LB_TRUSTFILELOC 20263e57358Smseidel { 20363e57358Smseidel HelpID = "xmlsecurity:ListBox:RID_XMLSECTP_TRUSTSOURCES:LB_TRUSTFILELOC" ; 20463e57358Smseidel Pos = MAP_APPFONT ( TS_COL_1, TS_ROW_5 ) ; 20563e57358Smseidel Size = MAP_APPFONT ( TS_COL_7-TS_COL_1, TS_ROW_6-TS_ROW_5 ) ; 20663e57358Smseidel SVLook = TRUE ; 20763e57358Smseidel Border = TRUE ; 20863e57358Smseidel VScroll = TRUE ; 20963e57358Smseidel Sort = TRUE ; 210cdf0e10cSrcweir }; 211cdf0e10cSrcweir PushButton FL_ADD_TRUSTFILELOC 212cdf0e10cSrcweir { 21363e57358Smseidel HelpID = "xmlsecurity:PushButton:RID_XMLSECTP_TRUSTSOURCES:FL_ADD_TRUSTFILELOC" ; 21463e57358Smseidel Pos = MAP_APPFONT ( TS_COL_4, TS_ROW_7 ) ; 21563e57358Smseidel Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ; 21663e57358Smseidel Text [ en-US ] = "Add..." ; 217cdf0e10cSrcweir }; 218cdf0e10cSrcweir PushButton FL_REMOVE_TRUSTFILELOC 219cdf0e10cSrcweir { 22063e57358Smseidel HelpID = "xmlsecurity:PushButton:RID_XMLSECTP_TRUSTSOURCES:FL_REMOVE_TRUSTFILELOC" ; 22163e57358Smseidel Pos = MAP_APPFONT ( TS_COL_6, TS_ROW_7 ) ; 22263e57358Smseidel Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT ) ; 22363e57358Smseidel Text [ en-US ] = "Remove" ; 224cdf0e10cSrcweir }; 225cdf0e10cSrcweir}; 226cdf0e10cSrcweirString RID_XMLSECTP_READONLY_CONFIG_TIP 227cdf0e10cSrcweir{ 22863e57358Smseidel Text [ en-US ] = "This setting is protected by the Administrator" ; 229cdf0e10cSrcweir}; 230cdf0e10cSrcweirImage RID_XMLSECTP_LOCK 231cdf0e10cSrcweir{ 23263e57358Smseidel ImageBitmap = Bitmap 23363e57358Smseidel { 23463e57358Smseidel File = "lock.png" ; 23563e57358Smseidel }; 236cdf0e10cSrcweir}; 237cdf0e10cSrcweirImage RID_XMLSECTP_LOCK_HC 238cdf0e10cSrcweir{ 23963e57358Smseidel ImageBitmap = Bitmap 24063e57358Smseidel { 24163e57358Smseidel File = "lock_hc.png" ; 24263e57358Smseidel }; 243cdf0e10cSrcweir}; 244cdf0e10cSrcweir 24563e57358Smseidel// ********************************************************************** EOF 246