LibreOffice Module test (master)  1
textdocumentindex.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 <com/sun/star/beans/XPropertySet.hpp>
11 
14 
15 namespace apitest
16 {
18 
20 {
21  css::uno::Reference<css::beans::XPropertySet> xDocumentIndex(init(), css::uno::UNO_QUERY_THROW);
22 
23  testBooleanProperty(xDocumentIndex, "UseAlphabeticalSeparators");
24  testBooleanProperty(xDocumentIndex, "UseKeyAsEntry");
25  testBooleanProperty(xDocumentIndex, "UseCombinedEntries");
26  testBooleanProperty(xDocumentIndex, "IsCaseSensitive");
27  testBooleanProperty(xDocumentIndex, "UsePP");
28  testBooleanProperty(xDocumentIndex, "UseDash");
29  testBooleanProperty(xDocumentIndex, "UseUpperCase");
30  testStringOptionalProperty(xDocumentIndex, "MainEntryCharacterStyleName");
31  // [readonly, property] sequence <com::sun::star::text::XDocumentIndexMark> DocumentIndexMarks;
32  // [property] com::sun::star::lang::Locale Locale;
33  testStringProperty(xDocumentIndex, "SortAlgorithm", "Value");
34 }
35 }
36 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual css::uno::Reference< css::uno::XInterface > init()=0
void testStringOptionalProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &rName, const OUString &rValue)
void testBooleanProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name)
void testStringProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const OUString &rValue)