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 : namespace com { namespace sun { namespace star { namespace awt { class XControlModel; } } } }
7 : namespace com { namespace sun { namespace star { namespace awt { class XToolkit; } } } }
8 : namespace com { namespace sun { namespace star { namespace awt { class XView; } } } }
9 : namespace com { namespace sun { namespace star { namespace awt { class XWindowPeer; } } } }
10 : #include "com/sun/star/lang/XComponent.hdl"
11 : #include "com/sun/star/uno/RuntimeException.hdl"
12 : namespace com { namespace sun { namespace star { namespace uno { class XInterface; } } } }
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 1171 : class SAL_NO_VTABLE XControl : public css::lang::XComponent
22 : {
23 : public:
24 :
25 : // Methods
26 : virtual void SAL_CALL setContext( const ::com::sun::star::uno::Reference< css::uno::XInterface >& Context ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
27 : virtual ::com::sun::star::uno::Reference< css::uno::XInterface > SAL_CALL getContext() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
28 : virtual void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< css::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< css::awt::XWindowPeer >& Parent ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
29 : virtual ::com::sun::star::uno::Reference< css::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< css::awt::XControlModel >& Model ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
31 : virtual ::com::sun::star::uno::Reference< css::awt::XControlModel > SAL_CALL getModel() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
32 : virtual ::com::sun::star::uno::Reference< css::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 1061 : ~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 css::awt::XControl const *);
45 : } } } }
46 :
47 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::awt::XControl > *) SAL_THROW(());
48 :
49 : #endif
|