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/.
14 #include <com/sun/star/ui/XDeck.hpp>
16 #include <cppuhelper/implbase.hxx>
18 #include <sfx2/sidebar/ResourceManager.hxx>
20 namespace com::sun::star::frame
{ class XFrame
; }
21 namespace com::sun::star::ui
{ class XPanels
; }
22 namespace sfx2::sidebar
{ class SidebarController
; }
26 class SfxUnoDeck final
: public cppu::WeakImplHelper
<css::ui::XDeck
>
31 SfxUnoDeck(css::uno::Reference
<css::frame::XFrame
>, OUString
);
33 virtual OUString SAL_CALL
getId() override
;
35 virtual OUString SAL_CALL
getTitle() override
;
36 virtual void SAL_CALL
setTitle( const OUString
& newTitle
) override
;
38 virtual sal_Bool SAL_CALL
isActive() override
;
39 virtual void SAL_CALL
activate( const sal_Bool bActivate
) override
;
41 virtual css::uno::Reference
<css::ui::XPanels
> SAL_CALL
getPanels() override
;
43 virtual sal_Int32 SAL_CALL
getOrderIndex() override
;
44 virtual void SAL_CALL
setOrderIndex( const sal_Int32 newOrderIndex
) override
;
45 virtual void SAL_CALL
moveFirst() override
;
46 virtual void SAL_CALL
moveLast() override
;
47 virtual void SAL_CALL
moveUp() override
;
48 virtual void SAL_CALL
moveDown() override
;
52 const css::uno::Reference
<css::frame::XFrame
> xFrame
;
53 sfx2::sidebar::SidebarController
* getSidebarController();
55 const OUString mDeckId
;
57 sal_Int32
GetMaxOrderIndex(const sfx2::sidebar::ResourceManager::DeckContextDescriptorContainer
& rDecks
);
58 sal_Int32
GetMinOrderIndex(const sfx2::sidebar::ResourceManager::DeckContextDescriptorContainer
& rDecks
);
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */