diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-06-27 13:43:13 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-06-27 15:56:05 +0200 |
commit | 4f33a0961d69feba72806d105da65a4dc841ca5e (patch) | |
tree | 97c2818f1dc30874afeb53ad91acdcc05325a6b1 /include/svx/svdoashp.hxx | |
parent | f2ad42f97b1f9534da9be96b5a07255434890187 (diff) |
SdrObjCustomShape::AdjustTextFrameWidthAndHeight: allow external text
So that in Writer, in case we're using Writer TextFrames to handle the
content of a shape, it's still possible to inform the custom shape about
the automatic size of the text, just like when native editeng text is
used.
Change-Id: I2534b942a9b2d62d7aa009ffbfa8d76feb011f92
Diffstat (limited to 'include/svx/svdoashp.hxx')
-rw-r--r-- | include/svx/svdoashp.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/svx/svdoashp.hxx b/include/svx/svdoashp.hxx index 1b7adf1cf489..e5b3e8f8b29d 100644 --- a/include/svx/svdoashp.hxx +++ b/include/svx/svdoashp.hxx @@ -136,6 +136,7 @@ protected: virtual void AdaptTextMinSize() SAL_OVERRIDE; OUString aName; + Size m_aSuggestedTextFrameSize; public: @@ -212,6 +213,12 @@ public: virtual bool MovCreate(SdrDragStat& rStat) SAL_OVERRIDE; // #i37448# virtual bool EndCreate(SdrDragStat& rStat, SdrCreateCmd eCmd) SAL_OVERRIDE; + /** + * Allows suggesting the text frame size: in case the application has its + * own text associated to the shape, instead of using the shape's editeng + * text. + */ + void SuggestTextFrameSize(Size aSuggestedTextFrameSize); virtual bool AdjustTextFrameWidthAndHeight(Rectangle& rR, bool bHgt = true, bool bWdt = true) const SAL_OVERRIDE; virtual bool NbcAdjustTextFrameWidthAndHeight(bool bHgt = true, bool bWdt = true) SAL_OVERRIDE; virtual bool AdjustTextFrameWidthAndHeight(bool bHgt = true, bool bWdt = true) SAL_OVERRIDE; |