diff options
author | Eike Rathke <erack@redhat.com> | 2017-01-18 22:49:08 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-01-18 22:49:42 +0100 |
commit | b8b657123cc508c906622d20669507628c93e104 (patch) | |
tree | 88326f89d12cd26944c97c010da765cfe98a675a /sc/inc/postit.hxx | |
parent | 6884550c20f95a635357ad848799a1aae555968a (diff) |
tdf#104967 preserve isolated notes data in clipboard when closing document
Change-Id: I0e263583e27c5103c0bb90e8fe00562e46a52d98
Diffstat (limited to 'sc/inc/postit.hxx')
-rw-r--r-- | sc/inc/postit.hxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sc/inc/postit.hxx b/sc/inc/postit.hxx index 8835deaee972..87553f3f5c3e 100644 --- a/sc/inc/postit.hxx +++ b/sc/inc/postit.hxx @@ -129,8 +129,14 @@ public: /** Returns the caption object of this note. Creates the caption object, if the note contains initial caption data instead of the caption. */ SdrCaptionObj* GetOrCreateCaption( const ScAddress& rPos ) const; - /** Forgets the pointer to the note caption object. */ - void ForgetCaption(); + + /** Forgets the pointer to the note caption object. + + @param bPreserveData + If true then the note text is remembered in maNoteData to be able + to later reconstruct a caption from it. + */ + void ForgetCaption( bool bPreserveData = false ); /** Shows or hides the note caption object. */ void ShowCaption( const ScAddress& rPos, bool bShow ); |