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

#include <dbtree.hxx>

Collaboration diagram for SwDBTreeList:

Public Member Functions

 SwDBTreeList (std::unique_ptr< weld::TreeView > xTreeView)
 ~SwDBTreeList ()
OUString GetDBName (OUString &rTableName, OUString &rColumnName, sal_Bool *pbIsTable=nullptr)
void Select (std::u16string_view rDBName, std::u16string_view rTableName, std::u16string_view rColumnName)
void ShowColumns (bool bShowCol)
void SetWrtShell (SwWrtShell &rSh)
void AddDataSource (const OUString &rSource)
void connect_changed (const Link< weld::TreeView &, void > &rLink)
void connect_row_activated (const Link< weld::TreeView &, bool > &rLink)
std::unique_ptr< weld::TreeItermake_iterator (const weld::TreeIter *pOrig=nullptr) const
bool get_selected (weld::TreeIter *pIter) const
bool iter_parent (weld::TreeIter &rIter) const
int get_iter_depth (const weld::TreeIter &rIter) const
void set_size_request (int nWidth, int nHeight)

Private Member Functions

 DECL_DLLPRIVATE_LINK (RequestingChildrenHdl, const weld::TreeIter &, bool)
SAL_DLLPRIVATE void InitTreeList ()

Private Attributes

bool bInitialized
bool bShowColumns
rtl::Reference< SwDBTreeList_ImplpImpl
std::unique_ptr< weld::TreeViewm_xTreeView
std::unique_ptr< weld::TreeIterm_xScratchIter

Detailed Description

Definition at line 30 of file dbtree.hxx.

Constructor & Destructor Documentation

SwDBTreeList::SwDBTreeList ( std::unique_ptr< weld::TreeView xTreeView)

Definition at line 130 of file dbtree.cxx.

References LINK, m_xTreeView, and m_xTreeView.

SwDBTreeList::~SwDBTreeList ( )

Definition at line 140 of file dbtree.cxx.

Member Function Documentation

void SwDBTreeList::AddDataSource ( const OUString &  rSource)

Definition at line 176 of file dbtree.cxx.

References m_xScratchIter, and m_xTreeView.

void SwDBTreeList::connect_changed ( const Link< weld::TreeView &, void > &  rLink)

Definition at line 57 of file dbtree.hxx.

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

Definition at line 58 of file dbtree.hxx.

SwDBTreeList::DECL_DLLPRIVATE_LINK ( RequestingChildrenHdl  ,
const weld::TreeIter ,
int SwDBTreeList::get_iter_depth ( const weld::TreeIter rIter) const

Definition at line 62 of file dbtree.hxx.

bool SwDBTreeList::get_selected ( weld::TreeIter pIter) const

Definition at line 60 of file dbtree.hxx.

OUString SwDBTreeList::GetDBName ( OUString &  rTableName,
OUString &  rColumnName,
sal_Bool pbIsTable = nullptr 

Definition at line 303 of file dbtree.cxx.

References m_xTreeView.

Referenced by ShowColumns().

void SwDBTreeList::InitTreeList ( )
bool SwDBTreeList::iter_parent ( weld::TreeIter rIter) const

Definition at line 61 of file dbtree.hxx.

std::unique_ptr<weld::TreeIter> SwDBTreeList::make_iterator ( const weld::TreeIter pOrig = nullptr) const

Definition at line 59 of file dbtree.hxx.

void SwDBTreeList::Select ( std::u16string_view  rDBName,
std::u16string_view  rTableName,
std::u16string_view  rColumnName 

Definition at line 327 of file dbtree.cxx.

References bShowColumns, and m_xTreeView.

Referenced by InitTreeList(), and ShowColumns().

void SwDBTreeList::set_size_request ( int  nWidth,
int  nHeight 

Definition at line 63 of file dbtree.hxx.

void SwDBTreeList::SetWrtShell ( SwWrtShell rSh)

Definition at line 401 of file dbtree.cxx.

References bInitialized, InitTreeList(), m_xTreeView, and pImpl.

void SwDBTreeList::ShowColumns ( bool  bShowCol)

Definition at line 417 of file dbtree.cxx.

References bShowColumns, GetDBName(), m_xTreeView, Select(), and void().

Member Data Documentation

bool SwDBTreeList::bInitialized

Definition at line 32 of file dbtree.hxx.

Referenced by InitTreeList(), and SetWrtShell().

bool SwDBTreeList::bShowColumns

Definition at line 33 of file dbtree.hxx.

Referenced by Select(), and ShowColumns().

std::unique_ptr<weld::TreeIter> SwDBTreeList::m_xScratchIter

Definition at line 37 of file dbtree.hxx.

Referenced by AddDataSource(), and InitTreeList().

std::unique_ptr<weld::TreeView> SwDBTreeList::m_xTreeView
rtl::Reference<SwDBTreeList_Impl> SwDBTreeList::pImpl

Definition at line 35 of file dbtree.hxx.

Referenced by InitTreeList(), and SetWrtShell().

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