LibreOffice Module sw (master) 1
vbacontentcontrollistentry.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/XContentControlListEntry.hpp>
12
14
16
19
21{
22private:
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
25 size_t m_nZIndex;
26
27public:
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);
33
34 // XContentControlListEntry
35 sal_Int32 SAL_CALL getIndex() override;
36 void SAL_CALL setIndex(sal_Int32 nSet) override;
37
38 OUString SAL_CALL getText() override;
39 void SAL_CALL setText(const OUString& sSet) override;
40
41 OUString SAL_CALL getValue() override;
42 void SAL_CALL setValue(const OUString& sSet) override;
43
44 void SAL_CALL Delete() override;
45 void SAL_CALL MoveDown() override;
46 void SAL_CALL MoveUp() override;
47 void SAL_CALL Select() override;
48
49 // XHelperInterface
50 OUString getServiceImplName() override;
51 css::uno::Sequence<OUString> getServiceNames() override;
52};
53
54/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void SAL_CALL setText(const OUString &sSet) override
css::uno::Sequence< OUString > getServiceNames() override
sal_Int32 SAL_CALL getIndex() override
OUString SAL_CALL getText() override
void SAL_CALL setIndex(sal_Int32 nSet) override
OUString SAL_CALL getValue() override
SwVbaContentControlListEntry(const css::uno::Reference< ooo::vba::XHelperInterface > &rParent, const css::uno::Reference< css::uno::XComponentContext > &rContext, std::shared_ptr< SwContentControl > pCC, size_t nZIndex)
std::shared_ptr< SwContentControl > m_pCC
void SAL_CALL setValue(const OUString &sSet) override
InheritedHelperInterfaceWeakImpl< ooo::vba::word::XContentControlListEntry > SwVbaContentControlListEntry_BASE