Avoid reserved identifier (_CreateShape -> CreateShape)
Change-Id: Idcdd35302e60392fae9f63de1828e1a41ab89610
This commit is contained in:
@@ -39,7 +39,7 @@ protected:
|
|||||||
|
|
||||||
// The following method is called when a SvxShape object should be created.
|
// The following method is called when a SvxShape object should be created.
|
||||||
// Derived classes can create a derivation or an object aggregating SvxShape.
|
// Derived classes can create a derivation or an object aggregating SvxShape.
|
||||||
virtual css::uno::Reference< css::drawing::XShape > _CreateShape( SdrObject *pObj ) const
|
virtual css::uno::Reference< css::drawing::XShape > CreateShape( SdrObject *pObj ) const
|
||||||
throw (css::uno::RuntimeException, std::exception) override;
|
throw (css::uno::RuntimeException, std::exception) override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@@ -100,7 +100,7 @@ class SVX_DLLPUBLIC SvxDrawPage : public ::cppu::WeakAggImplHelper6< css::drawin
|
|||||||
|
|
||||||
// The following method is called if a SvxShape object is to be created.
|
// The following method is called if a SvxShape object is to be created.
|
||||||
// Derived classes can create a derivation or an SvxShape aggregating object.
|
// Derived classes can create a derivation or an SvxShape aggregating object.
|
||||||
virtual css::uno::Reference< css::drawing::XShape > _CreateShape( SdrObject *pObj ) const
|
virtual css::uno::Reference< css::drawing::XShape > CreateShape( SdrObject *pObj ) const
|
||||||
throw (css::uno::RuntimeException, std::exception);
|
throw (css::uno::RuntimeException, std::exception);
|
||||||
|
|
||||||
UNO3_GETIMPLEMENTATION_DECL( SvxDrawPage )
|
UNO3_GETIMPLEMENTATION_DECL( SvxDrawPage )
|
||||||
|
@@ -33,7 +33,7 @@ namespace reportdesign
|
|||||||
protected:
|
protected:
|
||||||
virtual SdrObject *CreateSdrObject_( const css::uno::Reference< css::drawing::XShape > & xShape )
|
virtual SdrObject *CreateSdrObject_( const css::uno::Reference< css::drawing::XShape > & xShape )
|
||||||
throw (css::uno::RuntimeException, std::exception) override;
|
throw (css::uno::RuntimeException, std::exception) override;
|
||||||
virtual css::uno::Reference< css::drawing::XShape > _CreateShape( SdrObject *pObj ) const throw (css::uno::RuntimeException, std::exception) override;
|
virtual css::uno::Reference< css::drawing::XShape > CreateShape( SdrObject *pObj ) const throw (css::uno::RuntimeException, std::exception) override;
|
||||||
public:
|
public:
|
||||||
OReportDrawPage(SdrPage* pPage,const css::uno::Reference< css::report::XSection >& _xSection);
|
OReportDrawPage(SdrPage* pPage,const css::uno::Reference< css::report::XSection >& _xSection);
|
||||||
virtual ~OReportDrawPage() throw(){}
|
virtual ~OReportDrawPage() throw(){}
|
||||||
|
@@ -55,12 +55,12 @@ SdrObject* OReportDrawPage::CreateSdrObject_(const uno::Reference< drawing::XSha
|
|||||||
return SvxDrawPage::CreateSdrObject_( xDescr );
|
return SvxDrawPage::CreateSdrObject_( xDescr );
|
||||||
}
|
}
|
||||||
|
|
||||||
uno::Reference< drawing::XShape > OReportDrawPage::_CreateShape( SdrObject *pObj ) const
|
uno::Reference< drawing::XShape > OReportDrawPage::CreateShape( SdrObject *pObj ) const
|
||||||
throw (uno::RuntimeException, std::exception)
|
throw (uno::RuntimeException, std::exception)
|
||||||
{
|
{
|
||||||
OObjectBase* pBaseObj = dynamic_cast<OObjectBase*>(pObj);
|
OObjectBase* pBaseObj = dynamic_cast<OObjectBase*>(pObj);
|
||||||
if ( !pBaseObj )
|
if ( !pBaseObj )
|
||||||
return SvxDrawPage::_CreateShape( pObj );
|
return SvxDrawPage::CreateShape( pObj );
|
||||||
|
|
||||||
uno::Reference< report::XSection> xSection = m_xSection;
|
uno::Reference< report::XSection> xSection = m_xSection;
|
||||||
uno::Reference< lang::XMultiServiceFactory> xFactory;
|
uno::Reference< lang::XMultiServiceFactory> xFactory;
|
||||||
@@ -130,7 +130,7 @@ uno::Reference< drawing::XShape > OReportDrawPage::_CreateShape( SdrObject *pOb
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( !xShape.is() )
|
if ( !xShape.is() )
|
||||||
xShape.set( SvxDrawPage::_CreateShape( pObj ) );
|
xShape.set( SvxDrawPage::CreateShape( pObj ) );
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@@ -30,7 +30,7 @@ public:
|
|||||||
ScPageObj(SdrPage* pPage);
|
ScPageObj(SdrPage* pPage);
|
||||||
virtual ~ScPageObj() throw();
|
virtual ~ScPageObj() throw();
|
||||||
|
|
||||||
virtual css::uno::Reference<css::drawing::XShape> _CreateShape(SdrObject *pObj) const
|
virtual css::uno::Reference<css::drawing::XShape> CreateShape(SdrObject *pObj) const
|
||||||
throw (css::uno::RuntimeException, std::exception) override;
|
throw (css::uno::RuntimeException, std::exception) override;
|
||||||
|
|
||||||
// XServiceInfo
|
// XServiceInfo
|
||||||
|
@@ -33,10 +33,10 @@ ScPageObj::~ScPageObj() throw()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
uno::Reference<drawing::XShape > ScPageObj::_CreateShape( SdrObject *pObj ) const
|
uno::Reference<drawing::XShape > ScPageObj::CreateShape( SdrObject *pObj ) const
|
||||||
throw (css::uno::RuntimeException, std::exception)
|
throw (css::uno::RuntimeException, std::exception)
|
||||||
{
|
{
|
||||||
uno::Reference<drawing::XShape> xShape(SvxFmDrawPage::_CreateShape( pObj ));
|
uno::Reference<drawing::XShape> xShape(SvxFmDrawPage::CreateShape( pObj ));
|
||||||
|
|
||||||
new ScShapeObj( xShape ); // aggregates object and modifies xShape
|
new ScShapeObj( xShape ); // aggregates object and modifies xShape
|
||||||
|
|
||||||
|
@@ -108,7 +108,7 @@ public:
|
|||||||
throw (css::uno::RuntimeException, std::exception) override;
|
throw (css::uno::RuntimeException, std::exception) override;
|
||||||
|
|
||||||
// SvxFmDrawPage
|
// SvxFmDrawPage
|
||||||
virtual css::uno::Reference<css::drawing::XShape> _CreateShape(SdrObject *pObj) const
|
virtual css::uno::Reference<css::drawing::XShape> CreateShape(SdrObject *pObj) const
|
||||||
throw (css::uno::RuntimeException, std::exception) override;
|
throw (css::uno::RuntimeException, std::exception) override;
|
||||||
|
|
||||||
// XInterface
|
// XInterface
|
||||||
|
@@ -1408,11 +1408,11 @@ void SAL_CALL SdGenericDrawPage::firePropertiesChangeEvent( const Sequence< OUSt
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference< drawing::XShape > SdGenericDrawPage::_CreateShape(SdrObject *pObj) const
|
Reference< drawing::XShape > SdGenericDrawPage::CreateShape(SdrObject *pObj) const
|
||||||
throw (RuntimeException, std::exception)
|
throw (RuntimeException, std::exception)
|
||||||
{
|
{
|
||||||
DBG_ASSERT( GetPage(), "SdGenericDrawPage::_CreateShape(), can't create shape for disposed page!" );
|
DBG_ASSERT( GetPage(), "SdGenericDrawPage::CreateShape(), can't create shape for disposed page!" );
|
||||||
DBG_ASSERT( pObj, "SdGenericDrawPage::_CreateShape(), invalid call with pObj == 0!" );
|
DBG_ASSERT( pObj, "SdGenericDrawPage::CreateShape(), invalid call with pObj == 0!" );
|
||||||
|
|
||||||
if (!pObj)
|
if (!pObj)
|
||||||
return Reference< drawing::XShape >();
|
return Reference< drawing::XShape >();
|
||||||
@@ -1452,7 +1452,7 @@ Reference< drawing::XShape > SdGenericDrawPage::_CreateShape(SdrObject *pObj) c
|
|||||||
Reference< drawing::XShape > xShape( pShape );
|
Reference< drawing::XShape > xShape( pShape );
|
||||||
|
|
||||||
if(!xShape.is())
|
if(!xShape.is())
|
||||||
xShape = SvxFmDrawPage::_CreateShape( pObj );
|
xShape = SvxFmDrawPage::CreateShape( pObj );
|
||||||
|
|
||||||
if( eKind != PRESOBJ_NONE )
|
if( eKind != PRESOBJ_NONE )
|
||||||
{
|
{
|
||||||
@@ -1535,7 +1535,7 @@ Reference< drawing::XShape > SdGenericDrawPage::_CreateShape(SdrObject *pObj) c
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return SvxFmDrawPage::_CreateShape( pObj );
|
return SvxFmDrawPage::CreateShape( pObj );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -79,7 +79,7 @@ SdrObject *SvxFmDrawPage::CreateSdrObject_( const css::uno::Reference< css::draw
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
css::uno::Reference< css::drawing::XShape > SvxFmDrawPage::_CreateShape( SdrObject *pObj ) const
|
css::uno::Reference< css::drawing::XShape > SvxFmDrawPage::CreateShape( SdrObject *pObj ) const
|
||||||
throw (css::uno::RuntimeException, std::exception)
|
throw (css::uno::RuntimeException, std::exception)
|
||||||
{
|
{
|
||||||
if( FmFormInventor == pObj->GetObjInventor() )
|
if( FmFormInventor == pObj->GetObjInventor() )
|
||||||
@@ -88,7 +88,7 @@ css::uno::Reference< css::drawing::XShape > SvxFmDrawPage::_CreateShape( SdrObj
|
|||||||
return xShape;
|
return xShape;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return SvxDrawPage::_CreateShape( pObj );
|
return SvxDrawPage::CreateShape( pObj );
|
||||||
}
|
}
|
||||||
|
|
||||||
// XFormsSupplier
|
// XFormsSupplier
|
||||||
|
@@ -2895,7 +2895,7 @@ css::uno::Reference< css::uno::XInterface > SdrObject::getUnoShape()
|
|||||||
if( pDrawPage )
|
if( pDrawPage )
|
||||||
{
|
{
|
||||||
// create one
|
// create one
|
||||||
xShape = pDrawPage->_CreateShape( this );
|
xShape = pDrawPage->CreateShape( this );
|
||||||
impl_setUnoShape( xShape );
|
impl_setUnoShape( xShape );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -785,7 +785,7 @@ SvxShape* SvxDrawPage::CreateShapeByTypeAndInventor( sal_uInt16 nType, sal_uInt3
|
|||||||
}
|
}
|
||||||
default: // unknown inventor
|
default: // unknown inventor
|
||||||
{
|
{
|
||||||
OSL_FAIL("AW: Unknown Inventor in SvxDrawPage::_CreateShape()");
|
OSL_FAIL("AW: Unknown Inventor in SvxDrawPage::CreateShape()");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -821,7 +821,7 @@ SvxShape* SvxDrawPage::CreateShapeByTypeAndInventor( sal_uInt16 nType, sal_uInt3
|
|||||||
return pRet;
|
return pRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference< drawing::XShape > SvxDrawPage::_CreateShape( SdrObject *pObj ) const
|
Reference< drawing::XShape > SvxDrawPage::CreateShape( SdrObject *pObj ) const
|
||||||
throw (css::uno::RuntimeException, std::exception)
|
throw (css::uno::RuntimeException, std::exception)
|
||||||
{
|
{
|
||||||
Reference< drawing::XShape > xShape( CreateShapeByTypeAndInventor(pObj->GetObjIdentifier(),
|
Reference< drawing::XShape > xShape( CreateShapeByTypeAndInventor(pObj->GetObjIdentifier(),
|
||||||
|
@@ -64,7 +64,7 @@ public:
|
|||||||
// The following method is called when a SvxShape-object is to be created.
|
// The following method is called when a SvxShape-object is to be created.
|
||||||
// Derived classes may obtain at this point a derivation or an object
|
// Derived classes may obtain at this point a derivation or an object
|
||||||
// that is aggregating a SvxShape.
|
// that is aggregating a SvxShape.
|
||||||
virtual css::uno::Reference< css::drawing::XShape > _CreateShape( SdrObject *pObj ) const throw (css::uno::RuntimeException, std::exception) override;
|
virtual css::uno::Reference< css::drawing::XShape > CreateShape( SdrObject *pObj ) const throw (css::uno::RuntimeException, std::exception) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef cppu::WeakAggImplHelper4
|
typedef cppu::WeakAggImplHelper4
|
||||||
|
@@ -300,7 +300,7 @@ SdrObject* SwFmDrawPage::CreateSdrObject_( const uno::Reference< drawing::XShape
|
|||||||
return SvxFmDrawPage::CreateSdrObject_( xShape );
|
return SvxFmDrawPage::CreateSdrObject_( xShape );
|
||||||
}
|
}
|
||||||
|
|
||||||
uno::Reference< drawing::XShape > SwFmDrawPage::_CreateShape( SdrObject *pObj ) const
|
uno::Reference< drawing::XShape > SwFmDrawPage::CreateShape( SdrObject *pObj ) const
|
||||||
throw (uno::RuntimeException, std::exception)
|
throw (uno::RuntimeException, std::exception)
|
||||||
{
|
{
|
||||||
uno::Reference< drawing::XShape > xRet;
|
uno::Reference< drawing::XShape > xRet;
|
||||||
@@ -336,7 +336,7 @@ uno::Reference< drawing::XShape > SwFmDrawPage::_CreateShape( SdrObject *pObj )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
OSL_FAIL( "<SwFmDrawPage::_CreateShape(..)> - could not retrieve type. Thus, no shape created." );
|
OSL_FAIL( "<SwFmDrawPage::CreateShape(..)> - could not retrieve type. Thus, no shape created." );
|
||||||
return xRet;
|
return xRet;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -346,7 +346,7 @@ uno::Reference< drawing::XShape > SwFmDrawPage::_CreateShape( SdrObject *pObj )
|
|||||||
// own block - temporary object has to be destroyed before
|
// own block - temporary object has to be destroyed before
|
||||||
// the delegator is set #81670#
|
// the delegator is set #81670#
|
||||||
{
|
{
|
||||||
xRet = SvxFmDrawPage::_CreateShape( pObj );
|
xRet = SvxFmDrawPage::CreateShape( pObj );
|
||||||
}
|
}
|
||||||
uno::Reference< XUnoTunnel > xShapeTunnel(xRet, uno::UNO_QUERY);
|
uno::Reference< XUnoTunnel > xShapeTunnel(xRet, uno::UNO_QUERY);
|
||||||
//don't create an SwXShape if it already exists
|
//don't create an SwXShape if it already exists
|
||||||
|
Reference in New Issue
Block a user