Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_AWT_TREE_XTREECONTROL_HDL
2 : #define INCLUDED_COM_SUN_STAR_AWT_TREE_XTREECONTROL_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/awt/Rectangle.hdl"
7 : #include "com/sun/star/awt/tree/ExpandVetoException.hdl"
8 : namespace com { namespace sun { namespace star { namespace awt { namespace tree { class XTreeEditListener; } } } } }
9 : namespace com { namespace sun { namespace star { namespace awt { namespace tree { class XTreeExpansionListener; } } } } }
10 : namespace com { namespace sun { namespace star { namespace awt { namespace tree { class XTreeNode; } } } } }
11 : #include "com/sun/star/lang/IllegalArgumentException.hdl"
12 : #include "com/sun/star/uno/RuntimeException.hdl"
13 : #include "com/sun/star/view/XMultiSelectionSupplier.hdl"
14 : #include "com/sun/star/uno/Reference.h"
15 : #include "cppu/macros.hxx"
16 : #include "rtl/ustring.hxx"
17 : #include "sal/types.h"
18 :
19 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
20 :
21 : namespace com { namespace sun { namespace star { namespace awt { namespace tree {
22 :
23 0 : class SAL_NO_VTABLE XTreeControl : public css::view::XMultiSelectionSupplier
24 : {
25 : public:
26 :
27 : // Attributes
28 : virtual ::rtl::OUString SAL_CALL getDefaultExpandedGraphicURL() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
29 : virtual void SAL_CALL setDefaultExpandedGraphicURL( const ::rtl::OUString& _defaultexpandedgraphicurl ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
30 : virtual ::rtl::OUString SAL_CALL getDefaultCollapsedGraphicURL() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
31 : virtual void SAL_CALL setDefaultCollapsedGraphicURL( const ::rtl::OUString& _defaultcollapsedgraphicurl ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
32 :
33 : // Methods
34 : virtual ::sal_Bool SAL_CALL isNodeExpanded( const ::com::sun::star::uno::Reference< css::awt::tree::XTreeNode >& Node ) /* throw (css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
35 : virtual ::sal_Bool SAL_CALL isNodeCollapsed( const ::com::sun::star::uno::Reference< css::awt::tree::XTreeNode >& Node ) /* throw (css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
36 : virtual void SAL_CALL makeNodeVisible( const ::com::sun::star::uno::Reference< css::awt::tree::XTreeNode >& Node ) /* throw (css::lang::IllegalArgumentException, css::awt::tree::ExpandVetoException, ::com::sun::star::uno::RuntimeException) */ = 0;
37 : virtual ::sal_Bool SAL_CALL isNodeVisible( const ::com::sun::star::uno::Reference< css::awt::tree::XTreeNode >& Node ) /* throw (css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
38 : virtual void SAL_CALL expandNode( const ::com::sun::star::uno::Reference< css::awt::tree::XTreeNode >& Node ) /* throw (css::lang::IllegalArgumentException, css::awt::tree::ExpandVetoException, ::com::sun::star::uno::RuntimeException) */ = 0;
39 : virtual void SAL_CALL collapseNode( const ::com::sun::star::uno::Reference< css::awt::tree::XTreeNode >& Node ) /* throw (css::lang::IllegalArgumentException, css::awt::tree::ExpandVetoException, ::com::sun::star::uno::RuntimeException) */ = 0;
40 : virtual void SAL_CALL addTreeExpansionListener( const ::com::sun::star::uno::Reference< css::awt::tree::XTreeExpansionListener >& Listener ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
41 : virtual void SAL_CALL removeTreeExpansionListener( const ::com::sun::star::uno::Reference< css::awt::tree::XTreeExpansionListener >& Listener ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
42 : virtual ::com::sun::star::uno::Reference< css::awt::tree::XTreeNode > SAL_CALL getNodeForLocation( ::sal_Int32 x, ::sal_Int32 y ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
43 : virtual ::com::sun::star::uno::Reference< css::awt::tree::XTreeNode > SAL_CALL getClosestNodeForLocation( ::sal_Int32 x, ::sal_Int32 y ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
44 : virtual css::awt::Rectangle SAL_CALL getNodeRect( const ::com::sun::star::uno::Reference< css::awt::tree::XTreeNode >& Node ) /* throw (css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
45 : virtual ::sal_Bool SAL_CALL isEditing() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
46 : virtual ::sal_Bool SAL_CALL stopEditing() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
47 : virtual void SAL_CALL cancelEditing() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
48 : virtual void SAL_CALL startEditingAtNode( const ::com::sun::star::uno::Reference< css::awt::tree::XTreeNode >& Node ) /* throw (css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
49 : virtual void SAL_CALL addTreeEditListener( const ::com::sun::star::uno::Reference< css::awt::tree::XTreeEditListener >& Listener ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
50 : virtual void SAL_CALL removeTreeEditListener( const ::com::sun::star::uno::Reference< css::awt::tree::XTreeEditListener >& Listener ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
51 :
52 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
53 :
54 : protected:
55 0 : ~XTreeControl() throw () {} // avoid warnings about virtual members and non-virtual dtor
56 : };
57 :
58 :
59 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::awt::tree::XTreeControl const *);
60 : } } } } }
61 :
62 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::awt::tree::XTreeControl > *) SAL_THROW(());
63 :
64 : #endif
|