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_PANE_HIDE_HXX
25 #define SD_PANE_HIDE_HXX
26 
27 #include <com/sun/star/drawing/framework/XConfiguration.hpp>
28 #include <com/sun/star/drawing/framework/XConfigurationController.hpp>
29 
30 
31 namespace sd {
32 
33 class ViewShell;
34 class SlideshowImpl;
35 
36 /** Hide the windows of the side panes and restore the original visibility
37     later. Used by the in-window slide show in order to use the whole frame
38     window for the show.
39 */
40 class PaneHider
41 {
42 public:
43     /** The constructor hides all side panes that belong to the
44         ViewShellBase of the given view shell.
45     */
46     PaneHider (const ViewShell& rViewShell, SlideshowImpl* pSlideShow);
47 
48     /** Restore the original visibility of the side panes.
49     */
50     ~PaneHider (void);
51 
52 private:
53     const ViewShell& mrViewShell;
54     /** Remember whether the visibility states of the windows of the  panes
55         has been modified and have to be restored.
56     */
57     bool mbWindowVisibilitySaved;
58     bool mbOriginalLeftPaneWindowVisibility;
59     bool mbOriginalRightPaneWindowVisibility;
60 
61     ::com::sun::star::uno::Reference<com::sun::star::drawing::framework::XConfigurationController>
62         mxConfigurationController;
63     ::com::sun::star::uno::Reference<com::sun::star::drawing::framework::XConfiguration>
64         mxConfiguration;
65 };
66 
67 } // end of namespace sd
68 
69 #endif
70