diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-01 10:38:57 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-01 20:21:04 -0500 |
commit | 2a7c07e2e5fbdce057aaecb87231c62d98981bcb (patch) | |
tree | f18fb28b3ec85955de96e5cdce6a74ea5b38186a /sd/source/ui | |
parent | 513bbdf9c4664e2677537acb9387df84349529cd (diff) |
InsertData to AppendData, to hide the insert position.
Only a few places in sc specified insert position, and those were
not strictly necessary.
Diffstat (limited to 'sd/source/ui')
-rw-r--r-- | sd/source/ui/unoidl/unoobj.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/drviewsg.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/sdview3.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/view/sdview4.cxx | 6 |
4 files changed, 7 insertions, 7 deletions
diff --git a/sd/source/ui/unoidl/unoobj.cxx b/sd/source/ui/unoidl/unoobj.cxx index 9431aa8d8e9b..82380b6cc652 100644 --- a/sd/source/ui/unoidl/unoobj.cxx +++ b/sd/source/ui/unoidl/unoobj.cxx @@ -676,7 +676,7 @@ void SAL_CALL SdXShape::setPropertyValue( const ::rtl::OUString& aPropertyName, else { // insert new user data with image map - pObj->InsertUserData(new SdIMapInfo(aImageMap) ); + pObj->AppendUserData(new SdIMapInfo(aImageMap) ); } } } diff --git a/sd/source/ui/view/drviewsg.cxx b/sd/source/ui/view/drviewsg.cxx index 9a9ad2a5d1bb..d93774562488 100644 --- a/sd/source/ui/view/drviewsg.cxx +++ b/sd/source/ui/view/drviewsg.cxx @@ -76,7 +76,7 @@ void DrawViewShell::ExecIMap( SfxRequest& rReq ) SdIMapInfo* pIMapInfo = GetDoc()->GetIMapInfo( pSdrObj ); if ( !pIMapInfo ) - pSdrObj->InsertUserData( new SdIMapInfo( rImageMap ) ); + pSdrObj->AppendUserData( new SdIMapInfo( rImageMap ) ); else pIMapInfo->SetImageMap( rImageMap ); diff --git a/sd/source/ui/view/sdview3.cxx b/sd/source/ui/view/sdview3.cxx index 78e3a3bdfd9e..70f2a7a1e707 100644 --- a/sd/source/ui/view/sdview3.cxx +++ b/sd/source/ui/view/sdview3.cxx @@ -967,7 +967,7 @@ sal_Bool View::InsertData( const TransferableDataHelper& rDataHelper, InsertObjectAtView( pObj, *pPV, nOptions ); if( pImageMap ) - pObj->InsertUserData( new SdIMapInfo( *pImageMap ) ); + pObj->AppendUserData( new SdIMapInfo( *pImageMap ) ); if ( pObj && pObj->IsChart() ) { @@ -1137,7 +1137,7 @@ sal_Bool View::InsertData( const TransferableDataHelper& rDataHelper, InsertObjectAtView( pObj, *pPV, nOptions ); if( pImageMap ) - pObj->InsertUserData( new SdIMapInfo( *pImageMap ) ); + pObj->AppendUserData( new SdIMapInfo( *pImageMap ) ); // let the object stay in loaded state after insertion pObj->Unload(); diff --git a/sd/source/ui/view/sdview4.cxx b/sd/source/ui/view/sdview4.cxx index afc2eb948f21..d953f73f21ad 100644 --- a/sd/source/ui/view/sdview4.cxx +++ b/sd/source/ui/view/sdview4.cxx @@ -150,7 +150,7 @@ SdrGrafObj* View::InsertGraphic( const Graphic& rGraphic, sal_Int8& rAction, } if (pImageMap) - pNewGrafObj->InsertUserData(new SdIMapInfo(*pImageMap)); + pNewGrafObj->AppendUserData(new SdIMapInfo(*pImageMap)); ReplaceObjectAtView(pPickObj, *pPV, pNewGrafObj); // maybe ReplaceObjectAtView @@ -229,7 +229,7 @@ SdrGrafObj* View::InsertGraphic( const Graphic& rGraphic, sal_Int8& rAction, { // replace object if (pImageMap) - pNewGrafObj->InsertUserData(new SdIMapInfo(*pImageMap)); + pNewGrafObj->AppendUserData(new SdIMapInfo(*pImageMap)); Rectangle aPickObjRect(pPickObj->GetCurrentBoundRect()); Size aPickObjSize(aPickObjRect.GetSize()); @@ -272,7 +272,7 @@ SdrGrafObj* View::InsertGraphic( const Graphic& rGraphic, sal_Int8& rAction, InsertObjectAtView(pNewGrafObj, *pPV, nOptions); if( pImageMap ) - pNewGrafObj->InsertUserData(new SdIMapInfo(*pImageMap)); + pNewGrafObj->AppendUserData(new SdIMapInfo(*pImageMap)); } } |