summaryrefslogtreecommitdiff
path: root/uui/source/sslwarndlg.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-12-21 20:57:33 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-12-21 21:14:29 +0000
commita5650e388de543501788b0745396ee1d25164c2a (patch)
tree845b114e5ae13e3f50e3c04cc92dde03d581f681 /uui/source/sslwarndlg.hxx
parent12b0a95b9777a46efc885811f5c7e7182855a834 (diff)
convert ssl warning dialog to .ui
Change-Id: I658cc3f1c63f8cfb18463befa3a0efbd92139659
Diffstat (limited to 'uui/source/sslwarndlg.hxx')
-rw-r--r--uui/source/sslwarndlg.hxx30
1 files changed, 11 insertions, 19 deletions
diff --git a/uui/source/sslwarndlg.hxx b/uui/source/sslwarndlg.hxx
index 0f2ce7ab0a77..c843ed6a3654 100644
--- a/uui/source/sslwarndlg.hxx
+++ b/uui/source/sslwarndlg.hxx
@@ -19,9 +19,9 @@
#ifndef UUI_SSLWARN_HXX
#define UUI_SSLWARN_HXX
-#include <vcl/dialog.hxx>
#include <vcl/fixed.hxx>
#include <vcl/button.hxx>
+#include <vcl/layout.hxx>
#include <com/sun/star/security/XCertificate.hpp>
#include <com/sun/star/xml/crypto/XSecurityEnvironment.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
@@ -29,35 +29,27 @@
//=====================================================================
//= Https_WarnDialog
//=====================================================================
-class SSLWarnDialog : public ModalDialog
+class SSLWarnDialog : public MessageDialog
{
private:
- FixedText m_aLabel1;
- PushButton m_aOkButton;
- CancelButton m_aCancelButton;
- PushButton m_aCommandButtonViewCert;
- FixedLine m_aLine;
- FixedImage m_aWarnImage;
-
-
const css::uno::Reference< css::uno::XComponentContext >& m_xContext;
const css::uno::Reference< css::security::XCertificate >& m_rXCert;
Window* m_pParent;
- DECL_LINK(OKHdl_Impl, void *);
- DECL_LINK(ViewCertHdl_Impl, void *);
+ void ViewCert();
- public:
+public:
SSLWarnDialog( Window* pParent,
- const css::uno::Reference< css::security::XCertificate >& rXCert,
- const css::uno::Reference< css::uno::XComponentContext >& xContext,
- ResMgr * pResMgr );
+ const css::uno::Reference< css::security::XCertificate >& rXCert,
+ const css::uno::Reference< css::uno::XComponentContext >& xContext );
+
+ css::uno::Reference< css::security::XCertificate > getCert() { return m_rXCert; }
- css::uno::Reference< css::security::XCertificate > getCert() { return m_rXCert; };
+ Window* getParent() { return m_pParent; }
- Window* getParent() { return m_pParent; };
+ virtual void response(short nResponseId);
- void setDescription1Text( const OUString &aText ) { m_aLabel1.SetText( aText ); };
+ void setDescription1Text(const OUString &aText) { set_primary_text(aText); }
};
#endif // UUI_SSLWARN_HXX