android: Update app-specific/MIME type icons
[LibreOffice.git] / sw / source / ui / vba / vbaformfieldcheckbox.hxx
blobc62549585b4e90305bdda7ad60fcc6417ff0de47
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 <ooo/vba/word/XCheckBox.hpp>
13 #include <vbahelper/vbahelperinterface.hxx>
15 #include <IDocumentMarkAccess.hxx>
17 typedef InheritedHelperInterfaceWeakImpl<ooo::vba::word::XCheckBox> SwVbaFormFieldCheckBox_BASE;
19 class SwVbaFormFieldCheckBox : public SwVbaFormFieldCheckBox_BASE
21 private:
22 sw::mark::ICheckboxFieldmark* m_pCheckBox;
24 public:
25 /// @throws css::uno::RuntimeException
26 SwVbaFormFieldCheckBox(const css::uno::Reference<ooo::vba::XHelperInterface>& rParent,
27 const css::uno::Reference<css::uno::XComponentContext>& rContext,
28 sw::mark::IFieldmark& rFormField);
29 ~SwVbaFormFieldCheckBox() override;
31 // XCheckBox
32 OUString SAL_CALL getDefaultPropertyName() override;
34 // Default member: True if the specified form field object is a valid check box form field
35 sal_Bool SAL_CALL getValid() override;
37 sal_Bool SAL_CALL getAutoSize() override;
38 void SAL_CALL setAutoSize(sal_Bool bSet) override;
39 // Returns the default check box value
40 sal_Bool SAL_CALL getDefault() override;
41 void SAL_CALL setDefault(sal_Bool bSet) override;
42 // Returns the size of a check box, in points
43 sal_Int32 SAL_CALL getSize() override;
44 void SAL_CALL setSize(sal_Int32 nSet) override;
46 sal_Bool SAL_CALL getValue() override;
47 void SAL_CALL setValue(sal_Bool bSet) override;
49 // XHelperInterface
50 OUString getServiceImplName() override;
51 css::uno::Sequence<OUString> getServiceNames() override;
54 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */