merge the formfield patch from ooo-build
[ooovba.git] / writerperfect / source / stream / WPXSvStream.h
blobf4f3b7eb81add23cd5b38b3f6239d31d9b7a9dc7
1 #ifndef WPXSVSTREAM_H
2 #define WPXSVSTREAM_H
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>
9 #endif
12 #if defined _MSC_VER
13 #pragma warning( push, 1 )
14 #endif
15 #include <libwps/WPSStream.h>
16 #include <libwpd/WPXStream.h>
17 #if defined _MSC_VER
18 #pragma warning( pop )
19 #endif
21 class WPXSvInputStream : public WPSInputStream
23 public:
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);
34 virtual long tell();
35 virtual bool atEOS();
37 private:
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;
45 sal_Int64 mnLength;
48 #endif