diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-04-15 15:23:08 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-18 15:30:07 +0200 |
commit | ea83bf52953baa9b09771271e453a5f9a6c5280d (patch) | |
tree | b4dd61920aa82fcfc967c6049686fd1393697782 | |
parent | d9adda92cc6328cd44bf09753caefe23b028a81b (diff) |
Avoid reserved identifier (_CreateSdrObject -> CreateSdrObject_)
Change-Id: Iee63999e4953a083783cb5c9811640150616472d
-rw-r--r-- | include/svx/fmdpage.hxx | 2 | ||||
-rw-r--r-- | include/svx/unopage.hxx | 2 | ||||
-rw-r--r-- | reportdesign/source/core/inc/ReportDrawPage.hxx | 2 | ||||
-rw-r--r-- | reportdesign/source/core/sdr/ReportDrawPage.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/inc/unopage.hxx | 2 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unopage.cxx | 6 | ||||
-rw-r--r-- | svx/source/form/fmdpage.cxx | 4 | ||||
-rw-r--r-- | svx/source/unodraw/unopage.cxx | 4 | ||||
-rw-r--r-- | svx/source/unodraw/unoshap2.cxx | 2 | ||||
-rw-r--r-- | svx/source/unodraw/unoshap3.cxx | 2 | ||||
-rw-r--r-- | sw/inc/unodraw.hxx | 2 | ||||
-rw-r--r-- | sw/source/core/unocore/unodraw.cxx | 4 |
12 files changed, 18 insertions, 18 deletions
diff --git a/include/svx/fmdpage.hxx b/include/svx/fmdpage.hxx index 189d5b31257f..027d21878e19 100644 --- a/include/svx/fmdpage.hxx +++ b/include/svx/fmdpage.hxx @@ -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. diff --git a/include/svx/unopage.hxx b/include/svx/unopage.hxx index 34643638f2cc..831a6d6e517f 100644 --- a/include/svx/unopage.hxx +++ b/include/svx/unopage.hxx @@ -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); diff --git a/reportdesign/source/core/inc/ReportDrawPage.hxx b/reportdesign/source/core/inc/ReportDrawPage.hxx index bf096cd5331c..532883037005 100644 --- a/reportdesign/source/core/inc/ReportDrawPage.hxx +++ b/reportdesign/source/core/inc/ReportDrawPage.hxx @@ -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: diff --git a/reportdesign/source/core/sdr/ReportDrawPage.cxx b/reportdesign/source/core/sdr/ReportDrawPage.cxx index 72225117554b..9dab4d8b2be9 100644 --- a/reportdesign/source/core/sdr/ReportDrawPage.cxx +++ b/reportdesign/source/core/sdr/ReportDrawPage.cxx @@ -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 diff --git a/sd/source/ui/inc/unopage.hxx b/sd/source/ui/inc/unopage.hxx index f9f83c4e581d..c741e586c849 100644 --- a/sd/source/ui/inc/unopage.hxx +++ b/sd/source/ui/inc/unopage.hxx @@ -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 diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx index d09b0566a853..ea57ad8bacfd 100644 --- a/sd/source/ui/unoidl/unopage.cxx +++ b/sd/source/ui/unoidl/unopage.cxx @@ -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()); diff --git a/svx/source/form/fmdpage.cxx b/svx/source/form/fmdpage.cxx index dd5a845a5362..e2a12d9b3118 100644 --- a/svx/source/form/fmdpage.cxx +++ b/svx/source/form/fmdpage.cxx @@ -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 ); } diff --git a/svx/source/unodraw/unopage.cxx b/svx/source/unodraw/unopage.cxx index 3c104a95642e..70e98fd05c93 100644 --- a/svx/source/unodraw/unopage.cxx +++ b/svx/source/unodraw/unopage.cxx @@ -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); diff --git a/svx/source/unodraw/unoshap2.cxx b/svx/source/unodraw/unoshap2.cxx index e1995131bfdc..e0dffd8a4de4 100644 --- a/svx/source/unodraw/unoshap2.cxx +++ b/svx/source/unodraw/unoshap2.cxx @@ -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() ); diff --git a/svx/source/unodraw/unoshap3.cxx b/svx/source/unodraw/unoshap3.cxx index 9f5128f7789c..da2b4bae6ec4 100644 --- a/svx/source/unodraw/unoshap3.cxx +++ b/svx/source/unodraw/unoshap3.cxx @@ -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 ); diff --git a/sw/inc/unodraw.hxx b/sw/inc/unodraw.hxx index 1f66b81c81f0..21b4ba8b2d3a 100644 --- a/sw/inc/unodraw.hxx +++ b/sw/inc/unodraw.hxx @@ -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: diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx index fa52bebce2bc..cf724ef3e72a 100644 --- a/sw/source/core/unocore/unodraw.cxx +++ b/sw/source/core/unocore/unodraw.cxx @@ -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 |