LibreOffice Module sd (master) 1
ViewTabBarModule.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
26namespace com::sun::star::drawing::framework { class XConfigurationController; }
27namespace com::sun::star::drawing::framework { class XTabBar; }
28namespace com::sun::star::frame { class XController; }
29namespace sd { class DrawController; }
30
31namespace sd::framework {
32
34 css::drawing::framework::XConfigurationChangeListener
36
42{
43public:
53 const rtl::Reference<::sd::DrawController>& rxController,
54 const css::uno::Reference<
55 css::drawing::framework::XResourceId>& rxViewTabBarId);
56 virtual ~ViewTabBarModule() override;
57
58 virtual void disposing(std::unique_lock<std::mutex>&) override;
59
60 // XConfigurationChangeListener
61
62 virtual void SAL_CALL notifyConfigurationChange (
63 const css::drawing::framework::ConfigurationChangeEvent& rEvent) override;
64
65 // XEventListener
66
67 virtual void SAL_CALL disposing (
68 const css::lang::EventObject& rEvent) override;
69
70private:
71 css::uno::Reference<
72 css::drawing::framework::XConfigurationController> mxConfigurationController;
73 css::uno::Reference<css::drawing::framework::XResourceId> mxViewTabBarId;
74
79 void UpdateViewTabBar (
80 const css::uno::Reference<css::drawing::framework::XTabBar>& rxTabBar);
81};
82
83} // end of namespace sd::framework
84
85/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This module is responsible for showing the ViewTabBar above the view in the center pane.
virtual void disposing(std::unique_lock< std::mutex > &) override
css::uno::Reference< css::drawing::framework::XConfigurationController > mxConfigurationController
void UpdateViewTabBar(const css::uno::Reference< css::drawing::framework::XTabBar > &rxTabBar)
This is the place where the view tab bar is filled.
ViewTabBarModule(const rtl::Reference<::sd::DrawController > &rxController, const css::uno::Reference< css::drawing::framework::XResourceId > &rxViewTabBarId)
Create a new module that controls the view tab bar above the view in the specified pane.
virtual void SAL_CALL disposing(const css::lang::EventObject &rEvent) override
css::uno::Reference< css::drawing::framework::XResourceId > mxViewTabBarId
virtual void SAL_CALL notifyConfigurationChange(const css::drawing::framework::ConfigurationChangeEvent &rEvent) override
comphelper::WeakComponentImplHelper< css::drawing::framework::XConfigurationChangeListener > ViewTabBarModuleInterfaceBase