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/XDropDown.hpp>
13 #include <vbahelper/vbahelperinterface.hxx>
15 #include <IDocumentMarkAccess.hxx>
17 typedef InheritedHelperInterfaceWeakImpl
<ooo::vba::word::XDropDown
> SwVbaFormFieldDropDown_BASE
;
19 class SwVbaFormFieldDropDown
: public SwVbaFormFieldDropDown_BASE
22 sw::mark::IDropdownFieldmark
* m_pDropDown
;
25 /// @throws css::uno::RuntimeException
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
;
32 OUString SAL_CALL
getDefaultPropertyName() override
;
34 // Default member: True if the specified form field object is a valid listbox field
35 sal_Bool SAL_CALL
getValid() override
;
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
;
44 // Returns a ListEntries collection that represents all the available entries
45 css::uno::Any SAL_CALL
ListEntries(const css::uno::Any
& rIndex
) override
;
48 OUString
getServiceImplName() override
;
49 css::uno::Sequence
<OUString
> getServiceNames() override
;
52 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */