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

Used to display the targets list. More...

#include <autoredactdialog.hxx>

Public Member Functions

 TargetsTable (std::unique_ptr< weld::TreeView > xControl)
 
void InsertTarget (RedactionTarget *pTarget)
 
RedactionTargetGetTargetByName (std::u16string_view sName)
 
OUString GetNameProposal () const
 
int get_selected_index () const
 
std::vector< intget_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::TreeViewm_xControl
 

Detailed Description

Used to display the targets list.

Definition at line 59 of file autoredactdialog.hxx.

Constructor & Destructor Documentation

◆ TargetsTable()

TargetsTable::TargetsTable ( std::unique_ptr< weld::TreeView xControl)

Definition at line 42 of file autoredactdialog.cxx.

References m_xControl, and m_xControl.

Member Function Documentation

◆ clear()

void TargetsTable::clear ( )
inline

Definition at line 72 of file autoredactdialog.hxx.

References m_xControl.

Referenced by SfxAutoRedactDialog::clearTargets().

◆ connect_row_activated()

void TargetsTable::connect_row_activated ( const Link< weld::TreeView &, bool > &  rLink)
inline

Definition at line 80 of file autoredactdialog.hxx.

References m_xControl.

Referenced by SfxAutoRedactDialog::SfxAutoRedactDialog().

◆ get_id()

OUString TargetsTable::get_id ( int  nRow) const
inline

Definition at line 75 of file autoredactdialog.hxx.

References m_xControl.

◆ get_selected_index()

int TargetsTable::get_selected_index ( ) const
inline

Definition at line 70 of file autoredactdialog.hxx.

References m_xControl.

◆ get_selected_rows()

std::vector< int > TargetsTable::get_selected_rows ( ) const
inline

Definition at line 71 of file autoredactdialog.hxx.

References m_xControl.

◆ GetNameProposal()

OUString TargetsTable::GetNameProposal ( ) const

◆ GetRowByTargetName()

int TargetsTable::GetRowByTargetName ( std::u16string_view  sName)
private

Definition at line 29 of file autoredactdialog.cxx.

References i, m_xControl, nCount, sName, and RedactionTarget::sName.

Referenced by GetTargetByName(), and InsertTarget().

◆ GetTargetByName()

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().

◆ InsertTarget()

void TargetsTable::InsertTarget ( RedactionTarget pTarget)

◆ remove()

void TargetsTable::remove ( int  nRow)
inline

Definition at line 73 of file autoredactdialog.hxx.

References m_xControl.

◆ select()

void TargetsTable::select ( int  nRow)
inline

Definition at line 74 of file autoredactdialog.hxx.

References m_xControl.

◆ setRowData()

void TargetsTable::setRowData ( int  nRowIndex,
const RedactionTarget pTarget 
)

Member Data Documentation

◆ m_xControl

std::unique_ptr<weld::TreeView> TargetsTable::m_xControl
private

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