summaryrefslogtreecommitdiff
path: root/sw/inc/textboxhelper.hxx
diff options
context:
space:
mode:
authorAttila Bakos (NISZ) <bakos.attilakaroly@nisz.hu>2020-10-28 15:11:08 +0100
committerLászló Németh <nemeth@numbertext.org>2020-11-20 22:15:54 +0100
commitae8bc80952fafc791ce8bbddd99c99626a93989c (patch)
treeb8efbf55e0c71456e65a626c91e2d0c8a1e89404 /sw/inc/textboxhelper.hxx
parente414ea3514e4014893e553911e7f53a9885ef1d9 (diff)
tdf#137185 sw: move shape text on adding textbox
The original text of the shape is moved to the new (text frame of the) text box instead of overlapping the text content added later. Change-Id: I2ad8865cdbe3c424c70985737ecda3ac9315cabc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104942 Tested-by: László Németh <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/inc/textboxhelper.hxx')
-rw-r--r--sw/inc/textboxhelper.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/inc/textboxhelper.hxx b/sw/inc/textboxhelper.hxx
index 1c4a723cc07b..fd408c10c3b2 100644
--- a/sw/inc/textboxhelper.hxx
+++ b/sw/inc/textboxhelper.hxx
@@ -49,8 +49,9 @@ public:
using SavedLink = std::map<const SwFrameFormat*, const SwFrameFormat*>;
/// Maps a draw format to content.
using SavedContent = std::map<const SwFrameFormat*, SwFormatContent>;
- /// Create a TextBox for a shape.
- static void create(SwFrameFormat* pShape);
+ /// Create a TextBox for a shape. If the second parameter is true,
+ /// the original text in the shape will be copied to the frame
+ static void create(SwFrameFormat* pShape, bool bCopyText = false);
/// Destroy a TextBox for a shape.
static void destroy(SwFrameFormat* pShape);
/// Get interface of a shape's TextBox, if there is any.