LibreOffice Module test (master)
1
test
source
text
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
12
#include <
test/unoapi_property_testers.hxx
>
13
#include <
test/text/textdocumentindex.hxx
>
14
15
namespace
apitest
16
{
17
TextDocumentIndex::~TextDocumentIndex
() {}
18
19
void
TextDocumentIndex::testDocumentIndexProperties
()
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: */
apitest::TextDocumentIndex::testDocumentIndexProperties
void testDocumentIndexProperties()
Definition:
textdocumentindex.cxx:19
apitest::TextDocumentIndex::~TextDocumentIndex
virtual ~TextDocumentIndex()
Definition:
textdocumentindex.cxx:17
apitest::TextDocumentIndex::init
virtual css::uno::Reference< css::uno::XInterface > init()=0
apitest
Definition:
xpropertyset.cxx:36
apitest::testStringOptionalProperty
void testStringOptionalProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &rName, const OUString &rValue)
Definition:
unoapi_property_testers.cxx:214
apitest::testStringProperty
void testStringProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const OUString &rValue)
Definition:
unoapi_property_testers.cxx:227
apitest::testBooleanProperty
void testBooleanProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name)
Definition:
unoapi_property_testers.cxx:19
textdocumentindex.hxx
unoapi_property_testers.hxx
Generated on Sun Jul 30 2023 04:27:11 for LibreOffice Module test (master) by
1.9.3