LibreOffice Module sd (master) 1
SlideSorterModule.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include <com/sun/star/drawing/framework/XConfigurationChangeListener.hpp>
24#include <rtl/ref.hxx>
25#include <memory>
26#include <set>
27
28namespace com::sun::star::drawing::framework { class XConfigurationController; }
29namespace com::sun::star::drawing::framework { class XControllerManager; }
30namespace com::sun::star::drawing::framework { class XTabBar; }
31namespace com::sun::star::frame { class XController; }
32namespace sd { class DrawController; }
33
34namespace sd::framework {
35
37 css::drawing::framework::XConfigurationChangeListener
39
51{
52public:
54 const rtl::Reference<::sd::DrawController>& rxController,
55 const OUString& rsLeftPaneURL);
56 virtual ~SlideSorterModule() override;
57
61 void AddActiveMainView (const OUString& rsMainViewURL);
62 bool IsResourceActive (const OUString& rsMainViewURL);
63 void SaveResourceState();
64
65 virtual void disposing(std::unique_lock<std::mutex>&) override;
66
67 // XConfigurationChangeListener
68 virtual void SAL_CALL notifyConfigurationChange (
69 const css::drawing::framework::ConfigurationChangeEvent& rEvent) override;
70
71 // XEventListener
72 virtual void SAL_CALL disposing (
73 const css::lang::EventObject& rEvent) override;
74
75private:
76 css::uno::Reference<css::drawing::framework::XConfigurationController>
78 ::std::set<OUString> maActiveMainViewContainer;
80 css::uno::Reference<css::drawing::framework::XResourceId> mxResourceId;
82 css::uno::Reference<css::drawing::framework::XResourceId> mxMainViewAnchorId;
84 css::uno::Reference<css::drawing::framework::XResourceId> mxViewTabBarId;
86
88 const OUString& rsViewURL,
89 const bool bIsActivated);
91 bool bActivation,
92 const css::uno::Reference<css::drawing::framework::XConfiguration>& rxConfiguration);
93 void UpdateViewTabBar (
94 const css::uno::Reference<css::drawing::framework::XTabBar>& rxViewTabBar);
95};
96
97} // end of namespace sd::framework
98
99/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This module is responsible for showing the slide sorter bar and the slide sorter view in the center p...
virtual void disposing(std::unique_lock< std::mutex > &) override
css::uno::Reference< css::drawing::framework::XResourceId > mxMainViewAnchorId
The anchor of the main view.
rtl::Reference<::sd::DrawController > mxControllerManager
virtual void SAL_CALL disposing(const css::lang::EventObject &rEvent) override
css::uno::Reference< css::drawing::framework::XConfigurationController > mxConfigurationController
css::uno::Reference< css::drawing::framework::XResourceId > mxResourceId
The resource managed by this class.
virtual void SAL_CALL notifyConfigurationChange(const css::drawing::framework::ConfigurationChangeEvent &rEvent) override
void AddActiveMainView(const OUString &rsMainViewURL)
Remember the given URL as one of a center pane view for which to activate the resource managed by the...
SlideSorterModule(const rtl::Reference<::sd::DrawController > &rxController, const OUString &rsLeftPaneURL)
void HandleMainViewSwitch(const OUString &rsViewURL, const bool bIsActivated)
css::uno::Reference< css::drawing::framework::XResourceId > mxViewTabBarId
bool IsResourceActive(const OUString &rsMainViewURL)
void HandleResourceRequest(bool bActivation, const css::uno::Reference< css::drawing::framework::XConfiguration > &rxConfiguration)
::std::set< OUString > maActiveMainViewContainer
void UpdateViewTabBar(const css::uno::Reference< css::drawing::framework::XTabBar > &rxViewTabBar)
comphelper::WeakComponentImplHelper< css::drawing::framework::XConfigurationChangeListener > SlideSorterModuleBase