summaryrefslogtreecommitdiffstats
path: root/dbaccess/source/ui/browser/dbtreeview.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui/browser/dbtreeview.cxx')
-rw-r--r--dbaccess/source/ui/browser/dbtreeview.cxx18
1 files changed, 6 insertions, 12 deletions
diff --git a/dbaccess/source/ui/browser/dbtreeview.cxx b/dbaccess/source/ui/browser/dbtreeview.cxx
index 38464068bbb7..f5d1d023c869 100644
--- a/dbaccess/source/ui/browser/dbtreeview.cxx
+++ b/dbaccess/source/ui/browser/dbtreeview.cxx
@@ -29,14 +29,13 @@ using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
DBTreeView::DBTreeView( vcl::Window* pParent, WinBits nBits)
- : Window( pParent, nBits )
- , m_pTreeListBox(nullptr)
+ : Window(pParent, nBits)
+ , m_pTreeListBox(VclPtr<InterimDBTreeListBox>::Create(this))
{
-
- m_pTreeListBox = VclPtr<DBTreeListBox>::Create(this, WB_BORDER | WB_HASLINES | WB_HASLINESATROOT | WB_HASBUTTONS | WB_HSCROLL |WB_HASBUTTONSATROOT);
- m_pTreeListBox->EnableCheckButton(nullptr);
+#if 0
m_pTreeListBox->SetDragDropMode( DragDropMode::NONE );
m_pTreeListBox->EnableInplaceEditing( true );
+#endif
m_pTreeListBox->SetHelpId(HID_TLB_TREELISTBOX);
m_pTreeListBox->Show();
}
@@ -52,14 +51,9 @@ void DBTreeView::dispose()
vcl::Window::dispose();
}
-SvTreeList* DBTreeView::GetTreeModel()
-{
- return m_pTreeListBox->GetModel();
-}
-
-void DBTreeView::SetPreExpandHandler(const Link<SvTreeListEntry*,bool>& _rHdl)
+void DBTreeView::SetPreExpandHandler(const Link<const weld::TreeIter&,bool>& rHdl)
{
- m_pTreeListBox->SetPreExpandHandler(_rHdl);
+ m_pTreeListBox->GetWidget().connect_expanding(rHdl);
}
void DBTreeView::setCopyHandler(const Link<LinkParamNone*,void>& _rHdl)