Move setting of LD_LIBRARY_PATH closer to invocation of cppunittester
[LibreOffice.git] / sd / source / ui / framework / module / NotesPaneModule.hxx
blob229b61e71a890876a0887a4e13dd8857b41f0c80
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 #pragma once
11 #include <com/sun/star/drawing/framework/XConfigurationChangeListener.hpp>
12 #include <comphelper/compbase.hxx>
13 #include <rtl/ref.hxx>
14 #include <tools/link.hxx>
15 #include <set>
17 namespace com::sun::star::drawing::framework
19 class XConfigurationController;
20 class XView;
22 namespace com::sun::star::frame
24 class XController;
26 namespace sd
28 class DrawController;
29 class ViewShellBase;
31 namespace sd::tools
33 class EventMultiplexerEvent;
36 namespace sd::framework
38 /** This module is responsible for handling visibility of NotesPane across modes
40 class NotesPaneModule : public comphelper::WeakComponentImplHelper<
41 css::drawing::framework::XConfigurationChangeListener>
43 public:
44 /** Create a new module that controls the view tab bar above the view
45 in the specified pane.
46 @param rxController
47 This is the access point to the drawing framework.
49 NotesPaneModule(const rtl::Reference<::sd::DrawController>& rxController);
50 virtual ~NotesPaneModule() override;
52 void AddActiveMainView(const OUString& rsMainViewURL);
53 bool IsResourceActive(const OUString& rsMainViewURL);
54 void SaveResourceState();
56 virtual void disposing(std::unique_lock<std::mutex>&) override;
58 // XConfigurationChangeListener
60 virtual void SAL_CALL notifyConfigurationChange(
61 const css::drawing::framework::ConfigurationChangeEvent& rEvent) override;
63 // XEventListener
65 virtual void SAL_CALL disposing(const css::lang::EventObject& rEvent) override;
67 private:
68 css::uno::Reference<css::drawing::framework::XConfigurationController>
69 mxConfigurationController;
71 css::uno::Reference<css::drawing::framework::XResourceId> mxBottomImpressPaneId;
72 css::uno::Reference<css::drawing::framework::XResourceId> mxMainViewAnchorId;
74 std::set<OUString> maActiveMainViewContainer;
75 OUString msCurrentMainViewURL;
76 ViewShellBase* mpViewShellBase = nullptr;
77 bool mbListeningEventMultiplexer = false;
78 bool mbInMasterEditMode = false;
80 void onMainViewSwitch(const OUString& rsViewURL, const bool bIsActivated);
81 void onResourceRequest(
82 bool bActivation,
83 const css::uno::Reference<css::drawing::framework::XConfiguration>& rxConfiguration);
84 bool IsMasterView(const css::uno::Reference<css::drawing::framework::XView>& xView);
86 DECL_LINK(EventMultiplexerListener, ::sd::tools::EventMultiplexerEvent&, void);
89 } // end of namespace sd::framework
91 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */