diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-07-29 14:36:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-07-30 07:14:05 +0200 |
commit | 426adcbadc66fd79859e50ddc0064e899fc019e3 (patch) | |
tree | dd5973b553de7a80efb5d63011c9ed91346e4baf /svx/source | |
parent | d671bceed0ba7195eae1e063d4a363074f8483a0 (diff) |
tdf#161846 remove one layout operations (iv)
Change-Id: I0c09c7b4636a7ac4c3dc87a8a17efd278109c3c6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171213
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/sdr/properties/attributeproperties.cxx | 2 | ||||
-rw-r--r-- | svx/source/sdr/properties/captionproperties.cxx | 4 | ||||
-rw-r--r-- | svx/source/sdr/properties/circleproperties.cxx | 4 | ||||
-rw-r--r-- | svx/source/sdr/properties/connectorproperties.cxx | 4 | ||||
-rw-r--r-- | svx/source/sdr/properties/customshapeproperties.cxx | 4 | ||||
-rw-r--r-- | svx/source/sdr/properties/defaultproperties.cxx | 2 | ||||
-rw-r--r-- | svx/source/sdr/properties/e3dsceneproperties.cxx | 4 | ||||
-rw-r--r-- | svx/source/sdr/properties/emptyproperties.cxx | 2 | ||||
-rw-r--r-- | svx/source/sdr/properties/graphicproperties.cxx | 4 | ||||
-rw-r--r-- | svx/source/sdr/properties/groupproperties.cxx | 4 | ||||
-rw-r--r-- | svx/source/sdr/properties/measureproperties.cxx | 4 | ||||
-rw-r--r-- | svx/source/sdr/properties/pageproperties.cxx | 2 | ||||
-rw-r--r-- | svx/source/sdr/properties/rectangleproperties.cxx | 4 | ||||
-rw-r--r-- | svx/source/sdr/properties/textproperties.cxx | 8 | ||||
-rw-r--r-- | svx/source/svdraw/svdoashp.cxx | 4 | ||||
-rw-r--r-- | svx/source/svdraw/svdobj.cxx | 8 |
16 files changed, 32 insertions, 32 deletions
diff --git a/svx/source/sdr/properties/attributeproperties.cxx b/svx/source/sdr/properties/attributeproperties.cxx index 177dd09aee1e..f1c57313a5ab 100644 --- a/svx/source/sdr/properties/attributeproperties.cxx +++ b/svx/source/sdr/properties/attributeproperties.cxx @@ -351,7 +351,7 @@ namespace sdr::properties } void AttributeProperties::SetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr, - bool /*bBroadcast*/) + bool /*bBroadcast*/, bool /*bAdjustTextFrameWidthAndHeight*/) { // guarantee SfxItemSet existence GetObjectItemSet(); diff --git a/svx/source/sdr/properties/captionproperties.cxx b/svx/source/sdr/properties/captionproperties.cxx index 3de1da6d65b9..17302effb5a1 100644 --- a/svx/source/sdr/properties/captionproperties.cxx +++ b/svx/source/sdr/properties/captionproperties.cxx @@ -74,10 +74,10 @@ namespace sdr::properties } void CaptionProperties::SetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr, - bool bBroadcast) + bool bBroadcast, bool bAdjustTextFrameWidthAndHeight) { // call parent (always first thing to do, may create the SfxItemSet) - RectangleProperties::SetStyleSheet(pNewStyleSheet, bDontRemoveHardAttr, bBroadcast); + RectangleProperties::SetStyleSheet(pNewStyleSheet, bDontRemoveHardAttr, bBroadcast, bAdjustTextFrameWidthAndHeight); // local changes SdrCaptionObj& rObj = static_cast<SdrCaptionObj&>(GetSdrObject()); diff --git a/svx/source/sdr/properties/circleproperties.cxx b/svx/source/sdr/properties/circleproperties.cxx index 643c297eb043..48b38620d29e 100644 --- a/svx/source/sdr/properties/circleproperties.cxx +++ b/svx/source/sdr/properties/circleproperties.cxx @@ -78,10 +78,10 @@ namespace sdr::properties } void CircleProperties::SetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr, - bool bBroadcast) + bool bBroadcast, bool bAdjustTextFrameWidthAndHeight) { // call parent (always first thing to do, may create the SfxItemSet) - RectangleProperties::SetStyleSheet(pNewStyleSheet, bDontRemoveHardAttr, bBroadcast); + RectangleProperties::SetStyleSheet(pNewStyleSheet, bDontRemoveHardAttr, bBroadcast, bAdjustTextFrameWidthAndHeight); // local changes SdrCircObj& rObj = static_cast<SdrCircObj&>(GetSdrObject()); diff --git a/svx/source/sdr/properties/connectorproperties.cxx b/svx/source/sdr/properties/connectorproperties.cxx index 4d3542d67894..667082fb4586 100644 --- a/svx/source/sdr/properties/connectorproperties.cxx +++ b/svx/source/sdr/properties/connectorproperties.cxx @@ -76,10 +76,10 @@ namespace sdr::properties } void ConnectorProperties::SetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr, - bool bBroadcast) + bool bBroadcast, bool bAdjustTextFrameWidthAndHeight) { // call parent (always first thing to do, may create the SfxItemSet) - TextProperties::SetStyleSheet(pNewStyleSheet, bDontRemoveHardAttr, bBroadcast); + TextProperties::SetStyleSheet(pNewStyleSheet, bDontRemoveHardAttr, bBroadcast, bAdjustTextFrameWidthAndHeight); // local changes SdrEdgeObj& rObj = static_cast<SdrEdgeObj&>(GetSdrObject()); diff --git a/svx/source/sdr/properties/customshapeproperties.cxx b/svx/source/sdr/properties/customshapeproperties.cxx index ddf530e8d9ad..7fb9bb21e33b 100644 --- a/svx/source/sdr/properties/customshapeproperties.cxx +++ b/svx/source/sdr/properties/customshapeproperties.cxx @@ -163,10 +163,10 @@ namespace sdr::properties } void CustomShapeProperties::SetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr, - bool bBroadcast) + bool bBroadcast, bool bAdjustTextFrameWidthAndHeight) { // call parent (always first thing to do, may create the SfxItemSet) - TextProperties::SetStyleSheet( pNewStyleSheet, bDontRemoveHardAttr, bBroadcast ); + TextProperties::SetStyleSheet( pNewStyleSheet, bDontRemoveHardAttr, bBroadcast, bAdjustTextFrameWidthAndHeight ); // update bTextFrame and RenderGeometry UpdateTextFrameStatus(true); diff --git a/svx/source/sdr/properties/defaultproperties.cxx b/svx/source/sdr/properties/defaultproperties.cxx index f2051aa32f47..40631fe7b70c 100644 --- a/svx/source/sdr/properties/defaultproperties.cxx +++ b/svx/source/sdr/properties/defaultproperties.cxx @@ -219,7 +219,7 @@ namespace sdr::properties } void DefaultProperties::SetStyleSheet(SfxStyleSheet* /*pNewStyleSheet*/, bool /*bDontRemoveHardAttr*/, - bool /*bBroadcast*/) + bool /*bBroadcast*/, bool /*bAdjustTextFrameWidthAndHeight*/) { // no StyleSheet in DefaultProperties } diff --git a/svx/source/sdr/properties/e3dsceneproperties.cxx b/svx/source/sdr/properties/e3dsceneproperties.cxx index 62f535df3026..02ef68bb36a3 100644 --- a/svx/source/sdr/properties/e3dsceneproperties.cxx +++ b/svx/source/sdr/properties/e3dsceneproperties.cxx @@ -220,7 +220,7 @@ namespace sdr::properties } void E3dSceneProperties::SetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr, - bool bBroadcast) + bool bBroadcast, bool bAdjustTextFrameWidthAndHeight) { const SdrObjList* pSub(static_cast<const E3dScene&>(GetSdrObject()).GetSubList()); OSL_ENSURE(nullptr != pSub, "Children of SdrObject expected (!)"); @@ -231,7 +231,7 @@ namespace sdr::properties if(bBroadcast) pObj->SetStyleSheet(pNewStyleSheet, bDontRemoveHardAttr); else - pObj->NbcSetStyleSheet(pNewStyleSheet, bDontRemoveHardAttr); + pObj->NbcSetStyleSheet(pNewStyleSheet, bDontRemoveHardAttr, bAdjustTextFrameWidthAndHeight); } } diff --git a/svx/source/sdr/properties/emptyproperties.cxx b/svx/source/sdr/properties/emptyproperties.cxx index 1cad150b22a7..79b1d240937a 100644 --- a/svx/source/sdr/properties/emptyproperties.cxx +++ b/svx/source/sdr/properties/emptyproperties.cxx @@ -74,7 +74,7 @@ namespace sdr::properties } void EmptyProperties::SetStyleSheet(SfxStyleSheet* /*pNewStyleSheet*/, bool /*bDontRemoveHardAttr*/, - bool /*bBroadcast*/) + bool /*bBroadcast*/, bool /*bAdjustTextFrameWidthAndHeight*/) { assert(!"EmptyProperties::SetStyleSheet() should never be called"); } diff --git a/svx/source/sdr/properties/graphicproperties.cxx b/svx/source/sdr/properties/graphicproperties.cxx index a43ee5bd9fbb..7f2988650d23 100644 --- a/svx/source/sdr/properties/graphicproperties.cxx +++ b/svx/source/sdr/properties/graphicproperties.cxx @@ -114,10 +114,10 @@ namespace sdr::properties } void GraphicProperties::SetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr, - bool bBroadcast) + bool bBroadcast, bool bAdjustTextFrameWidthAndHeight) { // call parent (always first thing to do, may create the SfxItemSet) - RectangleProperties::SetStyleSheet(pNewStyleSheet, bDontRemoveHardAttr, bBroadcast); + RectangleProperties::SetStyleSheet(pNewStyleSheet, bDontRemoveHardAttr, bBroadcast, bAdjustTextFrameWidthAndHeight); // local changes SdrGrafObj& rObj = static_cast<SdrGrafObj&>(GetSdrObject()); diff --git a/svx/source/sdr/properties/groupproperties.cxx b/svx/source/sdr/properties/groupproperties.cxx index d81414fce3ab..db66d2061d0f 100644 --- a/svx/source/sdr/properties/groupproperties.cxx +++ b/svx/source/sdr/properties/groupproperties.cxx @@ -192,7 +192,7 @@ namespace sdr::properties } void GroupProperties::SetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr, - bool bBroadcast) + bool bBroadcast, bool bAdjustTextFrameWidthAndHeight) { const SdrObjList* pSub(static_cast<const SdrObjGroup&>(GetSdrObject()).GetSubList()); OSL_ENSURE(nullptr != pSub, "Children of SdrObject expected (!)"); @@ -204,7 +204,7 @@ namespace sdr::properties if(bBroadcast) pObj->SetStyleSheet(pNewStyleSheet, bDontRemoveHardAttr); else - pObj->NbcSetStyleSheet(pNewStyleSheet, bDontRemoveHardAttr); + pObj->NbcSetStyleSheet(pNewStyleSheet, bDontRemoveHardAttr, bAdjustTextFrameWidthAndHeight); } } diff --git a/svx/source/sdr/properties/measureproperties.cxx b/svx/source/sdr/properties/measureproperties.cxx index a6f4b7fd7c81..0fc8d7c1d278 100644 --- a/svx/source/sdr/properties/measureproperties.cxx +++ b/svx/source/sdr/properties/measureproperties.cxx @@ -84,10 +84,10 @@ namespace sdr::properties } void MeasureProperties::SetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr, - bool bBroadcast) + bool bBroadcast, bool bAdjustTextFrameWidthAndHeight) { // call parent (always first thing to do, may create the SfxItemSet) - TextProperties::SetStyleSheet(pNewStyleSheet, bDontRemoveHardAttr, bBroadcast); + TextProperties::SetStyleSheet(pNewStyleSheet, bDontRemoveHardAttr, bBroadcast, bAdjustTextFrameWidthAndHeight); // local changes // get access to dimension line object diff --git a/svx/source/sdr/properties/pageproperties.cxx b/svx/source/sdr/properties/pageproperties.cxx index 79129497efdd..030d0afc4768 100644 --- a/svx/source/sdr/properties/pageproperties.cxx +++ b/svx/source/sdr/properties/pageproperties.cxx @@ -72,7 +72,7 @@ namespace sdr::properties } void PageProperties::SetStyleSheet(SfxStyleSheet* /*pStyleSheet*/, bool /*bDontRemoveHardAttr*/, - bool /*bBroadcast*/) + bool /*bBroadcast*/, bool /*bAdjustTextFrameWidthAndHeight*/) { // override to legally ignore the StyleSheet here } diff --git a/svx/source/sdr/properties/rectangleproperties.cxx b/svx/source/sdr/properties/rectangleproperties.cxx index 71680e012b33..978ab8bbf415 100644 --- a/svx/source/sdr/properties/rectangleproperties.cxx +++ b/svx/source/sdr/properties/rectangleproperties.cxx @@ -55,10 +55,10 @@ namespace sdr::properties // set a new StyleSheet and broadcast void RectangleProperties::SetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr, - bool bBroadcast) + bool bBroadcast, bool bAdjustTextFrameWidthAndHeight) { // call parent (always first thing to do, may create the SfxItemSet) - TextProperties::SetStyleSheet(pNewStyleSheet, bDontRemoveHardAttr, bBroadcast); + TextProperties::SetStyleSheet(pNewStyleSheet, bDontRemoveHardAttr, bBroadcast, bAdjustTextFrameWidthAndHeight); // local changes SdrRectObj& rObj = static_cast<SdrRectObj&>(GetSdrObject()); diff --git a/svx/source/sdr/properties/textproperties.cxx b/svx/source/sdr/properties/textproperties.cxx index c1e7a2f6e0c6..7eb9603d739e 100644 --- a/svx/source/sdr/properties/textproperties.cxx +++ b/svx/source/sdr/properties/textproperties.cxx @@ -243,10 +243,10 @@ namespace sdr::properties } void TextProperties::SetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr, - bool bBroadcast) + bool bBroadcast, bool bAdjustTextFrameWidthAndHeight) { // call parent (always first thing to do, may create the SfxItemSet) - AttributeProperties::SetStyleSheet(pNewStyleSheet, bDontRemoveHardAttr, bBroadcast); + AttributeProperties::SetStyleSheet(pNewStyleSheet, bDontRemoveHardAttr, bBroadcast, bAdjustTextFrameWidthAndHeight); // #i101556# StyleSheet has changed -> new version SdrTextObj& rObj = static_cast<SdrTextObj&>(GetSdrObject()); @@ -349,12 +349,12 @@ namespace sdr::properties std::optional<OutlinerParaObject> pTemp = rOutliner.CreateParaObject(0, nParaCount); rOutliner.Clear(); - rObj.NbcSetOutlinerParaObjectForText(std::move(pTemp), pText); + rObj.NbcSetOutlinerParaObjectForText(std::move(pTemp), pText, bAdjustTextFrameWidthAndHeight); } } } - if(rObj.IsTextFrame() && !rObj.getSdrModelFromSdrObject().isLocked()) + if(rObj.IsTextFrame() && !rObj.getSdrModelFromSdrObject().isLocked() && bAdjustTextFrameWidthAndHeight) rObj.NbcAdjustTextFrameWidthAndHeight(); } diff --git a/svx/source/svdraw/svdoashp.cxx b/svx/source/svdraw/svdoashp.cxx index a3bb40589849..bca05cb58597 100644 --- a/svx/source/svdraw/svdoashp.cxx +++ b/svx/source/svdraw/svdoashp.cxx @@ -2882,11 +2882,11 @@ rtl::Reference<SdrObject> SdrObjCustomShape::DoConvertToPolyObj(bool bBezier, bo return pRetval; } -void SdrObjCustomShape::InternalSetStyleSheet( SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr, bool bBroadcast ) +void SdrObjCustomShape::InternalSetStyleSheet( SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr, bool bBroadcast, bool bAdjustTextFrameWidthAndHeight ) { // #i40944# InvalidateRenderGeometry(); - SdrObject::InternalSetStyleSheet( pNewStyleSheet, bDontRemoveHardAttr, bBroadcast ); + SdrObject::InternalSetStyleSheet( pNewStyleSheet, bDontRemoveHardAttr, bBroadcast, bAdjustTextFrameWidthAndHeight ); } void SdrObjCustomShape::handlePageChange(SdrPage* pOldPage, SdrPage* pNewPage) diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx index 1db55afe2be6..685cda435b5d 100644 --- a/svx/source/svdraw/svdobj.cxx +++ b/svx/source/svdraw/svdobj.cxx @@ -2282,14 +2282,14 @@ void SdrObject::SetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHar SendUserCall(SdrUserCallType::ChangeAttr, aBoundRect0); } -void SdrObject::NbcSetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr) +void SdrObject::NbcSetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr, bool bAdjustTextFrameWidthAndHeight) { - InternalSetStyleSheet(pNewStyleSheet, bDontRemoveHardAttr, false); + InternalSetStyleSheet(pNewStyleSheet, bDontRemoveHardAttr, false, bAdjustTextFrameWidthAndHeight); } -void SdrObject::InternalSetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr, bool bBroadcast) +void SdrObject::InternalSetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr, bool bBroadcast, bool bAdjustTextFrameWidthAndHeight) { - GetProperties().SetStyleSheet(pNewStyleSheet, bDontRemoveHardAttr, bBroadcast); + GetProperties().SetStyleSheet(pNewStyleSheet, bDontRemoveHardAttr, bBroadcast, bAdjustTextFrameWidthAndHeight); } // Broadcasting while setting attributes is managed by the AttrObj. |