11#include <com/sun/star/sheet/XViewPane.hpp>
12#include <com/sun/star/table/CellRangeAddress.hpp>
14#include <cppunit/TestAssert.h>
17using namespace css::uno;
24 uno::Reference<sheet::XViewPane> xViewPane(
init(), UNO_QUERY_THROW);
25 xViewPane->setFirstVisibleColumn(nCol);
26 CPPUNIT_ASSERT_EQUAL(xViewPane->getFirstVisibleColumn(), nCol);
32 uno::Reference<sheet::XViewPane> xViewPane(
init(), UNO_QUERY_THROW);
33 xViewPane->setFirstVisibleRow(nRow);
34 CPPUNIT_ASSERT_EQUAL(xViewPane->getFirstVisibleRow(), nRow);
39 constexpr sal_Int32 nCol = 5;
40 constexpr sal_Int32 nRow = 3;
41 uno::Reference<sheet::XViewPane> xViewPane(
init(), UNO_QUERY_THROW);
42 xViewPane->setFirstVisibleColumn(nCol);
43 xViewPane->setFirstVisibleRow(nRow);
45 table::CellRangeAddress aCellRangeAddress = xViewPane->getVisibleRange();
46 CPPUNIT_ASSERT_EQUAL(
short(0), aCellRangeAddress.Sheet);
47 CPPUNIT_ASSERT_EQUAL(nRow, aCellRangeAddress.StartRow);
48 CPPUNIT_ASSERT_EQUAL(nCol, aCellRangeAddress.StartColumn);
void testFirstVisibleColumn()
virtual css::uno::Reference< css::uno::XInterface > init()=0
void testFirstVisibleRow()