summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-08-19 09:10:42 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-08-19 09:31:06 +0200
commit0e16b40d8b68f73731b4aa9059d0f98d0489fed0 (patch)
tree73092889efb0e57cdc180025503e863f26c6ebfe /sc
parent69f4abe1248f9919f242920b463c4d5f4965211f (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 'sc')
-rw-r--r--sc/source/filter/excel/xeescher.cxx2
-rw-r--r--sc/source/filter/xcl97/xcl97esc.cxx4
-rw-r--r--sc/source/filter/xcl97/xcl97rec.cxx2
-rw-r--r--sc/source/filter/xml/xmlcelli.cxx2
-rw-r--r--sc/source/filter/xml/xmlexprt.cxx2
-rw-r--r--sc/source/ui/Accessibility/AccessibleDocument.cxx2
6 files changed, 7 insertions, 7 deletions
diff --git a/sc/source/filter/excel/xeescher.cxx b/sc/source/filter/excel/xeescher.cxx
index 28ddc36e6b2b..3d3d23520e94 100644
--- a/sc/source/filter/excel/xeescher.cxx
+++ b/sc/source/filter/excel/xeescher.cxx
@@ -1842,7 +1842,7 @@ XclExpShapeObj::XclExpShapeObj( XclExpObjectManager& rRoot, css::uno::Reference<
XclObjAny( rRoot, xShape, pDoc ),
XclMacroHelper( rRoot )
{
- if( SdrObject* pSdrObj = ::GetSdrObjectFromXShape( xShape ) )
+ if (SdrObject* pSdrObj = SdrObject::getSdrObjectFromXShape(xShape))
{
ScMacroInfo* pInfo = ScDrawLayer::GetMacroInfo( pSdrObj );
if ( pInfo && !pInfo->GetMacro().isEmpty() )
diff --git a/sc/source/filter/xcl97/xcl97esc.cxx b/sc/source/filter/xcl97/xcl97esc.cxx
index e64e7326d58c..7778944ccfd7 100644
--- a/sc/source/filter/xcl97/xcl97esc.cxx
+++ b/sc/source/filter/xcl97/xcl97esc.cxx
@@ -194,7 +194,7 @@ EscherExHostAppData* XclEscherEx::StartShape( const Reference< XShape >& rxShape
}
aStack.push( std::make_pair( pCurrXclObj, std::move(pCurrAppData) ) );
pCurrAppData.reset( new XclEscherHostAppData );
- SdrObject* pObj = GetSdrObjectFromXShape( rxShape );
+ SdrObject* pObj = SdrObject::getSdrObjectFromXShape(rxShape);
//added for exporting OCX control
sal_Int16 nMsCtlType = 0;
if ( !pObj )
@@ -548,7 +548,7 @@ void ShapeInteractionHelper::PopulateShapeInteractionInfo(const XclExpObjectMana
SvMemoryStream* pMemStrm = nullptr;
OUString sHyperLink;
OUString sMacro;
- SdrObject* pObj = GetSdrObjectFromXShape(xShape);
+ SdrObject* pObj = SdrObject::getSdrObjectFromXShape(xShape);
if (pObj)
sHyperLink = pObj->getHyperlink();
if (ScMacroInfo* pInfo = ScDrawLayer::GetMacroInfo(pObj))
diff --git a/sc/source/filter/xcl97/xcl97rec.cxx b/sc/source/filter/xcl97/xcl97rec.cxx
index e16c6d9021bf..3a05578f14e2 100644
--- a/sc/source/filter/xcl97/xcl97rec.cxx
+++ b/sc/source/filter/xcl97/xcl97rec.cxx
@@ -1285,7 +1285,7 @@ void XclObjAny::SaveXml( XclExpXmlStream& rStrm )
return;
// Do not output any of the detective shapes and validation circles.
- SdrObject* pObject = GetSdrObjectFromXShape(mxShape);
+ SdrObject* pObject = SdrObject::getSdrObjectFromXShape(mxShape);
if (pObject)
{
ScDocument& rDoc = rStrm.GetRoot().GetDoc();
diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx
index 7ec86ddb125b..33030fd22c03 100644
--- a/sc/source/filter/xml/xmlcelli.cxx
+++ b/sc/source/filter/xml/xmlcelli.cxx
@@ -839,7 +839,7 @@ void ScXMLTableRowCellContext::SetAnnotation(const ScAddress& rPos)
if( mxAnnotationData->mxShape.is() && mxAnnotationData->mxShapes.is() )
{
OSL_ENSURE( mxAnnotationData->mxShapes.get() == xShapes.get(), "ScXMLTableRowCellContext::SetAnnotation - different drawing pages" );
- SdrObject* pObject = ::GetSdrObjectFromXShape( mxAnnotationData->mxShape );
+ SdrObject* pObject = SdrObject::getSdrObjectFromXShape(mxAnnotationData->mxShape);
OSL_ENSURE( pObject, "ScXMLTableRowCellContext::SetAnnotation - cannot get SdrObject from shape" );
/* Try to reuse the drawing object already created (but only if the
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx
index b1310fbe953c..94290b35c895 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -3458,7 +3458,7 @@ void ScXMLExport::WriteShapes(const ScMyCell& rMyCell)
// needs it as if there were no hidden rows or columns. We manipulate the geometry
// accordingly for writing xml markup and restore geometry later.
bool bNeedsRestore = false;
- SdrObject* pObj = GetSdrObjectFromXShape(rShape.xShape);
+ SdrObject* pObj = SdrObject::getSdrObjectFromXShape(rShape.xShape);
// Remember original geometry
std::unique_ptr<SdrObjGeoData> pGeoData;
if (pObj)
diff --git a/sc/source/ui/Accessibility/AccessibleDocument.cxx b/sc/source/ui/Accessibility/AccessibleDocument.cxx
index 23f0d58e36b7..ffaa156877ba 100644
--- a/sc/source/ui/Accessibility/AccessibleDocument.cxx
+++ b/sc/source/ui/Accessibility/AccessibleDocument.cxx
@@ -933,7 +933,7 @@ bool ScChildrenShapes::FindSelectedShapesChanges(const uno::Reference<drawing::X
SdrObject *pFocusedObj = nullptr;
if( mnShapesSelected == 1 && aShapesList.size() == 1)
{
- pFocusedObj = GetSdrObjectFromXShape(aShapesList[0]->xShape);
+ pFocusedObj = SdrObject::getSdrObjectFromXShape(aShapesList[0]->xShape);
}
std::sort(aShapesList.begin(), aShapesList.end(), ScShapeDataLess());
SortedShapes vecSelectedShapeAdd;