1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 #include <test/text/textdocumentsettings.hxx>
11 #include <test/unoapi_property_testers.hxx>
13 #include <com/sun/star/beans/XPropertySet.hpp>
14 #include <com/sun/star/uno/Reference.hxx>
16 using namespace css::uno
;
20 TextDocumentSettings::~TextDocumentSettings() {}
22 void TextDocumentSettings::testDocumentSettingsProperties()
24 css::uno::Reference
<css::beans::XPropertySet
> xDocumentSettings(init(),
25 css::uno::UNO_QUERY_THROW
);
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");
40 } // end namespace apitest
42 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */