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