Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_AWT_XCONTROL_HDL
2 : : #define INCLUDED_COM_SUN_STAR_AWT_XCONTROL_HDL
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/uno/RuntimeException.hdl"
7 : : namespace com { namespace sun { namespace star { namespace awt { class XWindowPeer; } } } }
8 : : namespace com { namespace sun { namespace star { namespace awt { class XToolkit; } } } }
9 : : namespace com { namespace sun { namespace star { namespace uno { class XInterface; } } } }
10 : : namespace com { namespace sun { namespace star { namespace awt { class XControlModel; } } } }
11 : : #include "com/sun/star/lang/XComponent.hdl"
12 : : namespace com { namespace sun { namespace star { namespace awt { class XView; } } } }
13 : : #include "com/sun/star/uno/Reference.h"
14 : : #include "cppu/macros.hxx"
15 : : #include "sal/types.h"
16 : :
17 : : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
18 : :
19 : : namespace com { namespace sun { namespace star { namespace awt {
20 : :
21 : 1451 : class SAL_NO_VTABLE XControl : public ::com::sun::star::lang::XComponent
22 : : {
23 : : public:
24 : :
25 : : // Methods
26 : : virtual void SAL_CALL setContext( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Context ) throw (::com::sun::star::uno::RuntimeException) = 0;
27 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getContext( ) throw (::com::sun::star::uno::RuntimeException) = 0;
28 : : virtual void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw (::com::sun::star::uno::RuntimeException) = 0;
29 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > SAL_CALL getPeer( ) throw (::com::sun::star::uno::RuntimeException) = 0;
30 : : virtual ::sal_Bool SAL_CALL setModel( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& Model ) throw (::com::sun::star::uno::RuntimeException) = 0;
31 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > SAL_CALL getModel( ) throw (::com::sun::star::uno::RuntimeException) = 0;
32 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XView > SAL_CALL getView( ) throw (::com::sun::star::uno::RuntimeException) = 0;
33 : : virtual void SAL_CALL setDesignMode( ::sal_Bool bOn ) throw (::com::sun::star::uno::RuntimeException) = 0;
34 : : virtual ::sal_Bool SAL_CALL isDesignMode( ) throw (::com::sun::star::uno::RuntimeException) = 0;
35 : : virtual ::sal_Bool SAL_CALL isTransparent( ) throw (::com::sun::star::uno::RuntimeException) = 0;
36 : :
37 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
38 : :
39 : : protected:
40 : 1414 : ~XControl() throw () {} // avoid warnings about virtual members and non-virtual dtor
41 : : };
42 : :
43 : :
44 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::awt::XControl const *);
45 : : } } } }
46 : :
47 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl > *) SAL_THROW(());
48 : :
49 : : #endif
|