LibreOffice Module test (master)
1
test
source
text
textdocumentsettings.cxx
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
10
#include <
test/text/textdocumentsettings.hxx
>
11
#include <
test/unoapi_property_testers.hxx
>
12
13
#include <com/sun/star/beans/XPropertySet.hpp>
14
#include <com/sun/star/uno/Reference.hxx>
15
16
using namespace
css::uno;
17
18
namespace
apitest
19
{
20
TextDocumentSettings::~TextDocumentSettings
() {}
21
22
void
TextDocumentSettings::testDocumentSettingsProperties
()
23
{
24
css::uno::Reference<css::beans::XPropertySet> xDocumentSettings(
init
(),
25
css::uno::UNO_QUERY_THROW);
26
27
testBooleanOptionalProperty
(xDocumentSettings,
"ChartAutoUpdate"
);
28
testBooleanOptionalProperty
(xDocumentSettings,
"AddParaTableSpacing"
);
29
testBooleanOptionalProperty
(xDocumentSettings,
"AddParaTableSpacingAtStart"
);
30
testBooleanOptionalProperty
(xDocumentSettings,
"AlignTabStopPosition"
);
31
testBooleanOptionalProperty
(xDocumentSettings,
"SaveGlobalDocumentLinks"
);
32
testBooleanOptionalProperty
(xDocumentSettings,
"IsLabelDocument"
);
33
testBooleanOptionalProperty
(xDocumentSettings,
"UseFormerLineSpacing"
);
34
testBooleanOptionalProperty
(xDocumentSettings,
"AddParaSpacingToTableCells"
);
35
testBooleanOptionalProperty
(xDocumentSettings,
"UseFormerObjectPositioning"
);
36
testBooleanOptionalProperty
(xDocumentSettings,
"ConsiderTextWrapOnObjPos"
);
37
testBooleanOptionalProperty
(xDocumentSettings,
"MathBaselineAlignment"
);
38
}
39
40
}
// end namespace apitest
41
42
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
apitest::TextDocumentSettings::init
virtual css::uno::Reference< css::uno::XInterface > init()=0
apitest::TextDocumentSettings::testDocumentSettingsProperties
void testDocumentSettingsProperties()
Definition:
textdocumentsettings.cxx:22
apitest::TextDocumentSettings::~TextDocumentSettings
virtual ~TextDocumentSettings()
Definition:
textdocumentsettings.cxx:20
apitest
Definition:
xpropertyset.cxx:36
apitest::testBooleanOptionalProperty
void testBooleanOptionalProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &rName)
Definition:
unoapi_property_testers.cxx:39
textdocumentsettings.hxx
unoapi_property_testers.hxx
Generated on Sun Jul 30 2023 04:27:11 for LibreOffice Module test (master) by
1.9.3