LibreOffice Module sw (master) 1
vbaformfielddropdown.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/XDropDown.hpp>
12
14
16
18
20{
21private:
23
24public:
26 SwVbaFormFieldDropDown(const css::uno::Reference<ooo::vba::XHelperInterface>& rParent,
27 const css::uno::Reference<css::uno::XComponentContext>& rContext,
28 sw::mark::IFieldmark& rFormField);
29 ~SwVbaFormFieldDropDown() override;
30
31 // XDropDown
32 OUString SAL_CALL getDefaultPropertyName() override;
33
34 // Default member: True if the specified form field object is a valid listbox field
35 sal_Bool SAL_CALL getValid() override;
36
37 // Returns and sets the index for the default listbox entry
38 sal_Int32 SAL_CALL getDefault() override;
39 void SAL_CALL setDefault(sal_Int32 nSet) override;
40 // Returns and sets the index of the selected listbox entry
41 sal_Int32 SAL_CALL getValue() override;
42 void SAL_CALL setValue(sal_Int32 nIndex) override;
43
44 // Returns a ListEntries collection that represents all the available entries
45 css::uno::Any SAL_CALL ListEntries(const css::uno::Any& rIndex) override;
46
47 // XHelperInterface
48 OUString getServiceImplName() override;
49 css::uno::Sequence<OUString> getServiceNames() override;
50};
51
52/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_Int32 SAL_CALL getDefault() override
OUString getServiceImplName() override
OUString SAL_CALL getDefaultPropertyName() override
sal_Bool SAL_CALL getValid() override
sw::mark::IDropdownFieldmark * m_pDropDown
css::uno::Any SAL_CALL ListEntries(const css::uno::Any &rIndex) override
void SAL_CALL setDefault(sal_Int32 nSet) override
css::uno::Sequence< OUString > getServiceNames() override
sal_Int32 SAL_CALL getValue() override
SwVbaFormFieldDropDown(const css::uno::Reference< ooo::vba::XHelperInterface > &rParent, const css::uno::Reference< css::uno::XComponentContext > &rContext, sw::mark::IFieldmark &rFormField)
DropDown formfields are inline text objects that are only found in MS Word.
void SAL_CALL setValue(sal_Int32 nIndex) override
unsigned char sal_Bool
InheritedHelperInterfaceWeakImpl< ooo::vba::word::XDropDown > SwVbaFormFieldDropDown_BASE