summaryrefslogtreecommitdiff
path: root/sd/source/ui
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@sun.com>2009-11-30 12:56:04 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@sun.com>2009-11-30 12:56:04 +0100
commit040f7a237d1aaec9b00c977be7354af383a2ea5b (patch)
treed6ca5f369d093f77f314d99f85787b1f083bd0f0 /sd/source/ui
parent3b932a289f87ee4218fc916fa18aa21e79edda59 (diff)
[CWS autorecovery] merged SfxTopViewFrame into SfxViewFrame
SfxTopViewFrame was the only class deriving from the abstract class SfxViewFrame, so both can effectively be treated as one class. This change was done to make subsequent refactorings easier.
Diffstat (limited to 'sd/source/ui')
-rw-r--r--sd/source/ui/docshell/docshell.cxx12
-rw-r--r--sd/source/ui/slidesorter/controller/SlideSorterController.cxx2
-rw-r--r--sd/source/ui/slidesorter/controller/SlsSlotManager.cxx9
-rw-r--r--sd/source/ui/view/ViewShellBase.cxx2
-rw-r--r--sd/source/ui/view/frmview.cxx6
5 files changed, 11 insertions, 20 deletions
diff --git a/sd/source/ui/docshell/docshell.cxx b/sd/source/ui/docshell/docshell.cxx
index f9381d08a219..9ef4825b1ef5 100644
--- a/sd/source/ui/docshell/docshell.cxx
+++ b/sd/source/ui/docshell/docshell.cxx
@@ -371,7 +371,7 @@ void DrawDocShell::InPlaceActivate( BOOL bActive )
ViewShell* pViewSh = NULL;
SfxViewShell* pSfxViewSh = NULL;
- SfxViewFrame* pSfxViewFrame = SfxViewFrame::GetFirst(this, 0, false);
+ SfxViewFrame* pSfxViewFrame = SfxViewFrame::GetFirst(this, false);
while (pSfxViewFrame)
{
@@ -385,7 +385,7 @@ void DrawDocShell::InPlaceActivate( BOOL bActive )
pFrameViewList->Insert( new FrameView( mpDoc, pViewSh->GetFrameView() ) );
}
- pSfxViewFrame = SfxViewFrame::GetNext(*pSfxViewFrame, this, 0, false);
+ pSfxViewFrame = SfxViewFrame::GetNext(*pSfxViewFrame, this, false);
}
}
}
@@ -401,7 +401,7 @@ void DrawDocShell::InPlaceActivate( BOOL bActive )
{
ViewShell* pViewSh = NULL;
SfxViewShell* pSfxViewSh = NULL;
- SfxViewFrame* pSfxViewFrame = SfxViewFrame::GetFirst(this, 0,false);
+ SfxViewFrame* pSfxViewFrame = SfxViewFrame::GetFirst(this, false);
sal_uInt32 i;
for( i = 0; pSfxViewFrame && (i < pFrameViewList->Count()); i++ )
@@ -415,7 +415,7 @@ void DrawDocShell::InPlaceActivate( BOOL bActive )
pViewSh->ReadFrameViewData( (FrameView*)pFrameViewList->GetObject(i) );
}
- pSfxViewFrame = SfxViewFrame::GetNext(*pSfxViewFrame, this, 0,false);
+ pSfxViewFrame = SfxViewFrame::GetNext(*pSfxViewFrame, this, false);
}
}
}
@@ -579,7 +579,7 @@ IMPL_LINK(DrawDocShell, OnlineSpellCallback, SpellCallbackInfo*, pInfo)
void DrawDocShell::ClearUndoBuffer()
{
// clear possible undo buffers of outliners
- SfxViewFrame* pSfxViewFrame = SfxViewFrame::GetFirst(this, 0, false);
+ SfxViewFrame* pSfxViewFrame = SfxViewFrame::GetFirst(this, false);
while(pSfxViewFrame)
{
ViewShellBase* pViewShellBase = dynamic_cast< ViewShellBase* >( pSfxViewFrame->GetViewShell() );
@@ -602,7 +602,7 @@ void DrawDocShell::ClearUndoBuffer()
}
}
}
- pSfxViewFrame = SfxViewFrame::GetNext(*pSfxViewFrame, this, 0, false);
+ pSfxViewFrame = SfxViewFrame::GetNext(*pSfxViewFrame, this, false);
}
SfxUndoManager* pUndoManager = GetUndoManager();
diff --git a/sd/source/ui/slidesorter/controller/SlideSorterController.cxx b/sd/source/ui/slidesorter/controller/SlideSorterController.cxx
index f355ada7089f..e5e9dd638da9 100644
--- a/sd/source/ui/slidesorter/controller/SlideSorterController.cxx
+++ b/sd/source/ui/slidesorter/controller/SlideSorterController.cxx
@@ -652,7 +652,7 @@ void SlideSorterController::GetCtrlState (SfxItemSet& rSet)
SfxViewFrame* pSlideViewFrame = SfxViewFrame::Current();
DBG_ASSERT(pSlideViewFrame!=NULL,
"SlideSorterController::GetCtrlState: ViewFrame not found");
- if (pSlideViewFrame && pSlideViewFrame->ISA(SfxTopViewFrame))
+ if (pSlideViewFrame)
{
pSlideViewFrame->GetSlotState (SID_RELOAD, NULL, &rSet);
}
diff --git a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx
index 4b48aa60678d..c06aa89ac310 100644
--- a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx
@@ -501,14 +501,7 @@ void SlotManager::GetCtrlState (SfxItemSet& rSet)
SfxViewFrame* pSlideViewFrame = pShell->GetViewFrame();
DBG_ASSERT(pSlideViewFrame!=NULL,
"SlideSorterController::GetCtrlState: ViewFrame not found");
- if (pSlideViewFrame->ISA(SfxTopViewFrame))
- {
- pSlideViewFrame->GetSlotState (SID_RELOAD, NULL, &rSet);
- }
- else // MI sagt: kein MDIFrame --> disablen
- {
- rSet.DisableItem(SID_RELOAD);
- }
+ pSlideViewFrame->GetSlotState (SID_RELOAD, NULL, &rSet);
}
}
diff --git a/sd/source/ui/view/ViewShellBase.cxx b/sd/source/ui/view/ViewShellBase.cxx
index 25fca9e0bae7..26a39d01a21f 100644
--- a/sd/source/ui/view/ViewShellBase.cxx
+++ b/sd/source/ui/view/ViewShellBase.cxx
@@ -1003,7 +1003,7 @@ void ViewShellBase::UpdateBorder ( bool bForce /* = false */ )
// calls for the views in side panes but prevents calling an already
// dying SfxViewShell base class.
// For issue #140703# we have to check the existence of the window,
- // too. The SfxTopViewFrame accesses the window without checking it.
+ // too. The SfxViewFrame accesses the window without checking it.
ViewShell* pMainViewShell = GetMainViewShell().get();
if (pMainViewShell != NULL && GetWindow()!=NULL)
{
diff --git a/sd/source/ui/view/frmview.cxx b/sd/source/ui/view/frmview.cxx
index 503fc5ab0624..43dc6dee639d 100644
--- a/sd/source/ui/view/frmview.cxx
+++ b/sd/source/ui/view/frmview.cxx
@@ -103,8 +103,7 @@ FrameView::FrameView(SdDrawDocument* pDrawDoc, FrameView* pFrameView /* = NULK *
ULONG nSdViewShellCount = 0;
ViewShellBase* pBase = NULL;
SfxViewShell* pSfxViewSh = NULL;
- SfxViewFrame* pSfxViewFrame = SfxViewFrame::GetFirst(pDocShell,
- TYPE(SfxTopViewFrame));
+ SfxViewFrame* pSfxViewFrame = SfxViewFrame::GetFirst(pDocShell);
while (pSfxViewFrame)
{
@@ -145,8 +144,7 @@ FrameView::FrameView(SdDrawDocument* pDrawDoc, FrameView* pFrameView /* = NULK *
}
}
- pSfxViewFrame = SfxViewFrame::GetNext(*pSfxViewFrame, pDocShell,
- TYPE(SfxTopViewFrame));
+ pSfxViewFrame = SfxViewFrame::GetNext(*pSfxViewFrame, pDocShell);
}
SdDrawDocument* pDoc = pDocShell->GetDoc();