4 #include <sot/storage.hxx>
5 #include <com/sun/star/io/XInputStream.hpp>
7 #ifndef _COM_SUN_STAR_IO_XINPUTSTREAM_H_
8 #include <com/sun/star/io/XSeekable.hpp>
13 #pragma warning( push, 1 )
15 #include <libwps/WPSStream.h>
16 #include <libwpd/WPXStream.h>
18 #pragma warning( pop )
21 class WPXSvInputStream
: public WPSInputStream
24 WPXSvInputStream( ::com::sun::star::uno::Reference
<
25 ::com::sun::star::io::XInputStream
> xStream
);
26 virtual ~WPXSvInputStream();
28 virtual bool isOLEStream();
29 virtual WPXInputStream
* getDocumentOLEStream();
30 virtual WPXInputStream
* getDocumentOLEStream(const char *name
);
32 virtual const uint8_t *read(size_t numBytes
, size_t &numBytesRead
);
33 virtual int seek(long offset
, WPX_SEEK_TYPE seekType
);
38 SotStorageRef mxChildStorage
;
39 SotStorageStreamRef mxChildStream
;
40 ::com::sun::star::uno::Reference
<
41 ::com::sun::star::io::XInputStream
> mxStream
;
42 ::com::sun::star::uno::Reference
<
43 ::com::sun::star::io::XSeekable
> mxSeekable
;
44 ::com::sun::star::uno::Sequence
< sal_Int8
> maData
;