INTEGRATION: CWS draw13 (1.21.20); FILE MERGED

2003/05/28 08:24:59 af 1.21.20.1: #109032# Added WindowUpdater data member.
This commit is contained in:
Vladimir Glazounov 2003-06-04 10:06:02 +00:00
parent 6007f61133
commit 11a9510734

View file

@ -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 <svx/fmshell.hxx>
#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();
}