12#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
13#include <com/sun/star/table/XCell.hpp>
14#include <com/sun/star/table/XCellRange.hpp>
16#include <com/sun/star/uno/Reference.hxx>
18#include <cppunit/TestAssert.h>
26 uno::Reference<table::XCellRange> xCR(
init(), uno::UNO_QUERY_THROW);
28 uno::Reference<table::XCell> xCell(xCR->getCellByPosition(0, 0), uno::UNO_SET_THROW);
29 CPPUNIT_ASSERT(xCell.is());
31 CPPUNIT_ASSERT_THROW(xCR->getCellByPosition(-1, 1), lang::IndexOutOfBoundsException);
36 uno::Reference<table::XCellRange> xCR(
init(), uno::UNO_QUERY_THROW);
38 uno::Reference<table::XCellRange> xCellRange(xCR->getCellRangeByName(
m_aRangeName),
40 CPPUNIT_ASSERT(xCellRange.is());
45 uno::Reference<table::XCellRange> xCR(
init(), uno::UNO_QUERY_THROW);
47 uno::Reference<table::XCellRange> xCellRange(xCR->getCellRangeByPosition(0, 0, 0, 0),
49 CPPUNIT_ASSERT(xCellRange.is());
51 CPPUNIT_ASSERT_THROW(xCR->getCellRangeByPosition(-1, 0, -1, 1),
52 lang::IndexOutOfBoundsException);
virtual css::uno::Reference< css::uno::XInterface > init()=0
void testGetCellRangeByName()
void testGetCellByPosition()
OUString const m_aRangeName
void testGetCellRangeByPosition()