Kaydet (Commit) a90d4d5f authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Do not export whole class to avoid MS C++ implicitly exporting base template.

üst 5807b071
......@@ -65,17 +65,20 @@ public:
// FmUnoOutStream,
// Datensenke fuer Files
//==================================================================
class COMPHELPER_DLLPUBLIC OSLOutputStreamWrapper : public ::cppu::WeakImplHelper1<stario::XOutputStream>
class OSLOutputStreamWrapper : public ::cppu::WeakImplHelper1<stario::XOutputStream>
{
::osl::File& rFile;
public:
OSLOutputStreamWrapper(::osl::File& _rFile) :rFile(_rFile) { }
COMPHELPER_DLLPUBLIC OSLOutputStreamWrapper(::osl::File& _rFile);
private:
virtual ~OSLOutputStreamWrapper();
// 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);
::osl::File& rFile;
};
} // namespace comphelper
......
......@@ -145,6 +145,13 @@ void SAL_CALL OSLInputStreamWrapper::closeInput() throw( stario::NotConnectedExc
/*************************************************************************/
// stario::XOutputStream
//------------------------------------------------------------------------------
OSLOutputStreamWrapper::OSLOutputStreamWrapper(osl::File & _rFile):
rFile(_rFile)
{}
OSLOutputStreamWrapper::~OSLOutputStreamWrapper() {}
void SAL_CALL OSLOutputStreamWrapper::writeBytes(const staruno::Sequence< sal_Int8 >& aData) throw( stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException )
{
sal_uInt64 nWritten;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment