Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_XFORMS_XMODEL_HDL
2 : : #define INCLUDED_COM_SUN_STAR_XFORMS_XMODEL_HDL
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : namespace com { namespace sun { namespace star { namespace xforms { class XSubmission; } } } }
7 : : namespace com { namespace sun { namespace star { namespace beans { class XPropertySet; } } } }
8 : : #include "com/sun/star/uno/RuntimeException.hdl"
9 : : namespace com { namespace sun { namespace star { namespace xml { namespace dom { class XDocument; } } } } }
10 : : namespace com { namespace sun { namespace star { namespace task { class XInteractionHandler; } } } }
11 : : #include "com/sun/star/lang/WrappedTargetException.hdl"
12 : : namespace com { namespace sun { namespace star { namespace xforms { class XDataTypeRepository; } } } }
13 : : #include "com/sun/star/util/VetoException.hdl"
14 : : namespace com { namespace sun { namespace star { namespace container { class XSet; } } } }
15 : : #include "com/sun/star/uno/XInterface.hdl"
16 : : #include "com/sun/star/uno/Reference.h"
17 : : #include "cppu/macros.hxx"
18 : : #include "rtl/ustring.hxx"
19 : :
20 : : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
21 : :
22 : : namespace com { namespace sun { namespace star { namespace xforms {
23 : :
24 : 0 : class SAL_NO_VTABLE XModel : public ::com::sun::star::uno::XInterface
25 : : {
26 : : public:
27 : :
28 : : // Methods
29 : : virtual ::rtl::OUString SAL_CALL getID( ) throw (::com::sun::star::uno::RuntimeException) = 0;
30 : : virtual void SAL_CALL setID( const ::rtl::OUString& id ) throw (::com::sun::star::uno::RuntimeException) = 0;
31 : : virtual void SAL_CALL initialize( ) throw (::com::sun::star::uno::RuntimeException) = 0;
32 : : virtual void SAL_CALL rebuild( ) throw (::com::sun::star::uno::RuntimeException) = 0;
33 : : virtual void SAL_CALL recalculate( ) throw (::com::sun::star::uno::RuntimeException) = 0;
34 : : virtual void SAL_CALL revalidate( ) throw (::com::sun::star::uno::RuntimeException) = 0;
35 : : virtual void SAL_CALL refresh( ) throw (::com::sun::star::uno::RuntimeException) = 0;
36 : : virtual void SAL_CALL submit( const ::rtl::OUString& id ) throw (::com::sun::star::util::VetoException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) = 0;
37 : : virtual void SAL_CALL submitWithInteraction( const ::rtl::OUString& id, const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& aHandler ) throw (::com::sun::star::util::VetoException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) = 0;
38 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xforms::XDataTypeRepository > SAL_CALL getDataTypeRepository( ) throw (::com::sun::star::uno::RuntimeException) = 0;
39 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XSet > SAL_CALL getInstances( ) throw (::com::sun::star::uno::RuntimeException) = 0;
40 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XDocument > SAL_CALL getInstanceDocument( const ::rtl::OUString& id ) throw (::com::sun::star::uno::RuntimeException) = 0;
41 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::dom::XDocument > SAL_CALL getDefaultInstance( ) throw (::com::sun::star::uno::RuntimeException) = 0;
42 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL createBinding( ) throw (::com::sun::star::uno::RuntimeException) = 0;
43 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL cloneBinding( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& binding ) throw (::com::sun::star::uno::RuntimeException) = 0;
44 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL getBinding( const ::rtl::OUString& id ) throw (::com::sun::star::uno::RuntimeException) = 0;
45 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XSet > SAL_CALL getBindings( ) throw (::com::sun::star::uno::RuntimeException) = 0;
46 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xforms::XSubmission > SAL_CALL createSubmission( ) throw (::com::sun::star::uno::RuntimeException) = 0;
47 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xforms::XSubmission > SAL_CALL cloneSubmission( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& submission ) throw (::com::sun::star::uno::RuntimeException) = 0;
48 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::xforms::XSubmission > SAL_CALL getSubmission( const ::rtl::OUString& id ) throw (::com::sun::star::uno::RuntimeException) = 0;
49 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XSet > SAL_CALL getSubmissions( ) throw (::com::sun::star::uno::RuntimeException) = 0;
50 : :
51 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
52 : :
53 : : protected:
54 : 0 : ~XModel() throw () {} // avoid warnings about virtual members and non-virtual dtor
55 : : };
56 : :
57 : :
58 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::xforms::XModel const *);
59 : : } } } }
60 : :
61 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::com::sun::star::xforms::XModel > *) SAL_THROW(());
62 : :
63 : : #endif
|