office-gobmx/writerperfect/inc/WPXSvInputStream.hxx
Stephan Bergmann 5c7c54332f UBSan still needs RTTI of some types to be exported
...for which it had been removed with e10e5c15cc
"improve the script for reducing symbol exports",

> [LNK] Executable/vcldemo
> ld.lld: error: undefined symbol: typeinfo for BitmapReadAccess
> >>> referenced by vcldemo.cxx
> >>>               workdir/CxxObject/vcl/workben/vcldemo.o:(.data+0x1ADF8)
> >>> referenced by vcldemo.cxx
> >>>               workdir/CxxObject/vcl/workben/vcldemo.o:(.data+0x1AE68)
> >>> referenced by vcldemo.cxx
> >>>               workdir/CxxObject/vcl/workben/vcldemo.o:(.data+0x1AEB8)
> >>> referenced 7 more times
> clang-14: error: linker command failed with exit code 1 (use -v to see invocation)
> make[1]: *** [solenv/gbuild/LinkTarget.mk:833: workdir/LinkTarget/Executable/vcldemo] Error 1

> [CUT] writerperfect_stream
> DynamicLibraryManagerException: "Failed to load dynamic library: workdir/LinkTarget/CppunitTest/libtest_writerperfect_stream.so
> workdir/LinkTarget/CppunitTest/libtest_writerperfect_stream.so: undefined symbol: _ZTIN13writerperfect16WPXSvInputStreamE"
> warn:unotools.config:545145:545145:unotools/source/config/configmgr.cxx:147: ConfigManager not empty

> [CUT] dbaccess_empty_stdlib_save
> DynamicLibraryManagerException: "Failed to load dynamic library: workdir/LinkTarget/CppunitTest/libtest_dbaccess_empty_stdlib_save.so
> instdir/program/libdbalo.so: undefined symbol: _ZTIN7svxform19OSystemParseContextE"
> warn:unotools.config:550847:550847:unotools/source/config/configmgr.cxx:147: ConfigManager not empty

Change-Id: Ifbaaa64881bcfd5befdefbadb51948d06b92ca63
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126201
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2021-12-03 09:07:58 +01:00

54 lines
1.8 KiB
C++

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma once
#include <librevenge-stream/librevenge-stream.h>
#include <com/sun/star/uno/Reference.h>
#include <tools/long.hxx>
#include "writerperfectdllapi.h"
#include <memory>
namespace com::sun::star::io
{
class XInputStream;
class XSeekable;
}
namespace writerperfect
{
class WPXSvInputStreamImpl;
class SAL_DLLPUBLIC_RTTI WPXSvInputStream final : public librevenge::RVNGInputStream
{
public:
WRITERPERFECT_DLLPUBLIC
WPXSvInputStream(css::uno::Reference<css::io::XInputStream> const& xStream);
WRITERPERFECT_DLLPUBLIC virtual ~WPXSvInputStream() override;
virtual bool isStructured() override;
virtual unsigned subStreamCount() override;
virtual const char* subStreamName(unsigned id) override;
virtual bool existsSubStream(const char* name) override;
virtual librevenge::RVNGInputStream* getSubStreamByName(const char* name) override;
virtual librevenge::RVNGInputStream* getSubStreamById(unsigned id) override;
WRITERPERFECT_DLLPUBLIC virtual const unsigned char* read(unsigned long numBytes,
unsigned long& numBytesRead) override;
WRITERPERFECT_DLLPUBLIC virtual int seek(long offset,
librevenge::RVNG_SEEK_TYPE seekType) override;
virtual long tell() override;
virtual bool isEnd() override;
private:
std::unique_ptr<WPXSvInputStreamImpl> mpImpl;
};
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */