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_UNODECK_HXX
12 #define INCLUDED_SFX2_SIDEBAR_UNODECK_HXX
15 #include <com/sun/star/ui/XDeck.hpp>
17 #include <cppuhelper/implbase.hxx>
19 #include <sfx2/sidebar/ResourceManager.hxx>
21 namespace com::sun::star::frame
{ class XFrame
; }
22 namespace com::sun::star::ui
{ class XPanels
; }
23 namespace sfx2
{ namespace sidebar
{ class SidebarController
; } }
27 class SfxUnoDeck final
: public cppu::WeakImplHelper
<css::ui::XDeck
>
32 SfxUnoDeck(const css::uno::Reference
<css::frame::XFrame
>& , const OUString
&);
34 virtual OUString SAL_CALL
getId() override
;
36 virtual OUString SAL_CALL
getTitle() override
;
37 virtual void SAL_CALL
setTitle( const OUString
& newTitle
) override
;
39 virtual sal_Bool SAL_CALL
isActive() override
;
40 virtual void SAL_CALL
activate( const sal_Bool bActivate
) override
;
42 virtual css::uno::Reference
<css::ui::XPanels
> SAL_CALL
getPanels() override
;
44 virtual sal_Int32 SAL_CALL
getOrderIndex() override
;
45 virtual void SAL_CALL
setOrderIndex( const sal_Int32 newOrderIndex
) override
;
46 virtual void SAL_CALL
moveFirst() override
;
47 virtual void SAL_CALL
moveLast() override
;
48 virtual void SAL_CALL
moveUp() override
;
49 virtual void SAL_CALL
moveDown() override
;
53 const css::uno::Reference
<css::frame::XFrame
> xFrame
;
54 sfx2::sidebar::SidebarController
* getSidebarController();
56 const OUString mDeckId
;
58 sal_Int32
GetMaxOrderIndex(sfx2::sidebar::ResourceManager::DeckContextDescriptorContainer aDecks
);
59 sal_Int32
GetMinOrderIndex(sfx2::sidebar::ResourceManager::DeckContextDescriptorContainer aDecks
);
65 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */