LibreOffice Module sfx2 (master) 1
UnoSidebar.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 */
10
11#ifndef INCLUDED_SFX2_SIDEBAR_SIDEBAR_HXX
12#define INCLUDED_SFX2_SIDEBAR_SIDEBAR_HXX
13
14#include <com/sun/star/ui/XSidebarProvider.hpp>
15
17
18namespace com::sun::star::frame { class XFrame; }
19namespace com::sun::star::ui { class XDecks; }
20namespace com::sun::star::ui { class XSidebar; }
21namespace sfx2::sidebar { class SidebarController; }
22
25class SfxUnoSidebar final : public cppu::WeakImplHelper<css::ui::XSidebarProvider>
26{
27
28private:
29
30 const css::uno::Reference<css::frame::XFrame> xFrame;
32
33public:
34
35 SfxUnoSidebar(css::uno::Reference<css::frame::XFrame> );
36
37 virtual void SAL_CALL showDecks (const sal_Bool bVisible) override;
38
39
40 virtual void SAL_CALL setVisible (const sal_Bool bVisible) override;
41
42 virtual sal_Bool SAL_CALL isVisible() override;
43
44 virtual css::uno::Reference<css::frame::XFrame> SAL_CALL getFrame() override;
45
46 virtual css::uno::Reference<css::ui::XDecks> SAL_CALL getDecks() override;
47
48 virtual css::uno::Reference<css::ui::XSidebar> SAL_CALL getSidebar() override;
49
50};
51
52#endif
53
54/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
get the sidebar for a given frame
Definition: UnoSidebar.hxx:26
virtual void SAL_CALL setVisible(const sal_Bool bVisible) override
Definition: UnoSidebar.cxx:52
virtual sal_Bool SAL_CALL isVisible() override
Definition: UnoSidebar.cxx:67
SfxUnoSidebar(css::uno::Reference< css::frame::XFrame >)
Definition: UnoSidebar.cxx:27
virtual css::uno::Reference< css::ui::XDecks > SAL_CALL getDecks() override
Definition: UnoSidebar.cxx:86
virtual css::uno::Reference< css::frame::XFrame > SAL_CALL getFrame() override
Definition: UnoSidebar.cxx:76
sfx2::sidebar::SidebarController * getSidebarController()
Definition: UnoSidebar.cxx:32
const css::uno::Reference< css::frame::XFrame > xFrame
Definition: UnoSidebar.hxx:30
virtual css::uno::Reference< css::ui::XSidebar > SAL_CALL getSidebar() override
Definition: UnoSidebar.cxx:94
virtual void SAL_CALL showDecks(const sal_Bool bVisible) override
Definition: UnoSidebar.cxx:37
unsigned char sal_Bool