summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-08-25 15:27:09 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-08-25 16:45:30 +0100
commit5f073470617d225fc519fd485e447a8ad10967d9 (patch)
treed141f4987fe6cb33463dd197e53166408786c739 /xmlsecurity
parentd0c3c16c87a8ff6300a0e07c4d6170748a6c59ed (diff)
convert RID_XMLSECWB_NO_MOZILLA_PROFILE to MessageDialog + string
Change-Id: I7e02dc9db8c6a3195a4b2adccea3d0f4e260c661
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/inc/xmlsecurity/global.hrc2
-rw-r--r--xmlsecurity/source/component/documentdigitalsignatures.cxx4
-rw-r--r--xmlsecurity/source/component/warnbox.src6
3 files changed, 4 insertions, 8 deletions
diff --git a/xmlsecurity/inc/xmlsecurity/global.hrc b/xmlsecurity/inc/xmlsecurity/global.hrc
index e56e8bbcfbf8..3b62a30c5c7b 100644
--- a/xmlsecurity/inc/xmlsecurity/global.hrc
+++ b/xmlsecurity/inc/xmlsecurity/global.hrc
@@ -22,8 +22,6 @@
// global resource ids
-#define RID_XMLSECTP_GENERAL 1003
-
#define RID_XMLSECWB_NO_MOZILLA_PROFILE 1013
#endif
diff --git a/xmlsecurity/source/component/documentdigitalsignatures.cxx b/xmlsecurity/source/component/documentdigitalsignatures.cxx
index 157292a2855e..c97779bdaf4f 100644
--- a/xmlsecurity/source/component/documentdigitalsignatures.cxx
+++ b/xmlsecurity/source/component/documentdigitalsignatures.cxx
@@ -36,7 +36,7 @@
#include <com/sun/star/ucb/XCommandEnvironment.hpp>
#include <com/sun/star/ucb/XCommandProcessor.hpp>
#include <com/sun/star/ucb/Command.hpp>
-#include <vcl/msgbox.hxx>
+#include <vcl/layout.hxx>
#include <unotools/securityoptions.hxx>
#include <com/sun/star/security/CertificateValidity.hpp>
#include <com/sun/star/security/SerialNumberAdapter.hpp>
@@ -226,7 +226,7 @@ bool DocumentDigitalSignatures::ImplViewSignatures(
}
else
{
- WarningBox aBox( NULL, XMLSEC_RES( RID_XMLSECWB_NO_MOZILLA_PROFILE ) );
+ MessageDialog aBox(NULL, XMLSEC_RES(RID_XMLSECWB_NO_MOZILLA_PROFILE), VCL_MESSAGE_WARNING);
aBox.Execute();
}
diff --git a/xmlsecurity/source/component/warnbox.src b/xmlsecurity/source/component/warnbox.src
index 8e323e14b33a..7202fe958f23 100644
--- a/xmlsecurity/source/component/warnbox.src
+++ b/xmlsecurity/source/component/warnbox.src
@@ -19,11 +19,9 @@
#include <xmlsecurity/global.hrc>
-WarningBox RID_XMLSECWB_NO_MOZILLA_PROFILE
+String RID_XMLSECWB_NO_MOZILLA_PROFILE
{
- Buttons = WB_OK ;
- DefButton = WB_DEF_OK ;
- Message [ en-US ] = "Digital signatures functionality could not be used, because no Mozilla user profile was found. Please check the Mozilla installation." ;
+ Text [ en-US ] = "Digital signatures functionality could not be used, because no Mozilla user profile was found. Please check the Mozilla installation." ;
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */