2
* Copyright (C) 2006 Ariya Hidayat (ariya@kde.org)
4
* This library is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Library General Public
6
* License as published by the Free Software Foundation; either
7
* version 2 of the License, or (at your option) any later version.
9
* This library is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Library General Public License for more details.
14
* You should have received a copy of the GNU Library General Public
15
* License along with this library; if not, write to the
16
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17
* Boston, MA 02111-1301 USA
19
* For further information visit http://libwpd.sourceforge.net
22
#ifndef __WPXSTREAMIMPLEMENTATION_H__
23
#define __WPXSTREAMIMPLEMENTATION_H__
25
#include "WPXStream.h"
27
class WPXFileStreamPrivate;
29
class WPXFileStream: public WPXInputStream
32
explicit WPXFileStream(const char* filename);
35
const uint8_t *read(size_t numBytes, size_t &numBytesRead);
37
int seek(long offset, WPX_SEEK_TYPE seekType);
41
WPXInputStream *getDocumentOLEStream(const char * name);
42
/* This method will be replaced by the above method in next release cycle */
43
WPXInputStream *getDocumentOLEStream();
46
WPXFileStreamPrivate* d;
47
WPXFileStream(const WPXFileStream&); // copy is not allowed
48
WPXFileStream& operator=(const WPXFileStream&); // assignment is not allowed
51
class WPXStringStreamPrivate;
53
class WPXStringStream: public WPXInputStream
56
WPXStringStream(const char *data, const unsigned int dataSize);
59
const uint8_t *read(size_t numBytes, size_t &numBytesRead);
61
int seek(long offset, WPX_SEEK_TYPE seekType);
65
WPXInputStream *getDocumentOLEStream(const char * name);
66
/* This method will be replaced by the above method in next release cycle */
67
WPXInputStream *getDocumentOLEStream();
70
WPXStringStreamPrivate* d;
71
WPXStringStream(const WPXStringStream&); // copy is not allowed
72
WPXStringStream& operator=(const WPXStringStream&); // assignment is not allowed
75
#endif // __WPXSTREAMIMPLEMENTATION_H__