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

#include <autoredactdialog.hxx>

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

Public Member Functions

 SfxAutoRedactDialog (weld::Window *pParent)
 
virtual ~SfxAutoRedactDialog () override
 
bool hasTargets () const
 Check if the dialog has any valid redaction targets. More...
 
bool isValidState () const
 Check if the dialog is in a valid state. More...
 
bool getTargets (std::vector< std::pair< RedactionTarget, OUString > > &r_aTargets)
 Copies targets vector Does a shallow copy. More...
 
- Public Member Functions inherited from SfxDialogController
 SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId)
 
virtual void Activate ()
 
virtual void Deactivate ()
 
virtual void ChildWinDispose ()
 
virtual void Close ()
 
virtual void EndDialog (int nResponse)
 
virtual bool CloseOnHide () const
 
- 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_LINK (Load, weld::Button &, void)
 
 DECL_LINK (Save, weld::Button &, void)
 
 DECL_LINK (AddHdl, weld::Button &, void)
 
 DECL_LINK (EditHdl, weld::Button &, void)
 
 DECL_LINK (DeleteHdl, weld::Button &, void)
 
 DECL_LINK (DoubleClickEditHdl, weld::TreeView &, bool)
 
 DECL_LINK (LoadHdl, sfx2::FileDialogHelper *, void)
 
 DECL_LINK (SaveHdl, sfx2::FileDialogHelper *, void)
 
void StartFileDialog (StartFileDialogType nType, const OUString &rTitle)
 
void addTarget (std::unique_ptr< RedactionTarget > pTarget)
 Carry out proper addition both to the targets box, and to the tabletargets vector. More...
 
void clearTargets ()
 Clear all targets both visually and from the targets vector. More...
 

Private Attributes

SfxObjectShellLock m_xDocShell
 
std::vector< std::pair< std::unique_ptr< RedactionTarget >, OUString > > m_aTableTargets
 
std::unique_ptr< sfx2::FileDialogHelperm_pFileDlg
 
bool m_bIsValidState
 
bool m_bTargetsCopied
 
TargetsTable m_aTargetsBox
 
std::unique_ptr< weld::Buttonm_xLoadBtn
 
std::unique_ptr< weld::Buttonm_xSaveBtn
 
std::unique_ptr< weld::Buttonm_xAddBtn
 
std::unique_ptr< weld::Buttonm_xEditBtn
 
std::unique_ptr< weld::Buttonm_xDeleteBtn
 

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 97 of file autoredactdialog.hxx.

Constructor & Destructor Documentation

◆ SfxAutoRedactDialog()

SfxAutoRedactDialog::SfxAutoRedactDialog ( weld::Window pParent)

◆ ~SfxAutoRedactDialog()

SfxAutoRedactDialog::~SfxAutoRedactDialog ( )
overridevirtual

Member Function Documentation

◆ addTarget()

void SfxAutoRedactDialog::addTarget ( std::unique_ptr< RedactionTarget pTarget)
private

Carry out proper addition both to the targets box, and to the tabletargets vector.

Definition at line 497 of file autoredactdialog.cxx.

References Application::CreateMessageDialog(), weld::GenericDialogController::getDialog(), TargetsTable::GetTargetByName(), TargetsTable::InsertTarget(), m_aTableTargets, m_aTargetsBox, name, and SfxResId().

Referenced by SfxAutoRedactDialog().

◆ clearTargets()

void SfxAutoRedactDialog::clearTargets ( )
private

Clear all targets both visually and from the targets vector.

Definition at line 515 of file autoredactdialog.cxx.

References TargetsTable::clear(), m_aTableTargets, and m_aTargetsBox.

Referenced by ~SfxAutoRedactDialog().

◆ DECL_LINK() [1/8]

SfxAutoRedactDialog::DECL_LINK ( AddHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/8]

