Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_INSPECTION_XPROPERTYHANDLER_HDL
2 : : #define INCLUDED_COM_SUN_STAR_INSPECTION_XPROPERTYHANDLER_HDL
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : namespace com { namespace sun { namespace star { namespace inspection { class XObjectInspectorUI; } } } }
7 : : namespace com { namespace sun { namespace star { namespace beans { class XPropertyChangeListener; } } } }
8 : : #include "com/sun/star/inspection/LineDescriptor.hdl"
9 : : #include "com/sun/star/beans/Property.hdl"
10 : : #include "com/sun/star/uno/RuntimeException.hdl"
11 : : namespace com { namespace sun { namespace star { namespace inspection { class XPropertyControlFactory; } } } }
12 : : #include "com/sun/star/beans/UnknownPropertyException.hdl"
13 : : #include "com/sun/star/lang/NullPointerException.hdl"
14 : : #include "com/sun/star/lang/XComponent.hdl"
15 : : #include "com/sun/star/beans/PropertyState.hdl"
16 : : #include "com/sun/star/inspection/InteractiveSelectionResult.hdl"
17 : : namespace com { namespace sun { namespace star { namespace uno { class XInterface; } } } }
18 : : #include "com/sun/star/uno/Any.h"
19 : : #include "com/sun/star/uno/Reference.h"
20 : : #include "com/sun/star/uno/Sequence.h"
21 : : #include "com/sun/star/uno/Type.h"
22 : : #include "cppu/macros.hxx"
23 : : #include "rtl/ustring.hxx"
24 : : #include "sal/types.h"
25 : :
26 : : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
27 : :
28 : : namespace com { namespace sun { namespace star { namespace inspection {
29 : :
30 : 0 : class SAL_NO_VTABLE XPropertyHandler : public ::com::sun::star::lang::XComponent
31 : : {
32 : : public:
33 : :
34 : : // Methods
35 : : virtual void SAL_CALL inspect( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Component ) throw (::com::sun::star::lang::NullPointerException, ::com::sun::star::uno::RuntimeException) = 0;
36 : : virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException) = 0;
37 : : virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException) = 0;
38 : : virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState( const ::rtl::OUString& PropertyName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException) = 0;
39 : : virtual ::com::sun::star::inspection::LineDescriptor SAL_CALL describePropertyLine( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XPropertyControlFactory >& ControlFactory ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::NullPointerException, ::com::sun::star::uno::RuntimeException) = 0;
40 : : virtual ::com::sun::star::uno::Any SAL_CALL convertToPropertyValue( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& ControlValue ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException) = 0;
41 : : virtual ::com::sun::star::uno::Any SAL_CALL convertToControlValue( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& PropertyValue, const ::com::sun::star::uno::Type& ControlValueType ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException) = 0;
42 : : virtual void SAL_CALL addPropertyChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& Listener ) throw (::com::sun::star::lang::NullPointerException, ::com::sun::star::uno::RuntimeException) = 0;
43 : : virtual void SAL_CALL removePropertyChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& Listener ) throw (::com::sun::star::uno::RuntimeException) = 0;
44 : : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > SAL_CALL getSupportedProperties( ) throw (::com::sun::star::uno::RuntimeException) = 0;
45 : : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupersededProperties( ) throw (::com::sun::star::uno::RuntimeException) = 0;
46 : : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getActuatingProperties( ) throw (::com::sun::star::uno::RuntimeException) = 0;
47 : : virtual ::sal_Bool SAL_CALL isComposable( const ::rtl::OUString& PropertyName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException) = 0;
48 : : virtual ::com::sun::star::inspection::InteractiveSelectionResult SAL_CALL onInteractivePropertySelection( const ::rtl::OUString& PropertyName, ::sal_Bool Primary, ::com::sun::star::uno::Any& out_Data, const ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XObjectInspectorUI >& InspectorUI ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::NullPointerException, ::com::sun::star::uno::RuntimeException) = 0;
49 : : virtual void SAL_CALL actuatingPropertyChanged( const ::rtl::OUString& ActuatingPropertyName, const ::com::sun::star::uno::Any& NewValue, const ::com::sun::star::uno::Any& OldValue, const ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XObjectInspectorUI >& InspectorUI, ::sal_Bool FirstTimeInit ) throw (::com::sun::star::lang::NullPointerException, ::com::sun::star::uno::RuntimeException) = 0;
50 : : virtual ::sal_Bool SAL_CALL suspend( ::sal_Bool Suspend ) 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 : ~XPropertyHandler() 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 ::com::sun::star::inspection::XPropertyHandler const *);
60 : : } } } }
61 : :
62 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XPropertyHandler > *) SAL_THROW(());
63 : :
64 : : #endif
|