From d726281e9020ebaddfdf6659ecfe7a0454014dff Mon Sep 17 00:00:00 2001 From: Caolán McNamara <caolanm@redhat.com> Date: Thu, 3 May 2012 00:05:37 +0100 Subject: Related: fdo#47644 compound storage backend is poor at knowing stream size Change-Id: Ie4aa6939f9f37e04fda5425a6e28c5d846a9cb62 --- tools/inc/tools/stream.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/inc') diff --git a/tools/inc/tools/stream.hxx b/tools/inc/tools/stream.hxx index dc4505a06a35..d60f9e6ed904 100644 --- a/tools/inc/tools/stream.hxx +++ b/tools/inc/tools/stream.hxx @@ -374,7 +374,7 @@ public: sal_Size SeekRel( sal_sSize nPos ); sal_Size Tell() const { return nBufFilePos+nBufActualPos; } //length between current (Tell()) pos and end of stream - sal_Size remainingSize(); + virtual sal_Size remainingSize(); void Flush(); sal_Bool IsEof() const { return bIsEof; } // next Tell() <= nSize @@ -789,6 +789,7 @@ public: sal_Bool IsObjectMemoryOwner() { return bOwnsData; } void SetResizeOffset( sal_Size nNewResize ) { nResize = nNewResize; } sal_Size GetResizeOffset() const { return nResize; } + virtual sal_Size remainingSize() { return GetSize() - Tell(); } }; // -------------------- -- cgit