update dev300-m58
[ooovba.git] / sd / source / ui / inc / PresentationViewShell.hxx
blobd9d58e40d178f0f2fa6ec5961d9a0d613f97e759
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: PresentationViewShell.hxx,v $
10 * $Revision: 1.10 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef SD_PRESENTATION_VIEW_SHELL_HXX
32 #define SD_PRESENTATION_VIEW_SHELL_HXX
34 #ifndef SD_DRAW_VIEW_SHELL
35 #include "DrawViewShell.hxx"
36 #endif
38 namespace sd {
40 /** This view shell is responsible for showing the presentation of an
41 Impress document.
43 class PresentationViewShell : public DrawViewShell
45 public:
46 TYPEINFO();
48 SFX_DECL_VIEWFACTORY(PresViewShell);
49 SFX_DECL_INTERFACE( SD_IF_SDPRESVIEWSHELL )
51 PresentationViewShell( SfxViewFrame* pFrame, ViewShellBase& rViewShellBase, ::Window* pParentWindow, FrameView* pFrameView = NULL);
52 virtual ~PresentationViewShell (void);
54 /** This method is used by a simple class that passes some
55 arguments from the creator of the new view shell to the new view
56 shell object by waiting for its asynchronous creation.
57 @param pFrameView
58 The frame view that is typically used by the creating object and
59 that shall be shared by the created view shell.
61 void FinishInitialization( FrameView* pFrameView );
63 virtual void Resize (void);
65 protected:
66 virtual SvxRuler* CreateHRuler(::sd::Window* pWin, BOOL bIsFirst);
67 virtual SvxRuler* CreateVRuler(::sd::Window* pWin);
69 private:
70 Rectangle maOldVisArea;
72 virtual void Activate (BOOL bIsMDIActivate);
73 virtual void Paint (const Rectangle& rRect, ::sd::Window* pWin);
76 } // end of namespace sd
78 #endif