22 #include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
90 if( (nLeft >= 0 ) && (nTop >= 0) && (nRight >= nLeft) && (nBottom >= nTop) )
99 if( (nLeft < nMaxColumns) && (nRight < nMaxColumns) && (nTop < nMaxRows) && (nBottom < nMaxRows) )
101 return mxTable->getCellRangeByPosition( nLeft, nTop, nRight, nBottom );
104 throw IndexOutOfBoundsException();
110 return Reference< XCellRange >();
virtual sal_Int32 getLeft() override
virtual sal_Int32 getBottom() override
virtual sal_Int32 getRight() override
virtual sal_Int32 getTop() override
virtual css::uno::Reference< css::table::XCellRange > SAL_CALL getCellRangeByPosition(sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nRight, sal_Int32 nBottom) override
CellRange(const TableModelRef &xTable, sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nRight, sal_Int32 nBottom)
virtual css::uno::Reference< css::table::XCellRange > SAL_CALL getCellRangeByName(const OUString &aRange) override
virtual ~CellRange() override
virtual css::uno::Reference< css::table::XTable > getTable() override
virtual css::uno::Reference< css::table::XCell > SAL_CALL getCellByPosition(sal_Int32 nColumn, sal_Int32 nRow) override