diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-05-10 15:41:17 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-05-10 17:00:27 +0100 |
commit | aef4d0ea8ba7f5e169dc04812490a103cd858f0c (patch) | |
tree | b200b35862f20c996040d69fb8f30dfdea670c34 /sot/inc | |
parent | dfcc1669f68783e8f648cef57d3e36277ae27cec (diff) |
Resolves: fdo#47644 compound storage backend is poor at knowing stream size
Signed-off-by: Michael Meeks <michael.meeks@suse.com>
Diffstat (limited to 'sot/inc')
-rw-r--r-- | sot/inc/sot/stg.hxx | 3 | ||||
-rw-r--r-- | sot/inc/sot/storage.hxx | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sot/inc/sot/stg.hxx b/sot/inc/sot/stg.hxx index c8d18da67a8a..307101703b85 100644 --- a/sot/inc/sot/stg.hxx +++ b/sot/inc/sot/stg.hxx @@ -90,6 +90,7 @@ public: virtual sal_uLong Tell() = 0; virtual void Flush() = 0; virtual sal_Bool SetSize( sal_uLong nNewSize ) = 0; + virtual sal_uLong GetSize() const = 0; virtual sal_Bool CopyTo( BaseStorageStream * pDestStm ) = 0; virtual sal_Bool Commit() = 0; virtual sal_Bool Revert() = 0; @@ -171,6 +172,7 @@ public: virtual sal_uLong Tell() { return nPos; } virtual void Flush(); virtual sal_Bool SetSize( sal_uLong nNewSize ); + virtual sal_uLong GetSize() const; virtual sal_Bool CopyTo( BaseStorageStream * pDestStm ); virtual sal_Bool Commit(); virtual sal_Bool Revert(); @@ -266,6 +268,7 @@ public: virtual sal_uLong Tell(); virtual void Flush(); virtual sal_Bool SetSize( sal_uLong nNewSize ); + virtual sal_uLong GetSize() const; virtual sal_Bool CopyTo( BaseStorageStream * pDestStm ); virtual sal_Bool Commit(); virtual sal_Bool Revert(); diff --git a/sot/inc/sot/storage.hxx b/sot/inc/sot/storage.hxx index 26258bc4b51e..4f602e9917f9 100644 --- a/sot/inc/sot/storage.hxx +++ b/sot/inc/sot/storage.hxx @@ -96,6 +96,7 @@ public: sal_Bool GetProperty( const String& rName, ::com::sun::star::uno::Any& rValue ); ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > GetXInputStream() const; + virtual sal_Size remainingSize(); }; #ifndef SOT_DECL_SOTSTORAGESTREAM_DEFINED |