12#include <com/sun/star/container/XEnumerationAccess.hpp>
13#include <com/sun/star/sheet/XSheetCellRanges.hpp>
14#include <com/sun/star/table/CellRangeAddress.hpp>
16#include <com/sun/star/uno/Reference.hxx>
17#include <com/sun/star/uno/Sequence.hxx>
19#include <cppunit/TestAssert.h>
28 uno::Reference<sheet::XSheetCellRanges> xSheetCellRanges(
init(), UNO_QUERY_THROW);
29 uno::Reference<container::XEnumerationAccess> xEA = xSheetCellRanges->getCells();
31 CPPUNIT_ASSERT_MESSAGE(
"Unable to get cells", xEA->hasElements());
36 uno::Reference<sheet::XSheetCellRanges> xSheetCellRanges(
init(), UNO_QUERY_THROW);
37 uno::Sequence<table::CellRangeAddress> aCellRangeAddress
38 = xSheetCellRanges->getRangeAddresses();
39 CPPUNIT_ASSERT_MESSAGE(
"Unable to get RangeAddresses", aCellRangeAddress.getLength() > 2);
44 uno::Reference<sheet::XSheetCellRanges> xSheetCellRanges(
init(), UNO_QUERY_THROW);
45 CPPUNIT_ASSERT_MESSAGE(
"Unable to get RangeAddresses (string)",
46 xSheetCellRanges->getRangeAddressesAsString().indexOf(
"C1:D4") > 0);
void testGetRangeAddressesAsString()
void testGetRangeAddresses()
virtual css::uno::Reference< css::uno::XInterface > init()=0