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/XContentControlListEntry.hpp>
13 #include <vbahelper/vbahelperinterface.hxx>
15 #include <textcontentcontrol.hxx>
17 typedef InheritedHelperInterfaceWeakImpl
<ooo::vba::word::XContentControlListEntry
>
18 SwVbaContentControlListEntry_BASE
;
20 class SwVbaContentControlListEntry
: public SwVbaContentControlListEntry_BASE
23 std::shared_ptr
<SwContentControl
> m_pCC
;
24 // All LO and internal UNO functions are 0-based. Convert to 1-based when sending to VBA
28 /// @throws css::uno::RuntimeException
29 SwVbaContentControlListEntry(const css::uno::Reference
<ooo::vba::XHelperInterface
>& rParent
,
30 const css::uno::Reference
<css::uno::XComponentContext
>& rContext
,
31 std::shared_ptr
<SwContentControl
> pCC
, size_t nZIndex
);
32 ~SwVbaContentControlListEntry() override
;
34 // XContentControlListEntry
35 sal_Int32 SAL_CALL
getIndex() override
;
36 void SAL_CALL
setIndex(sal_Int32 nSet
) override
;
38 OUString SAL_CALL
getText() override
;
39 void SAL_CALL
setText(const OUString
& sSet
) override
;
41 OUString SAL_CALL
getValue() override
;
42 void SAL_CALL
setValue(const OUString
& sSet
) override
;
44 void SAL_CALL
Delete() override
;
45 void SAL_CALL
MoveDown() override
;
46 void SAL_CALL
MoveUp() override
;
47 void SAL_CALL
Select() override
;
50 OUString
getServiceImplName() override
;
51 css::uno::Sequence
<OUString
> getServiceNames() override
;
54 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */