1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
11 #include <ooo/vba/word/XContentControlListEntries.hpp>
12 #include <ooo/vba/word/XContentControlListEntry.hpp>
14 #include <vbahelper/vbacollectionimpl.hxx>
16 #include <textcontentcontrol.hxx>
18 #include "vbacontentcontrollistentries.hxx"
19 #include "vbacontentcontrollistentry.hxx"
21 typedef CollTestImplHelper
<ooo::vba::word::XContentControlListEntries
>
22 SwVbaContentControlListEntries_BASE
;
24 class SwVbaContentControlListEntries
: public SwVbaContentControlListEntries_BASE
27 std::shared_ptr
<SwContentControl
> m_pCC
;
30 /// @throws css::uno::RuntimeException
31 SwVbaContentControlListEntries(const css::uno::Reference
<ov::XHelperInterface
>& xParent
,
32 const css::uno::Reference
<css::uno::XComponentContext
>& xContext
,
33 std::shared_ptr
<SwContentControl
> pCC
);
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
;
42 css::uno::Type SAL_CALL
getElementType() override
;
43 css::uno::Reference
<css::container::XEnumeration
> SAL_CALL
createEnumeration() override
;
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
;
51 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */