LibreOffice Module sfx2 (master) 1
|
#include <autoredactdialog.hxx>
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 Dialog * | getDialog () override |
virtual | ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override |
Public Member Functions inherited from weld::DialogController | |
virtual Dialog * | getDialog ()=0 |
const Dialog * | getConstDialog () 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::FileDialogHelper > | m_pFileDlg |
bool | m_bIsValidState |
bool | m_bTargetsCopied |
TargetsTable | m_aTargetsBox |
std::unique_ptr< weld::Button > | m_xLoadBtn |
std::unique_ptr< weld::Button > | m_xSaveBtn |
std::unique_ptr< weld::Button > | m_xAddBtn |
std::unique_ptr< weld::Button > | m_xEditBtn |
std::unique_ptr< weld::Button > | m_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::Builder > | m_xBuilder |
std::shared_ptr< weld::Dialog > | m_xDialog |
Definition at line 97 of file autoredactdialog.hxx.
SfxAutoRedactDialog::SfxAutoRedactDialog | ( | weld::Window * | pParent | ) |
Definition at line 524 of file autoredactdialog.cxx.
References addTarget(), TargetsTable::connect_row_activated(), SvtViewOptions::Exists(), SvtViewOptions::GetUserItem(), LINK, Load, m_aTargetsBox, m_xAddBtn, m_xDeleteBtn, weld::GenericDialogController::m_xDialog, m_xEditBtn, m_xLoadBtn, m_xSaveBtn, and SAL_WARN.
|
overridevirtual |
Definition at line 583 of file autoredactdialog.cxx.
References clearTargets(), SvtViewOptions::Delete(), m_aTableTargets, m_bTargetsCopied, weld::GenericDialogController::m_xDialog, SAL_WARN, and SvtViewOptions::SetUserItem().
|
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().
|
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().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
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().
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().
|
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().
|
private |
Definition at line 475 of file autoredactdialog.cxx.
References sfx2::FileDialogHelper::AutoRedact, FILEDIALOG_FILTER_ALL, FILEDIALOG_FILTER_JSON, weld::GenericDialogController::getDialog(), LINK, m_pFileDlg, NONE, nType, and SfxResId().
|
private |
Definition at line 100 of file autoredactdialog.hxx.
Referenced by addTarget(), clearTargets(), getTargets(), hasTargets(), and ~SfxAutoRedactDialog().
|
private |
Definition at line 105 of file autoredactdialog.hxx.
Referenced by addTarget(), clearTargets(), and SfxAutoRedactDialog().
|
private |
Definition at line 102 of file autoredactdialog.hxx.
Referenced by isValidState().
|
private |
Definition at line 103 of file autoredactdialog.hxx.
Referenced by getTargets(), and ~SfxAutoRedactDialog().
|
private |
Definition at line 101 of file autoredactdialog.hxx.
Referenced by StartFileDialog().
|
private |
Definition at line 108 of file autoredactdialog.hxx.
Referenced by SfxAutoRedactDialog().
|
private |
Definition at line 110 of file autoredactdialog.hxx.
Referenced by SfxAutoRedactDialog().
|
private |
Definition at line 99 of file autoredactdialog.hxx.
|
private |
Definition at line 109 of file autoredactdialog.hxx.
Referenced by SfxAutoRedactDialog().
|
private |
Definition at line 106 of file autoredactdialog.hxx.
Referenced by SfxAutoRedactDialog().
|
private |
Definition at line 107 of file autoredactdialog.hxx.
Referenced by SfxAutoRedactDialog().