Kaydet (Commit) 5f230bce authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

sw: SetupFilterOptions for any Writer derived filter (html, ascii)

Change-Id: I6f0147ea640a7ad767e2c0112b5e18dcb530fa7c
üst 66800ce1
...@@ -421,6 +421,8 @@ public: ...@@ -421,6 +421,8 @@ public:
virtual sal_uLong Write( SwPaM&, const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >&, const OUString* = 0, SfxMedium* = 0 ); virtual sal_uLong Write( SwPaM&, const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >&, const OUString* = 0, SfxMedium* = 0 );
virtual sal_uLong Write( SwPaM&, SotStorage&, const OUString* = 0 ); virtual sal_uLong Write( SwPaM&, SotStorage&, const OUString* = 0 );
virtual void SetupFilterOptions(SfxMedium& rMedium);
virtual void SetVersion( const OUString&, long ); virtual void SetVersion( const OUString&, long );
virtual sal_Bool IsStgWriter() const; virtual sal_Bool IsStgWriter() const;
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#include <numrule.hxx> #include <numrule.hxx>
#include <swerror.h> #include <swerror.h>
using namespace ::com::sun::star; using namespace css;
namespace namespace
{ {
...@@ -267,11 +267,15 @@ sal_uLong Writer::Write( SwPaM& rPaM, SvStream& rStrm, const OUString* pFName ) ...@@ -267,11 +267,15 @@ sal_uLong Writer::Write( SwPaM& rPaM, SvStream& rStrm, const OUString* pFName )
return nRet; return nRet;
} }
sal_uLong Writer::Write( SwPaM& rPam, SfxMedium& rMed, const OUString* pFileName ) void Writer::SetupFilterOptions(SfxMedium& /*rMedium*/)
{}
sal_uLong Writer::Write( SwPaM& rPam, SfxMedium& rMedium, const OUString* pFileName )
{ {
SetupFilterOptions(rMedium);
// This method must be overloaded in SwXMLWriter a storage from medium will be used there. // This method must be overloaded in SwXMLWriter a storage from medium will be used there.
// The microsoft format can write to storage but the storage will be based on the stream. // The microsoft format can write to storage but the storage will be based on the stream.
return Write( rPam, *rMed.GetOutStream(), pFileName ); return Write( rPam, *rMedium.GetOutStream(), pFileName );
} }
sal_uLong Writer::Write( SwPaM& /*rPam*/, SvStorage&, const OUString* ) sal_uLong Writer::Write( SwPaM& /*rPam*/, SvStorage&, const OUString* )
......
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