Branch data 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 : : namespace com { namespace sun { namespace star { namespace embed { class XEmbeddedClient; } } } }
7 : : #include "com/sun/star/embed/VerbDescriptor.hdl"
8 : : #include "com/sun/star/uno/RuntimeException.hdl"
9 : : #include "com/sun/star/lang/IllegalArgumentException.hdl"
10 : : #include "com/sun/star/embed/NeedsRunningStateException.hdl"
11 : : #include "com/sun/star/embed/WrongStateException.hdl"
12 : : #include "com/sun/star/uno/Exception.hdl"
13 : : #include "com/sun/star/util/XCloseable.hdl"
14 : : #include "com/sun/star/embed/XVisualObject.hdl"
15 : : #include "com/sun/star/embed/UnreachableStateException.hdl"
16 : : #include "com/sun/star/document/XEventBroadcaster.hdl"
17 : : #include "com/sun/star/embed/XStateChangeBroadcaster.hdl"
18 : : #include "com/sun/star/embed/XClassifiedObject.hdl"
19 : : #include "com/sun/star/embed/XComponentSupplier.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 : 470 : class SAL_NO_VTABLE XEmbeddedObject : public ::com::sun::star::embed::XVisualObject, public ::com::sun::star::embed::XClassifiedObject, public ::com::sun::star::embed::XComponentSupplier, public ::com::sun::star::embed::XStateChangeBroadcaster, public ::com::sun::star::document::XEventBroadcaster, public ::com::sun::star::util::XCloseable
31 : : {
32 : : public:
33 : :
34 : : // Methods
35 : : virtual void SAL_CALL changeState( ::sal_Int32 nNewState ) throw (::com::sun::star::embed::UnreachableStateException, ::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException) = 0;
36 : : virtual ::com::sun::star::uno::Sequence< ::sal_Int32 > SAL_CALL getReachableStates( ) throw (::com::sun::star::embed::NeedsRunningStateException, ::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) = 0;
37 : : virtual ::sal_Int32 SAL_CALL getCurrentState( ) throw (::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) = 0;
38 : : virtual void SAL_CALL doVerb( ::sal_Int32 nVerbID ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::embed::WrongStateException, ::com::sun::star::embed::UnreachableStateException, ::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException) = 0;
39 : : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::embed::VerbDescriptor > SAL_CALL getSupportedVerbs( ) throw (::com::sun::star::embed::NeedsRunningStateException, ::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) = 0;
40 : : virtual void SAL_CALL setClientSite( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XEmbeddedClient >& xClient ) throw (::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) = 0;
41 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::embed::XEmbeddedClient > SAL_CALL getClientSite( ) throw (::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) = 0;
42 : : virtual void SAL_CALL update( ) throw (::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException) = 0;
43 : : virtual void SAL_CALL setUpdateMode( ::sal_Int32 nMode ) throw (::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) = 0;
44 : : virtual ::sal_Int64 SAL_CALL getStatus( ::sal_Int64 nAspect ) throw (::com::sun::star::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 : 383 : ~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 ::com::sun::star::embed::XEmbeddedObject const *);
55 : : } } } }
56 : :
57 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XEmbeddedObject > *) SAL_THROW(());
58 : :
59 : : #endif
|