LibreOffice Module sd (master) 1
BasicToolBarFactory.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/lang/XInitialization.hpp>
23#include <com/sun/star/drawing/framework/XResourceFactory.hpp>
25#include <rtl/ref.hxx>
26
27namespace com::sun::star::frame { class XController; }
28namespace com::sun::star::drawing::framework { class XResourceId; }
29namespace com::sun::star::drawing::framework { class XConfigurationController; }
30namespace sd { class DrawController; }
31
32namespace sd::framework {
33
35 css::drawing::framework::XResourceFactory,
36 css::lang::XEventListener
38
44{
45public:
47 virtual ~BasicToolBarFactory() override;
48
49 virtual void disposing(std::unique_lock<std::mutex>&) override;
50
51 // ToolBarFactory
52
53 virtual css::uno::Reference<css::drawing::framework::XResource> SAL_CALL
55 const css::uno::Reference<
56 css::drawing::framework::XResourceId>& rxToolBarId) override;
57
58 virtual void SAL_CALL
60 const css::uno::Reference<css::drawing::framework::XResource>&
61 rxToolBar) override;
62
63 // lang::XEventListener
64
65 virtual void SAL_CALL disposing (
66 const css::lang::EventObject& rEventObject) override;
67
68private:
69 css::uno::Reference<css::drawing::framework::XConfigurationController> mxConfigurationController;
71
72 void Shutdown();
73
75 void ThrowIfDisposed() const;
76};
77
78} // end of namespace sd::framework
79
80/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This factory provides some of the frequently used tool bars: private:resource/toolbar/ViewTabBar.
virtual void disposing(std::unique_lock< std::mutex > &) override
css::uno::Reference< css::drawing::framework::XConfigurationController > mxConfigurationController
rtl::Reference<::sd::DrawController > mxController
virtual void SAL_CALL disposing(const css::lang::EventObject &rEventObject) override
BasicToolBarFactory(const rtl::Reference<::sd::DrawController > &rxController)
virtual css::uno::Reference< css::drawing::framework::XResource > SAL_CALL createResource(const css::uno::Reference< css::drawing::framework::XResourceId > &rxToolBarId) override
virtual void SAL_CALL releaseResource(const css::uno::Reference< css::drawing::framework::XResource > &rxToolBar) override
comphelper::WeakComponentImplHelper< css::drawing::framework::XResourceFactory, css::lang::XEventListener > BasicToolBarFactoryInterfaceBase