a11y: Simplify OCommonAccessibleComponent::getAccessibleIndexInParent
[LibreOffice.git] / sfx2 / inc / sidebar / UnoDecks.hxx
blobed7b5067900632fbd9e9a5b81c7022202da5bdd9
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
9 */
11 #pragma once
13 #include <com/sun/star/ui/XDecks.hpp>
15 #include <cppuhelper/implbase.hxx>
17 namespace com::sun::star::frame { class XFrame; }
18 namespace sfx2::sidebar { class SidebarController; }
20 /** get the decks
22 class SfxUnoDecks final : public cppu::WeakImplHelper<css::ui::XDecks>
25 public:
27 SfxUnoDecks(css::uno::Reference<css::frame::XFrame> );
29 // XNameAccess
31 virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) override;
33 virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override;
35 virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) override;
37 // XIndexAccess
39 virtual sal_Int32 SAL_CALL getCount() override;
41 virtual css::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) override;
43 // XElementAccess
44 virtual css::uno::Type SAL_CALL getElementType() override;
45 virtual sal_Bool SAL_CALL hasElements() override;
47 private:
49 const css::uno::Reference<css::frame::XFrame> xFrame;
50 sfx2::sidebar::SidebarController* getSidebarController();
54 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */