LibreOffice Module sfx2 (master) 1
UnoDecks.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#include <com/sun/star/ui/XDecks.hpp>
14
16
17namespace com::sun::star::frame { class XFrame; }
18namespace sfx2::sidebar { class SidebarController; }
19
22class SfxUnoDecks final : public cppu::WeakImplHelper<css::ui::XDecks>
23{
24
25public:
26
27 SfxUnoDecks(css::uno::Reference<css::frame::XFrame> );
28
29// XNameAccess
30
31 virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) override;
32
33 virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override;
34
35 virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) override;
36
37// XIndexAccess
38
39 virtual sal_Int32 SAL_CALL getCount() override;
40
41 virtual css::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) override;
42
43// XElementAccess
44 virtual css::uno::Type SAL_CALL getElementType() override;
45 virtual sal_Bool SAL_CALL hasElements() override;
46
47private:
48
49 const css::uno::Reference<css::frame::XFrame> xFrame;
51
52};
53
54/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
struct _ADOIndex Index
get the decks
Definition: UnoDecks.hxx:23
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 Index) override
Definition: UnoDecks.cxx:114
virtual css::uno::Type SAL_CALL getElementType() override
Definition: UnoDecks.cxx:131
virtual css::uno::Any SAL_CALL getByName(const OUString &aName) override
Definition: UnoDecks.cxx:40
virtual sal_Bool SAL_CALL hasByName(const OUString &aName) override
Definition: UnoDecks.cxx:78
sfx2::sidebar::SidebarController * getSidebarController()
Definition: UnoDecks.cxx:33
const css::uno::Reference< css::frame::XFrame > xFrame
Definition: UnoDecks.hxx:49
virtual sal_Bool SAL_CALL hasElements() override
Definition: UnoDecks.cxx:136
virtual sal_Int32 SAL_CALL getCount() override
Definition: UnoDecks.cxx:106
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
Definition: UnoDecks.cxx:52
SfxUnoDecks(css::uno::Reference< css::frame::XFrame >)
Definition: UnoDecks.cxx:28
OUString aName
unsigned char sal_Bool