Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_EMBED_XEMBEDDEDOBJECT_HDL
2 : #define INCLUDED_COM_SUN_STAR_EMBED_XEMBEDDEDOBJECT_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/document/XEventBroadcaster.hdl"
7 : #include "com/sun/star/embed/NeedsRunningStateException.hdl"
8 : #include "com/sun/star/embed/UnreachableStateException.hdl"
9 : #include "com/sun/star/embed/VerbDescriptor.hdl"
10 : #include "com/sun/star/embed/WrongStateException.hdl"
11 : #include "com/sun/star/embed/XClassifiedObject.hdl"
12 : #include "com/sun/star/embed/XComponentSupplier.hdl"
13 : namespace com { namespace sun { namespace star { namespace embed { class XEmbeddedClient; } } } }
14 : #include "com/sun/star/embed/XStateChangeBroadcaster.hdl"
15 : #include "com/sun/star/embed/XVisualObject.hdl"
16 : #include "com/sun/star/lang/IllegalArgumentException.hdl"
17 : #include "com/sun/star/uno/Exception.hdl"
18 : #include "com/sun/star/uno/RuntimeException.hdl"
19 : #include "com/sun/star/util/XCloseable.hdl"
20 : #include "com/sun/star/uno/Reference.h"
21 : #include "com/sun/star/uno/Sequence.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 embed {
29 :
30 245 : class SAL_NO_VTABLE XEmbeddedObject : public css::embed::XVisualObject, public css::embed::XClassifiedObject, public css::embed::XComponentSupplier, public css::embed::XStateChangeBroadcaster, public css::document::XEventBroadcaster, public css::util::XCloseable
31 : {
32 : public:
33 :
34 : // Methods
35 : virtual void SAL_CALL changeState( ::sal_Int32 nNewState ) /* throw (css::embed::UnreachableStateException, css::embed::WrongStateException, css::uno::Exception, ::com::sun::star::uno::RuntimeException) */ = 0;
36 : virtual ::com::sun::star::uno::Sequence< ::sal_Int32 > SAL_CALL getReachableStates() /* throw (css::embed::NeedsRunningStateException, css::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) */ = 0;
37 : virtual ::sal_Int32 SAL_CALL getCurrentState() /* throw (css::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) */ = 0;
38 : virtual void SAL_CALL doVerb( ::sal_Int32 nVerbID ) /* throw (css::lang::IllegalArgumentException, css::embed::WrongStateException, css::embed::UnreachableStateException, css::uno::Exception, ::com::sun::star::uno::RuntimeException) */ = 0;
39 : virtual ::com::sun::star::uno::Sequence< css::embed::VerbDescriptor > SAL_CALL getSupportedVerbs() /* throw (css::embed::NeedsRunningStateException, css::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) */ = 0;
40 : virtual void SAL_CALL setClientSite( const ::com::sun::star::uno::Reference< css::embed::XEmbeddedClient >& xClient ) /* throw (css::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) */ = 0;
41 : virtual ::com::sun::star::uno::Reference< css::embed::XEmbeddedClient > SAL_CALL getClientSite() /* throw (css::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) */ = 0;
42 : virtual void SAL_CALL update() /* throw (css::embed::WrongStateException, css::uno::Exception, ::com::sun::star::uno::RuntimeException) */ = 0;
43 : virtual void SAL_CALL setUpdateMode( ::sal_Int32 nMode ) /* throw (css::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) */ = 0;
44 : virtual ::sal_Int64 SAL_CALL getStatus( ::sal_Int64 nAspect ) /* throw (css::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) */ = 0;
45 : virtual void SAL_CALL setContainerName( const ::rtl::OUString& sName ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
46 :
47 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
48 :
49 : protected:
50 245 : ~XEmbeddedObject() throw () {} // avoid warnings about virtual members and non-virtual dtor
51 : };
52 :
53 :
54 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::embed::XEmbeddedObject const *);
55 : } } } }
56 :
57 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::embed::XEmbeddedObject > *) SAL_THROW(());
58 :
59 : #endif
|