LibreOffice Module toolkit (master) 1
Public Member Functions | List of all members
svt::table::ITableModelListener Class Referenceabstract

declares an interface to be implemented by components interested in changes in an ->ITableModel More...

#include <tablemodel.hxx>

Inheritance diagram for svt::table::ITableModelListener:
[legend]
Collaboration diagram for svt::table::ITableModelListener:
[legend]

Public Member Functions

virtual void rowsInserted (RowPos first, RowPos last)=0
 notifies the listener that one or more rows have been inserted into the table More...
 
virtual void rowsRemoved (RowPos first, RowPos last)=0
 notifies the listener that one or more rows have been removed from the table More...
 
virtual void columnInserted ()=0
 notifies the listener that one or more columns have been inserted into the table More...
 
virtual void columnRemoved ()=0
 notifies the listener that one or more columns have been removed from the table More...
 
virtual void allColumnsRemoved ()=0
 notifies the listener that all columns have been removed from the model More...
 
virtual void cellsUpdated (RowPos const i_firstRow, RowPos const i_lastRow)=0
 notifies the listener that a rectangular cell range in the table has been updated More...
 
virtual void columnChanged (ColPos const i_column, ColumnAttributeGroup const i_attributeGroup)=0
 notifies the listener that attributes of a given column changed More...
 
virtual void tableMetricsChanged ()=0
 notifies the listener that the metrics of the table changed. More...
 
virtual ~ITableModelListener ()
 deletes the listener instance More...
 

Detailed Description

declares an interface to be implemented by components interested in changes in an ->ITableModel

Definition at line 81 of file tablemodel.hxx.

Constructor & Destructor Documentation

◆ ~ITableModelListener()

virtual svt::table::ITableModelListener::~ITableModelListener ( )
inlinevirtual

deletes the listener instance

Definition at line 148 of file tablemodel.hxx.

Member Function Documentation

◆ allColumnsRemoved()

virtual void svt::table::ITableModelListener::allColumnsRemoved ( )
pure virtual

notifies the listener that all columns have been removed from the model

Implemented in svt::table::TableControl_Impl.

◆ cellsUpdated()

virtual void svt::table::ITableModelListener::cellsUpdated ( RowPos const  i_firstRow,
RowPos const  i_lastRow 
)
pure virtual

notifies the listener that a rectangular cell range in the table has been updated

Listeners are required to discard any possibly cached information they have about the cells in question, in particular any possibly cached cell values.

Implemented in svt::table::TableControl_Impl.

◆ columnChanged()

virtual void svt::table::ITableModelListener::columnChanged ( ColPos const  i_column,
ColumnAttributeGroup const  i_attributeGroup 
)
pure virtual

notifies the listener that attributes of a given column changed

Parameters
i_columnthe position of the column whose attributes changed
i_attributeGroupa combination of one or more COL_ATTRS_* flags, denoting the attribute group(s) in which changes occurred.

Implemented in svt::table::TableControl_Impl.

◆ columnInserted()

virtual void svt::table::ITableModelListener::columnInserted ( )
pure virtual

notifies the listener that one or more columns have been inserted into the table

Implemented in svt::table::TableControl_Impl.

◆ columnRemoved()

virtual void svt::table::ITableModelListener::columnRemoved ( )
pure virtual

notifies the listener that one or more columns have been removed from the table

Implemented in svt::table::TableControl_Impl.

◆ rowsInserted()

virtual void svt::table::ITableModelListener::rowsInserted ( RowPos  first,
RowPos  last 
)
pure virtual

notifies the listener that one or more rows have been inserted into the table

Parameters
firstthe index of the first newly inserted row
lastthe index of the last newly inserted row. Must not be smaller than ->first

Implemented in svt::table::TableControl_Impl.

◆ rowsRemoved()

virtual void svt::table::ITableModelListener::rowsRemoved ( RowPos  first,
RowPos  last 
)
pure virtual

notifies the listener that one or more rows have been removed from the table

Parameters
firstthe old index of the first removed row. If this is -1, then all rows have been removed from the model.
lastthe old index of the last removed row. Must not be smaller than ->first

Implemented in svt::table::TableControl_Impl.

◆ tableMetricsChanged()

virtual void svt::table::ITableModelListener::tableMetricsChanged ( )
pure virtual

notifies the listener that the metrics of the table changed.

Metrics here include the column header height, the row header width, the row height, and the presence of both the row and column header.

Implemented in svt::table::TableControl_Impl.


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