summaryrefslogtreecommitdiff
path: root/sw/inc/textboxhelper.hxx
diff options
context:
space:
mode:
authorAttila Bakos (NISZ) <bakos.attilakaroly@nisz.hu>2021-05-07 10:18:01 +0200
committerLászló Németh <nemeth@numbertext.org>2021-05-25 13:06:22 +0200
commit0e6d963fbca16f98a3dbb6ef2fee3736a89d055b (patch)
treee1a413ce8f1307cbbcd8cf96af1d130dcce3a469 /sw/inc/textboxhelper.hxx
parentb2f7187e04a6b6c6183b42230a0119569f069dcf (diff)
tdf#138141 sw: fix textbox z-order
Textboxes are implemented as loosely connected shape-text frame pairs. Missing synchronization of their z-orders resulted e.g invisible or only partially visible textbox content using Arrange options with textboxes (see in local menu or on Drawing Object Properties toolbar). Note: because it's not possible to send frames to the background, Arrange->To Background hasn't supported, so likely it's worth to remove that option later from local menu of textboxes. Change-Id: I1aa50903ba55dd5b9e72ef203c4e30218bee68fb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115227 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.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/inc/textboxhelper.hxx b/sw/inc/textboxhelper.hxx
index 0db804424332..1c9fdc66e703 100644
--- a/sw/inc/textboxhelper.hxx
+++ b/sw/inc/textboxhelper.hxx
@@ -107,6 +107,10 @@ public:
/// Returns true if the given shape has a valid textframe.
static bool isTextBoxShapeHasValidTextFrame(SwFrameFormat* pShape);
+ // Returns true on success. Synchronize z-order of the text frame of the given textbox
+ // by setting it one level higher than the z-order of the shape of the textbox.
+ static bool DoTextBoxZOrderCorrection(SwFrameFormat* pShape);
+
/**
* If we have an associated TextFrame, then return that.
*