summaryrefslogtreecommitdiff
path: root/sw/inc/textboxhelper.hxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-05-30 17:42:22 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-05-30 18:04:23 +0200
commit24d8bcc763b550d8da0e0a6b9f5c3b4113662b5c (patch)
tree47e04b01255f0d5d1ac4dfce1755a54940853f26 /sw/inc/textboxhelper.hxx
parent6a53ea218c669b99aa9a51ce77898845f262b6e0 (diff)
SwTextBoxHelper: handle size when it's set before CustomShapeGeometry
E.g. the ODF import won't set an explicit size, it'll just set a Transformation property, and a CustomShapeGeometry one, which contains the textbox rectangle. Change-Id: I9ac7ab5a324dc9c7c5ce3196fee8d257b7426f41
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 5deb5f679081..75d2fac0eed4 100644
--- a/sw/inc/textboxhelper.hxx
+++ b/sw/inc/textboxhelper.hxx
@@ -36,8 +36,12 @@ public:
static void destroy(SwFrmFmt* pShape);
/// Get interface of a shape's TextBox, if there is any.
static css::uno::Any queryInterface(SwFrmFmt* pShape, const css::uno::Type& rType);
+
/// Sync property of TextBox with the one of the shape.
static void syncProperty(SwFrmFmt* pShape, sal_uInt16 nWID, sal_uInt8 nMemberID, const css::uno::Any& rValue);
+ /// Does the same, but works on properties which lack an sw-specific WID / MemberID.
+ static void syncProperty(SwFrmFmt* pShape, const OUString& rPropertyName, const css::uno::Any& rValue);
+
/// If we have an associated TextFrame, then return that.
static SwFrmFmt* findTextBox(SwFrmFmt* pShape);
/// Return the textbox rectangle of a draw shape (in twips).