Bump version to 6.4-15
[LibreOffice.git] / writerperfect / inc / WPXSvInputStream.hxx
blobf67e4159e28d906163b2bdf17341cad7ba0d9ea7
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 INCLUDED_WRITERPERFECT_WPXSVINPUTSTREAM_HXX
11 #define INCLUDED_WRITERPERFECT_WPXSVINPUTSTREAM_HXX
13 #include <librevenge-stream/librevenge-stream.h>
14 #include <com/sun/star/uno/Reference.h>
15 #include "writerperfectdllapi.h"
16 #include <memory>
18 namespace com
20 namespace sun
22 namespace star
24 namespace io
26 class XInputStream;
27 class XSeekable;
33 namespace writerperfect
35 class WPXSvInputStreamImpl;
37 class WRITERPERFECT_DLLPUBLIC WPXSvInputStream : public librevenge::RVNGInputStream
39 public:
40 WPXSvInputStream(css::uno::Reference<css::io::XInputStream> const& xStream);
41 virtual ~WPXSvInputStream() override;
43 virtual bool isStructured() override;
44 virtual unsigned subStreamCount() override;
45 virtual const char* subStreamName(unsigned id) override;
46 virtual bool existsSubStream(const char* name) override;
47 virtual librevenge::RVNGInputStream* getSubStreamByName(const char* name) override;
48 virtual librevenge::RVNGInputStream* getSubStreamById(unsigned id) override;
50 virtual const unsigned char* read(unsigned long numBytes, unsigned long& numBytesRead) override;
51 virtual int seek(long offset, librevenge::RVNG_SEEK_TYPE seekType) override;
52 virtual long tell() override;
53 virtual bool isEnd() override;
55 private:
56 std::unique_ptr<WPXSvInputStreamImpl> mpImpl;
60 #endif // INCLUDED_WRITERPERFECT_WPXSVINPUTSTREAM_HXX
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */