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 #ifndef INCLUDED_SW_QA_API_DOCUMENTINDEXTEST_HXX
11 #define INCLUDED_SW_QA_API_DOCUMENTINDEXTEST_HXX
13 #include "ApiTestBase.hxx"
15 #include <cppunit/TestAssert.h>
16 #include <test/unoapi_property_testers.hxx>
18 #include <com/sun/star/beans/XPropertySet.hpp>
22 class DocumentIndexTest
: public ApiTestBase
25 void testDocumentIndexProperties()
29 css::uno::Reference
<css::beans::XPropertySet
> xDocumnetIndex(map
["text::DocumentIndex"],
30 css::uno::UNO_QUERY_THROW
);
32 testBooleanProperty(xDocumnetIndex
, "UseAlphabeticalSeparators");
33 testBooleanProperty(xDocumnetIndex
, "UseKeyAsEntry");
34 testBooleanProperty(xDocumnetIndex
, "UseCombinedEntries");
35 testBooleanProperty(xDocumnetIndex
, "IsCaseSensitive");
36 testBooleanProperty(xDocumnetIndex
, "UsePP");
37 testBooleanProperty(xDocumnetIndex
, "UseDash");
38 testBooleanProperty(xDocumnetIndex
, "UseUpperCase");
39 testStringOptionalProperty(xDocumnetIndex
, "MainEntryCharacterStyleName");
40 // [readonly, property] sequence <com::sun::star::text::XDocumentIndexMark> DocumentIndexMarks;
41 // [property] com::sun::star::lang::Locale Locale;
42 testStringProperty(xDocumnetIndex
, "SortAlgorithm", "Value");
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */