LibreOffice Module svx (master)  1
Public Member Functions | Private Member Functions | List of all members
sdr::table::CellCursor Class Referencefinal

#include <cellcursor.hxx>

Inheritance diagram for sdr::table::CellCursor:
[legend]
Collaboration diagram for sdr::table::CellCursor:
[legend]

Public Member Functions

 CellCursor (const TableModelRef &xTableModel, sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nRight, sal_Int32 nBottom)
 
virtual ~CellCursor () override
 
virtual css::uno::Reference< css::table::XCell > SAL_CALL getCellByPosition (sal_Int32 nColumn, sal_Int32 nRow) override
 
virtual css::uno::Reference< css::table::XCellRange > SAL_CALL getCellRangeByPosition (sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nRight, sal_Int32 nBottom) override
 
virtual css::uno::Reference< css::table::XCellRange > SAL_CALL getCellRangeByName (const OUString &aRange) override
 
virtual void SAL_CALL gotoStart () override
 
virtual void SAL_CALL gotoEnd () override
 
virtual void SAL_CALL gotoNext () override
 
virtual void SAL_CALL gotoPrevious () override
 
virtual void SAL_CALL gotoOffset (::sal_Int32 nColumnOffset,::sal_Int32 nRowOffset) override
 
virtual void SAL_CALL merge () override
 
virtual void SAL_CALL split (::sal_Int32 Columns,::sal_Int32 Rows) override
 
virtual sal_Bool SAL_CALL isMergeable () override
 

Private Member Functions

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 that range More...
 
void split_column (sal_Int32 nCol, sal_Int32 nColumns, std::vector< sal_Int32 > &rLeftOvers)
 
void split_horizontal (sal_Int32 nColumns)
 
void split_row (sal_Int32 nRow, sal_Int32 nRows, std::vector< sal_Int32 > &rLeftOvers)
 
void split_vertical (sal_Int32 nRows)
 

Detailed Description

Definition at line 35 of file cellcursor.hxx.

Constructor & Destructor Documentation

sdr::table::CellCursor::CellCursor ( const TableModelRef xTableModel,
sal_Int32  nLeft,
sal_Int32  nTop,
sal_Int32  nRight,
sal_Int32  nBottom 
)

Definition at line 42 of file cellcursor.cxx.

sdr::table::CellCursor::~CellCursor ( )
overridevirtual

Definition at line 48 of file cellcursor.cxx.

Member Function Documentation

Reference< XCell > SAL_CALL sdr::table::CellCursor::getCellByPosition ( sal_Int32  nColumn,
sal_Int32  nRow 
)
overridevirtual

Definition at line 56 of file cellcursor.cxx.

References sdr::table::CellRange::getCellByPosition().

Reference< XCellRange > SAL_CALL sdr::table::CellCursor::getCellRangeByName ( const OUString &  aRange)
overridevirtual

Definition at line 68 of file cellcursor.cxx.

References sdr::table::CellRange::getCellRangeByName().

Reference< XCellRange > SAL_CALL sdr::table::CellCursor::getCellRangeByPosition ( sal_Int32  nLeft,
sal_Int32  nTop,
sal_Int32  nRight,
sal_Int32  nBottom 
)
overridevirtual

Definition at line 62 of file cellcursor.cxx.

References sdr::table::CellRange::getCellRangeByPosition().

bool sdr::table::CellCursor::GetMergedSelection ( CellPos rStart,
CellPos rEnd 
)
private

returns true and the merged cell positions if a merge is valid or false if a merge is not valid for that range

Definition at line 159 of file cellcursor.cxx.

References Exception, sdr::table::findMergeOrigin(), mnBottom, sdr::table::CellPos::mnCol, mnLeft, mnRight, sdr::table::CellPos::mnRow, and mnTop.

Referenced by isMergeable(), and merge().

void SAL_CALL sdr::table::CellCursor::gotoEnd ( )
overridevirtual

Definition at line 84 of file cellcursor.cxx.

References mnBottom, mnLeft, mnRight, and mnTop.

void SAL_CALL sdr::table::CellCursor::gotoNext ( )
overridevirtual

Definition at line 91 of file cellcursor.cxx.

References mnBottom, mnLeft, mnRight, and mnTop.

void SAL_CALL sdr::table::CellCursor::gotoOffset ( ::sal_Int32  nColumnOffset,
::sal_Int32  nRowOffset 
)
overridevirtual

Definition at line 139 of file cellcursor.cxx.

References mnBottom, mnLeft, mnRight, and mnTop.

void SAL_CALL sdr::table::CellCursor::gotoPrevious ( )
overridevirtual

Definition at line 119 of file cellcursor.cxx.

References mnBottom, mnLeft, mnRight, and mnTop.

void SAL_CALL sdr::table::CellCursor::gotoStart ( )
overridevirtual

Definition at line 77 of file cellcursor.cxx.

References mnBottom, mnLeft, mnRight, and mnTop.

sal_Bool SAL_CALL sdr::table::CellCursor::isMergeable ( )
overridevirtual

Definition at line 536 of file cellcursor.cxx.

References GetMergedSelection().

void SAL_CALL sdr::table::CellCursor::merge ( )
overridevirtual
void SAL_CALL sdr::table::CellCursor::split ( ::sal_Int32  Columns,
::sal_Int32  Rows 
)
overridevirtual
void sdr::table::CellCursor::split_column ( sal_Int32  nCol,
sal_Int32  nColumns,
std::vector< sal_Int32 > &  rLeftOvers 
)
private

Definition at line 270 of file cellcursor.cxx.

References Any, DBG_ASSERT, mnBottom, mnRight, and mnTop.

Referenced by split_horizontal().

void sdr::table::CellCursor::split_horizontal ( sal_Int32  nColumns)
private

Definition at line 373 of file cellcursor.cxx.

References mnLeft, mnRight, and split_column().

Referenced by split().

void sdr::table::CellCursor::split_row ( sal_Int32  nRow,
sal_Int32  nRows,
std::vector< sal_Int32 > &  rLeftOvers 
)
private

Definition at line 384 of file cellcursor.cxx.

References Any, DBG_ASSERT, mnBottom, mnLeft, mnRight, and svx::nColCount.

Referenced by split_vertical().

void sdr::table::CellCursor::split_vertical ( sal_Int32  nRows)
private

Definition at line 487 of file cellcursor.cxx.

References mnBottom, mnTop, svx::nColCount, and split_row().

Referenced by split().


The documentation for this class was generated from the following files: