1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
9 * This file incorporates work covered by the following license notice:
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 .
22 #include <com/sun/star/drawing/framework/XConfigurationChangeListener.hpp>
23 #include <comphelper/compbase.hxx>
24 #include <rtl/ref.hxx>
26 namespace com::sun::star::drawing::framework
{ class XConfigurationController
; }
27 namespace com::sun::star::drawing::framework
{ class XTabBar
; }
28 namespace com::sun::star::frame
{ class XController
; }
29 namespace sd
{ class DrawController
; }
31 namespace sd::framework
{
33 typedef comphelper::WeakComponentImplHelper
<
34 css::drawing::framework::XConfigurationChangeListener
35 > ViewTabBarModuleInterfaceBase
;
37 /** This module is responsible for showing the ViewTabBar above the view in
40 class ViewTabBarModule
41 : public ViewTabBarModuleInterfaceBase
44 /** Create a new module that controls the view tab bar above the view
45 in the specified pane.
47 This is the access point to the drawing framework.
49 This ResourceId specifies which tab bar is to be managed by the
53 const rtl::Reference
<::sd::DrawController
>& rxController
,
54 const css::uno::Reference
<
55 css::drawing::framework::XResourceId
>& rxViewTabBarId
);
56 virtual ~ViewTabBarModule() override
;
58 virtual void disposing(std::unique_lock
<std::mutex
>&) override
;
60 // XConfigurationChangeListener
62 virtual void SAL_CALL
notifyConfigurationChange (
63 const css::drawing::framework::ConfigurationChangeEvent
& rEvent
) override
;
67 virtual void SAL_CALL
disposing (
68 const css::lang::EventObject
& rEvent
) override
;
72 css::drawing::framework::XConfigurationController
> mxConfigurationController
;
73 css::uno::Reference
<css::drawing::framework::XResourceId
> mxViewTabBarId
;
75 /** This is the place where the view tab bar is filled. Only missing
76 buttons are added, so it is safe to call this method multiple
79 void UpdateViewTabBar (
80 const css::uno::Reference
<css::drawing::framework::XTabBar
>& rxTabBar
);
83 } // end of namespace sd::framework
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */