summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-08-25 15:22:06 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-08-25 16:45:29 +0100
commitc407e548cf2ea606c819c7bb5a26559cb0d128be (patch)
tree493e087dbcdd00b5c77c400b3bb5b825cd65df54 /sfx2
parent98ef8894dd01665eda2c303543c366a15a553af7 (diff)
convert RID_SECURITY_WARNING_NO_HYPERLINKS to MessageDialog + string
Change-Id: I960ae9b418249df58f4395445b9de98a41ac2758
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/app.hrc2
-rw-r--r--sfx2/source/appl/app.src6
-rw-r--r--sfx2/source/appl/appopen.cxx6
3 files changed, 7 insertions, 7 deletions
diff --git a/sfx2/source/appl/app.hrc b/sfx2/source/appl/app.hrc
index a4aaf0e7bdf6..1d74997ef325 100644
--- a/sfx2/source/appl/app.hrc
+++ b/sfx2/source/appl/app.hrc
@@ -108,7 +108,7 @@
#define STR_QUERY_UPDATE_LINKS (RID_SFX_APP_START + 192)
#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_GRAFIKLINK (RID_SFX_APP_START + 196)
diff --git a/sfx2/source/appl/app.src b/sfx2/source/appl/app.src
index a18b076c4d39..aeb560d52e9f 100644
--- a/sfx2/source/appl/app.src
+++ b/sfx2/source/appl/app.src
@@ -326,11 +326,9 @@ String STR_DDE_ERROR
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 ;
- DefButton = WB_DEF_OK ;
- Message [ en-US ] = "For security reasons, the hyperlink cannot be executed.\nThe stated address will not be opened.";
+ Text [ en-US ] = "For security reasons, the hyperlink cannot be executed.\nThe stated address will not be opened.";
};
String RID_SECURITY_WARNING_TITLE
diff --git a/sfx2/source/appl/appopen.cxx b/sfx2/source/appl/appopen.cxx
index bac31249b54e..dbe8ad9d9cfb 100644
--- a/sfx2/source/appl/appopen.cxx
+++ b/sfx2/source/appl/appopen.cxx
@@ -53,7 +53,7 @@
#include <vcl/wrkwin.hxx>
#include <svl/intitem.hxx>
-#include <vcl/msgbox.hxx>
+#include <vcl/layout.hxx>
#include <svl/stritem.hxx>
#include <svl/eitem.hxx>
#include <sfx2/doctempl.hxx>
@@ -833,7 +833,9 @@ void SfxApplication::OpenDocExec_Impl( SfxRequest& rReq )
SolarMutexGuard aGuard;
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.Execute();
return;