diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-02-01 19:58:05 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-02-01 20:00:29 +0400 |
commit | bc8fa08a7ae48f68ee5578cb7820336c70898202 (patch) | |
tree | 470f439b2e5e72c629fd238428fe6a97855e1ba8 /sd/source/ui/view/drawview.cxx | |
parent | a31acd6b405777aa3ccb7298fabbe8b4aba55a32 (diff) |
pointer -> reference
Diffstat (limited to 'sd/source/ui/view/drawview.cxx')
-rw-r--r-- | sd/source/ui/view/drawview.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sd/source/ui/view/drawview.cxx b/sd/source/ui/view/drawview.cxx index 7d20db8adabc..e76993c128ea 100644 --- a/sd/source/ui/view/drawview.cxx +++ b/sd/source/ui/view/drawview.cxx @@ -95,7 +95,7 @@ TYPEINIT1(DrawView, View); \************************************************************************/ DrawView::DrawView( DrawDocShell* pDocSh, OutputDevice* pOutDev, DrawViewShell* pShell) -: ::sd::View(pDocSh->GetDoc(), pOutDev, pShell) +: ::sd::View(*pDocSh->GetDoc(), pOutDev, pShell) , mpDocShell(pDocSh) , mpDrawViewShell(pShell) , mpVDev(NULL) @@ -140,7 +140,7 @@ void DrawView::ModelHasChanged() ::sd::View::ModelHasChanged(); // den Gestalter zur Neudarstellung zwingen - SfxStyleSheetBasePool* pSSPool = mpDoc->GetStyleSheetPool(); + SfxStyleSheetBasePool* pSSPool = mrDoc.GetStyleSheetPool(); pSSPool->Broadcast(SfxStyleSheetPoolHint(SFX_STYLESHEETPOOL_CHANGES)); if( mpDrawViewShell ) @@ -163,7 +163,7 @@ sal_Bool DrawView::SetAttributes(const SfxItemSet& rSet, // wird eine Masterpage bearbeitet? if ( mpDrawViewShell && mpDrawViewShell->GetEditMode() == EM_MASTERPAGE ) { - SfxStyleSheetBasePool* pStShPool = mpDoc->GetStyleSheetPool(); + SfxStyleSheetBasePool* pStShPool = mrDoc.GetStyleSheetPool(); SdPage& rPage = *mpDrawViewShell->getCurrentPage(); String aLayoutName = rPage.GetName(); SdrTextObj* pEditObject = static_cast< SdrTextObj* >( GetTextEditObject() ); @@ -192,7 +192,7 @@ sal_Bool DrawView::SetAttributes(const SfxItemSet& rSet, aTempSet.ClearInvalidItems(); // Undo-Action - StyleSheetUndoAction* pAction = new StyleSheetUndoAction(mpDoc, pSheet, &aTempSet); + StyleSheetUndoAction* pAction = new StyleSheetUndoAction(&mrDoc, pSheet, &aTempSet); mpDocSh->GetUndoManager()->AddUndoAction(pAction); pSheet->GetItemSet().Put(aTempSet); @@ -244,7 +244,7 @@ sal_Bool DrawView::SetAttributes(const SfxItemSet& rSet, } // Undo-Action - StyleSheetUndoAction* pAction = new StyleSheetUndoAction(mpDoc, pSheet, &aTempSet); + StyleSheetUndoAction* pAction = new StyleSheetUndoAction(&mrDoc, pSheet, &aTempSet); mpDocSh->GetUndoManager()->AddUndoAction(pAction); pSheet->GetItemSet().Put(aTempSet); @@ -312,7 +312,7 @@ sal_Bool DrawView::SetAttributes(const SfxItemSet& rSet, aTempSet.ClearInvalidItems(); // Undo-Action - StyleSheetUndoAction* pAction = new StyleSheetUndoAction(mpDoc, pSheet, &aTempSet); + StyleSheetUndoAction* pAction = new StyleSheetUndoAction(&mrDoc, pSheet, &aTempSet); mpDocSh->GetUndoManager()->AddUndoAction(pAction); pSheet->GetItemSet().Put(aTempSet,false); @@ -357,7 +357,7 @@ sal_Bool DrawView::SetAttributes(const SfxItemSet& rSet, aTempSet.ClearInvalidItems(); // Undo-Action - StyleSheetUndoAction* pAction = new StyleSheetUndoAction(mpDoc, pSheet, &aTempSet); + StyleSheetUndoAction* pAction = new StyleSheetUndoAction(&mrDoc, pSheet, &aTempSet); mpDocSh->GetUndoManager()->AddUndoAction(pAction); pSheet->GetItemSet().Set(aTempSet,false); @@ -578,7 +578,7 @@ void DrawView::DeleteMarked() { OSL_TRACE( "DrawView::DeleteMarked() - enter" ); - sd::UndoManager* pUndoManager = mpDoc->GetUndoManager(); + sd::UndoManager* pUndoManager = mrDoc.GetUndoManager(); DBG_ASSERT( pUndoManager, "sd::DrawView::DeleteMarked(), ui action without undo manager!?" ); if( pUndoManager ) |