Avoid reserved identifier (_CreateSdrObject -> CreateSdrObject_)

Change-Id: Iee63999e4953a083783cb5c9811640150616472d
This commit is contained in:
Stephan Bergmann 2016-04-15 15:23:08 +02:00
parent d9adda92cc
commit ea83bf5295
12 changed files with 18 additions and 18 deletions

View File

@ -34,7 +34,7 @@ protected:
// Creating a SdrObject based on a Description. Cann be used by derived classes to
// support own css::drawing::Shapes (for example Controls)
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;
// The following method is called when a SvxShape object should be created.

View File

@ -93,7 +93,7 @@ class SVX_DLLPUBLIC SvxDrawPage : public ::cppu::WeakAggImplHelper6< css::drawin
// Creating a SdrObject using it's Description.
// Can be used by derived classes to support their owen Shapes (e.g. Controls).
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);
static SvxShape* CreateShapeByTypeAndInventor( sal_uInt16 nType, sal_uInt32 nInventor, SdrObject *pObj = nullptr, SvxDrawPage *pPage = nullptr, OUString const & referer = OUString() ) throw (css::uno::RuntimeException);

View File

@ -31,7 +31,7 @@ namespace reportdesign
OReportDrawPage(const OReportDrawPage&) = delete;
void operator =(const OReportDrawPage&) = delete;
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;
virtual css::uno::Reference< css::drawing::XShape > _CreateShape( SdrObject *pObj ) const throw (css::uno::RuntimeException, std::exception) override;
public:

View File

@ -46,13 +46,13 @@ OReportDrawPage::OReportDrawPage(SdrPage* _pPage
{
}
SdrObject* OReportDrawPage::_CreateSdrObject(const uno::Reference< drawing::XShape > & xDescr)
SdrObject* OReportDrawPage::CreateSdrObject_(const uno::Reference< drawing::XShape > & xDescr)
throw (uno::RuntimeException, std::exception)
{
uno::Reference< report::XReportComponent> xReportComponent(xDescr,uno::UNO_QUERY);
if ( xReportComponent.is() )
return OObjectBase::createObject(xReportComponent);
return SvxDrawPage::_CreateSdrObject( xDescr );
return SvxDrawPage::CreateSdrObject_( xDescr );
}
uno::Reference< drawing::XShape > OReportDrawPage::_CreateShape( SdrObject *pObj ) const

View File

@ -104,7 +104,7 @@ public:
virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) throw(css::uno::RuntimeException, std::exception) override;
// this is called whenever a SdrObject must be created for a empty api shape wrapper
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;
// SvxFmDrawPage

View File

