Kaydet (Commit) c407e548 authored tarafından Caolán McNamara's avatar Caolán McNamara

convert RID_SECURITY_WARNING_NO_HYPERLINKS to MessageDialog + string

Change-Id: I960ae9b418249df58f4395445b9de98a41ac2758
üst 98ef8894
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
#define STR_QUERY_UPDATE_LINKS (RID_SFX_APP_START + 192) #define STR_QUERY_UPDATE_LINKS (RID_SFX_APP_START + 192)
#define STR_DDE_ERROR (RID_SFX_APP_START + 193) #define STR_DDE_ERROR (RID_SFX_APP_START + 193)
#define RID_SECURITY_WARNING_NO_HYPERLINKS (RID_SFX_APP_START + 194) #define STR_SECURITY_WARNING_NO_HYPERLINKS (RID_SFX_APP_START + 194)
#define RID_SVXSTR_FILELINK (RID_SFX_APP_START + 195) #define RID_SVXSTR_FILELINK (RID_SFX_APP_START + 195)
#define RID_SVXSTR_GRAFIKLINK (RID_SFX_APP_START + 196) #define RID_SVXSTR_GRAFIKLINK (RID_SFX_APP_START + 196)
......
...@@ -326,11 +326,9 @@ String STR_DDE_ERROR ...@@ -326,11 +326,9 @@ String STR_DDE_ERROR
Text [ en-US ] = "DDE link to % for % area % are not available." ; Text [ en-US ] = "DDE link to % for % area % are not available." ;
}; };
WarningBox RID_SECURITY_WARNING_NO_HYPERLINKS String STR_SECURITY_WARNING_NO_HYPERLINKS
{ {
Buttons = WB_OK ; Text [ en-US ] = "For security reasons, the hyperlink cannot be executed.\nThe stated address will not be opened.";
DefButton = WB_DEF_OK ;
Message [ en-US ] = "For security reasons, the hyperlink cannot be executed.\nThe stated address will not be opened.";
}; };
String RID_SECURITY_WARNING_TITLE String RID_SECURITY_WARNING_TITLE
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
#include <vcl/wrkwin.hxx> #include <vcl/wrkwin.hxx>
#include <svl/intitem.hxx> #include <svl/intitem.hxx>
#include <vcl/msgbox.hxx> #include <vcl/layout.hxx>
#include <svl/stritem.hxx> #include <svl/stritem.hxx>
#include <svl/eitem.hxx> #include <svl/eitem.hxx>
#include <sfx2/doctempl.hxx> #include <sfx2/doctempl.hxx>
...@@ -833,7 +833,9 @@ void SfxApplication::OpenDocExec_Impl( SfxRequest& rReq ) ...@@ -833,7 +833,9 @@ void SfxApplication::OpenDocExec_Impl( SfxRequest& rReq )
SolarMutexGuard aGuard; SolarMutexGuard aGuard;
Window *pWindow = SfxGetpApp()->GetTopWindow(); Window *pWindow = SfxGetpApp()->GetTopWindow();
WarningBox aSecurityWarningBox( pWindow, SfxResId( RID_SECURITY_WARNING_NO_HYPERLINKS )); MessageDialog aSecurityWarningBox(pWindow,
SfxResId(STR_SECURITY_WARNING_NO_HYPERLINKS),
VCL_MESSAGE_WARNING);
aSecurityWarningBox.SetText( SfxResId(RID_SECURITY_WARNING_TITLE).toString() ); aSecurityWarningBox.SetText( SfxResId(RID_SECURITY_WARNING_TITLE).toString() );
aSecurityWarningBox.Execute(); aSecurityWarningBox.Execute();
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment