LibreOffice Module sfx2 (master) 1
UnoDeck.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#pragma once
12
13
14#include <com/sun/star/ui/XDeck.hpp>
15
17
19
20namespace com::sun::star::frame { class XFrame; }
21namespace com::sun::star::ui { class XPanels; }
22namespace sfx2::sidebar { class SidebarController; }
23
26class SfxUnoDeck final : public cppu::WeakImplHelper<css::ui::XDeck>
27{
28
29public:
30
31 SfxUnoDeck(css::uno::Reference<css::frame::XFrame>, OUString );
32
33 virtual OUString SAL_CALL getId() override;
34
35 virtual OUString SAL_CALL getTitle() override;
36 virtual void SAL_CALL setTitle( const OUString& newTitle ) override;
37
38 virtual sal_Bool SAL_CALL isActive() override;
39 virtual void SAL_CALL activate( const sal_Bool bActivate ) override;
40
41 virtual css::uno::Reference<css::ui::XPanels> SAL_CALL getPanels() override;
42
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;
49
50private:
51
52 const css::uno::Reference<css::frame::XFrame> xFrame;
54
55 const OUString mDeckId;
56
59
60};
61
62/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
get the decks
Definition: UnoDeck.hxx:27
sal_Int32 GetMaxOrderIndex(const sfx2::sidebar::ResourceManager::DeckContextDescriptorContainer &rDecks)
Definition: UnoDeck.cxx:267
virtual void SAL_CALL moveLast() override
Definition: UnoDeck.cxx:166
virtual void SAL_CALL moveDown() override
Definition: UnoDeck.cxx:220
const OUString mDeckId
Definition: UnoDeck.hxx:55
virtual void SAL_CALL activate(const sal_Bool bActivate) override
Definition: UnoDeck.cxx:93
SfxUnoDeck(css::uno::Reference< css::frame::XFrame >, OUString)
Definition: UnoDeck.cxx:27
virtual sal_Int32 SAL_CALL getOrderIndex() override
Definition: UnoDeck.cxx:119
virtual css::uno::Reference< css::ui::XPanels > SAL_CALL getPanels() override
Definition: UnoDeck.cxx:111
virtual OUString SAL_CALL getTitle() override
Definition: UnoDeck.cxx:45
virtual void SAL_CALL setTitle(const OUString &newTitle) override
Definition: UnoDeck.cxx:62
virtual sal_Bool SAL_CALL isActive() override
Definition: UnoDeck.cxx:84
const css::uno::Reference< css::frame::XFrame > xFrame
Definition: UnoDeck.hxx:52
sfx2::sidebar::SidebarController * getSidebarController()
Definition: UnoDeck.cxx:33
virtual void SAL_CALL moveUp() override
Definition: UnoDeck.cxx:189
sal_Int32 GetMinOrderIndex(const sfx2::sidebar::ResourceManager::DeckContextDescriptorContainer &rDecks)
Definition: UnoDeck.cxx:251
virtual void SAL_CALL moveFirst() override
Definition: UnoDeck.cxx:143
virtual OUString SAL_CALL getId() override
Definition: UnoDeck.cxx:38
virtual void SAL_CALL setOrderIndex(const sal_Int32 newOrderIndex) override
Definition: UnoDeck.cxx:128
std::vector< DeckContextDescriptor > DeckContextDescriptorContainer
unsigned char sal_Bool