give a service factory to the tree list box
This commit is contained in:
parent
92ec84937d
commit
4181d2f640
2 changed files with 15 additions and 7 deletions
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: dbtreeview.cxx,v $
|
||||
*
|
||||
* $Revision: 1.7 $
|
||||
* $Revision: 1.8 $
|
||||
*
|
||||
* last change: $Author: oj $ $Date: 2000-12-01 11:51:05 $
|
||||
* last change: $Author: fs $ $Date: 2000-12-08 21:23:39 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -78,15 +78,17 @@ namespace dbaui
|
|||
{
|
||||
// .........................................................................
|
||||
|
||||
using namespace ::com::sun::star::uno;
|
||||
using namespace ::com::sun::star::lang;
|
||||
|
||||
//========================================================================
|
||||
// class DBTreeView
|
||||
//========================================================================
|
||||
DBTreeView::DBTreeView( Window* pParent, WinBits nBits)
|
||||
DBTreeView::DBTreeView( Window* pParent, const Reference< XMultiServiceFactory >& _rxORB, WinBits nBits)
|
||||
: Window( pParent, nBits )
|
||||
, m_pTreeListBox(NULL)
|
||||
{
|
||||
m_pTreeListBox = new DBTreeListBox(this,WB_BORDER | WB_HASLINES | WB_HASLINESATROOT | WB_SORT | WB_HASBUTTONS | WB_HSCROLL |WB_HASBUTTONSATROOT);
|
||||
m_pTreeListBox = new DBTreeListBox(this, _rxORB ,WB_BORDER | WB_HASLINES | WB_HASLINESATROOT | WB_SORT | WB_HASBUTTONS | WB_HSCROLL |WB_HASBUTTONSATROOT);
|
||||
m_pTreeListBox->EnableCheckButton(NULL);
|
||||
m_pTreeListBox->SetDragDropMode( 0 );
|
||||
m_pTreeListBox->EnableInplaceEditing( sal_False );
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: dbtreeview.hxx,v $
|
||||
*
|
||||
* $Revision: 1.3 $
|
||||
* $Revision: 1.4 $
|
||||
*
|
||||
* last change: $Author: oj $ $Date: 2000-11-23 10:45:28 $
|
||||
* last change: $Author: fs $ $Date: 2000-12-08 21:23:41 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -66,6 +66,10 @@
|
|||
#include <vcl/window.hxx>
|
||||
#endif
|
||||
|
||||
#ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
|
||||
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
|
||||
#endif
|
||||
|
||||
class SvTreeListBox;
|
||||
namespace dbaui
|
||||
{
|
||||
|
@ -84,7 +88,9 @@ namespace dbaui
|
|||
virtual void Resize();
|
||||
public:
|
||||
|
||||
DBTreeView( Window* pParent, WinBits nBits );
|
||||
DBTreeView( Window* pParent,
|
||||
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB,
|
||||
WinBits nBits );
|
||||
~DBTreeView();
|
||||
|
||||
/** sets a handler which is called when an list box entry is to be expanded.
|
||||
|
|
Loading…
Reference in a new issue