diff options
author | Noel <noel.grandin@collabora.co.uk> | 2020-12-21 16:28:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-12-22 07:41:48 +0100 |
commit | db9f13986fc7ef3d4b44d71459c58e9ea0ae8bcb (patch) | |
tree | 5cea6356782106abd471e77aefcf43e20e68069a /include/sot | |
parent | 0eeb310d9ed8654ac4c96c444ebad49a567ad618 (diff) |
split SotStorageStream into two classes
since it has two completely different paths of control
Change-Id: I89b739d318d52245208a4bda1230f69d19f3ae0e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108104
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/sot')
-rw-r--r-- | include/sot/storage.hxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/include/sot/storage.hxx b/include/sot/storage.hxx index 4fc2efab42b5..3a07333565ea 100644 --- a/include/sot/storage.hxx +++ b/include/sot/storage.hxx @@ -35,6 +35,17 @@ enum class SotClipboardFormatId : sal_uInt32; class BaseStorageStream; +class SOT_DLLPUBLIC SotTempStream final : virtual public SotObject, public SvStream +{ +friend class SotStorage; + + virtual ~SotTempStream() override; +public: + SotTempStream(OUString const & rString, StreamMode = StreamMode::STD_READWRITE); + + void CopyTo(SotTempStream * pDestStm); +}; + class SOT_DLLPUBLIC SotStorageStream final : virtual public SotObject, public SvStream { friend class SotStorage; @@ -47,15 +58,12 @@ friend class SotStorage; virtual ~SotStorageStream() override; public: - SotStorageStream(OUString const & rString, - StreamMode = StreamMode::STD_READWRITE); SotStorageStream(BaseStorageStream *pBaseStream); virtual void ResetError() override; virtual void SetSize(sal_uInt64 nNewSize) override; sal_uInt32 GetSize() const; - void CopyTo(SotStorageStream * pDestStm); bool Commit(); bool SetProperty(OUString const & rName, css::uno::Any const & rValue); virtual sal_uInt64 TellEnd() override; |