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/awt/KeyEvent.hdl"
7 : #include "com/sun/star/awt/Rectangle.hdl"
8 : #include "com/sun/star/awt/Size.hdl"
9 : #include "com/sun/star/embed/WrongStateException.hdl"
10 : namespace com { namespace sun { namespace star { namespace frame { class XDispatchProvider; } } } }
11 : namespace com { namespace sun { namespace star { namespace frame { class XLayoutManager; } } } }
12 : #include "com/sun/star/uno/Exception.hdl"
13 : #include "com/sun/star/uno/RuntimeException.hdl"
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 78 : class SAL_NO_VTABLE XInplaceClient : public css::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 (css::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) */ = 0;
31 : virtual void SAL_CALL activatingUI() /* throw (css::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) */ = 0;
32 : virtual void SAL_CALL deactivatedInplace() /* throw (css::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) */ = 0;
33 : virtual void SAL_CALL deactivatedUI() /* throw (css::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) */ = 0;
34 : virtual ::com::sun::star::uno::Reference< css::frame::XLayoutManager > SAL_CALL getLayoutManager() /* throw (css::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) */ = 0;
35 : virtual ::com::sun::star::uno::Reference< css::frame::XDispatchProvider > SAL_CALL getInplaceDispatchProvider() /* throw (css::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) */ = 0;
36 : virtual css::awt::Rectangle SAL_CALL getPlacement() /* throw (css::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) */ = 0;
37 : virtual css::awt::Rectangle SAL_CALL getClipRectangle() /* throw (css::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) */ = 0;
38 : virtual void SAL_CALL translateAccelerators( const ::com::sun::star::uno::Sequence< css::awt::KeyEvent >& aKeys ) /* throw (css::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) */ = 0;
39 : virtual void SAL_CALL scrollObject( const css::awt::Size& aOffset ) /* throw (css::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) */ = 0;
40 : virtual void SAL_CALL changedPlacement( const css::awt::Rectangle& aPosRect ) /* throw (css::embed::WrongStateException, css::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 78 : ~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 css::embed::XInplaceClient const *);
50 : } } } }
51 :
52 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::embed::XInplaceClient > *) SAL_THROW(());
53 :
54 : #endif
|