LibreOffice Module sw (master) 1
vbaformfielddropdownlistentry.cxx
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
11
12using namespace ::ooo::vba;
13using namespace ::com::sun::star;
14
16 const uno::Reference<ooo::vba::XHelperInterface>& rParent,
17 const uno::Reference<uno::XComponentContext>& rContext,
18 sw::mark::IDropdownFieldmark& rFormField, sal_Int32 nZIndex)
19 : SwVbaFormFieldDropDownListEntry_BASE(rParent, rContext)
20 , m_rDropDown(rFormField)
21 , m_nZIndex(nZIndex)
22{
23}
24
26
27// XListEntry
29
31{
32 sal_Int32 nZIndex = m_nZIndex;
33 return m_rDropDown.GetContent(&nZIndex);
34}
35
37{
38 sal_Int32 nZIndex = m_nZIndex;
40}
41
43
44// XHelperInterface
46{
47 return "SwVbaFormFieldDropDownListEntry";
48}
49
51{
52 static uno::Sequence<OUString> const aServiceNames{ "ooo.vba.word.ListEntry" };
53 return aServiceNames;
54}
55
56/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void SAL_CALL setName(const OUString &sSet) override
css::uno::Sequence< OUString > getServiceNames() override
SwVbaFormFieldDropDownListEntry(const css::uno::Reference< ooo::vba::XHelperInterface > &rParent, const css::uno::Reference< css::uno::XComponentContext > &rContext, sw::mark::IDropdownFieldmark &rFormField, sal_Int32 nZIndex)
sw::mark::IDropdownFieldmark & m_rDropDown
virtual void DelContent(sal_Int32 nDelIndex=-1)=0
virtual OUString GetContent(sal_Int32 *pIndex) const =0
virtual void ReplaceContent(const OUString *pText, sal_Int32 *pIndex)=0
Sequence< OUString > aServiceNames
static SfxItemSet & rSet