LibreOffice Module test (master) 1
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
12
13#include <com/sun/star/beans/XPropertySet.hpp>
14#include <com/sun/star/uno/Reference.hxx>
15
16using namespace css::uno;
17
18namespace apitest
19{
21
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: */
virtual css::uno::Reference< css::uno::XInterface > init()=0
void testBooleanOptionalProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &rName)