LibreOffice Module sfx2 (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SfxPasswordDialog Class Referencefinal

#include <passwd.hxx>

Inheritance diagram for SfxPasswordDialog:
[legend]
Collaboration diagram for SfxPasswordDialog:
[legend]

Public Member Functions

 SfxPasswordDialog (weld::Widget *pParent, const OUString *pGroupText=nullptr)
 
OUString GetUser () const
 
OUString GetPassword () const
 
OUString GetConfirm () const
 
OUString GetPassword2 () const
 
void SetGroup2Text (const OUString &i_rText)
 
void SetMinLen (sal_uInt16 Len)
 
void SetEditHelpId (const OUString &rId)
 
void SetConfirmHelpId (const OUString &rId)
 
void ShowExtras (SfxShowExtras nExtras)
 
void AllowAsciiOnly ()
 
void ShowMinLengthText (bool bShow)
 
void PreRun ()
 
virtual short run () override
 
 ~SfxPasswordDialog ()
 
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
virtual DialoggetDialog ()=0
 
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OUString &rHelpId)
 
OUString get_help_id () const
 
void response (int nResponse)
 
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

 DECL_DLLPRIVATE_LINK (OKHdl, weld::Button &, void)
 
 DECL_DLLPRIVATE_LINK (InsertTextHdl, OUString &, bool)
 
 DECL_DLLPRIVATE_LINK (EditModifyHdl, weld::Entry &, void)
 
void ModifyHdl ()
 
void SetPasswdText ()
 

Private Attributes

std::unique_ptr< weld::Framem_xPassword1Box
 
std::unique_ptr< weld::Labelm_xUserFT
 
std::unique_ptr< weld::Entrym_xUserED
 
std::unique_ptr< weld::Labelm_xPassword1FT
 
std::unique_ptr< weld::Entrym_xPassword1ED
 
std::unique_ptr< weld::Labelm_xConfirm1FT
 
std::unique_ptr< weld::Entrym_xConfirm1ED
 
std::unique_ptr< weld::Framem_xPassword2Box
 
std::unique_ptr< weld::Labelm_xPassword2FT
 
std::unique_ptr< weld::Entrym_xPassword2ED
 
std::unique_ptr< weld::Labelm_xConfirm2FT
 
std::unique_ptr< weld::Entrym_xConfirm2ED
 
std::unique_ptr< weld::Labelm_xMinLengthFT
 
std::unique_ptr< weld::Labelm_xOnlyAsciiFT
 
std::unique_ptr< weld::Buttonm_xOKBtn
 
std::shared_ptr< weld::MessageDialogm_xConfirmFailedDialog
 
OUString maMinLenPwdStr
 
OUString maMinLenPwdStr1
 
OUString maEmptyPwdStr
 
OUString maMainPwdStr
 
sal_uInt16 mnMinLen
 
SfxShowExtras mnExtras
 
bool mbAsciiOnly
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
 
- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 45 of file passwd.hxx.

Constructor & Destructor Documentation

◆ SfxPasswordDialog()

SfxPasswordDialog::SfxPasswordDialog ( weld::Widget pParent,
const OUString *  pGroupText = nullptr 
)

◆ ~SfxPasswordDialog()

SfxPasswordDialog::~SfxPasswordDialog ( )

Definition at line 220 of file passwd.cxx.

References m_xConfirmFailedDialog, and RET_CANCEL.

Member Function Documentation

◆ AllowAsciiOnly()

void SfxPasswordDialog::AllowAsciiOnly ( )

Definition at line 168 of file passwd.cxx.

References m_xOnlyAsciiFT, and mbAsciiOnly.

◆ DECL_DLLPRIVATE_LINK() [1/3]

