diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-08-19 09:10:42 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-08-19 09:31:06 +0200 |
commit | 0e16b40d8b68f73731b4aa9059d0f98d0489fed0 (patch) | |
tree | 73092889efb0e57cdc180025503e863f26c6ebfe /filter | |
parent | 69f4abe1248f9919f242920b463c4d5f4965211f (diff) |
Drop GetSdrObjectFromXShape and use SdrObject::getSdrObjectFromXShape
Change-Id: I0d233878ee49fcdc1338ec3bd700e5482d558163
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120694
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/msfilter/escherex.cxx | 14 | ||||
-rw-r--r-- | filter/source/msfilter/eschesdo.cxx | 2 | ||||
-rw-r--r-- | filter/source/msfilter/svdfppt.cxx | 2 | ||||
-rw-r--r-- | filter/source/svg/svgexport.cxx | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx index 8b16be57bab2..240e3146eea3 100644 --- a/filter/source/msfilter/escherex.cxx +++ b/filter/source/msfilter/escherex.cxx @@ -581,7 +581,7 @@ void EscherPropertyContainer::CreateFillProperties( { if ( rXShape.is() ) { - SdrObject* pObj = GetSdrObjectFromXShape( rXShape ); + SdrObject* pObj = SdrObject::getSdrObjectFromXShape(rXShape); if ( pObj ) { const SfxItemSet& aAttr( pObj->GetMergedItemSet() ); @@ -1338,7 +1338,7 @@ bool EscherPropertyContainer::CreateOLEGraphicProperties(const uno::Reference<dr if ( rXShape.is() ) { - SdrObject* pObject = GetSdrObjectFromXShape(rXShape); // SJ: leaving unoapi, because currently there is + SdrObject* pObject = SdrObject::getSdrObjectFromXShape(rXShape); // SJ: leaving unoapi, because currently there is if (auto pOle2Obj = dynamic_cast<const SdrOle2Obj*>(pObject)) // no access to the native graphic object { const Graphic* pGraphic = pOle2Obj->GetGraphic(); @@ -1388,7 +1388,7 @@ bool EscherPropertyContainer::CreateMediaGraphicProperties(const uno::Reference< bool bRetValue = false; if ( rXShape.is() ) { - SdrObject* pSdrObject(GetSdrObjectFromXShape(rXShape)); // SJ: leaving unoapi, because currently there is + SdrObject* pSdrObject(SdrObject::getSdrObjectFromXShape(rXShape)); // SJ: leaving unoapi, because currently there is if (auto pSdrMediaObj = dynamic_cast<const SdrMediaObj*>(pSdrObject)) // no access to the native graphic object { GraphicObject aGraphicObject(pSdrMediaObj->getSnapshot()); @@ -2582,12 +2582,12 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT if ( !aXPropSet.is() ) return; - if(nullptr == dynamic_cast< SdrObjCustomShape* >(GetSdrObjectFromXShape(rXShape))) + if(nullptr == dynamic_cast< SdrObjCustomShape* >(SdrObject::getSdrObjectFromXShape(rXShape))) { return; } - SdrObjCustomShape& rSdrObjCustomShape(static_cast< SdrObjCustomShape& >(*GetSdrObjectFromXShape(rXShape))); + SdrObjCustomShape& rSdrObjCustomShape(static_cast< SdrObjCustomShape& >(*SdrObject::getSdrObjectFromXShape(rXShape))); uno::Any aGeoPropSet = aXPropSet->getPropertyValue( "CustomShapeGeometry" ); uno::Sequence< beans::PropertyValue > aGeoPropSeq; if ( !(aGeoPropSet >>= aGeoPropSeq) ) @@ -3747,7 +3747,7 @@ MSO_SPT EscherPropertyContainer::GetCustomShapeType( const uno::Reference< drawi bool EscherPropertyContainer::CreateBlipPropertiesforOLEControl(const uno::Reference<beans::XPropertySet> & rXPropSet, const uno::Reference<drawing::XShape> & rXShape) { - SdrObject* pShape = GetSdrObjectFromXShape( rXShape ); + SdrObject* pShape = SdrObject::getSdrObjectFromXShape(rXShape); if ( pShape ) { const Graphic aGraphic(SdrExchangeView::GetObjGraphic(*pShape)); @@ -4518,7 +4518,7 @@ sal_uInt32 EscherConnectorListEntry::GetConnectorRule( bool bFirst ) if (aType == "drawing.Custom") { - if (auto pSdrObjCustomShape = dynamic_cast< SdrObjCustomShape* >(GetSdrObjectFromXShape(aXShape))) + if (auto pSdrObjCustomShape = dynamic_cast< SdrObjCustomShape* >(SdrObject::getSdrObjectFromXShape(aXShape))) { const SdrCustomShapeGeometryItem& rGeometryItem = pSdrObjCustomShape->GetMergedItem( SDRATTR_CUSTOMSHAPE_GEOMETRY ); diff --git a/filter/source/msfilter/eschesdo.cxx b/filter/source/msfilter/eschesdo.cxx index d5d49f1d2f30..cd4a9529d6e9 100644 --- a/filter/source/msfilter/eschesdo.cxx +++ b/filter/source/msfilter/eschesdo.cxx @@ -250,7 +250,7 @@ sal_uInt32 ImplEESdrWriter::ImplWriteShape( ImplEESdrObject& rObj, aPropOpt.AddOpt( ESCHER_Prop_LockAgainstGrouping, 0x800080 ); aPropOpt.AddOpt( ESCHER_Prop_fNoFillHitTest, 0x100000 ); // no fill aPropOpt.AddOpt( ESCHER_Prop_fNoLineDrawDash, 0x90000 ); // no linestyle - SdrObject* pObj = GetSdrObjectFromXShape( rObj.GetShapeRef() ); + SdrObject* pObj = SdrObject::getSdrObjectFromXShape(rObj.GetShapeRef()); if ( pObj ) { tools::Rectangle aBound = pObj->GetCurrentBoundRect(); diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx index 8deff59fbf4d..aae85106042b 100644 --- a/filter/source/msfilter/svdfppt.cxx +++ b/filter/source/msfilter/svdfppt.cxx @@ -1911,7 +1911,7 @@ SdrObject* SdrPowerPointImport::ImportOLE( sal_uInt32 nOLEId, PPTConvertOCXControls aPPTConvertOCXControls( this, xModel, m_eCurrentPageKind ); css::uno::Reference< css::drawing::XShape > xShape; if ( aPPTConvertOCXControls.ReadOCXStream( xObjStor, &xShape ) ) - pRet = GetSdrObjectFromXShape( xShape ); + pRet = SdrObject::getSdrObjectFromXShape(xShape); } if ( !pRet ) diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx index 0f8e751bd9e0..7e5f188e7725 100644 --- a/filter/source/svg/svgexport.cxx +++ b/filter/source/svg/svgexport.cxx @@ -2330,7 +2330,7 @@ bool SVGFilter::implCreateObjectsFromShape( const Reference< css::drawing::XDraw } else { - SdrObject* pObj = GetSdrObjectFromXShape( rxShape ); + SdrObject* pObj = SdrObject::getSdrObjectFromXShape(rxShape); if( pObj ) { |