@ -388,7 +388,7 @@ SdXImpressDocument* SdGenericDrawPage::GetModel() const
}
// this is called whenever a SdrObject must be created for a empty api shape wrapper
SdrObject * SdGenericDrawPage::_CreateSdrObject( const Reference< drawing::XShape >& xShape )
SdrObject * SdGenericDrawPage::CreateSdrObject_( const Reference< drawing::XShape >& xShape )
throw (css::uno::RuntimeException, std::exception)
{
if( nullptr == SvxFmDrawPage::mpPage || !xShape.is() )
@ -398,7 +398,7 @@ SdrObject * SdGenericDrawPage::_CreateSdrObject( const Reference< drawing::XShap
const OUString aPrefix( "com.sun.star.presentation." );
if( !aType.startsWith( aPrefix ) )
{
SdrObject* pObj = SvxFmDrawPage::_CreateSdrObject( xShape );
SdrObject* pObj = SvxFmDrawPage::CreateSdrObject_( xShape );
if( pObj && ( (pObj->GetObjInventor() != SdrInventor) || (pObj->GetObjIdentifier() != OBJ_PAGE) ) )
{
SdDrawDocument* pDoc = static_cast<SdDrawDocument*>(GetPage()->GetModel());
@ -510,7 +510,7 @@ SdrObject * SdGenericDrawPage::_CreateSdrObject( const Reference< drawing::XShap
SdrObject *pPresObj = nullptr;
if( (eObjKind == PRESOBJ_TABLE) || (eObjKind == PRESOBJ_MEDIA) )
{
pPresObj = SvxFmDrawPage::_CreateSdrObject( xShape );
pPresObj = SvxFmDrawPage::CreateSdrObject_( xShape );
if( pPresObj )
{
SdDrawDocument* pDoc = static_cast<SdDrawDocument*>(GetPage()->GetModel());

View File

@ -65,7 +65,7 @@ css::uno::Sequence< css::uno::Type > SAL_CALL SvxFmDrawPage::getTypes( ) throw(
return aTypes;
}
SdrObject *SvxFmDrawPage::_CreateSdrObject( const css::uno::Reference< css::drawing::XShape > & xDescr )
SdrObject *SvxFmDrawPage::CreateSdrObject_( const css::uno::Reference< css::drawing::XShape > & xDescr )
throw (css::uno::RuntimeException, std::exception)
{
OUString aShapeType( xDescr->getShapeType() );
@ -75,7 +75,7 @@ SdrObject *SvxFmDrawPage::_CreateSdrObject( const css::uno::Reference< css::draw
)
return new FmFormObj();
else
return SvxDrawPage::_CreateSdrObject( xDescr );
return SvxDrawPage::CreateSdrObject_( xDescr );
}

View File

@ -487,7 +487,7 @@ void SAL_CALL SvxDrawPage::ungroup( const Reference< drawing::XShapeGroup >& aGr
mpModel->SetChanged();
}
SdrObject *SvxDrawPage::_CreateSdrObject(const Reference< drawing::XShape > & xShape)
SdrObject *SvxDrawPage::CreateSdrObject_(const Reference< drawing::XShape > & xShape)
throw (css::uno::RuntimeException, std::exception)
{
sal_uInt16 nType = 0;
@ -833,7 +833,7 @@ Reference< drawing::XShape > SvxDrawPage::_CreateShape( SdrObject *pObj ) const
SdrObject *SvxDrawPage::CreateSdrObject( const Reference< drawing::XShape > & xShape, bool bBeginning ) throw()
{
SdrObject* pObj = _CreateSdrObject( xShape );
SdrObject* pObj = CreateSdrObject_( xShape );
if( pObj)
{
pObj->SetModel(mpModel);

View File

@ -198,7 +198,7 @@ void SvxShapeGroup::addUnoShape( const uno::Reference< drawing::XShape >& xShape
SdrObject* pSdrShape = pShape->GetSdrObject();
if( pSdrShape == nullptr )
pSdrShape = mxPage->_CreateSdrObject( xShape );
pSdrShape = mxPage->CreateSdrObject_( xShape );
if( pSdrShape->IsInserted() )
pSdrShape->GetObjList()->RemoveObject( pSdrShape->GetOrdNum() );

View File

@ -129,7 +129,7 @@ void SAL_CALL Svx3DSceneObject::add( const Reference< drawing::XShape >& xShape
if(!mpObj.is() || !mxPage.is() || pShape == nullptr || nullptr != pShape->GetSdrObject() )
throw uno::RuntimeException();
SdrObject* pSdrShape = mxPage->_CreateSdrObject( xShape );
SdrObject* pSdrShape = mxPage->CreateSdrObject_( xShape );
if( dynamic_cast<const E3dObject* >(pSdrShape) != nullptr )
{
mpObj->GetSubList()->NbcInsertObject( pSdrShape );

View File

@ -46,7 +46,7 @@ protected:
// Create a SdrObject according to a description. Can be used by derived classes to
// support own css::drawing::Shapes (e.g. controls).
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;
public:

View File

@ -293,11 +293,11 @@ uno::Reference< uno::XInterface > SwFmDrawPage::GetInterface( SdrObject* pObj
return xShape;
}
SdrObject* SwFmDrawPage::_CreateSdrObject( const uno::Reference< drawing::XShape > & xShape )
SdrObject* SwFmDrawPage::CreateSdrObject_( const uno::Reference< drawing::XShape > & xShape )
throw (uno::RuntimeException, std::exception)
{
//FIXME: just a redirect call - can this method be deleted?
return SvxFmDrawPage::_CreateSdrObject( xShape );
return SvxFmDrawPage::CreateSdrObject_( xShape );
}
uno::Reference< drawing::XShape > SwFmDrawPage::_CreateShape( SdrObject *pObj ) const