Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_INSPECTION_XPROPERTYCONTROL_HDL
2 : : #define INCLUDED_COM_SUN_STAR_INSPECTION_XPROPERTYCONTROL_HDL
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/uno/RuntimeException.hdl"
7 : : #include "com/sun/star/beans/IllegalTypeException.hdl"
8 : : namespace com { namespace sun { namespace star { namespace inspection { class XPropertyControlContext; } } } }
9 : : #include "com/sun/star/uno/XInterface.hdl"
10 : : namespace com { namespace sun { namespace star { namespace awt { class XWindow; } } } }
11 : : #include "com/sun/star/uno/Any.h"
12 : : #include "com/sun/star/uno/Reference.h"
13 : : #include "com/sun/star/uno/Type.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 inspection {
20 : :
21 : 0 : class SAL_NO_VTABLE XPropertyControl : public ::com::sun::star::uno::XInterface
22 : : {
23 : : public:
24 : :
25 : : // Attributes
26 : : virtual ::sal_Int16 SAL_CALL getControlType() throw (::com::sun::star::uno::RuntimeException) = 0;
27 : : virtual ::com::sun::star::uno::Any SAL_CALL getValue() throw (::com::sun::star::uno::RuntimeException) = 0;
28 : : virtual void SAL_CALL setValue( const ::com::sun::star::uno::Any& _value ) throw (::com::sun::star::beans::IllegalTypeException, ::com::sun::star::uno::RuntimeException) = 0;
29 : : virtual ::com::sun::star::uno::Type SAL_CALL getValueType() throw (::com::sun::star::uno::RuntimeException) = 0;
30 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XPropertyControlContext > SAL_CALL getControlContext() throw (::com::sun::star::uno::RuntimeException) = 0;
31 : : virtual void SAL_CALL setControlContext( const ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XPropertyControlContext >& _controlcontext ) throw (::com::sun::star::uno::RuntimeException) = 0;
32 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > SAL_CALL getControlWindow() throw (::com::sun::star::uno::RuntimeException) = 0;
33 : :
34 : : // Methods
35 : : virtual ::sal_Bool SAL_CALL isModified( ) throw (::com::sun::star::uno::RuntimeException) = 0;
36 : : virtual void SAL_CALL notifyModifiedValue( ) throw (::com::sun::star::uno::RuntimeException) = 0;
37 : :
38 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
39 : :
40 : : protected:
41 : 0 : ~XPropertyControl() throw () {} // avoid warnings about virtual members and non-virtual dtor
42 : : };
43 : :
44 : :
45 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::inspection::XPropertyControl const *);
46 : : } } } }
47 : :
48 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XPropertyControl > *) SAL_THROW(());
49 : :
50 : : #endif
|