LibreOffice Module sfx2 (master) 1
|
Used to display the targets list. More...
#include <autoredactdialog.hxx>
Public Member Functions | |
TargetsTable (std::unique_ptr< weld::TreeView > xControl) | |
void | InsertTarget (RedactionTarget *pTarget) |
RedactionTarget * | GetTargetByName (std::u16string_view sName) |
OUString | GetNameProposal () const |
int | get_selected_index () const |
std::vector< int > | get_selected_rows () const |
void | clear () |
void | remove (int nRow) |
void | select (int nRow) |
OUString | get_id (int nRow) const |
void | setRowData (int nRowIndex, const RedactionTarget *pTarget) |
void | connect_row_activated (const Link< weld::TreeView &, bool > &rLink) |
Private Member Functions | |
int | GetRowByTargetName (std::u16string_view sName) |
Private Attributes | |
std::unique_ptr< weld::TreeView > | m_xControl |
Used to display the targets list.
Definition at line 59 of file autoredactdialog.hxx.
TargetsTable::TargetsTable | ( | std::unique_ptr< weld::TreeView > | xControl | ) |
Definition at line 42 of file autoredactdialog.cxx.
References m_xControl, and m_xControl.
|
inline |
Definition at line 72 of file autoredactdialog.hxx.
References m_xControl.
Referenced by SfxAutoRedactDialog::clearTargets().
|
inline |
Definition at line 80 of file autoredactdialog.hxx.
References m_xControl.
Referenced by SfxAutoRedactDialog::SfxAutoRedactDialog().
|
inline |
Definition at line 75 of file autoredactdialog.hxx.
References m_xControl.
|
inline |
Definition at line 70 of file autoredactdialog.hxx.
References m_xControl.
|
inline |
Definition at line 71 of file autoredactdialog.hxx.
References m_xControl.
OUString TargetsTable::GetNameProposal | ( | ) | const |
Definition at line 144 of file autoredactdialog.cxx.
References o3tl::getToken(), i, m_xControl, nCount, nIndex, SfxResId(), sName, RedactionTarget::sName, and o3tl::toInt32().
Referenced by InsertTarget().
|
private |
Definition at line 29 of file autoredactdialog.cxx.
References i, m_xControl, nCount, sName, and RedactionTarget::sName.
Referenced by GetTargetByName(), and InsertTarget().
RedactionTarget * TargetsTable::GetTargetByName | ( | std::u16string_view | sName | ) |
Definition at line 135 of file autoredactdialog.cxx.
References GetRowByTargetName(), m_xControl, and sName.
Referenced by SfxAutoRedactDialog::addTarget().
void TargetsTable::InsertTarget | ( | RedactionTarget * | pTarget | ) |
Definition at line 101 of file autoredactdialog.cxx.
References RedactionTarget::bCaseSensitive, RedactionTarget::bWholeWords, GetNameProposal(), GetRowByTargetName(), getTypeName(), m_xControl, REDACTION_TARGET_PREDEFINED, SAL_WARN, RedactionTarget::sContent, SfxResId(), RedactionTarget::sName, RedactionTarget::sType, and weld::toId().
Referenced by SfxAutoRedactDialog::addTarget().
|
inline |
Definition at line 73 of file autoredactdialog.hxx.
References m_xControl.
|
inline |
Definition at line 74 of file autoredactdialog.hxx.
References m_xControl.
void TargetsTable::setRowData | ( | int | nRowIndex, |
const RedactionTarget * | pTarget | ||
) |
Definition at line 162 of file autoredactdialog.cxx.
References RedactionTarget::bCaseSensitive, RedactionTarget::bWholeWords, getTypeName(), m_xControl, REDACTION_TARGET_PREDEFINED, RedactionTarget::sContent, SfxResId(), RedactionTarget::sName, and RedactionTarget::sType.
|
private |
Definition at line 61 of file autoredactdialog.hxx.
Referenced by clear(), connect_row_activated(), get_id(), get_selected_index(), get_selected_rows(), GetNameProposal(), GetRowByTargetName(), GetTargetByName(), InsertTarget(), remove(), select(), setRowData(), and TargetsTable().