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/.
11 #ifndef INCLUDED_SFX2_SIDEBAR_SIDEBAR_HXX
12 #define INCLUDED_SFX2_SIDEBAR_SIDEBAR_HXX
14 #include <com/sun/star/ui/XSidebarProvider.hpp>
16 #include <cppuhelper/implbase.hxx>
18 namespace com::sun::star::frame
{ class XFrame
; }
19 namespace com::sun::star::ui
{ class XDecks
; }
20 namespace com::sun::star::ui
{ class XSidebar
; }
21 namespace sfx2::sidebar
{ class SidebarController
; }
23 /** get the sidebar for a given frame
25 class SfxUnoSidebar final
: public cppu::WeakImplHelper
<css::ui::XSidebarProvider
>
30 const css::uno::Reference
<css::frame::XFrame
> xFrame
;
31 sfx2::sidebar::SidebarController
* getSidebarController();
35 SfxUnoSidebar(const css::uno::Reference
<css::frame::XFrame
>&);
37 virtual void SAL_CALL
showDecks (const sal_Bool bVisible
) override
;
40 virtual void SAL_CALL
setVisible (const sal_Bool bVisible
) override
;
42 virtual sal_Bool SAL_CALL
isVisible() override
;
44 virtual css::uno::Reference
<css::frame::XFrame
> SAL_CALL
getFrame() override
;
46 virtual css::uno::Reference
<css::ui::XDecks
> SAL_CALL
getDecks() override
;
48 virtual css::uno::Reference
<css::ui::XSidebar
> SAL_CALL
getSidebar() override
;
54 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */