android: Update app-specific/MIME type icons
[LibreOffice.git] / sw / source / ui / vba / vbaformfield.hxx
blob260e79093589ea7e607013396b5dc63ec00a6060
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
9 #pragma once
11 #include <com/sun/star/text/XTextDocument.hpp>
12 #include <ooo/vba/word/XFormField.hpp>
14 #include <vbahelper/vbahelperinterface.hxx>
16 #include <IDocumentMarkAccess.hxx>
18 typedef InheritedHelperInterfaceWeakImpl<ooo::vba::word::XFormField> SwVbaFormField_BASE;
20 class SwVbaFormField : public SwVbaFormField_BASE
22 private:
23 css::uno::Reference<css::text::XTextDocument> m_xTextDocument;
24 sw::mark::IFieldmark& m_rFormField;
26 public:
27 /// @throws css::uno::RuntimeException
28 SwVbaFormField(const css::uno::Reference<ooo::vba::XHelperInterface>& rParent,
29 const css::uno::Reference<css::uno::XComponentContext>& rContext,
30 const uno::Reference<text::XTextDocument>& xTextDocument,
31 sw::mark::IFieldmark& rFormField);
32 ~SwVbaFormField() override;
34 // XFormField Methods
35 OUString SAL_CALL getDefaultPropertyName() override;
37 css::uno::Any SAL_CALL CheckBox() override;
38 css::uno::Any SAL_CALL DropDown() override;
39 css::uno::Any SAL_CALL TextInput() override;
40 css::uno::Any SAL_CALL Previous() override;
41 css::uno::Any SAL_CALL Next() override;
42 css::uno::Reference<ooo::vba::word::XRange> SAL_CALL Range() override;
44 // Indicates which of the three form fields this is: oovbaapi/ooo/vba/word/WdFieldType.idl
45 sal_Int32 SAL_CALL getType() override;
46 // True if references to the specified form field
47 // are automatically updated whenever the field is exited
48 sal_Bool SAL_CALL getCalculateOnExit() override;
49 void SAL_CALL setCalculateOnExit(sal_Bool bSet) override;
50 sal_Bool SAL_CALL getEnabled() override;
51 void SAL_CALL setEnabled(sal_Bool bSet) override;
52 OUString SAL_CALL getEntryMacro() override;
53 void SAL_CALL setEntryMacro(const OUString& rSet) override;
54 OUString SAL_CALL getExitMacro() override;
55 void SAL_CALL setExitMacro(const OUString& rSet) override;
57 * If the OwnHelp property is set to True,
58 * HelpText specifies the text string value.
59 * If OwnHelp is set to False, HelpText specifies the name of an AutoText entry
60 * that contains help text for the form field.
62 OUString SAL_CALL getHelpText() override;
63 void SAL_CALL setHelpText(const OUString& rSet) override;
64 sal_Bool SAL_CALL getOwnHelp() override;
65 void SAL_CALL setOwnHelp(sal_Bool bSet) override;
67 OUString SAL_CALL getName() override;
68 void SAL_CALL setName(const OUString& rSet) override;
69 OUString SAL_CALL getResult() override;
70 void SAL_CALL setResult(const OUString& rSet) override;
72 * If the OwnStatus property is set to True,
73 * StatusText specifies the status bar value.
74 * If OwnStatus is set to False, StatusText specifies the name of an AutoText entry
75 * that contains status bar text for the form field.
77 OUString SAL_CALL getStatusText() override;
78 void SAL_CALL setStatusText(const OUString& rSet) override;
79 sal_Bool SAL_CALL getOwnStatus() override;
80 void SAL_CALL setOwnStatus(sal_Bool bSet) override;
82 // XHelperInterface
83 OUString getServiceImplName() override;
84 css::uno::Sequence<OUString> getServiceNames() override;
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */