Updated core
[LibreOffice.git] / writerperfect / source / common / WPXSvStream.hxx
blobd104c4b341cc23e9d4fbff3726c8c85cfc4c40c0
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #ifndef WPXSVSTREAM_H
11 #define WPXSVSTREAM_H
13 #include <sot/storage.hxx>
14 #include <com/sun/star/io/XInputStream.hpp>
15 #include <com/sun/star/io/XSeekable.hpp>
17 #include <libwpd-stream/libwpd-stream.h>
19 class WPXSvInputStreamImpl;
21 class WPXSvInputStream : public WPXInputStream
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(const char *name);
31 virtual const unsigned char *read(unsigned long numBytes, unsigned long &numBytesRead);
32 virtual int seek(long offset, WPX_SEEK_TYPE seekType);
33 virtual long tell();
34 virtual bool atEOS();
36 private:
37 WPXSvInputStreamImpl *mpImpl;
40 #endif
42 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */