summaryrefslogtreecommitdiff
path: root/uui/source/unknownauthdlg.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-12-22 10:43:03 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-12-22 20:33:54 +0000
commitd9922775bb6735d70747689c391d823722212dec (patch)
treef25b2486e5779c955f834baa36f76ce666e9b7f6 /uui/source/unknownauthdlg.hxx
parente2e5689a59c7ebdbdc37e54453b06568d985bf8e (diff)
convert unknown authority dialog to .ui
Change-Id: Iec8a8826188c81ff3a0e7e563d1f5f1a9921c180
Diffstat (limited to 'uui/source/unknownauthdlg.hxx')
-rw-r--r--uui/source/unknownauthdlg.hxx38
1 files changed, 18 insertions, 20 deletions
diff --git a/uui/source/unknownauthdlg.hxx b/uui/source/unknownauthdlg.hxx
index 2c61a0d12ab6..537166a121e4 100644
--- a/uui/source/unknownauthdlg.hxx
+++ b/uui/source/unknownauthdlg.hxx
@@ -19,9 +19,8 @@
#ifndef UUI_UNKNOWNAUTH_HXX
#define UUI_UNKNOWNAUTH_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,18 +28,13 @@
//=====================================================================
//= Https_UADialog
//=====================================================================
-class UnknownAuthDialog : public ModalDialog
+class UnknownAuthDialog : public MessageDialog
{
private:
- PushButton m_aCommandButtonOK;
- CancelButton m_aCommandButtonCancel;
- HelpButton m_aCommandButtonHelp;
- PushButton m_aView_Certificate;
- RadioButton m_aOptionButtonAccept;
- RadioButton m_aOptionButtonDontAccept;
- FixedLine m_aLine;
- FixedText m_aLabel1;
- FixedImage m_aWarnImage;
+ PushButton* m_pCommandButtonOK;
+ PushButton* m_pView_Certificate;
+ RadioButton* m_pOptionButtonAccept;
+ RadioButton* m_pOptionButtonDontAccept;
const css::uno::Reference< css::uno::XComponentContext >& m_xContext;
const css::uno::Reference< css::security::XCertificate >& m_rXCert;
@@ -48,16 +42,20 @@ private:
DECL_LINK(OKHdl_Impl, void *);
DECL_LINK(ViewCertHdl_Impl, void *);
- public:
- UnknownAuthDialog( Window* pParent,
- const css::uno::Reference< css::security::XCertificate >& rXCert,
- const css::uno::Reference< css::uno::XComponentContext >& xContext,
- ResMgr * pResMgr );
+public:
+ UnknownAuthDialog(Window* pParent,
+ 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; }
-
- void setDescriptionText( const OUString &aText ) { m_aLabel1.SetText( aText ); }
+ css::uno::Reference< css::security::XCertificate > getCert()
+ {
+ return m_rXCert;
+ }
+ void setDescriptionText(const OUString &rText)
+ {
+ set_primary_text(rText);
+ }
};
#endif // UUI_UNKNOWNAUTH_HXX