LibreOffice Module sd (master) 1
BasicPaneFactory.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/XResourceFactory.hpp>
23#include <com/sun/star/drawing/framework/XConfigurationChangeListener.hpp>
24#include <com/sun/star/lang/XInitialization.hpp>
27#include <rtl/ref.hxx>
28
29#include <memory>
30
31namespace com::sun::star::drawing::framework { class XConfigurationController; }
32namespace com::sun::star::uno { class XComponentContext; }
33
34namespace sd {
35class DrawController;
36class ViewShellBase;
37}
38
39namespace sd::framework {
40
42 css::drawing::framework::XResourceFactory,
43 css::drawing::framework::XConfigurationChangeListener
45
56{
57public:
58 explicit BasicPaneFactory (
59 const css::uno::Reference<css::uno::XComponentContext>& rxContext,
60 const rtl::Reference<::sd::DrawController>& rxController);
61 virtual ~BasicPaneFactory() override;
62
63 virtual void disposing(std::unique_lock<std::mutex>&) override;
64
65 // XResourceFactory
66
67 virtual css::uno::Reference<css::drawing::framework::XResource>
68 SAL_CALL createResource (
69 const css::uno::Reference<css::drawing::framework::XResourceId>& rxPaneId) override;
70
71 virtual void SAL_CALL
73 const css::uno::Reference<css::drawing::framework::XResource>& rxPane) override;
74
75 // XConfigurationChangeListener
76
77 virtual void SAL_CALL notifyConfigurationChange (
78 const css::drawing::framework::ConfigurationChangeEvent& rEvent) override;
79
80 // lang::XEventListener
81
82 virtual void SAL_CALL disposing (
83 const css::lang::EventObject& rEventObject) override;
84
85private:
86 css::uno::Reference<css::uno::XComponentContext> mxComponentContext;
87 css::uno::WeakReference<css::drawing::framework::XConfigurationController>
90 class PaneDescriptor;
91 class PaneContainer;
92 std::unique_ptr<PaneContainer> mpPaneContainer;
93
99 css::uno::Reference<css::drawing::framework::XResource>
101 const css::uno::Reference<css::drawing::framework::XResourceId>& rxPaneId);
102
106 css::uno::Reference<css::drawing::framework::XResource>
108 const css::uno::Reference<css::uno::XComponentContext>& rxComponentContext,
109 const css::uno::Reference<css::drawing::framework::XResourceId>& rxPaneId);
110
115 css::uno::Reference<css::drawing::framework::XResource>
117 const css::uno::Reference<
118 css::drawing::framework::XResourceId>& rxPaneId,
119 const PaneDescriptor& rDescriptor);
120
122 void ThrowIfDisposed() const;
123};
124
125} // end of namespace sd::framework
126
127/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SfxViewShell descendant that the stacked Draw/Impress shells are based on.
Store URL, XPane reference and (local) PaneId for every pane factory that is registered at the PaneCo...
This factory provides the frequently used standard panes private:resource/pane/CenterPane private:res...
css::uno::Reference< css::drawing::framework::XResource > CreateFrameWindowPane(const css::uno::Reference< css::drawing::framework::XResourceId > &rxPaneId)
Create a new instance of FrameWindowPane.
css::uno::WeakReference< css::drawing::framework::XConfigurationController > mxConfigurationControllerWeak
std::unique_ptr< PaneContainer > mpPaneContainer
virtual void SAL_CALL disposing(const css::lang::EventObject &rEventObject) override
virtual css::uno::Reference< css::drawing::framework::XResource > SAL_CALL createResource(const css::uno::Reference< css::drawing::framework::XResourceId > &rxPaneId) override
css::uno::Reference< css::drawing::framework::XResource > CreateFullScreenPane(const css::uno::Reference< css::uno::XComponentContext > &rxComponentContext, const css::uno::Reference< css::drawing::framework::XResourceId > &rxPaneId)
Create a new pane that represents the center pane in full screen mode.
virtual void SAL_CALL releaseResource(const css::uno::Reference< css::drawing::framework::XResource > &rxPane) override
virtual void SAL_CALL notifyConfigurationChange(const css::drawing::framework::ConfigurationChangeEvent &rEvent) override
BasicPaneFactory(const css::uno::Reference< css::uno::XComponentContext > &rxContext, const rtl::Reference<::sd::DrawController > &rxController)
css::uno::Reference< css::drawing::framework::XResource > CreateChildWindowPane(const css::uno::Reference< css::drawing::framework::XResourceId > &rxPaneId, const PaneDescriptor &rDescriptor)
Create a new instance of ChildWindowPane.
virtual void disposing(std::unique_lock< std::mutex > &) override
css::uno::Reference< css::uno::XComponentContext > mxComponentContext
comphelper::WeakComponentImplHelper< css::drawing::framework::XResourceFactory, css::drawing::framework::XConfigurationChangeListener > BasicPaneFactoryInterfaceBase