SfxPasswordDialog::DECL_DLLPRIVATE_LINK ( EditModifyHdl  ,
weld::Entry ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [2/3]

SfxPasswordDialog::DECL_DLLPRIVATE_LINK ( InsertTextHdl  ,
OUString &  ,
bool   
)
private

◆ DECL_DLLPRIVATE_LINK() [3/3]

SfxPasswordDialog::DECL_DLLPRIVATE_LINK ( OKHdl  ,
weld::Button ,
void   
)
private

◆ GetConfirm()

OUString SfxPasswordDialog::GetConfirm ( ) const
inline

Definition at line 95 of file passwd.hxx.

◆ GetPassword()

OUString SfxPasswordDialog::GetPassword ( ) const
inline

Definition at line 91 of file passwd.hxx.

Referenced by sfx2::IMPL_LINK_NOARG(), and lcl_GetPassword().

◆ GetPassword2()

OUString SfxPasswordDialog::GetPassword2 ( ) const
inline

Definition at line 99 of file passwd.hxx.

◆ GetUser()

OUString SfxPasswordDialog::GetUser ( ) const
inline

Definition at line 87 of file passwd.hxx.

◆ ModifyHdl()

void SfxPasswordDialog::ModifyHdl ( )
private

Definition at line 32 of file passwd.cxx.

References m_xOKBtn, m_xPassword1ED, m_xPassword2ED, and mnMinLen.

Referenced by SetMinLen().

◆ PreRun()

void SfxPasswordDialog::PreRun ( )

◆ run()

short SfxPasswordDialog::run ( )
overridevirtual

Reimplemented from weld::DialogController.

Definition at line 213 of file passwd.cxx.

References PreRun().

Referenced by sfx2::IMPL_LINK_NOARG(), and lcl_GetPassword().

◆ SetConfirmHelpId()

void SfxPasswordDialog::SetConfirmHelpId ( const OUString &  rId)
inline

Definition at line 114 of file passwd.hxx.

◆ SetEditHelpId()

void SfxPasswordDialog::SetEditHelpId ( const OUString &  rId)
inline

Definition at line 108 of file passwd.hxx.

◆ SetGroup2Text()

void SfxPasswordDialog::SetGroup2Text ( const OUString &  i_rText)
inline

Definition at line 103 of file passwd.hxx.

◆ SetMinLen()

void SfxPasswordDialog::SetMinLen ( sal_uInt16  Len)

Definition at line 156 of file passwd.cxx.

References mnMinLen, ModifyHdl(), and SetPasswdText().

Referenced by lcl_GetPassword().

◆ SetPasswdText()

void SfxPasswordDialog::SetPasswdText ( )
private

Definition at line 137 of file passwd.cxx.

References m_xMinLengthFT, maEmptyPwdStr, maMainPwdStr, maMinLenPwdStr, maMinLenPwdStr1, and mnMinLen.

Referenced by SetMinLen(), and SfxPasswordDialog().

◆ ShowExtras()

void SfxPasswordDialog::ShowExtras ( SfxShowExtras  nExtras)
inline

Definition at line 119 of file passwd.hxx.

Referenced by sfx2::IMPL_LINK_NOARG(), and lcl_GetPassword().

◆ ShowMinLengthText()

void SfxPasswordDialog::ShowMinLengthText ( bool  bShow)

Definition at line 163 of file passwd.cxx.

References m_xMinLengthFT.

Member Data Documentation

◆ m_xConfirm1ED

std::unique_ptr<weld::Entry> SfxPasswordDialog::m_xConfirm1ED
private

Definition at line 54 of file passwd.hxx.

Referenced by PreRun(), and SfxPasswordDialog().

◆ m_xConfirm1FT

std::unique_ptr<weld::Label> SfxPasswordDialog::m_xConfirm1FT
private

Definition at line 53 of file passwd.hxx.

Referenced by PreRun().

◆ m_xConfirm2ED

std::unique_ptr<weld::Entry> SfxPasswordDialog::m_xConfirm2ED
private

Definition at line 60 of file passwd.hxx.

Referenced by PreRun(), and SfxPasswordDialog().

◆ m_xConfirm2FT

std::unique_ptr<weld::Label> SfxPasswordDialog::m_xConfirm2FT
private

Definition at line 59 of file passwd.hxx.

Referenced by PreRun().

◆ m_xConfirmFailedDialog

std::shared_ptr<weld::MessageDialog> SfxPasswordDialog::m_xConfirmFailedDialog
private

Definition at line 67 of file passwd.hxx.

Referenced by ~SfxPasswordDialog().

◆ m_xMinLengthFT

std::unique_ptr<weld::Label> SfxPasswordDialog::m_xMinLengthFT
private

Definition at line 62 of file passwd.hxx.

Referenced by SetPasswdText(), and ShowMinLengthText().

◆ m_xOKBtn

std::unique_ptr<weld::Button> SfxPasswordDialog::m_xOKBtn
private

Definition at line 65 of file passwd.hxx.

Referenced by ModifyHdl(), and SfxPasswordDialog().

◆ m_xOnlyAsciiFT

std::unique_ptr<weld::Label> SfxPasswordDialog::m_xOnlyAsciiFT
private

Definition at line 63 of file passwd.hxx.

Referenced by AllowAsciiOnly().

◆ m_xPassword1Box

std::unique_ptr<weld::Frame> SfxPasswordDialog::m_xPassword1Box
private

Definition at line 48 of file passwd.hxx.

Referenced by SfxPasswordDialog().

◆ m_xPassword1ED

std::unique_ptr<weld::Entry> SfxPasswordDialog::m_xPassword1ED
private

Definition at line 52 of file passwd.hxx.

Referenced by ModifyHdl(), and SfxPasswordDialog().

◆ m_xPassword1FT

std::unique_ptr<weld::Label> SfxPasswordDialog::m_xPassword1FT
private

Definition at line 51 of file passwd.hxx.

Referenced by PreRun().

◆ m_xPassword2Box

std::unique_ptr<weld::Frame> SfxPasswordDialog::m_xPassword2Box
private

Definition at line 56 of file passwd.hxx.

Referenced by PreRun().

◆ m_xPassword2ED

std::unique_ptr<weld::Entry> SfxPasswordDialog::m_xPassword2ED
private

Definition at line 58 of file passwd.hxx.

Referenced by ModifyHdl(), PreRun(), and SfxPasswordDialog().

◆ m_xPassword2FT

std::unique_ptr<weld::Label> SfxPasswordDialog::m_xPassword2FT
private

Definition at line 57 of file passwd.hxx.

Referenced by PreRun().

◆ m_xUserED

std::unique_ptr<weld::Entry> SfxPasswordDialog::m_xUserED
private

Definition at line 50 of file passwd.hxx.

Referenced by PreRun().

◆ m_xUserFT

std::unique_ptr<weld::Label> SfxPasswordDialog::m_xUserFT
private

Definition at line 49 of file passwd.hxx.

Referenced by PreRun().

◆ maEmptyPwdStr

OUString SfxPasswordDialog::maEmptyPwdStr
private

Definition at line 71 of file passwd.hxx.

Referenced by SetPasswdText().

◆ maMainPwdStr

OUString SfxPasswordDialog::maMainPwdStr
private

Definition at line 72 of file passwd.hxx.

Referenced by SetPasswdText().

◆ maMinLenPwdStr

OUString SfxPasswordDialog::maMinLenPwdStr
private

Definition at line 69 of file passwd.hxx.

Referenced by SetPasswdText().

◆ maMinLenPwdStr1

OUString SfxPasswordDialog::maMinLenPwdStr1
private

Definition at line 70 of file passwd.hxx.

Referenced by SetPasswdText().

◆ mbAsciiOnly

bool SfxPasswordDialog::mbAsciiOnly
private

Definition at line 76 of file passwd.hxx.

Referenced by AllowAsciiOnly().

◆ mnExtras

SfxShowExtras SfxPasswordDialog::mnExtras
private

Definition at line 74 of file passwd.hxx.

Referenced by PreRun().

◆ mnMinLen

sal_uInt16 SfxPasswordDialog::mnMinLen
private

Definition at line 73 of file passwd.hxx.

Referenced by ModifyHdl(), SetMinLen(), and SetPasswdText().


The documentation for this class was generated from the following files: