20#ifndef INCLUDED_SVX_SOURCE_TABLE_CELLCURSOR_HXX
21#define INCLUDED_SVX_SOURCE_TABLE_CELLCURSOR_HXX
23#include <com/sun/star/table/XMergeableCellRange.hpp>
24#include <com/sun/star/table/XCellCursor.hpp>
33typedef ::cppu::ImplInheritanceHelper< CellRange, css::table::XCellCursor, css::table::XMergeableCellRange >
CellCursorBase;
38 CellCursor(
const TableModelRef& xTableModel, sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nRight, sal_Int32 nBottom );
42 virtual css::uno::Reference< css::table::XCell > SAL_CALL
getCellByPosition( sal_Int32 nColumn, sal_Int32 nRow )
override;
43 virtual css::uno::Reference< css::table::XCellRange > SAL_CALL
getCellRangeByPosition( sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nRight, sal_Int32 nBottom )
override;
44 virtual css::uno::Reference< css::table::XCellRange > SAL_CALL
getCellRangeByName(
const OUString& aRange )
override;
47 virtual void SAL_CALL
gotoStart( )
override;
48 virtual void SAL_CALL
gotoEnd( )
override;
49 virtual void SAL_CALL
gotoNext( )
override;
51 virtual void SAL_CALL
gotoOffset( ::sal_Int32 nColumnOffset, ::sal_Int32 nRowOffset )
override;
54 virtual void SAL_CALL
merge( )
override;
55 virtual void SAL_CALL
split( ::sal_Int32
Columns, ::sal_Int32
Rows )
override;
61 void split_column( sal_Int32 nCol, sal_Int32 nColumns, std::vector< sal_Int32 >& rLeftOvers );
63 void split_row( sal_Int32 nRow, sal_Int32 nRows, std::vector< sal_Int32 >& rLeftOvers );
virtual void SAL_CALL gotoStart() override
virtual void SAL_CALL gotoOffset(::sal_Int32 nColumnOffset, ::sal_Int32 nRowOffset) override
virtual void SAL_CALL split(::sal_Int32 Columns, ::sal_Int32 Rows) override
virtual css::uno::Reference< css::table::XCellRange > SAL_CALL getCellRangeByName(const OUString &aRange) override
virtual ~CellCursor() override
virtual void SAL_CALL merge() override
virtual css::uno::Reference< css::table::XCell > SAL_CALL getCellByPosition(sal_Int32 nColumn, sal_Int32 nRow) override
virtual void SAL_CALL gotoEnd() override
void split_horizontal(sal_Int32 nColumns)
virtual void SAL_CALL gotoPrevious() override
CellCursor(const TableModelRef &xTableModel, sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nRight, sal_Int32 nBottom)
virtual sal_Bool SAL_CALL isMergeable() override
bool GetMergedSelection(CellPos &rStart, CellPos &rEnd)
returns true and the merged cell positions if a merge is valid or false if a merge is not valid for t...
void split_row(sal_Int32 nRow, sal_Int32 nRows, std::vector< sal_Int32 > &rLeftOvers)
void split_column(sal_Int32 nCol, sal_Int32 nColumns, std::vector< sal_Int32 > &rLeftOvers)
virtual void SAL_CALL gotoNext() override
virtual css::uno::Reference< css::table::XCellRange > SAL_CALL getCellRangeByPosition(sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nRight, sal_Int32 nBottom) override
void split_vertical(sal_Int32 nRows)
::cppu::ImplInheritanceHelper< CellRange, css::table::XCellCursor, css::table::XMergeableCellRange > CellCursorBase