diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-05-29 12:15:28 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-05-29 14:43:44 +0200 |
commit | 3e266853608eb26fb15ac508ba78d74afb72f51c (patch) | |
tree | 4d00dc66fac8b984ea53cf105e3ddacee6c564c3 /sw/inc/textboxhelper.hxx | |
parent | ad8aeb6e02444aa007ef38a59bbd84d67d60ffad (diff) |
SwTextBoxHelper::create(): initialize position
The situation is a bit more complicated here,
drawing::XCustomShapeEngine returns the text rectangle in absolute
coordinates, but that's on the drawpage. So count the relative
coordinates, and then just adjust the position we got from the original
shape.
Change-Id: Ibfbc183e5170037c8c281d61ce802a19a7acda17
Diffstat (limited to 'sw/inc/textboxhelper.hxx')
-rw-r--r-- | sw/inc/textboxhelper.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/textboxhelper.hxx b/sw/inc/textboxhelper.hxx index 747e729762ef..cb0a643b8b84 100644 --- a/sw/inc/textboxhelper.hxx +++ b/sw/inc/textboxhelper.hxx @@ -40,8 +40,8 @@ public: static void syncProperty(SwFrmFmt* pShape, sal_uInt16 nWID, sal_uInt8 nMemberID, 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 (absolute values, in twips). - static Rectangle getTextRectangle(SwFrmFmt* pShape); + /// Return the textbox rectangle of a draw shape (in twips). + static Rectangle getTextRectangle(SwFrmFmt* pShape, bool bAbsolute = true); /// Look up TextFrames in a document, which are in fact TextBoxes. static std::list<SwFrmFmt*> findTextBoxes(const SwDoc* pDoc); |