SfxAutoRedactDialog::DECL_LINK ( DeleteHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [3/8]

SfxAutoRedactDialog::DECL_LINK ( DoubleClickEditHdl  ,
weld::TreeView ,
bool   
)
private

◆ DECL_LINK() [4/8]

SfxAutoRedactDialog::DECL_LINK ( EditHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [5/8]

SfxAutoRedactDialog::DECL_LINK ( Load  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [6/8]

SfxAutoRedactDialog::DECL_LINK ( LoadHdl  ,
sfx2::FileDialogHelper ,
void   
)
private

◆ DECL_LINK() [7/8]

SfxAutoRedactDialog::DECL_LINK ( Save  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [8/8]

SfxAutoRedactDialog::DECL_LINK ( SaveHdl  ,
sfx2::FileDialogHelper ,
void   
)
private

◆ getTargets()

bool SfxAutoRedactDialog::getTargets ( std::vector< std::pair< RedactionTarget, OUString > > &  r_aTargets)

Copies targets vector Does a shallow copy.

Returns true if successful.

Definition at line 637 of file autoredactdialog.cxx.

References m_aTableTargets, and m_bTargetsCopied.

Referenced by SfxObjectShell::ExecFile_Impl().

◆ hasTargets()

bool SfxAutoRedactDialog::hasTargets ( ) const

Check if the dialog has any valid redaction targets.

Definition at line 628 of file autoredactdialog.cxx.

References m_aTableTargets.

Referenced by SfxObjectShell::ExecFile_Impl().

◆ isValidState()

bool SfxAutoRedactDialog::isValidState ( ) const
inline

Check if the dialog is in a valid state.

Definition at line 134 of file autoredactdialog.hxx.

References m_bIsValidState.

Referenced by SfxObjectShell::ExecFile_Impl().

◆ StartFileDialog()

void SfxAutoRedactDialog::StartFileDialog ( StartFileDialogType  nType,
const OUString &  rTitle 
)
private

Member Data Documentation

◆ m_aTableTargets

std::vector<std::pair<std::unique_ptr<RedactionTarget>, OUString> > SfxAutoRedactDialog::m_aTableTargets
private

◆ m_aTargetsBox

TargetsTable SfxAutoRedactDialog::m_aTargetsBox
private

Definition at line 105 of file autoredactdialog.hxx.

Referenced by addTarget(), clearTargets(), and SfxAutoRedactDialog().

◆ m_bIsValidState

bool SfxAutoRedactDialog::m_bIsValidState
private

Definition at line 102 of file autoredactdialog.hxx.

Referenced by isValidState().

◆ m_bTargetsCopied

bool SfxAutoRedactDialog::m_bTargetsCopied
private

Definition at line 103 of file autoredactdialog.hxx.

Referenced by getTargets(), and ~SfxAutoRedactDialog().

◆ m_pFileDlg

std::unique_ptr<sfx2::FileDialogHelper> SfxAutoRedactDialog::m_pFileDlg
private

Definition at line 101 of file autoredactdialog.hxx.

Referenced by StartFileDialog().

◆ m_xAddBtn

std::unique_ptr<weld::Button> SfxAutoRedactDialog::m_xAddBtn
private

Definition at line 108 of file autoredactdialog.hxx.

Referenced by SfxAutoRedactDialog().

◆ m_xDeleteBtn

std::unique_ptr<weld::Button> SfxAutoRedactDialog::m_xDeleteBtn
private

Definition at line 110 of file autoredactdialog.hxx.

Referenced by SfxAutoRedactDialog().

◆ m_xDocShell

SfxObjectShellLock SfxAutoRedactDialog::m_xDocShell
private

Definition at line 99 of file autoredactdialog.hxx.

◆ m_xEditBtn

std::unique_ptr<weld::Button> SfxAutoRedactDialog::m_xEditBtn
private

Definition at line 109 of file autoredactdialog.hxx.

Referenced by SfxAutoRedactDialog().

◆ m_xLoadBtn

std::unique_ptr<weld::Button> SfxAutoRedactDialog::m_xLoadBtn
private

Definition at line 106 of file autoredactdialog.hxx.

Referenced by SfxAutoRedactDialog().

◆ m_xSaveBtn

std::unique_ptr<weld::Button> SfxAutoRedactDialog::m_xSaveBtn
private

Definition at line 107 of file autoredactdialog.hxx.

Referenced by SfxAutoRedactDialog().


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