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_DECKS_HXX
12 #define INCLUDED_SFX2_SIDEBAR_DECKS_HXX
15 #include <com/sun/star/ui/XDecks.hpp>
17 #include <cppuhelper/implbase.hxx>
19 namespace com::sun::star::frame
{ class XFrame
; }
20 namespace sfx2
{ namespace sidebar
{ class SidebarController
; } }
24 class SfxUnoDecks final
: public cppu::WeakImplHelper
<css::ui::XDecks
>
29 SfxUnoDecks(const css::uno::Reference
<css::frame::XFrame
>&);
33 virtual css::uno::Any SAL_CALL
getByName( const OUString
& aName
) override
;
35 virtual css::uno::Sequence
< OUString
> SAL_CALL
getElementNames() override
;
37 virtual sal_Bool SAL_CALL
hasByName( const OUString
& aName
) override
;
41 virtual sal_Int32 SAL_CALL
getCount() override
;
43 virtual css::uno::Any SAL_CALL
getByIndex( sal_Int32 Index
) override
;
46 virtual css::uno::Type SAL_CALL
getElementType() override
;
47 virtual sal_Bool SAL_CALL
hasElements() override
;
51 const css::uno::Reference
<css::frame::XFrame
> xFrame
;
52 sfx2::sidebar::SidebarController
* getSidebarController();
58 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */