Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_DRAWING_XSLIDEPREVIEWCACHE_HDL
2 : #define INCLUDED_COM_SUN_STAR_DRAWING_XSLIDEPREVIEWCACHE_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : namespace com { namespace sun { namespace star { namespace container { class XIndexAccess; } } } }
7 : namespace com { namespace sun { namespace star { namespace drawing { class XSlidePreviewCacheListener; } } } }
8 : #include "com/sun/star/geometry/IntegerSize2D.hdl"
9 : #include "com/sun/star/lang/IllegalArgumentException.hdl"
10 : namespace com { namespace sun { namespace star { namespace rendering { class XBitmap; } } } }
11 : namespace com { namespace sun { namespace star { namespace rendering { class XCanvas; } } } }
12 : #include "com/sun/star/uno/RuntimeException.hdl"
13 : #include "com/sun/star/uno/XInterface.hdl"
14 : #include "com/sun/star/uno/Reference.h"
15 : #include "cppu/macros.hxx"
16 : #include "sal/types.h"
17 :
18 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
19 :
20 : namespace com { namespace sun { namespace star { namespace drawing {
21 :
22 0 : class SAL_NO_VTABLE XSlidePreviewCache : public css::uno::XInterface
23 : {
24 : public:
25 :
26 : // Methods
27 : virtual void SAL_CALL setDocumentSlides( const ::com::sun::star::uno::Reference< css::container::XIndexAccess >& xSlides, const ::com::sun::star::uno::Reference< css::uno::XInterface >& xDocument ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
28 : virtual void SAL_CALL setVisibleRange( ::sal_Int32 nFirstVisibleSlideIndex, ::sal_Int32 nLastVisibleSlideIndex ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
29 : virtual void SAL_CALL setPreviewSize( const css::geometry::IntegerSize2D& aSize ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
30 : virtual ::com::sun::star::uno::Reference< css::rendering::XBitmap > SAL_CALL getSlidePreview( ::sal_Int32 nSlideIndex, const ::com::sun::star::uno::Reference< css::rendering::XCanvas >& xCanvas ) /* throw (css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
31 : virtual void SAL_CALL addPreviewCreationNotifyListener( const ::com::sun::star::uno::Reference< css::drawing::XSlidePreviewCacheListener >& xListener ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
32 : virtual void SAL_CALL removePreviewCreationNotifyListener( const ::com::sun::star::uno::Reference< css::drawing::XSlidePreviewCacheListener >& xListener ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
33 : virtual void SAL_CALL pause() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
34 : virtual void SAL_CALL resume() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
35 :
36 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
37 :
38 : protected:
39 0 : ~XSlidePreviewCache() throw () {} // avoid warnings about virtual members and non-virtual dtor
40 : };
41 :
42 :
43 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::drawing::XSlidePreviewCache const *);
44 : } } } }
45 :
46 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::drawing::XSlidePreviewCache > *) SAL_THROW(());
47 :
48 : #endif
|