27#include <com/sun/star/style/VerticalAlignment.hpp>
28#include <com/sun/star/style/HorizontalAlignment.hpp>
428 virtual ::std::optional< ::std::vector< ::Color > >
interface to be implemented by table column models
virtual css::style::HorizontalAlignment getHorizontalAlign()=0
retrieves the horizontal alignment to be used for content in this cell
virtual TableMetrics getMaxWidth() const =0
returns the maximum width of the column, in app-font units, or 0 if the column does not have a minima...
virtual OUString getName() const =0
returns the name of the column
virtual OUString getHelpText() const =0
retrieves the help text to be displayed for the column.
virtual TableMetrics getMinWidth() const =0
returns the minimum width of the column, in app-font units, or 0 if the column does not have a minima...
virtual bool isResizable() const =0
determines whether the column can be interactively resized
virtual void setWidth(TableMetrics _nWidth)=0
sets a new width for the column
virtual TableMetrics getWidth() const =0
returns the width of the column, in app-font units
virtual ~IColumnModel()
deletes the column model instance
virtual sal_Int32 getFlexibility() const =0
denotes the relative flexibility of the column
provides sorting functionality for the data underlying an ITableModel
declares an interface to be implemented by components interested in changes in an ->ITableModel
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
virtual void columnChanged(ColPos const i_column, ColumnAttributeGroup const i_attributeGroup)=0
notifies the listener that attributes of a given column changed
virtual void tableMetricsChanged()=0
notifies the listener that the metrics of the table changed.
virtual void columnRemoved()=0
notifies the listener that one or more columns have been removed from the table
virtual void rowsRemoved(RowPos first, RowPos last)=0
notifies the listener that one or more rows have been removed from the table
virtual void allColumnsRemoved()=0
notifies the listener that all columns have been removed from the model
virtual ~ITableModelListener()
deletes the listener instance
virtual void columnInserted()=0
notifies the listener that one or more columns have been inserted into the table
virtual void rowsInserted(RowPos first, RowPos last)=0
notifies the listener that one or more rows have been inserted into the table
declares the interface to implement by an abstract table model
virtual void getCellContent(ColPos const i_col, RowPos const i_row, css::uno::Any &o_cellContent)=0
retrieves the content of the given cell
virtual void addTableModelListener(const PTableModelListener &i_listener)=0
adds a listener to be notified of changes in the table model
virtual ::std::optional< ::Color > getLineColor() const =0
returns the color to be used for rendering the grid lines.
virtual ::std::optional< ::Color > getHeaderTextColor() const =0
returns the color to be used for rendering the header text.
virtual ::std::optional< ::Color > getActiveSelectionTextColor() const =0
returns the color to be used for the text of selected cells, when the control has the focus
virtual bool hasRowHeaders() const =0
determines whether the table has row headers
virtual ::std::optional< ::Color > getInactiveSelectionTextColor() const =0
returns the color to be used for the text of selected cells, when the control does not have the focus
virtual bool isEnabled() const =0
returns enabled state.
virtual TableSize getColumnCount() const =0
returns the number of columns in the table
virtual ::std::optional< ::Color > getActiveSelectionBackColor() const =0
returns the color to be used for the background of selected cells, when the control has the focus
virtual void removeTableModelListener(const PTableModelListener &i_listener)=0
remove a listener to be notified of changes in the table model
virtual TableSize getRowCount() const =0
returns the number of rows in the table
virtual PColumnModel getColumnModel(ColPos column)=0
returns a model for a certain column
virtual PTableInputHandler getInputHandler() const =0
returns the component handling input in a view associated with the model
virtual ::std::optional< ::Color > getTextColor() const =0
returns the color to be used for rendering cell texts.
virtual ::std::optional< ::Color > getHeaderBackgroundColor() const =0
returns the color to be used for rendering the header background.
virtual ::std::optional< ::std::vector< ::Color > > getRowBackgroundColors() const =0
returns the colors to be used for the row backgrounds.
virtual TableMetrics getColumnHeaderHeight() const =0
determines the height of the column header row
virtual bool hasColumnHeaders() const =0
determines whether the table has column headers
virtual ::std::optional< ::Color > getTextLineColor() const =0
returns the color to be used for text lines (underline, strikethrough) when rendering cell text.
virtual ITableDataSort * getSortAdapter()=0
returns an adapter to the sorting functionality of the model
virtual css::style::VerticalAlignment getVerticalAlign() const =0
determines the vertical alignment of content within a cell
virtual ~ITableModel()
destroys the table model instance
virtual ::std::optional< ::Color > getInactiveSelectionBackColor() const =0
returns the color to be used for the background of selected cells, when the control does not have the...
virtual ScrollbarVisibility getVerticalScrollbarVisibility() const =0
returns the visibility mode of the vertical scrollbar
virtual ScrollbarVisibility getHorizontalScrollbarVisibility() const =0
returns the visibility mode of the horizontal scrollbar
virtual PTableRenderer getRenderer() const =0
returns a renderer which is able to paint the table represented by this table model
virtual void getCellToolTip(ColPos const i_col, RowPos const i_row, css::uno::Any &o_cellToolTip)=0
returns an object which should be displayed as tooltip for the given cell
virtual TableMetrics getRowHeaderWidth() const =0
determines the width of the row header column
virtual css::uno::Any getRowHeading(RowPos const i_rowPos) const =0
retrieves title of a given row
virtual TableMetrics getRowHeight() const =0
determines the height of rows in the table.
#define TOOLKIT_DLLPUBLIC
void SAL_CALL last(const css::awt::SpinEvent &rEvent) override
void SAL_CALL first(const css::awt::SpinEvent &rEvent) override
sal_Int32 TableSize
a value denoting the size of a table
sal_Int32 RowPos
a value denoting a row position within a table
std::shared_ptr< ITableModel > PTableModel
std::shared_ptr< ITableRenderer > PTableRenderer
@ ScrollbarShowNever
enumeration value denoting that a scrollbar should never be visible, even if needed normally
@ ScrollbarShowSmart
enumeration value denoting that a scrollbar should be visible when needed only
@ ScrollbarShowAlways
enumeration value denoting that a scrollbar should always be visible, even if not needed normally
sal_Int32 ColPos
a value denoting a column position within a table
std::shared_ptr< ITableInputHandler > PTableInputHandler
std::shared_ptr< IColumnModel > PColumnModel
std::shared_ptr< ITableModelListener > PTableModelListener
@ APPEARANCE
denotes column attributes related to the appearance of the column, i.e. those relevant for rendering