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

◆ CellCursor()

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

Definition at line 43 of file cellcursor.cxx.

◆ ~CellCursor()

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

Definition at line 49 of file cellcursor.cxx.

Member Function Documentation

◆ getCellByPosition()

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

Definition at line 57 of file cellcursor.cxx.

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

◆ getCellRangeByName()

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

Definition at line 69 of file cellcursor.cxx.

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

◆ getCellRangeByPosition()

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

Definition at line 63 of file cellcursor.cxx.

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

◆ GetMergedSelection()

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 160 of file cellcursor.cxx.

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

Referenced by isMergeable(), and merge().

◆ gotoEnd()

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

Definition at line 85 of file cellcursor.cxx.

References mnBottom, mnLeft, mnRight, and mnTop.

◆ gotoNext()

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

Definition at line 92 of file cellcursor.cxx.

References mnBottom, mnLeft, mnRight, and mnTop.

◆ gotoOffset()

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

Definition at line 140 of file cellcursor.cxx.

References mnBottom, mnLeft, mnRight, and mnTop.

◆ gotoPrevious()

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

Definition at line 120 of file cellcursor.cxx.

References mnBottom, mnLeft, mnRight, and mnTop.

◆ gotoStart()

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

Definition at line 78 of file cellcursor.cxx.

References mnBottom, mnLeft, mnRight, and mnTop.

◆ isMergeable()

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

Definition at line 537 of file cellcursor.cxx.

References GetMergedSelection().

◆ merge()

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

◆ split()

void SAL_CALL sdr::table::CellCursor::split ( ::sal_Int32  Columns,
::sal_Int32  Rows 
)
overridevirtual

◆ split_column()

void sdr::table::CellCursor::split_column ( sal_Int32  nCol,
sal_Int32  nColumns,
std::vector< sal_Int32 > &  rLeftOvers 
)
private

Definition at line 271 of file cellcursor.cxx.

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

Referenced by split_horizontal().

◆ split_horizontal()

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

Definition at line 374 of file cellcursor.cxx.

References mnLeft, mnRight, and split_column().

Referenced by split().

◆ split_row()

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

Definition at line 385 of file cellcursor.cxx.

References Any, DBG_ASSERT, mnBottom, mnLeft, mnRight, and u.

Referenced by split_vertical().

◆ split_vertical()

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

Definition at line 488 of file cellcursor.cxx.

References mnBottom, mnTop, and split_row().

Referenced by split().


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