summaryrefslogtreecommitdiffstats
path: root/unotools/inc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-01-04 12:06:39 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-01-04 12:06:39 +0100
commit752f69bad43c86cc18f45b418de25a0f770baa3e (patch)
tree1451b69d2953f7b624b636c5b135f6ee1733eec5 /unotools/inc
parentDead code. (diff)
downloadcore-752f69bad43c86cc18f45b418de25a0f770baa3e.tar.gz
core-752f69bad43c86cc18f45b418de25a0f770baa3e.zip
Do not export whole class to avoid MS C++ implicitly exporting base template.
Diffstat (limited to 'unotools/inc')
-rw-r--r--unotools/inc/unotools/streamwrap.hxx22
1 files changed, 13 insertions, 9 deletions
diff --git a/unotools/inc/unotools/streamwrap.hxx b/unotools/inc/unotools/streamwrap.hxx
index f05be3584229..125f68f164aa 100644
--- a/unotools/inc/unotools/streamwrap.hxx
+++ b/unotools/inc/unotools/streamwrap.hxx
@@ -110,23 +110,24 @@ public:
//==================================================================
typedef ::cppu::WeakImplHelper1<stario::XOutputStream> OutputStreamWrapper_Base;
// needed for some compilers
-class UNOTOOLS_DLLPUBLIC OOutputStreamWrapper : public OutputStreamWrapper_Base
+class OOutputStreamWrapper : public OutputStreamWrapper_Base
{
-protected:
- // TODO: thread safety!
- SvStream& rStream;
-
public:
- OOutputStreamWrapper(SvStream& _rStream) :rStream(_rStream) { }
+ UNOTOOLS_DLLPUBLIC OOutputStreamWrapper(SvStream& _rStream);
+
+protected:
+ virtual ~OOutputStreamWrapper();
// stario::XOutputStream
virtual void SAL_CALL writeBytes(const staruno::Sequence< sal_Int8 >& aData) throw(stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException);
virtual void SAL_CALL flush() throw(stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException);
virtual void SAL_CALL closeOutput() throw(stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException);
-protected:
/// throws an exception according to the error flag of m_pSvStream
void checkError() const;
+
+ // TODO: thread safety!
+ SvStream& rStream;
};
//==================================================================
@@ -137,12 +138,15 @@ typedef ::cppu::ImplHelper1 < ::com::sun::star::io::XSeekable
/** helper class for wrapping an SvStream into an <type scope="com.sun.star.io">XOutputStream</type>
which is seekable (i.e. supports the <type scope="com.sun.star.io">XSeekable</type> interface).
*/
-class UNOTOOLS_DLLPUBLIC OSeekableOutputStreamWrapper
+class OSeekableOutputStreamWrapper
:public OOutputStreamWrapper
,public OSeekableOutputStreamWrapper_Base
{
public:
- OSeekableOutputStreamWrapper(SvStream& _rStream);
+ UNOTOOLS_DLLPUBLIC OSeekableOutputStreamWrapper(SvStream& _rStream);
+
+private:
+ virtual ~OSeekableOutputStreamWrapper();
// disambiguate XInterface
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& _rType ) throw (::com::sun::star::uno::RuntimeException);