LibreOffice Module sw (master)
1
sw
source
ui
vba
vbaformfieldcheckbox.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/XCheckBox.hpp>
12
13
#include <
vbahelper/vbahelperinterface.hxx
>
14
15
#include <
IDocumentMarkAccess.hxx
>
16
17
typedef
InheritedHelperInterfaceWeakImpl<ooo::vba::word::XCheckBox>
SwVbaFormFieldCheckBox_BASE
;
18
19
class
SwVbaFormFieldCheckBox
:
public
SwVbaFormFieldCheckBox_BASE
20
{
21
private
:
22
sw::mark::ICheckboxFieldmark
*
m_pCheckBox
;
23
24
public
:
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
;
30
31
// XCheckBox
32
OUString SAL_CALL
getDefaultPropertyName
()
override
;
33
34
// Default member: True if the specified form field object is a valid check box form field
35
sal_Bool
SAL_CALL
getValid
()
override
;
36
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
;
45
46
sal_Bool
SAL_CALL
getValue
()
override
;
47
void
SAL_CALL
setValue
(
sal_Bool
bSet)
override
;
48
49
// XHelperInterface
50
OUString
getServiceImplName
()
override
;
51
css::uno::Sequence<OUString>
getServiceNames
()
override
;
52
};
53
54
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
IDocumentMarkAccess.hxx
InheritedHelperInterfaceWeakImpl
SwVbaFormFieldCheckBox
Definition:
vbaformfieldcheckbox.hxx:20
SwVbaFormFieldCheckBox::getDefault
sal_Bool SAL_CALL getDefault() override
Definition:
vbaformfieldcheckbox.cxx:60
SwVbaFormFieldCheckBox::SwVbaFormFieldCheckBox
SwVbaFormFieldCheckBox(const css::uno::Reference< ooo::vba::XHelperInterface > &rParent, const css::uno::Reference< css::uno::XComponentContext > &rContext, sw::mark::IFieldmark &rFormField)
CheckBoxes are inline text objects that are only found in MS Word.
Definition:
vbaformfieldcheckbox.cxx:24
SwVbaFormFieldCheckBox::getAutoSize
sal_Bool SAL_CALL getAutoSize() override
Definition:
vbaformfieldcheckbox.cxx:43
SwVbaFormFieldCheckBox::setAutoSize
void SAL_CALL setAutoSize(sal_Bool bSet) override
Definition:
vbaformfieldcheckbox.cxx:52
SwVbaFormFieldCheckBox::~SwVbaFormFieldCheckBox
~SwVbaFormFieldCheckBox() override
Definition:
vbaformfieldcheckbox.cxx:32
SwVbaFormFieldCheckBox::getServiceNames
css::uno::Sequence< OUString > getServiceNames() override
Definition:
vbaformfieldcheckbox.cxx:111
SwVbaFormFieldCheckBox::setSize
void SAL_CALL setSize(sal_Int32 nSet) override
Definition:
vbaformfieldcheckbox.cxx:91
SwVbaFormFieldCheckBox::setValue
void SAL_CALL setValue(sal_Bool bSet) override
Definition:
vbaformfieldcheckbox.cxx:101
SwVbaFormFieldCheckBox::getServiceImplName
OUString getServiceImplName() override
Definition:
vbaformfieldcheckbox.cxx:109
SwVbaFormFieldCheckBox::m_pCheckBox
sw::mark::ICheckboxFieldmark * m_pCheckBox
Definition:
vbaformfieldcheckbox.hxx:22
SwVbaFormFieldCheckBox::getValid
sal_Bool SAL_CALL getValid() override
Definition:
vbaformfieldcheckbox.cxx:36
SwVbaFormFieldCheckBox::setDefault
void SAL_CALL setDefault(sal_Bool bSet) override
Definition:
vbaformfieldcheckbox.cxx:68
SwVbaFormFieldCheckBox::getDefaultPropertyName
OUString SAL_CALL getDefaultPropertyName() override
Definition:
vbaformfieldcheckbox.cxx:34
SwVbaFormFieldCheckBox::getValue
sal_Bool SAL_CALL getValue() override
Definition:
vbaformfieldcheckbox.cxx:99
SwVbaFormFieldCheckBox::getSize
sal_Int32 SAL_CALL getSize() override
Definition:
vbaformfieldcheckbox.cxx:82
sw::mark::ICheckboxFieldmark
Definition:
IMark.hxx:116
sal_Bool
unsigned char sal_Bool
SwVbaFormFieldCheckBox_BASE
InheritedHelperInterfaceWeakImpl< ooo::vba::word::XCheckBox > SwVbaFormFieldCheckBox_BASE
Definition:
vbaformfieldcheckbox.hxx:17
vbahelperinterface.hxx
Generated on Sun Jul 30 2023 04:29:44 for LibreOffice Module sw (master) by
1.9.3