LibreOffice Module test (master) 1
xprintareas.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
11#include <com/sun/star/sheet/XPrintAreas.hpp>
12
13#include <cppunit/TestAssert.h>
14
15using namespace css;
16using namespace css::uno;
17
18namespace apitest {
19
21 {
22 uno::Reference< sheet::XPrintAreas > xPrintAreas(init(), UNO_QUERY_THROW);
23 xPrintAreas->setPrintTitleColumns(true);
24
25 CPPUNIT_ASSERT_MESSAGE("Wrong attribution at PrintTitleColumns", xPrintAreas->getPrintTitleColumns());
26
27 }
28
30 {
31 uno::Reference< sheet::XPrintAreas > xPrintAreas(init(), UNO_QUERY_THROW);
32 xPrintAreas->setPrintTitleRows(true);
33
34 CPPUNIT_ASSERT_MESSAGE("Wrong attribution at PrintTitleRows", xPrintAreas->getPrintTitleRows());
35 }
36
37 // the rest is right now in progress...
38
39
40}
void testSetAndGetPrintTitleRows()
Definition: xprintareas.cxx:29
virtual css::uno::Reference< css::uno::XInterface > init()=0
void testSetAndGetPrintTitleColumns()
Definition: xprintareas.cxx:20