sc: factor out some more code
[LibreOffice.git] / sw / source / ui / vba / vbaformfields.hxx
blob274931a51e2a19eade6cfca712a5bd2ce6140f7e
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/XFormFields.hpp>
14 #include <vbahelper/vbacollectionimpl.hxx>
15 #include <rtl/ref.hxx>
17 typedef CollTestImplHelper<ooo::vba::word::XFormFields> SwVbaFormFields_BASE;
19 class SwVbaFormFields : public SwVbaFormFields_BASE
21 public:
22 /// @throws css::uno::RuntimeException
23 SwVbaFormFields(const css::uno::Reference<ov::XHelperInterface>& xParent,
24 const css::uno::Reference<css::uno::XComponentContext>& xContext,
25 const rtl::Reference<SwXTextDocument>& xTextDocument);
27 // XFormFields
28 sal_Bool SAL_CALL getShaded() override;
29 void SAL_CALL setShaded(sal_Bool bSet) override;
30 //css::uno::Reference<ooo::vba::word::XFormField> SAL_CALL Add(const css::uno::Any& Range, sal_Int32 Type) override;
32 // XEnumerationAccess
33 css::uno::Type SAL_CALL getElementType() override;
34 css::uno::Reference<css::container::XEnumeration> SAL_CALL createEnumeration() override;
36 // SwVbaFormFields_BASE
37 css::uno::Any createCollectionObject(const css::uno::Any& aSource) override;
38 OUString getServiceImplName() override;
39 css::uno::Sequence<OUString> getServiceNames() override;
42 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */