LibreOffice Module dbaccess (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
dbaui::TreeListBox Class Reference

#include <dbtreelistbox.hxx>

Inheritance diagram for dbaui::TreeListBox:
[legend]
Collaboration diagram for dbaui::TreeListBox:
[legend]

Public Member Functions

 TreeListBox (std::unique_ptr< weld::TreeView > xTreeView, bool bSQLType)
 
virtual ~TreeListBox ()
 
std::unique_ptr< weld::TreeIterGetEntryPosByName (std::u16string_view rName, const weld::TreeIter *pStart=nullptr, const IEntryFilter *pFilter=nullptr) const
 
std::unique_ptr< weld::TreeIterGetRootLevelParent (const weld::TreeIter *pEntry) const
 
void setControlActionListener (IControlActionListener *pListener)
 
void setContextMenuProvider (IContextMenuProvider *pContextMenuProvider)
 
weld::TreeViewGetWidget ()
 
const weld::TreeViewGetWidget () const
 
TransferDataContainerGetDataTransfer ()
 
sal_Int8 AcceptDrop (const AcceptDropEvent &rEvt)
 
sal_Int8 ExecuteDrop (const ExecuteDropEvent &rEvt)
 
void SetSelChangeHdl (const Link< LinkParamNone *, void > &_rHdl)
 
void setCopyHandler (const Link< LinkParamNone *, void > &_rHdl)
 
void setPasteHandler (const Link< LinkParamNone *, void > &_rHdl)
 
void setDeleteHandler (const Link< LinkParamNone *, void > &_rHdl)
 

Protected Member Functions

 DECL_LINK (KeyInputHdl, const KeyEvent &, bool)
 
 DECL_LINK (SelectHdl, weld::TreeView &, void)
 
 DECL_LINK (QueryTooltipHdl, const weld::TreeIter &, OUString)
 
 DECL_LINK (CommandHdl, const CommandEvent &, bool)
 
 DECL_LINK (DragBeginHdl, bool &, bool)
 
void implStopSelectionTimer ()
 
void implStartSelectionTimer ()
 
virtual bool DoChildKeyInput (const KeyEvent &rKEvt)
 

Protected Attributes

std::unique_ptr< weld::TreeViewm_xTreeView
 
TreeListBoxDropTarget m_aDropTargetHelper
 
std::unique_ptr< weld::TreeIterm_xDragedEntry
 
IControlActionListenerm_pActionListener
 
IContextMenuProviderm_pContextMenuProvider
 

Private Member Functions

 DECL_LINK (OnTimeOut, Timer *, void)
 

Private Attributes

Timer m_aTimer
 
rtl::Reference< TransferDataContainerm_xHelper
 
Link< LinkParamNone *, void > m_aSelChangeHdl
 
Link< LinkParamNone *, void > m_aCopyHandler
 
Link< LinkParamNone *, void > m_aPasteHandler
 
Link< LinkParamNone *, void > m_aDeleteHandler
 

Detailed Description

Definition at line 56 of file dbtreelistbox.hxx.

Constructor & Destructor Documentation

◆ TreeListBox()

dbaui::TreeListBox::TreeListBox ( std::unique_ptr< weld::TreeView xTreeView,
bool  bSQLType 
)

◆ ~TreeListBox()

dbaui::TreeListBox::~TreeListBox ( )
virtual

Definition at line 183 of file dbtreelistbox.cxx.

Member Function Documentation

◆ AcceptDrop()

sal_Int8 dbaui::TreeListBox::AcceptDrop ( const AcceptDropEvent rEvt)

◆ DECL_LINK() [1/6]

dbaui::TreeListBox::DECL_LINK ( CommandHdl  ,
const CommandEvent ,
bool   
)
protected

◆ DECL_LINK() [2/6]

dbaui::TreeListBox::DECL_LINK ( DragBeginHdl  ,
bool &  ,
bool   
)
protected

◆ DECL_LINK() [3/6]

dbaui::TreeListBox::DECL_LINK ( KeyInputHdl  ,
const KeyEvent ,
bool   
)
protected

◆ DECL_LINK() [4/6]

dbaui::TreeListBox::DECL_LINK ( OnTimeOut  ,
Timer ,
void   
)
private

◆ DECL_LINK() [5/6]

dbaui::TreeListBox::DECL_LINK ( QueryTooltipHdl  ,
const weld::TreeIter ,
OUString   
)
protected

◆ DECL_LINK() [6/6]

dbaui::TreeListBox::DECL_LINK ( SelectHdl  ,
weld::TreeView ,
void   
)
protected

◆ DoChildKeyInput()

bool dbaui::TreeListBox::DoChildKeyInput ( const KeyEvent rKEvt)
protectedvirtual

Reimplemented in dbaui::InterimDBTreeListBox.

Definition at line 131 of file dbtreelistbox.cxx.

◆ ExecuteDrop()

sal_Int8 dbaui::TreeListBox::ExecuteDrop ( const ExecuteDropEvent rEvt)

◆ GetDataTransfer()

TransferDataContainer & dbaui::TreeListBox::GetDataTransfer ( )
inline

Definition at line 105 of file dbtreelistbox.hxx.

References m_xHelper.

Referenced by dbaui::OApplicationController::requestDrag().

◆ GetEntryPosByName()

std::unique_ptr< weld::TreeIter > dbaui::TreeListBox::GetEntryPosByName ( std::u16string_view  rName,
const weld::TreeIter pStart = nullptr,
const IEntryFilter pFilter = nullptr 
) const

◆ GetRootLevelParent()

std::unique_ptr< weld::TreeIter > dbaui::TreeListBox::GetRootLevelParent ( const weld::TreeIter pEntry) const

Definition at line 485 of file dbtreelistbox.cxx.

References m_xTreeView.

◆ GetWidget() [1/2]

weld::TreeView & dbaui::TreeListBox::GetWidget ( )
inline

◆ GetWidget() [2/2]

const weld::TreeView & dbaui::TreeListBox::GetWidget ( ) const
inline

Definition at line 103 of file dbtreelistbox.hxx.

References m_xTreeView.

◆ implStartSelectionTimer()

void dbaui::TreeListBox::implStartSelectionTimer ( )
protected

Definition at line 172 of file dbtreelistbox.cxx.

References implStopSelectionTimer(), m_aTimer, and Timer::Start().

◆ implStopSelectionTimer()

void dbaui::TreeListBox::implStopSelectionTimer ( )
protected

◆ setContextMenuProvider()

void dbaui::TreeListBox::setContextMenuProvider ( IContextMenuProvider pContextMenuProvider)
inline

Definition at line 100 of file dbtreelistbox.hxx.

References m_pContextMenuProvider.

Referenced by dbaui::OAppDetailPageHelper::setupTree().

◆ setControlActionListener()

void dbaui::TreeListBox::setControlActionListener ( IControlActionListener pListener)
inline

Definition at line 99 of file dbtreelistbox.hxx.

References m_pActionListener.

Referenced by dbaui::OAppDetailPageHelper::setupTree().

◆ setCopyHandler()

void dbaui::TreeListBox::setCopyHandler ( const Link< LinkParamNone *, void > &  _rHdl)
inline

Definition at line 111 of file dbtreelistbox.hxx.

References m_aCopyHandler.

Referenced by dbaui::OAppDetailPageHelper::setupTree().

◆ setDeleteHandler()

void dbaui::TreeListBox::setDeleteHandler ( const Link< LinkParamNone *, void > &  _rHdl)
inline

Definition at line 113 of file dbtreelistbox.hxx.

References m_aDeleteHandler.

Referenced by dbaui::OAppDetailPageHelper::setupTree().

◆ setPasteHandler()

void dbaui::TreeListBox::setPasteHandler ( const Link< LinkParamNone *, void > &  _rHdl)
inline

Definition at line 112 of file dbtreelistbox.hxx.

References m_aPasteHandler.

Referenced by dbaui::OAppDetailPageHelper::setupTree().

◆ SetSelChangeHdl()

void dbaui::TreeListBox::SetSelChangeHdl ( const Link< LinkParamNone *, void > &  _rHdl)
inline

Definition at line 110 of file dbtreelistbox.hxx.

References m_aSelChangeHdl.

Referenced by dbaui::OAppDetailPageHelper::setupTree().

Member Data Documentation

◆ m_aCopyHandler

Link<LinkParamNone*,void> dbaui::TreeListBox::m_aCopyHandler
private

Definition at line 77 of file dbtreelistbox.hxx.

Referenced by setCopyHandler().

◆ m_aDeleteHandler

Link<LinkParamNone*,void> dbaui::TreeListBox::m_aDeleteHandler
private

Definition at line 79 of file dbtreelistbox.hxx.

Referenced by setDeleteHandler().

◆ m_aDropTargetHelper

TreeListBoxDropTarget dbaui::TreeListBox::m_aDropTargetHelper
protected

Definition at line 60 of file dbtreelistbox.hxx.

Referenced by AcceptDrop().

◆ m_aPasteHandler

Link<LinkParamNone*,void> dbaui::TreeListBox::m_aPasteHandler
private

Definition at line 78 of file dbtreelistbox.hxx.

Referenced by setPasteHandler().

◆ m_aSelChangeHdl

Link<LinkParamNone*,void> dbaui::TreeListBox::m_aSelChangeHdl
private

Definition at line 76 of file dbtreelistbox.hxx.

Referenced by SetSelChangeHdl().

◆ m_aTimer

Timer dbaui::TreeListBox::m_aTimer
private

Definition at line 73 of file dbtreelistbox.hxx.

Referenced by implStartSelectionTimer(), implStopSelectionTimer(), and TreeListBox().

◆ m_pActionListener

IControlActionListener* dbaui::TreeListBox::m_pActionListener
protected

Definition at line 63 of file dbtreelistbox.hxx.

Referenced by AcceptDrop(), ExecuteDrop(), and setControlActionListener().

◆ m_pContextMenuProvider

IContextMenuProvider* dbaui::TreeListBox::m_pContextMenuProvider
protected

Definition at line 64 of file dbtreelistbox.hxx.

Referenced by setContextMenuProvider().

◆ m_xDragedEntry

std::unique_ptr<weld::TreeIter> dbaui::TreeListBox::m_xDragedEntry
protected

Definition at line 62 of file dbtreelistbox.hxx.

Referenced by AcceptDrop().

◆ m_xHelper

rtl::Reference<TransferDataContainer> dbaui::TreeListBox::m_xHelper
private

Definition at line 74 of file dbtreelistbox.hxx.

Referenced by GetDataTransfer(), and TreeListBox().

◆ m_xTreeView

std::unique_ptr<weld::TreeView> dbaui::TreeListBox::m_xTreeView
protected

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