Scribus
Open source desktop publishing at your fingertips
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
WPXStream.h
1
/* libwpd
2
* Copyright (C) 2004-2005 William Lachance (wrlach@gmail.com)
3
*
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.
8
*
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.
13
*
14
* You should have received a copy of the GNU Library General Public
15
* License along with this library; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
17
*
18
* For further information visit http://libwpd.sourceforge.net
19
*/
20
21
/* "This product is not manufactured, approved, or supported by
22
* Corel Corporation or Corel Corporation Limited."
23
*/
24
25
#ifndef WPXSTREAM_H
26
#define WPXSTREAM_H
27
#include <stdio.h>
28
#include "libwpd_types.h"
29
30
enum
WPX_SEEK_TYPE
31
{
32
WPX_SEEK_CUR,
33
WPX_SEEK_SET
34
};
35
36
class
WPXInputStream
37
{
38
public
:
39
WPXInputStream
() {}
40
virtual
~
WPXInputStream
() {}
41
47
virtual
bool
isOLEStream
() = 0;
54
virtual
WPXInputStream
*
getDocumentOLEStream
() = 0;
55
63
const
virtual
uint8_t *
read
(
size_t
numBytes,
size_t
&numBytesRead) = 0;
74
virtual
int
seek
(
long
offset, WPX_SEEK_TYPE seekType) = 0;
79
virtual
long
tell
() = 0;
85
virtual
bool
atEOS
() = 0;
86
};
87
#endif
WPXInputStream::atEOS
virtual bool atEOS()=0
WPXInputStream
Definition:
WPXStream.h:36
WPXInputStream::seek
virtual int seek(long offset, WPX_SEEK_TYPE seekType)=0
WPXInputStream::read
virtual const uint8_t * read(size_t numBytes, size_t &numBytesRead)=0
WPXInputStream::isOLEStream
virtual bool isOLEStream()=0
WPXInputStream::tell
virtual long tell()=0
WPXInputStream::getDocumentOLEStream
virtual WPXInputStream * getDocumentOLEStream()=0
scribus
third_party
wpg
WPXStream.h
Generated on Tue Sep 29 2015 09:15:16 for Scribus by
1.8.9.1