LibreOffice Module sfx2 (master) 1
UnoPanels.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#pragma once
10
11
12#include <com/sun/star/ui/XPanels.hpp>
13
15
16namespace com::sun::star::frame { class XFrame; }
17namespace sfx2::sidebar { class SidebarController; }
18
21class SfxUnoPanels final : public cppu::WeakImplHelper<css::ui::XPanels>
22{
23
24public:
25
26 SfxUnoPanels(css::uno::Reference<css::frame::XFrame>, const OUString&);
27
28// XPanels
29 virtual OUString SAL_CALL getDeckId() override;
30
31// XNameAccess
32
33 virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) override;
34
35 virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override;
36
37 virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) override;
38
39// XIndexAccess
40
41 virtual sal_Int32 SAL_CALL getCount() override;
42
43 virtual css::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) override;
44
45// XElementAccess
46 virtual css::uno::Type SAL_CALL getElementType() override;
47 virtual sal_Bool SAL_CALL hasElements() override;
48
49private:
50
51 const css::uno::Reference<css::frame::XFrame> xFrame;
53 const OUString& mDeckId;
54
55};
56
57/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
struct _ADOIndex Index
get the decks
Definition: UnoPanels.hxx:22
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
Definition: UnoPanels.cxx:60
const css::uno::Reference< css::frame::XFrame > xFrame
Definition: UnoPanels.hxx:51
virtual sal_Bool SAL_CALL hasElements() override
Definition: UnoPanels.cxx:148
virtual css::uno::Any SAL_CALL getByName(const OUString &aName) override
Definition: UnoPanels.cxx:48
sfx2::sidebar::SidebarController * getSidebarController()
Definition: UnoPanels.cxx:34
SfxUnoPanels(css::uno::Reference< css::frame::XFrame >, const OUString &)
Definition: UnoPanels.cxx:28
virtual sal_Int32 SAL_CALL getCount() override
Definition: UnoPanels.cxx:117
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 Index) override
Definition: UnoPanels.cxx:125
virtual css::uno::Type SAL_CALL getElementType() override
Definition: UnoPanels.cxx:143
virtual sal_Bool SAL_CALL hasByName(const OUString &aName) override
Definition: UnoPanels.cxx:86
const OUString & mDeckId
Definition: UnoPanels.hxx:53
virtual OUString SAL_CALL getDeckId() override
Definition: UnoPanels.cxx:39
OUString aName
unsigned char sal_Bool