13#include <com/sun/star/sheet/XLabelRange.hpp>
14#include <com/sun/star/table/CellRangeAddress.hpp>
15#include <com/sun/star/uno/Reference.hxx>
17#include <cppunit/TestAssert.h>
20using namespace css::uno;
26 uno::Reference<sheet::XLabelRange> xLabelRange(
init(), UNO_QUERY_THROW);
28 CPPUNIT_ASSERT_EQUAL_MESSAGE(
"Unable to get DataArea", table::CellRangeAddress(0, 0, 0, 0, 1),
29 xLabelRange->getDataArea());
31 table::CellRangeAddress aDataAddr(1, 0, 1, 0, 8);
32 xLabelRange->setDataArea(aDataAddr);
33 CPPUNIT_ASSERT_EQUAL_MESSAGE(
"Unable to set DataArea", aDataAddr, xLabelRange->getDataArea());
38 uno::Reference<sheet::XLabelRange> xLabelRange(
init(), UNO_QUERY_THROW);
40 CPPUNIT_ASSERT_EQUAL_MESSAGE(
"Unable to get DataArea", table::CellRangeAddress(0, 0, 1, 0, 6),
41 xLabelRange->getLabelArea());
43 table::CellRangeAddress aLabelAddr(1, 0, 1, 0, 8);
44 xLabelRange->setLabelArea(aLabelAddr);
45 CPPUNIT_ASSERT_EQUAL_MESSAGE(
"Unable to set LabelArea", aLabelAddr,
46 xLabelRange->getLabelArea());
void testGetSetDataArea()
void testGetSetLabelArea()
virtual css::uno::Reference< css::uno::XInterface > init()=0