LibreOffice Module sw (master) 1
vbacontentcontrollistentries.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 <ooo/vba/word/XContentControlListEntries.hpp>
12#include <ooo/vba/word/XContentControlListEntry.hpp>
13
15
17
20
23
25{
26private:
27 std::shared_ptr<SwContentControl> m_pCC;
28
29public:
31 SwVbaContentControlListEntries(const css::uno::Reference<ov::XHelperInterface>& xParent,
32 const css::uno::Reference<css::uno::XComponentContext>& xContext,
33 std::shared_ptr<SwContentControl> pCC);
34
35 // XContentControlListEntries
36 css::uno::Reference<ooo::vba::word::XContentControlListEntry> SAL_CALL
37 Add(const OUString& rName, const css::uno::Any& rValue, const css::uno::Any& rIndex) override;
38 void SAL_CALL Clear() override;
39 sal_Int32 SAL_CALL getCount() override;
40
41 // XEnumerationAccess
42 css::uno::Type SAL_CALL getElementType() override;
43 css::uno::Reference<css::container::XEnumeration> SAL_CALL createEnumeration() override;
44
45 // SwVbaContentControlListEntries_BASE
46 css::uno::Any createCollectionObject(const css::uno::Any& aSource) override;
47 OUString getServiceImplName() override;
48 css::uno::Sequence<OUString> getServiceNames() override;
49};
50
51/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::shared_ptr< SwContentControl > m_pCC
css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
SwVbaContentControlListEntries(const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, std::shared_ptr< SwContentControl > pCC)
DropDownLists and ComboBoxes contain a list of name/value pairs to choose from.
css::uno::Any createCollectionObject(const css::uno::Any &aSource) override
css::uno::Reference< ooo::vba::word::XContentControlListEntry > SAL_CALL Add(const OUString &rName, const css::uno::Any &rValue, const css::uno::Any &rIndex) override
css::uno::Sequence< OUString > getServiceNames() override
css::uno::Type SAL_CALL getElementType() override
CollTestImplHelper< ooo::vba::word::XContentControlListEntries > SwVbaContentControlListEntries_BASE