Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef EBOOKSTREAMSLICE_H_INCLUDED
00018 #define EBOOKSTREAMSLICE_H_INCLUDED
00019
00020 #include <libwpd-stream/libwpd-stream.h>
00021
00022 namespace libebook
00023 {
00024
00032 class EBOOKStreamSlice : public WPXInputStream
00033 {
00034
00035 EBOOKStreamSlice(const EBOOKStreamSlice &other);
00036 EBOOKStreamSlice &operator=(const EBOOKStreamSlice &other);
00037
00038 public:
00039 EBOOKStreamSlice(WPXInputStream *stream, long begin, long end);
00040 virtual ~EBOOKStreamSlice();
00041
00042 virtual bool isOLEStream();
00043 virtual WPXInputStream *getDocumentOLEStream(const char *name);
00044
00045 virtual const unsigned char *read(unsigned long numBytes, unsigned long &numBytesRead);
00046 virtual int seek(long offset, WPX_SEEK_TYPE seekType);
00047 virtual long tell();
00048 virtual bool atEOS();
00049
00050 private:
00051 WPXInputStream *const m_stream;
00052 const long m_begin;
00053 const long m_end;
00054 };
00055
00056 }
00057
00058 #endif // EBOOKSTREAMSLICE_H_INCLUDED
00059
00060