13#include <com/sun/star/table/CellRangeAddress.hpp>
14#include <com/sun/star/table/XTableChart.hpp>
16#include <com/sun/star/uno/Reference.hxx>
17#include <com/sun/star/uno/Sequence.hxx>
19#include <cppunit/TestAssert.h>
27 uno::Reference<table::XTableChart> xTC(
init(), uno::UNO_QUERY_THROW);
29 xTC->setHasColumnHeaders(
false);
30 CPPUNIT_ASSERT(!xTC->getHasColumnHeaders());
32 xTC->setHasColumnHeaders(
true);
33 CPPUNIT_ASSERT(xTC->getHasColumnHeaders());
38 uno::Reference<table::XTableChart> xTC(
init(), uno::UNO_QUERY_THROW);
40 xTC->setHasRowHeaders(
false);
41 CPPUNIT_ASSERT(!xTC->getHasRowHeaders());
43 xTC->setHasRowHeaders(
true);
44 CPPUNIT_ASSERT(xTC->getHasRowHeaders());
49 uno::Reference<table::XTableChart> xTC(
init(), uno::UNO_QUERY_THROW);
51 uno::Sequence<table::CellRangeAddress> aCRA = xTC->getRanges();
52 aCRA.getArray()[0].EndRow = 1;
56 CPPUNIT_ASSERT_EQUAL(aCRA[0], xTC->getRanges()[0]);
virtual css::uno::Reference< css::uno::XInterface > init()=0
void testGetSetHasColumnHeaders()
void testGetSetHasRowHeaders()