Branch data 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 : : #include "com/sun/star/lang/IllegalArgumentException.hdl"
7 : : namespace com { namespace sun { namespace star { namespace rendering { class XCanvas; } } } }
8 : : #include "com/sun/star/uno/RuntimeException.hdl"
9 : : namespace com { namespace sun { namespace star { namespace rendering { class XBitmap; } } } }
10 : : namespace com { namespace sun { namespace star { namespace container { class XIndexAccess; } } } }
11 : : #include "com/sun/star/geometry/IntegerSize2D.hdl"
12 : : #include "com/sun/star/uno/XInterface.hdl"
13 : : namespace com { namespace sun { namespace star { namespace drawing { class XSlidePreviewCacheListener; } } } }
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 ::com::sun::star::uno::XInterface
23 : : {
24 : : public:
25 : :
26 : : // Methods
27 : : virtual void SAL_CALL setDocumentSlides( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess >& xSlides, const ::com::sun::star::uno::Reference< ::com::sun::star::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 ::com::sun::star::geometry::IntegerSize2D& aSize ) throw (::com::sun::star::uno::RuntimeException) = 0;
30 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > SAL_CALL getSlidePreview( ::sal_Int32 nSlideIndex, const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvas >& xCanvas ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
31 : : virtual void SAL_CALL addPreviewCreationNotifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XSlidePreviewCacheListener >& xListener ) throw (::com::sun::star::uno::RuntimeException) = 0;
32 : : virtual void SAL_CALL removePreviewCreationNotifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::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 ::com::sun::star::drawing::XSlidePreviewCache const *);
44 : : } } } }
45 : :
46 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XSlidePreviewCache > *) SAL_THROW(());
47 : :
48 : : #endif
|