summaryrefslogtreecommitdiffstats
path: root/sd/source/ui/view/WindowUpdater.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-01-20 11:41:05 +0000
committerOliver Bolte <obo@openoffice.org>2004-01-20 11:41:05 +0000
commit217ddccdf894214ef5fc470f850fdccae896ea21 (patch)
treef5635a3761463f9eb27737d748c4321d80686a5c /sd/source/ui/view/WindowUpdater.cxx
parentINTEGRATION: CWS impress1 (1.1.2); FILE ADDED (diff)
downloadcore-217ddccdf894214ef5fc470f850fdccae896ea21.tar.gz
core-217ddccdf894214ef5fc470f850fdccae896ea21.zip
INTEGRATION: CWS impress1 (1.3.56); FILE MERGED
2003/11/27 15:02:39 af 1.3.56.2: RESYNC: (1.3-1.4); FILE MERGED 2003/09/17 08:13:59 af 1.3.56.1: #111996# Transition to stacked sub-shells. Introduction of namespace sd.
Diffstat (limited to 'sd/source/ui/view/WindowUpdater.cxx')
-rw-r--r--sd/source/ui/view/WindowUpdater.cxx48
1 files changed, 31 insertions, 17 deletions
diff --git a/sd/source/ui/view/WindowUpdater.cxx b/sd/source/ui/view/WindowUpdater.cxx
index 0058a481a063..c93629bb529c 100644
--- a/sd/source/ui/view/WindowUpdater.cxx
+++ b/sd/source/ui/view/WindowUpdater.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: WindowUpdater.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: rt $ $Date: 2003-11-24 17:17:47 $
+ * last change: $Author: obo $ $Date: 2004-01-20 12:41:05 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -61,12 +61,25 @@
#include "WindowUpdater.hxx"
-#include "viewshel.hxx"
-#include "sdwindow.hxx"
-#include "preview.hxx"
+#ifndef SD_VIEW_SHELL_HXX
+#include "ViewShell.hxx"
+#endif
+#ifndef SD_WINDOW_HXX
+#include "Window.hxx"
+#endif
+#ifndef SD_PREVIEW_WINDOW_HXX
+#include "PreviewWindow.hxx"
+#endif
+#ifndef SD_PREVIEW_CHILD_WINDOW_HXX
+#include "PreviewChildWindow.hxx"
+#endif
#include "drawdoc.hxx"
-#include "showwin.hxx"
-#include "sdview.hxx"
+#ifndef SD_SHOW_WINDOW_HXX
+#include "ShowWindow.hxx"
+#endif
+#ifndef SD_VIEW_HXX
+#include "View.hxx"
+#endif
#ifndef _SPLIT_HXX
#include <vcl/split.hxx>
@@ -103,7 +116,7 @@ WindowUpdater::~WindowUpdater (void) throw ()
-void WindowUpdater::RegisterWindow (Window* pWindow)
+void WindowUpdater::RegisterWindow (::Window* pWindow)
{
if (pWindow != NULL)
{
@@ -122,7 +135,7 @@ void WindowUpdater::RegisterWindow (Window* pWindow)
-void WindowUpdater::UnregisterWindow (Window* pWindow)
+void WindowUpdater::UnregisterWindow (::Window* pWindow)
{
tWindowList::iterator aWindowIterator (
::std::find (
@@ -135,7 +148,7 @@ void WindowUpdater::UnregisterWindow (Window* pWindow)
-void WindowUpdater::SetViewShell (SdViewShell& rViewShell)
+void WindowUpdater::SetViewShell (ViewShell& rViewShell)
{
mpViewShell = &rViewShell;
}
@@ -167,21 +180,22 @@ void WindowUpdater::UnregisterPreview (void)
-Window* WindowUpdater::GetPreviewWindow (void) const
+::Window* WindowUpdater::GetPreviewWindow (void) const
{
- SdShowWindow* pShowWindow = NULL;
+ ShowWindow* pShowWindow = NULL;
// Get the show window of the preview.
if (mpViewShell != NULL)
{
SfxChildWindow* pPreviewChildWindow =
mpViewShell->GetViewFrame()->GetChildWindow (
- SdPreviewChildWindow::GetChildWindowId());
+ PreviewChildWindow::GetChildWindowId());
if (pPreviewChildWindow != NULL)
{
- SdPreviewWin* pPreviewWindow =
- static_cast<SdPreviewWin*> (pPreviewChildWindow->GetWindow());
- if (pPreviewWindow!=NULL && pPreviewWindow->GetDoc()==mpViewShell->GetDoc())
+ PreviewWindow* pPreviewWindow =
+ static_cast<PreviewWindow*> (pPreviewChildWindow->GetWindow());
+ if (pPreviewWindow!=NULL
+ && pPreviewWindow->GetDoc()==mpViewShell->GetDoc())
pShowWindow = pPreviewWindow->GetShowWindow();
}
}
@@ -246,8 +260,8 @@ void WindowUpdater::Notify (SfxBroadcaster& rBC, const SfxHint& rHint)
const SfxSimpleHint& rSimpleHint = static_cast<const SfxSimpleHint&>(rHint);
if (rSimpleHint.GetId() == SFX_HINT_CTL_SETTINGS_CHANGED)
{
- // Clear the master page cache so that master pages will be redrawn.
// #110094#-7
+ // Clear the master page cache so that master pages will be redrawn.
//if (mpViewShell != NULL)
//{
// SdView* pView = mpViewShell->GetView();