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 <com/sun/star/text/XTextDocument.hpp>
12 #include <ooo/vba/word/XContentControls.hpp>
14 #include <vbahelper/vbacollectionimpl.hxx>
16 typedef CollTestImplHelper
<ooo::vba::word::XContentControls
> SwVbaContentControls_BASE
;
18 class SwVbaContentControls
: public SwVbaContentControls_BASE
21 /// @throws css::uno::RuntimeException
22 SwVbaContentControls(const css::uno::Reference
<ov::XHelperInterface
>& xParent
,
23 const css::uno::Reference
<css::uno::XComponentContext
>& xContext
,
24 const css::uno::Reference
<css::text::XTextDocument
>& xTextDocument
,
25 const OUString
& rTag
, const OUString
& rTitle
);
28 //css::uno::Reference<ooo::vba::word::XContentControl> SAL_CALL Add(const css::uno::Any& Type, const css::uno::Any& Range) override;
31 css::uno::Type SAL_CALL
getElementType() override
;
32 css::uno::Reference
<css::container::XEnumeration
> SAL_CALL
createEnumeration() override
;
34 // SwVbaContentControls_BASE
35 css::uno::Any
createCollectionObject(const css::uno::Any
& aSource
) override
;
36 OUString
getServiceImplName() override
;
37 css::uno::Sequence
<OUString
> getServiceNames() override
;
40 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */