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 (const OUString &rDBName, const OUString &rTableName, const OUString &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 &, void > &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
 

Detailed Description

Definition at line 31 of file dbtree.hxx.

Constructor & Destructor Documentation

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

Definition at line 135 of file dbtree.cxx.

References LINK, and m_xTreeView.

SwDBTreeList::~SwDBTreeList ( )

Definition at line 144 of file dbtree.cxx.

Member Function Documentation

void SwDBTreeList::AddDataSource ( const OUString &  rSource)

Definition at line 179 of file dbtree.cxx.

References m_xTreeView.

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

Definition at line 57 of file dbtree.hxx.

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

Definition at line 58 of file dbtree.hxx.

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

Definition at line 62 of file dbtree.hxx.

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

Definition at line 60 of file dbtree.hxx.

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

Definition at line 316 of file dbtree.cxx.

References m_xTreeView.

Referenced by ShowColumns().

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

Definition at line 61 of file dbtree.hxx.

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

Definition at line 59 of file dbtree.hxx.

void SwDBTreeList::Select ( const OUString &  rDBName,
const OUString &  rTableName,
const OUString &  rColumnName 
)

Definition at line 340 of file dbtree.cxx.

References bShowColumns, and m_xTreeView.

Referenced by InitTreeList(), and ShowColumns().

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

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, and Select().

Member Data Documentation

bool SwDBTreeList::bInitialized
private

Definition at line 33 of file dbtree.hxx.

Referenced by InitTreeList(), and SetWrtShell().

bool SwDBTreeList::bShowColumns
private

Definition at line 34 of file dbtree.hxx.

Referenced by Select(), and ShowColumns().

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

Definition at line 36 of file dbtree.hxx.

Referenced by InitTreeList(), and SetWrtShell().


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