LibreOffice Module test (master)  1
tablerow.cxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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 <test/table/tablerow.hxx>
12 
13 #include <com/sun/star/beans/XPropertySet.hpp>
14 
15 using namespace css;
16 
17 namespace apitest
18 {
19 void TableRow::testTableRowProperties()
20 {
21  uno::Reference<beans::XPropertySet> xPS(init(), uno::UNO_QUERY_THROW);
22 
23  OUString aPropName;
24 
25  aPropName = "Height";
26  testLongProperty(xPS, aPropName);
27 
28  aPropName = "OptimalHeight";
29  testBooleanProperty(xPS, aPropName);
30 
31  aPropName = "IsVisible";
32  testBooleanProperty(xPS, aPropName);
33 
34  aPropName = "IsStartOfNewPage";
35  testBooleanProperty(xPS, aPropName);
36 }
37 
38 } // namespace apitest
39 
40 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
void testBooleanProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name)
FILE * init(int, char **)
void testLongProperty(uno::Reference< beans::XPropertySet > const &xPropertySet, const OUString &name, const sal_Int32 &nValue)