diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-01-31 16:03:46 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-01-31 21:38:58 -0500 |
commit | c5bb73cae7c172ad0f02f8c67dd57b53337f1d78 (patch) | |
tree | 67e2cfeb43b6c1803b766039fe49dfb1f438c07c | |
parent | 90413af046d22d1ea7376da4856846744049d613 (diff) |
Get the whole thing to build after the method sig change in SdrObject.
-rw-r--r-- | chart2/source/controller/main/ElementSelector.cxx | 2 | ||||
-rw-r--r-- | chart2/source/controller/main/ShapeController.cxx | 8 | ||||
-rw-r--r-- | filter/source/msfilter/eschesdo.cxx | 6 | ||||
-rw-r--r-- | filter/source/msfilter/msdffimp.cxx | 2 | ||||
-rw-r--r-- | sc/source/core/data/drwlayer.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/drawfunc/drawsh5.cxx | 10 | ||||
-rw-r--r-- | sd/source/core/drawdoc2.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/shells/drwbassh.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/utlui/content.cxx | 6 |
9 files changed, 24 insertions, 20 deletions
diff --git a/chart2/source/controller/main/ElementSelector.cxx b/chart2/source/controller/main/ElementSelector.cxx index e795a7dcf4a2..71e84b3ace7b 100644 --- a/chart2/source/controller/main/ElementSelector.cxx +++ b/chart2/source/controller/main/ElementSelector.cxx @@ -154,7 +154,7 @@ void SelectorListBox::UpdateChartElementsListAndSelection() { ListBoxEntryData aEntry; SdrObject* pSelectedObj = DrawViewWrapper::getSdrObject( aSelectedOID.getAdditionalShape() ); - ::rtl::OUString aName( pSelectedObj ? pSelectedObj->GetName() : String() ); + rtl::OUString aName = pSelectedObj ? pSelectedObj->GetName() : rtl::OUString(); aEntry.UIName = ( aName.isEmpty() ? ::rtl::OUString( String( SchResId( STR_OBJECT_SHAPE ) ) ) : aName ); aEntry.OID = aSelectedOID; m_aEntries.push_back( aEntry ); diff --git a/chart2/source/controller/main/ShapeController.cxx b/chart2/source/controller/main/ShapeController.cxx index 5878e4c318d1..a4c5f82eec2e 100644 --- a/chart2/source/controller/main/ShapeController.cxx +++ b/chart2/source/controller/main/ShapeController.cxx @@ -479,7 +479,7 @@ void ShapeController::executeDispatch_RenameObject() SdrObject* pSelectedObj = pDrawViewWrapper->getSelectedObject(); if ( pSelectedObj ) { - String aName( pSelectedObj->GetName() ); + rtl::OUString aName = pSelectedObj->GetName(); SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); if ( pFact ) { @@ -488,8 +488,10 @@ void ShapeController::executeDispatch_RenameObject() pDlg->SetCheckNameHdl( LINK( this, ShapeController, CheckNameHdl ) ); if ( pDlg.get() && ( pDlg->Execute() == RET_OK ) ) { - pDlg->GetName( aName ); - if ( aName != pSelectedObj->GetName() ) + String aTmp; + pDlg->GetName(aTmp); + aName = aTmp; + if (pSelectedObj->GetName().equals(aName)) { pSelectedObj->SetName( aName ); } diff --git a/filter/source/msfilter/eschesdo.cxx b/filter/source/msfilter/eschesdo.cxx index 256b06a1249d..08ef01dd6a97 100644 --- a/filter/source/msfilter/eschesdo.cxx +++ b/filter/source/msfilter/eschesdo.cxx @@ -176,9 +176,9 @@ sal_uInt32 ImplEESdrWriter::ImplWriteShape( ImplEESdrObject& rObj, break; // #i51348# get shape name - String aShapeName; + rtl::OUString aShapeName; if( const SdrObject* pSdrObj = rObj.GetSdrObject() ) - if( pSdrObj->GetName().Len() > 0 ) + if (!pSdrObj->GetName().isEmpty()) aShapeName = pSdrObj->GetName(); Point aTextRefPoint; @@ -223,7 +223,7 @@ sal_uInt32 ImplEESdrWriter::ImplWriteShape( ImplEESdrObject& rObj, EscherPropertyContainer aPropOpt( mpEscherEx->GetGraphicProvider(), mpPicStrm, aRect100thmm ); // #i51348# shape name - if( aShapeName.Len() > 0 ) + if (!aShapeName.isEmpty()) aPropOpt.AddOpt( ESCHER_Prop_wzName, aShapeName ); if ( InteractionInfo* pInteraction = mpHostAppData ? mpHostAppData->GetInteractionInfo():NULL ) { diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx index 406b1532c4f0..8f25ac828f30 100644 --- a/filter/source/msfilter/msdffimp.cxx +++ b/filter/source/msfilter/msdffimp.cxx @@ -4375,7 +4375,7 @@ SdrObject* SvxMSDffManager::ImportGraphic( SvStream& rSt, SfxItemSet& rSet, cons if ( pRet && bGrfRead && !aVisArea.IsEmpty() ) pRet->SetBLIPSizeRectangle( aVisArea ); - if ( !pRet->GetName().Len() ) // SJ 22.02.00 : PPT OLE IMPORT: + if (pRet->GetName().isEmpty()) // SJ 22.02.00 : PPT OLE IMPORT: { // name is already set in ImportOLE !! // JP 01.12.99: SetName before SetModel - because in the other order the Bug 70098 is active if ( ( eFlags & mso_blipflagType ) != mso_blipflagComment ) diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx index 82fbf7b10a97..64935132d7e7 100644 --- a/sc/source/core/data/drwlayer.cxx +++ b/sc/source/core/data/drwlayer.cxx @@ -1648,7 +1648,7 @@ inline sal_Bool IsNamedObject( SdrObject* pObj, const String& rName ) // sal_True if rName is the object's Name or PersistName // (used to find a named object) - return ( pObj->GetName() == rName || + return ( pObj->GetName().equals(rName) || ( pObj->GetObjIdentifier() == OBJ_OLE2 && static_cast<SdrOle2Obj*>(pObj)->GetPersistName() == rName ) ); } @@ -1725,7 +1725,7 @@ void ScDrawLayer::EnsureGraphicNames() while (pObject) { - if ( pObject->GetObjIdentifier() == OBJ_GRAF && pObject->GetName().Len() == 0 ) + if ( pObject->GetObjIdentifier() == OBJ_GRAF && pObject->GetName().isEmpty()) pObject->SetName( GetNewGraphicName( &nCounter ) ); pObject = aIter.Next(); diff --git a/sc/source/ui/drawfunc/drawsh5.cxx b/sc/source/ui/drawfunc/drawsh5.cxx index a146b426452a..410ac0116d93 100644 --- a/sc/source/ui/drawfunc/drawsh5.cxx +++ b/sc/source/ui/drawfunc/drawsh5.cxx @@ -500,7 +500,7 @@ void ScDrawShell::ExecDrawFunc( SfxRequest& rReq ) if(SC_LAYER_INTERN != pSelected->GetLayer()) { - String aName(pSelected->GetName()); + rtl::OUString aName = pSelected->GetName(); SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); OSL_ENSURE(pFact, "Dialogdiet fail!"); @@ -512,14 +512,16 @@ void ScDrawShell::ExecDrawFunc( SfxRequest& rReq ) if(RET_OK == pDlg->Execute()) { ScDocShell* pDocSh = pViewData->GetDocShell(); - pDlg->GetName(aName); + String aTmp; + pDlg->GetName(aTmp); + aName = aTmp; - if(aName != pSelected->GetName()) + if (!aName.equals(pSelected->GetName())) { // handle name change const sal_uInt16 nObjType(pSelected->GetObjIdentifier()); - if(OBJ_GRAF == nObjType && 0L == aName.Len()) + if (OBJ_GRAF == nObjType && aName.isEmpty()) { // graphics objects must have names // (all graphics are supposed to be in the navigator) diff --git a/sd/source/core/drawdoc2.cxx b/sd/source/core/drawdoc2.cxx index 35fe4e9154b3..59a73d023db6 100644 --- a/sd/source/core/drawdoc2.cxx +++ b/sd/source/core/drawdoc2.cxx @@ -111,7 +111,7 @@ SdrObject* SdDrawDocument::GetObj(const String& rObjName) const { pObj = aIter.Next(); - if( ( rObjName == pObj->GetName() ) || + if( ( pObj->GetName().equals(rObjName) ) || ( SdrInventor == pObj->GetObjInventor() && OBJ_OLE2 == pObj->GetObjIdentifier() && rObjName == static_cast< SdrOle2Obj* >( pObj )->GetPersistName() ) ) @@ -138,7 +138,7 @@ SdrObject* SdDrawDocument::GetObj(const String& rObjName) const { pObj = aIter.Next(); - if( ( rObjName == pObj->GetName() ) || + if( ( pObj->GetName().equals(rObjName) ) || ( SdrInventor == pObj->GetObjInventor() && OBJ_OLE2 == pObj->GetObjIdentifier() && rObjName == static_cast< SdrOle2Obj* >( pObj )->GetPersistName() ) ) diff --git a/sw/source/ui/shells/drwbassh.cxx b/sw/source/ui/shells/drwbassh.cxx index 4b1ee4eb8f01..d6bee66345dc 100644 --- a/sw/source/ui/shells/drwbassh.cxx +++ b/sw/source/ui/shells/drwbassh.cxx @@ -640,7 +640,7 @@ IMPL_LINK( SwDrawBaseShell, CheckGroupShapeNameHdl, AbstractSvxNameDialog*, pNam while( aIter.IsMore() ) { SdrObject* pTempObj = aIter.Next(); - if ( pObj != pTempObj && pTempObj->GetName() == sNewName ) + if ( pObj != pTempObj && pTempObj->GetName().equals(sNewName) ) { nRet = 0; break; diff --git a/sw/source/ui/utlui/content.cxx b/sw/source/ui/utlui/content.cxx index 32a383fb895f..c81301f52537 100644 --- a/sw/source/ui/utlui/content.cxx +++ b/sw/source/ui/utlui/content.cxx @@ -434,7 +434,7 @@ void SwContentType::Init(sal_Bool* pbInvalidateWindow) { SdrObject* pTemp = pPage->GetObj(i); // #i51726# - all drawing objects can be named now - if ( pTemp->GetName().Len() ) + if (!pTemp->GetName().isEmpty()) nMemberCount++; } } @@ -766,7 +766,7 @@ void SwContentType::FillMemberList(sal_Bool* pbLevelOrVisibiblityChanged) { SdrObject* pTemp = pPage->GetObj(i); // #i51726# - all drawing objects can be named now - if ( pTemp->GetName().Len() ) + if (!pTemp->GetName().isEmpty()) { SwContact* pContact = (SwContact*)pTemp->GetUserCall(); long nYPos = 0; @@ -3052,7 +3052,7 @@ void SwContentTree::GotoContent(SwContent* pCnt) { SdrObject* pTemp = pPage->GetObj(i); // #i51726# - all drawing objects can be named now - if ( pTemp->GetName() == pCnt->GetName() ) + if (pTemp->GetName().equals(pCnt->GetName())) { SdrPageView* pPV = pDrawView->GetSdrPageView(); if( pPV ) |