1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 #ifndef INCLUDED_WRITERPERFECT_WPXSVINPUTSTREAM_HXX
11 #define INCLUDED_WRITERPERFECT_WPXSVINPUTSTREAM_HXX
13 #include <librevenge-stream/librevenge-stream.h>
15 #include <com/sun/star/uno/Reference.h>
17 #include <writerperfectdllapi.h>
34 namespace writerperfect
37 class WPXSvInputStreamImpl
;
39 class WRITERPERFECT_DLLPUBLIC WPXSvInputStream
: public librevenge::RVNGInputStream
42 WPXSvInputStream(::com::sun::star::uno::Reference
< ::com::sun::star::io::XInputStream
> xStream
);
43 virtual ~WPXSvInputStream();
45 virtual bool isStructured() SAL_OVERRIDE
;
46 virtual unsigned subStreamCount() SAL_OVERRIDE
;
47 virtual const char *subStreamName(unsigned id
) SAL_OVERRIDE
;
48 virtual bool existsSubStream(const char *name
) SAL_OVERRIDE
;
49 virtual librevenge::RVNGInputStream
*getSubStreamByName(const char *name
) SAL_OVERRIDE
;
50 virtual librevenge::RVNGInputStream
*getSubStreamById(unsigned id
) SAL_OVERRIDE
;
52 virtual const unsigned char *read(unsigned long numBytes
, unsigned long &numBytesRead
) SAL_OVERRIDE
;
53 virtual int seek(long offset
, librevenge::RVNG_SEEK_TYPE seekType
) SAL_OVERRIDE
;
54 virtual long tell() SAL_OVERRIDE
;
55 virtual bool isEnd() SAL_OVERRIDE
;
58 WPXSvInputStreamImpl
*mpImpl
;
63 #endif // INCLUDED_WRITERPERFECT_WPXSVINPUTSTREAM_HXX
65 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */