LibreOffice Module comphelper (master) 1
indexedpropertyvalues.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#include <sal/config.h>
12#include <com/sun/star/beans/PropertyValue.hpp>
13#include <com/sun/star/container/XIndexContainer.hpp>
14#include <com/sun/star/lang/XServiceInfo.hpp>
15#include <com/sun/star/uno/Sequence.h>
18#include <vector>
19
20namespace comphelper
21{
22typedef std::vector<css::uno::Sequence<css::beans::PropertyValue>> IndexedPropertyValues;
23
25 : public cppu::WeakImplHelper<css::container::XIndexContainer, css::lang::XServiceInfo>
26{
27public:
29
30 // XIndexContainer
31 virtual void SAL_CALL insertByIndex(sal_Int32 nIndex, const css::uno::Any& aElement) override;
32 virtual void SAL_CALL removeByIndex(sal_Int32 nIndex) override;
33
34 // XIndexReplace
35 virtual void SAL_CALL replaceByIndex(sal_Int32 nIndex, const css::uno::Any& aElement) override;
36
37 // XIndexAccess
38 virtual sal_Int32 SAL_CALL getCount() override;
39 virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override;
40
41 // XElementAccess
42 virtual css::uno::Type SAL_CALL getElementType() override;
43 virtual sal_Bool SAL_CALL hasElements() override;
44
45 //XServiceInfo
46 virtual OUString SAL_CALL getImplementationName() override;
47 virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
48 virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
49
50private:
52};
53}
54
55/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define COMPHELPER_DLLPUBLIC
sal_Int32 nIndex
std::vector< css::uno::Sequence< css::beans::PropertyValue > > IndexedPropertyValues
css::uno::Sequence< OUString > getSupportedServiceNames()
OUString getImplementationName()
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
unsigned char sal_Bool