Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_EMBED_XINPLACECLIENT_HDL
2 : : #define INCLUDED_COM_SUN_STAR_EMBED_XINPLACECLIENT_HDL
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/uno/RuntimeException.hdl"
7 : : #include "com/sun/star/uno/Exception.hdl"
8 : : #include "com/sun/star/awt/Size.hdl"
9 : : #include "com/sun/star/awt/KeyEvent.hdl"
10 : : #include "com/sun/star/awt/Rectangle.hdl"
11 : : namespace com { namespace sun { namespace star { namespace frame { class XLayoutManager; } } } }
12 : : #include "com/sun/star/embed/WrongStateException.hdl"
13 : : namespace com { namespace sun { namespace star { namespace frame { class XDispatchProvider; } } } }
14 : : #include "com/sun/star/uno/XInterface.hdl"
15 : : #include "com/sun/star/uno/Reference.h"
16 : : #include "com/sun/star/uno/Sequence.h"
17 : : #include "cppu/macros.hxx"
18 : : #include "sal/types.h"
19 : :
20 : : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
21 : :
22 : : namespace com { namespace sun { namespace star { namespace embed {
23 : :
24 : 29 : class SAL_NO_VTABLE XInplaceClient : public ::com::sun::star::uno::XInterface
25 : : {
26 : : public:
27 : :
28 : : // Methods
29 : : virtual ::sal_Bool SAL_CALL canInplaceActivate( ) throw (::com::sun::star::uno::RuntimeException) = 0;
30 : : virtual void SAL_CALL activatingInplace( ) throw (::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) = 0;
31 : : virtual void SAL_CALL activatingUI( ) throw (::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) = 0;
32 : : virtual void SAL_CALL deactivatedInplace( ) throw (::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) = 0;
33 : : virtual void SAL_CALL deactivatedUI( ) throw (::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) = 0;
34 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XLayoutManager > SAL_CALL getLayoutManager( ) throw (::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) = 0;
35 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider > SAL_CALL getInplaceDispatchProvider( ) throw (::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) = 0;
36 : : virtual ::com::sun::star::awt::Rectangle SAL_CALL getPlacement( ) throw (::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) = 0;
37 : : virtual ::com::sun::star::awt::Rectangle SAL_CALL getClipRectangle( ) throw (::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) = 0;
38 : : virtual void SAL_CALL translateAccelerators( const ::com::sun::star::uno::Sequence< ::com::sun::star::awt::KeyEvent >& aKeys ) throw (::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) = 0;
39 : : virtual void SAL_CALL scrollObject( const ::com::sun::star::awt::Size& aOffset ) throw (::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) = 0;
40 : : virtual void SAL_CALL changedPlacement( const ::com::sun::star::awt::Rectangle& aPosRect ) throw (::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException) = 0;
41 : :
42 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
43 : :
44 : : protected:
45 : 29 : ~XInplaceClient() throw () {} // avoid warnings about virtual members and non-virtual dtor
46 : : };
47 : :
48 : :
49 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::embed::XInplaceClient const *);
50 : : } } } }
51 : :
52 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XInplaceClient > *) SAL_THROW(());
53 : :
54 : : #endif
|