summaryrefslogtreecommitdiff
path: root/include/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-07-29 13:48:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-07-29 18:42:51 +0200
commit78ff4793f9ad45d84f923686095acb670e7a3ea0 (patch)
tree37f16c151a5cc252ae9ce517171d1fd22a6e134a /include/svx
parent129e69f005d4752bb5ec10a8c12d842037394822 (diff)
tdf#161846 remove one layout operation (i)
of the 6 we perform per caption object Change-Id: I8af5a0a4c859241fa350fcd3c45cfdfe1cfb6475 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171170 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx')
-rw-r--r--include/svx/svdotext.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/svx/svdotext.hxx b/include/svx/svdotext.hxx
index 9ff8a3e67f8b..201f17a70cdf 100644
--- a/include/svx/svdotext.hxx
+++ b/include/svx/svdotext.hxx
@@ -519,7 +519,9 @@ public:
virtual EEAnchorMode GetOutlinerViewAnchorMode() const;
virtual void NbcSetOutlinerParaObject(std::optional<OutlinerParaObject> pTextObject) override;
- void NbcSetOutlinerParaObjectForText( std::optional<OutlinerParaObject> pTextObject, SdrText* pText );
+ // @param bAdjustTextFrameWidthAndHeight pass false if you know it it safe to avoid the cost of doing
+ // text layout right now.
+ void NbcSetOutlinerParaObjectForText( std::optional<OutlinerParaObject> pTextObject, SdrText* pText, bool bAdjustTextFrameWidthAndHeight = true );
virtual OutlinerParaObject* GetOutlinerParaObject() const override;
bool CanCreateEditOutlinerParaObject() const;
std::optional<OutlinerParaObject> CreateEditOutlinerParaObject() const;