SidebarController.hxx (54eaaa32) SidebarController.hxx (65908a7e)
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

--- 8 unchanged lines hidden (view full) ---

17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22#ifndef SFX_SIDEBAR_CONTROLLER_HXX
23#define SFX_SIDEBAR_CONTROLLER_HXX
24
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

--- 8 unchanged lines hidden (view full) ---

17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22#ifndef SFX_SIDEBAR_CONTROLLER_HXX
23#define SFX_SIDEBAR_CONTROLLER_HXX
24
25#include "ResourceManager.hxx"
26#include "AsynchronousCall.hxx"
25#include "AsynchronousCall.hxx"
27#include "TabBar.hxx"
28#include "Context.hxx"
26#include "Context.hxx"
27#include "FocusManager.hxx"
29#include "Panel.hxx"
28#include "Panel.hxx"
29#include "ResourceManager.hxx"
30#include "TabBar.hxx"
30
31#include <vcl/menu.hxx>
32
33#include <com/sun/star/awt/XWindowPeer.hpp>
34#include <com/sun/star/beans/XPropertyChangeListener.hpp>
35#include <com/sun/star/ui/XContextChangeEventListener.hpp>
36#include <com/sun/star/ui/XUIElement.hpp>
37#include <com/sun/star/ui/XSidebar.hpp>

--- 59 unchanged lines hidden (view full) ---

97 /** Show only the tab bar, not the deck.
98 */
99 void CloseDeck (void);
100
101 /** Open the deck area and restore the parent window to its old width.
102 */
103 void OpenDeck (void);
104
31
32#include <vcl/menu.hxx>
33
34#include <com/sun/star/awt/XWindowPeer.hpp>
35#include <com/sun/star/beans/XPropertyChangeListener.hpp>
36#include <com/sun/star/ui/XContextChangeEventListener.hpp>
37#include <com/sun/star/ui/XUIElement.hpp>
38#include <com/sun/star/ui/XSidebar.hpp>

--- 59 unchanged lines hidden (view full) ---

98 /** Show only the tab bar, not the deck.
99 */
100 void CloseDeck (void);
101
102 /** Open the deck area and restore the parent window to its old width.
103 */
104 void OpenDeck (void);
105
106 FocusManager& GetFocusManager (void);
107
105private:
106 ::boost::scoped_ptr<Deck> mpCurrentDeck;
107 SidebarDockingWindow* mpParentWindow;
108 ::boost::scoped_ptr<TabBar> mpTabBar;
109 cssu::Reference<css::frame::XFrame> mxFrame;
110 Context maCurrentContext;
111 ::rtl::OUString msCurrentDeckId;
112 ::rtl::OUString msCurrentDeckTitle;
113 AsynchronousCall maPropertyChangeForwarder;
114 bool mbIsDeckClosed;
115 /** Before the deck is closed the sidebar width is saved into this variable,
116 so that it can be restored when the deck is reopended.
117 */
118 sal_Int32 mnSavedSidebarWidth;
108private:
109 ::boost::scoped_ptr<Deck> mpCurrentDeck;
110 SidebarDockingWindow* mpParentWindow;
111 ::boost::scoped_ptr<TabBar> mpTabBar;
112 cssu::Reference<css::frame::XFrame> mxFrame;
113 Context maCurrentContext;
114 ::rtl::OUString msCurrentDeckId;
115 ::rtl::OUString msCurrentDeckTitle;
116 AsynchronousCall maPropertyChangeForwarder;
117 bool mbIsDeckClosed;
118 /** Before the deck is closed the sidebar width is saved into this variable,
119 so that it can be restored when the deck is reopended.
120 */
121 sal_Int32 mnSavedSidebarWidth;
122 FocusManager maFocusManager;
119
120 DECL_LINK(WindowEventHandler, VclWindowEvent*);
121 void UpdateConfigurations (const Context& rContext);
122 bool ArePanelSetsEqual (
123 const SharedPanelContainer& rCurrentPanels,
124 const ResourceManager::PanelContextDescriptorContainer& rRequestedPanels);
125 cssu::Reference<css::ui::XUIElement> CreateUIElement (
126 const cssu::Reference<css::awt::XWindowPeer>& rxWindow,

--- 39 unchanged lines hidden ---
123
124 DECL_LINK(WindowEventHandler, VclWindowEvent*);
125 void UpdateConfigurations (const Context& rContext);
126 bool ArePanelSetsEqual (
127 const SharedPanelContainer& rCurrentPanels,
128 const ResourceManager::PanelContextDescriptorContainer& rRequestedPanels);
129 cssu::Reference<css::ui::XUIElement> CreateUIElement (
130 const cssu::Reference<css::awt::XWindowPeer>& rxWindow,

--- 39 unchanged lines hidden ---