nss: upgrade to release 3.73
[LibreOffice.git] / writerperfect / inc / WPXSvInputStream.hxx
blob052cf4082ed76e1ba06597559f9b9ccc87e45ee8
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 <tools/long.hxx>
16 #include "writerperfectdllapi.h"
17 #include <memory>
19 namespace com::sun::star::io
21 class XInputStream;
22 class XSeekable;
25 namespace writerperfect
27 class WPXSvInputStreamImpl;
29 class WRITERPERFECT_DLLPUBLIC WPXSvInputStream final : public librevenge::RVNGInputStream
31 public:
32 WPXSvInputStream(css::uno::Reference<css::io::XInputStream> const& xStream);
33 virtual ~WPXSvInputStream() override;
35 virtual bool isStructured() override;
36 virtual unsigned subStreamCount() override;
37 virtual const char* subStreamName(unsigned id) override;
38 virtual bool existsSubStream(const char* name) override;
39 virtual librevenge::RVNGInputStream* getSubStreamByName(const char* name) override;
40 virtual librevenge::RVNGInputStream* getSubStreamById(unsigned id) override;
42 virtual const unsigned char* read(unsigned long numBytes, unsigned long& numBytesRead) override;
43 virtual int seek(long offset, librevenge::RVNG_SEEK_TYPE seekType) override;
44 virtual long tell() override;
45 virtual bool isEnd() override;
47 private:
48 std::unique_ptr<WPXSvInputStreamImpl> mpImpl;
52 #endif // INCLUDED_WRITERPERFECT_WPXSVINPUTSTREAM_HXX
54 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */