summaryrefslogtreecommitdiff
path: root/sw/inc/textboxhelper.hxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-11-28 12:34:40 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-11-28 14:15:39 +0100
commit9101ccfa400e38f420fbda0a1c064550534eb26d (patch)
tree3684eee8d8aab53c13f8f98bd9c458cbad4a6233 /sw/inc/textboxhelper.hxx
parentaba64281bbc445d04b49e6e21a0d1966bc4559ec (diff)
SwAnchoredObjectPosition::_GetHoriAlignmentValues: fix position of textboxes
The problem was that the right edge of the textbox was outside the parent draw shape, which is unexpected for rectangle shapes. Change-Id: I5154a61b07d3d8d894491e76923b3b017aa3ce8e
Diffstat (limited to 'sw/inc/textboxhelper.hxx')
-rw-r--r--sw/inc/textboxhelper.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/inc/textboxhelper.hxx b/sw/inc/textboxhelper.hxx
index 55c0ac8e3a0e..89802c3d41f2 100644
--- a/sw/inc/textboxhelper.hxx
+++ b/sw/inc/textboxhelper.hxx
@@ -77,6 +77,8 @@ public:
* returned.
*/
static std::set<const SwFrmFmt*> findTextBoxes(const SwNode& rNode);
+ /// Is pObject a textbox of a drawinglayer shape?
+ static bool isTextBox(const SdrObject* pObject);
/// Build a textbox -> shape format map.
static std::map<SwFrmFmt*, SwFrmFmt*> findShapes(const SwDoc* pDoc);
/// Count number of shapes in the document, excluding TextBoxes.