diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-22 09:32:51 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-03-22 18:27:55 +0100 |
commit | da9aa49f360c1351f5b5ce8bcf4a9df2db8c4f15 (patch) | |
tree | 9d586ba59dcbe6b1951e5ec614e2d024812bba5a /cui/source/inc/passwdomdlg.hxx | |
parent | 4829542997ddd3f32a834b460a077bbe2ffbdf95 (diff) |
weld PasswordToOpenModifyDialog
Change-Id: I42ebbd1c94a54fb1d4c755fbcc6758c93614bc33
Reviewed-on: https://gerrit.libreoffice.org/51729
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/source/inc/passwdomdlg.hxx')
-rw-r--r-- | cui/source/inc/passwdomdlg.hxx | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/cui/source/inc/passwdomdlg.hxx b/cui/source/inc/passwdomdlg.hxx index 529b67fb06ed..2d56f3b480ce 100644 --- a/cui/source/inc/passwdomdlg.hxx +++ b/cui/source/inc/passwdomdlg.hxx @@ -19,26 +19,37 @@ #ifndef INCLUDED_CUI_SOURCE_INC_PASSWDOMDLG_HXX #define INCLUDED_CUI_SOURCE_INC_PASSWDOMDLG_HXX +#include <vcl/weld.hxx> +#include <memory> -#include <sfx2/basedlgs.hxx> -#include <memory> +class PasswordToOpenModifyDialog : public weld::GenericDialogController +{ + std::unique_ptr<weld::Entry> m_xPasswdToOpenED; + std::unique_ptr<weld::Entry> m_xReenterPasswdToOpenED; + std::unique_ptr<weld::Expander> m_xOptionsExpander; + std::unique_ptr<weld::Button> m_xOk; + std::unique_ptr<weld::CheckButton> m_xOpenReadonlyCB; + std::unique_ptr<weld::Entry> m_xPasswdToModifyED; + std::unique_ptr<weld::Entry> m_xReenterPasswdToModifyED; + OUString m_aOneMismatch; + OUString m_aTwoMismatch; + OUString m_aInvalidStateForOkButton; + OUString m_aInvalidStateForOkButton_v2; -struct PasswordToOpenModifyDialog_Impl; + bool m_bIsPasswordToModify; -class PasswordToOpenModifyDialog : public SfxModalDialog -{ - std::unique_ptr< PasswordToOpenModifyDialog_Impl > m_pImpl; + + DECL_LINK(OkBtnClickHdl, weld::Button&, void); PasswordToOpenModifyDialog( const PasswordToOpenModifyDialog & ) = delete; PasswordToOpenModifyDialog & operator = ( const PasswordToOpenModifyDialog & ) = delete; public: - PasswordToOpenModifyDialog( vcl::Window * pParent, + PasswordToOpenModifyDialog(weld::Window* pParent, sal_uInt16 nMaxPasswdLen /* 0 -> no max len enforced */, bool bIsPasswordToModify ); - virtual ~PasswordToOpenModifyDialog() override; // AbstractPasswordToOpenModifyDialog OUString GetPasswordToOpen() const; @@ -46,7 +57,6 @@ public: bool IsRecommendToOpenReadonly() const; }; - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |