2000-10-26 13:46:14 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 13:06:33 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2000-10-26 13:46:14 +00:00
|
|
|
*
|
2008-04-10 13:06:33 +00:00
|
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
2000-10-26 13:46:14 +00:00
|
|
|
*
|
2008-04-10 13:06:33 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-10-26 13:46:14 +00:00
|
|
|
*
|
2008-04-10 13:06:33 +00:00
|
|
|
* $RCSfile: dbtreeview.hxx,v $
|
2008-06-25 11:41:30 +00:00
|
|
|
* $Revision: 1.14 $
|
2000-10-26 13:46:14 +00:00
|
|
|
*
|
2008-04-10 13:06:33 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2000-10-26 13:46:14 +00:00
|
|
|
*
|
2008-04-10 13:06:33 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2000-10-26 13:46:14 +00:00
|
|
|
*
|
2008-04-10 13:06:33 +00:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2000-10-26 13:46:14 +00:00
|
|
|
*
|
2008-04-10 13:06:33 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2000-10-26 13:46:14 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#ifndef DBACCESS_UI_DBTREEVIEW_HXX
|
|
|
|
#define DBACCESS_UI_DBTREEVIEW_HXX
|
|
|
|
|
|
|
|
#ifndef _SV_WINDOW_HXX //autogen
|
|
|
|
#include <vcl/window.hxx>
|
|
|
|
#endif
|
|
|
|
|
2000-12-08 20:23:41 +00:00
|
|
|
#ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
|
|
|
|
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
|
|
|
|
#endif
|
|
|
|
|
2000-11-09 06:36:15 +00:00
|
|
|
class SvTreeListBox;
|
2008-06-25 11:41:30 +00:00
|
|
|
class SvLBoxTreeList;
|
2000-10-26 13:46:14 +00:00
|
|
|
namespace dbaui
|
|
|
|
{
|
|
|
|
class DBTreeListBox;
|
|
|
|
// ------------------
|
|
|
|
// - DBTreeView -
|
|
|
|
// ------------------
|
|
|
|
|
|
|
|
class DBTreeView : public Window
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
DBTreeListBox* m_pTreeListBox;
|
|
|
|
protected:
|
|
|
|
// window overridables
|
|
|
|
virtual void Resize();
|
|
|
|
public:
|
|
|
|
|
2000-12-08 20:23:41 +00:00
|
|
|
DBTreeView( Window* pParent,
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB,
|
|
|
|
WinBits nBits );
|
2000-10-26 13:46:14 +00:00
|
|
|
~DBTreeView();
|
|
|
|
|
2000-11-09 06:36:15 +00:00
|
|
|
/** sets a handler which is called when an list box entry is to be expanded.
|
|
|
|
<p>When calling the link, the parameter is an SvLBoxEntry marking the entry to be expanded.
|
|
|
|
</p>
|
|
|
|
*/
|
|
|
|
void SetPreExpandHandler(const Link& _rHdl);
|
|
|
|
/// gets the currently set NodeExpansionHandler
|
|
|
|
|
2001-07-18 10:34:19 +00:00
|
|
|
void setCopyHandler(const Link& _rHdl);
|
|
|
|
|
|
|
|
|
2008-06-25 11:41:30 +00:00
|
|
|
void setModel(SvLBoxTreeList* _pTreeModel);
|
2008-12-01 12:31:27 +00:00
|
|
|
void setSelChangeHdl(const Link& _rHdl);
|
2000-11-09 06:36:15 +00:00
|
|
|
|
2008-06-25 11:41:30 +00:00
|
|
|
DBTreeListBox& getListBox() const { return *m_pTreeListBox; }
|
2001-03-19 11:43:13 +00:00
|
|
|
|
2002-05-02 06:14:29 +00:00
|
|
|
virtual void GetFocus();
|
2000-10-26 13:46:14 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // DBACCESS_UI_DBTREEVIEW_HXX
|
|
|
|
|