Version 6.1.0.2, tag libreoffice-6.1.0.2
[LibreOffice.git] / sw / qa / api / DocumentIndexTest.hxx
blob0757c1dd492f974330fa7165d2f311ae466dae59
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
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>
20 namespace apitest
22 class DocumentIndexTest : public ApiTestBase
24 public:
25 void testDocumentIndexProperties()
27 auto map = init();
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");
47 #endif
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */