12#include <com/sun/star/sheet/XAreaLinks.hpp>
13#include <com/sun/star/table/CellAddress.hpp>
14#include <com/sun/star/uno/Reference.hxx>
16#include <cppunit/TestAssert.h>
25 uno::Reference< sheet::XAreaLinks > xAreaLinks(
init(), UNO_QUERY_THROW);
27 table::CellAddress aCellAddress(1, 2, 3);
28 xAreaLinks->insertAtPosition(aCellAddress,
"",
"a2:b5",
"",
"");
30 CPPUNIT_ASSERT_EQUAL_MESSAGE(
"Unable to insert new CellAddress",
31 sal_Int32(1), xAreaLinks->getCount());
36 uno::Reference< sheet::XAreaLinks > xAreaLinks(
init(), UNO_QUERY_THROW);
38 table::CellAddress aCellAddress(1, 2, 3);
39 xAreaLinks->insertAtPosition(aCellAddress,
"",
"a2:b5",
"",
"");
40 CPPUNIT_ASSERT_EQUAL_MESSAGE(
"Unable to insert CellAddress for removal",
41 sal_Int32(1), xAreaLinks->getCount());
43 xAreaLinks->removeByIndex(0);
44 CPPUNIT_ASSERT_EQUAL_MESSAGE(
"Unable to remove CellAddress",
45 sal_Int32(0), xAreaLinks->getCount());
void testInsertAtPosition()
virtual css::uno::Reference< css::uno::XInterface > init()=0