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:
[legend]

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 m_bInitialized
 
bool m_bShowColumns
 
rtl::Reference< SwDBTreeList_Implm_pImpl
 
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::SwDBTreeList ( std::unique_ptr< weld::TreeView xTreeView)

Definition at line 130 of file dbtree.cxx.

References LINK, m_pImpl, and m_xTreeView.

◆ ~SwDBTreeList()

SwDBTreeList::~SwDBTreeList ( )

Definition at line 140 of file dbtree.cxx.

Member Function Documentation

◆ AddDataSource()

void SwDBTreeList::AddDataSource ( const OUString &  rSource)

Definition at line 176 of file dbtree.cxx.

References m_xScratchIter, and m_xTreeView.

◆ connect_changed()

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

Definition at line 57 of file dbtree.hxx.

◆ connect_row_activated()

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

Definition at line 58 of file dbtree.hxx.

◆ DECL_DLLPRIVATE_LINK()

SwDBTreeList::DECL_DLLPRIVATE_LINK ( RequestingChildrenHdl  ,
const weld::TreeIter ,
bool   
)
private

References Select.

◆ get_iter_depth()

int SwDBTreeList::get_iter_depth ( const weld::TreeIter rIter) const
inline

Definition at line 62 of file dbtree.hxx.

◆ get_selected()

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

Definition at line 60 of file dbtree.hxx.

◆ GetDBName()

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

◆ InitTreeList()

void SwDBTreeList::InitTreeList ( )
private

◆ iter_parent()

bool SwDBTreeList::iter_parent ( weld::TreeIter rIter) const
inline

Definition at line 61 of file dbtree.hxx.

◆ make_iterator()

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

Definition at line 59 of file dbtree.hxx.

◆ Select()

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

Definition at line 327 of file dbtree.cxx.

References m_bShowColumns, and m_xTreeView.

Referenced by InitTreeList(), and ShowColumns().

◆ set_size_request()

void SwDBTreeList::set_size_request ( int  nWidth,
int  nHeight 
)
inline

Definition at line 63 of file dbtree.hxx.

◆ SetWrtShell()

void SwDBTreeList::SetWrtShell ( SwWrtShell rSh)

Definition at line 401 of file dbtree.cxx.

References InitTreeList(), m_bInitialized, m_pImpl, and m_xTreeView.

◆ ShowColumns()

void SwDBTreeList::ShowColumns ( bool  bShowCol)

Definition at line 417 of file dbtree.cxx.

References GetDBName(), m_bShowColumns, m_xTreeView, and Select().

Member Data Documentation

◆ m_bInitialized

bool SwDBTreeList::m_bInitialized
private

Definition at line 32 of file dbtree.hxx.

Referenced by InitTreeList(), and SetWrtShell().

◆ m_bShowColumns

bool SwDBTreeList::m_bShowColumns
private

Definition at line 33 of file dbtree.hxx.

Referenced by Select(), and ShowColumns().

◆ m_pImpl

rtl::Reference<SwDBTreeList_Impl> SwDBTreeList::m_pImpl
private

Definition at line 35 of file dbtree.hxx.

Referenced by InitTreeList(), and SetWrtShell().

◆ m_xScratchIter

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

Definition at line 37 of file dbtree.hxx.

Referenced by AddDataSource(), and InitTreeList().

◆ m_xTreeView

std::unique_ptr<weld::TreeView> SwDBTreeList::m_xTreeView
private

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