1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef SD_PRESENTATION_VIEW_SHELL_HXX
25 #define SD_PRESENTATION_VIEW_SHELL_HXX
26 
27 #ifndef SD_DRAW_VIEW_SHELL
28 #include "DrawViewShell.hxx"
29 #endif
30 
31 namespace sd {
32 
33 /** This view shell is responsible for showing the presentation of an
34     Impress document.
35 */
36 class PresentationViewShell : public DrawViewShell
37 {
38 public:
39     TYPEINFO();
40 
41     SFX_DECL_VIEWFACTORY(PresViewShell);
42     SFX_DECL_INTERFACE( SD_IF_SDPRESVIEWSHELL )
43 
44     PresentationViewShell( SfxViewFrame* pFrame, ViewShellBase& rViewShellBase, ::Window* pParentWindow, FrameView* pFrameView = NULL);
45     virtual ~PresentationViewShell (void);
46 
47     /** This method is used by a simple class that passes some
48         arguments from the creator of the new view shell to the new view
49         shell object by waiting for its asynchronous creation.
50         @param pFrameView
51             The frame view that is typically used by the creating object and
52             that shall be shared by the created view shell.
53     */
54     void FinishInitialization( FrameView* pFrameView );
55 
56     virtual void Resize (void);
57 
58 protected:
59     virtual SvxRuler* CreateHRuler(::sd::Window* pWin, sal_Bool bIsFirst);
60 	virtual SvxRuler* CreateVRuler(::sd::Window* pWin);
61 
62 private:
63     Rectangle       maOldVisArea;
64 
65 	virtual void Activate (sal_Bool bIsMDIActivate);
66     virtual void Paint (const Rectangle& rRect, ::sd::Window* pWin);
67 };
68 
69 } // end of namespace sd
70 
71 #endif
72