From 11a95107348ac687984c8e0e598b6e0f2016a3a8 Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Wed, 4 Jun 2003 10:06:02 +0000 Subject: [PATCH] INTEGRATION: CWS draw13 (1.21.20); FILE MERGED 2003/05/28 08:24:59 af 1.21.20.1: #109032# Added WindowUpdater data member. --- sd/source/ui/view/viewshel.cxx | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/sd/source/ui/view/viewshel.cxx b/sd/source/ui/view/viewshel.cxx index c83315b5f1a1..99a51cc34758 100644 --- a/sd/source/ui/view/viewshel.cxx +++ b/sd/source/ui/view/viewshel.cxx @@ -2,9 +2,9 @@ * * $RCSfile: viewshel.cxx,v $ * - * $Revision: 1.21 $ + * $Revision: 1.22 $ * - * last change: $Author: vg $ $Date: 2003-04-24 17:07:22 $ + * last change: $Author: vg $ $Date: 2003-06-04 11:06:02 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -83,6 +83,9 @@ #ifndef _SVX_FMSHELL_HXX #include #endif +#ifndef SD_WINDOW_UPDATER_HXX +#include "WindowUpdater.hxx" +#endif #include "app.hrc" #include "helpids.h" @@ -252,6 +255,9 @@ void SdViewShell::Construct(void) SetName (aName); pDoc->StartOnlineSpelling(FALSE); + + mpWindowUpdater->SetViewShell (*this); + mpWindowUpdater->SetDocument (pDoc); } /************************************************************************* @@ -268,6 +274,7 @@ SdViewShell::SdViewShell(SfxViewFrame* pFrame, Window *pParent, SFX_VIEW_OBJECTSIZE_EMBEDDED | SFX_VIEW_CAN_PRINT | SFX_VIEW_HAS_PRINTOPTIONS), + mpWindowUpdater (new ::sd::WindowUpdater()), aHSplit(&pFrame->GetWindow(), WB_HSCROLL), aVSplit(&pFrame->GetWindow(), WB_VSCROLL), aDrawBtn(&pFrame->GetWindow(), WB_3DLOOK | WB_RECTSTYLE | WB_SMALLSTYLE | WB_NOPOINTERFOCUS ), @@ -1662,3 +1669,10 @@ SdViewShell::CreateAccessibleDocumentView (SdWindow* pWindow) return ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> (); } + + + +::sd::WindowUpdater* SdViewShell::GetWindowUpdater (void) const +{ + return mpWindowUpdater.get(); +}