LibreOffice Module toolkit (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
svt::table::TableControl_Impl Class Reference

#include <tablecontrol_impl.hxx>

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

Public Member Functions

void setModel (const PTableModel &_pModel)
 
const PTableInputHandlergetInputHandler () const
 
RowPos getCurRow () const
 
RowPos getAnchor () const
 
void setAnchor (RowPos const i_anchor)
 
RowPos getTopRow () const
 
ColPos getLeftColumn () const
 
const TableControlgetAntiImpl () const
 
TableControlgetAntiImpl ()
 
 TableControl_Impl (TableControl &_rAntiImpl)
 
virtual ~TableControl_Impl () override
 
void onResize ()
 to be called when the anti-impl instance has been resized More...
 
void doPaintContent (vcl::RenderContext &rRenderContext, const tools::Rectangle &_rUpdateRect)
 paints the table control content which intersects with the given rectangle More...
 
bool goTo (ColPos _nColumn, RowPos _nRow)
 moves the cursor to the cell with the given coordinates More...
 
void ensureVisible (ColPos _nColumn, RowPos _nRow)
 ensures that the given coordinate is visible More...
 
OUString getCellContentAsString (RowPos const i_row, ColPos const i_col)
 retrieves the content of the given cell, converted to a string More...
 
void invalidateRect (const tools::Rectangle &rInvalidateRect)
 
void invalidateSelectedRegion (RowPos _nPrevRow, RowPos _nCurRow)
 ??? More...
 
void invalidateRowRange (RowPos const i_firstRow, RowPos const i_lastRow)
 invalidates the part of the data window which is covered by the given rows More...
 
void invalidateRow (RowPos const i_row)
 invalidates the part of the data window which is covered by the given row More...
 
void invalidateSelectedRows ()
 invalidates all selected rows More...
 
void checkCursorPosition ()
 
bool hasRowSelection () const
 
size_t getSelectedRowCount () const
 
RowPos getSelectedRowIndex (size_t const i_selectionIndex) const
 
bool markRowAsDeselected (RowPos const i_rowIndex)
 removes the given row index from m_aSelectedRows More...
 
bool markRowAsSelected (RowPos const i_rowIndex)
 marks the given row as selected, by putting it into m_aSelectedRows More...
 
bool markAllRowsAsDeselected ()
 marks all rows as deselected More...
 
bool markAllRowsAsSelected ()
 marks all rows as selected More...
 
void commitAccessibleEvent (sal_Int16 const i_eventID)
 
void commitCellEvent (sal_Int16 const i_eventID, const css::uno::Any &i_newValue, const css::uno::Any &i_oldValue)
 
void commitTableEvent (sal_Int16 const i_eventID, const css::uno::Any &i_newValue, const css::uno::Any &i_oldValue)
 
virtual void hideCursor () override
 hides the cell cursor More...
 
virtual void showCursor () override
 shows the cell cursor More...
 
virtual bool dispatchAction (TableControlAction _eAction) override
 dispatches an action to the table control More...
 
virtual SelectionEnginegetSelEngine () override
 returns selection engine More...
 
virtual PTableModel getModel () const override
 returns the table model More...
 
virtual ColPos getCurrentColumn () const override
 returns the index of the currently active column More...
 
virtual RowPos getCurrentRow () const override
 returns the index of the currently active row More...
 
virtual void activateCell (ColPos const i_col, RowPos const i_row) override
 activates the given cell More...
 
virtual ::Size getTableSizePixel () const override
 retrieves the size of the table window, in pixels More...
 
virtual void setPointer (PointerStyle i_pointer) override
 sets a new mouse pointer for the table window More...
 
virtual void captureMouse () override
 captures the mouse to the table window More...
 
virtual void releaseMouse () override
 releases the mouse, after it had previously been captured More...
 
virtual void invalidate (TableArea const i_what) override
 invalidates the table window More...
 
virtual tools::Long pixelWidthToAppFont (tools::Long const i_pixels) const override
 calculates a width, given in pixels, into an AppFont-based width More...
 
virtual void hideTracking () override
 hides a previously shown tracking rectangle More...
 
virtual void showTracking (tools::Rectangle const &i_location, ShowTrackFlags const i_flags) override
 shows a tracking rectangle More...
 
RowPos getRowAtPoint (const Point &rPoint) const
 
ColPos getColAtPoint (const Point &rPoint) const
 
virtual TableCell hitTest (const Point &rPoint) const override
 does a hit test for the given pixel coordinates More...
 
virtual ColumnMetrics getColumnMetrics (ColPos const i_column) const override
 retrieves the metrics for a given column More...
 
virtual bool isRowSelected (RowPos i_row) const override
 determines whether a given row is selected More...
 
tools::Long appFontWidthToPixel (tools::Long const i_appFontUnits) const
 
TableDataWindowgetDataWindow ()
 
const TableDataWindowgetDataWindow () const
 
ScrollBargetHorzScrollbar ()
 
ScrollBargetVertScrollbar ()
 
tools::Rectangle calcHeaderRect (bool bColHeader)
 
tools::Rectangle calcHeaderCellRect (bool bColHeader, sal_Int32 nPos)
 
tools::Rectangle calcTableRect () const
 
tools::Rectangle calcCellRect (sal_Int32 nRow, sal_Int32 nCol) const
 
css::uno::Reference< css::accessibility::XAccessible > getAccessible (vcl::Window &i_parentWindow)
 
void disposeAccessible ()
 
bool isAccessibleAlive () const
 
virtual void rowsInserted (RowPos first, RowPos last) override
 notifies the listener that one or more rows have been inserted into the table More...
 
virtual void rowsRemoved (RowPos first, RowPos last) override
 notifies the listener that one or more rows have been removed from the table More...
 
virtual void columnInserted () override
 notifies the listener that one or more columns have been inserted into the table More...
 
virtual void columnRemoved () override
 notifies the listener that one or more columns have been removed from the table More...
 
virtual void allColumnsRemoved () override
 notifies the listener that all columns have been removed from the model More...
 
virtual void cellsUpdated (RowPos const i_firstRow, RowPos const i_lastRow) override
 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) override
 notifies the listener that attributes of a given column changed More...
 
virtual void tableMetricsChanged () override
 notifies the listener that the metrics of the table changed. More...
 
- Public Member Functions inherited from svt::table::ITableControl
virtual void hideCursor ()=0
 hides the cell cursor More...
 
virtual void showCursor ()=0
 shows the cell cursor More...
 
virtual bool dispatchAction (TableControlAction _eAction)=0
 dispatches an action to the table control More...
 
virtual SelectionEnginegetSelEngine ()=0
 returns selection engine More...
 
virtual PTableModel getModel () const =0
 returns the table model More...
 
virtual ColPos getCurrentColumn () const =0
 returns the index of the currently active column More...
 
virtual RowPos getCurrentRow () const =0
 returns the index of the currently active row More...
 
virtual void activateCell (ColPos const i_col, RowPos const i_row)=0
 activates the given cell More...
 
virtual ::Size getTableSizePixel () const =0
 retrieves the size of the table window, in pixels More...
 
virtual void setPointer (PointerStyle i_pointer)=0
 sets a new mouse pointer for the table window More...
 
virtual void captureMouse ()=0
 captures the mouse to the table window More...
 
virtual void releaseMouse ()=0
 releases the mouse, after it had previously been captured More...
 
virtual void invalidate (TableArea const i_what)=0
 invalidates the table window More...
 
virtual tools::Long pixelWidthToAppFont (tools::Long const i_pixels) const =0
 calculates a width, given in pixels, into an AppFont-based width More...
 
virtual void showTracking (tools::Rectangle const &i_location, ShowTrackFlags const i_flags)=0
 shows a tracking rectangle More...
 
virtual void hideTracking ()=0
 hides a previously shown tracking rectangle More...
 
virtual TableCell hitTest (const Point &rPoint) const =0
 does a hit test for the given pixel coordinates More...
 
virtual ColumnMetrics getColumnMetrics (ColPos const i_column) const =0
 retrieves the metrics for a given column More...
 
virtual bool isRowSelected (RowPos _nRow) const =0
 determines whether a given row is selected More...
 
virtual ~ITableControl ()
 
- Public Member Functions inherited from svt::table::ITableModelListener
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...
 

Static Public Member Functions

static int getRowSelectedNumber (const ::std::vector< RowPos > &selectedRows, RowPos current)
 returns the position of the current row in the selection vector More...
 

Private Member Functions

bool impl_isAccessibleAlive () const
 
void impl_commitAccessibleEvent (sal_Int16 const i_eventID, css::uno::Any const &i_newValue)
 
void impl_ni_doSwitchCursor (bool _bOn)
 toggles the cursor visibility More...
 
TableSize impl_getVisibleRows (bool _bAcceptPartialRow) const
 returns the number of visible rows. More...
 
TableSize impl_getVisibleColumns (bool _bAcceptPartialCol) const
 returns the number of visible columns More...
 
void impl_getCellRect (ColPos _nColumn, RowPos _nRow, tools::Rectangle &_rCellRect) const
 determines the rectangle occupied by the given cell More...
 
void impl_ni_updateCachedModelValues ()
 updates all cached model values More...
 
void impl_ni_updateCachedTableMetrics ()
 updates the cached table metrics (row height etc.) More...
 
void impl_ni_relayout (ColPos const i_assumeInflexibleColumnsUpToIncluding=COL_INVALID)
 does a relayout of the table control More...
 
tools::Long impl_ni_calculateColumnWidths (ColPos const i_assumeInflexibleColumnsUpToIncluding, bool const i_assumeVerticalScrollbar, ::std::vector< tools::Long > &o_newColWidthsPixel) const
 calculates the new width of our columns, taking into account their min and max widths, and their relative flexibility. More...
 
void impl_ni_positionChildWindows (tools::Rectangle const &i_dataCellPlayground, bool const i_verticalScrollbar, bool const i_horizontalScrollbar)
 positions all child windows, e.g. More...
 
TableSize impl_ni_ScrollRows (TableSize _nRowDelta)
 scrolls the view by the given number of rows More...
 
TableSize impl_scrollRows (TableSize const i_rowDelta)
 equivalent to impl_ni_ScrollRows, but checks the instances invariants beforehand (in a non-product build only) More...
 
TableSize impl_ni_ScrollColumns (TableSize _nColumnDelta)
 scrolls the view by the given number of columns More...
 
TableSize impl_scrollColumns (TableSize const i_columnDelta)
 equivalent to impl_ni_ScrollColumns, but checks the instances invariants beforehand (in a non-product build only) More...
 
tools::Rectangle impl_getAllVisibleCellsArea () const
 retrieves the area occupied by the totality of (at least partially) visible cells More...
 
tools::Rectangle impl_getAllVisibleDataCellArea () const
 retrieves the area occupied by all (at least partially) visible data cells. More...
 
ColPos impl_getColumnForOrdinate (tools::Long const i_ordinate) const
 retrieves the column which covers the given ordinate More...
 
RowPos impl_getRowForAbscissa (tools::Long const i_abscissa) const
 retrieves the row which covers the given abscissa More...
 
void impl_invalidateColumn (ColPos const i_column)
 invalidates the window area occupied by the given column More...
 
 DECL_LINK (OnScroll, ScrollBar *, void)
 
 DECL_LINK (OnUpdateScrollbars, void *, void)
 

Private Attributes

TableControlm_rAntiImpl
 the control whose impl-instance we implement More...
 
PTableModel m_pModel
 the model of the table control More...
 
PTableInputHandler m_pInputHandler
 the input handler to use, usually the input handler as provided by ->m_pModel More...
 
ColumnPositions m_aColumnWidths
 info about the widths of our columns More...
 
tools::Long m_nRowHeightPixel
 the height of a single row in the table, measured in pixels More...
 
tools::Long m_nColHeaderHeightPixel
 the height of the column header row in the table, measured in pixels More...
 
tools::Long m_nRowHeaderWidthPixel
 the width of the row header column in the table, measured in pixels More...
 
TableSize m_nColumnCount
 the number of columns in the table control. Cached model value. More...
 
TableSize m_nRowCount
 the number of rows in the table control. Cached model value. More...
 
ColPos m_nCurColumn
 
RowPos m_nCurRow
 
ColPos m_nLeftColumn
 
RowPos m_nTopRow
 
sal_Int32 m_nCursorHidden
 
VclPtr< TableDataWindowm_pDataWindow
 the window to contain all data content, including header bars More...
 
VclPtr< ScrollBarm_pVScroll
 the vertical scrollbar, if any More...
 
VclPtr< ScrollBarm_pHScroll
 the horizontal scrollbar, if any More...
 
VclPtr< ScrollBarBoxm_pScrollCorner
 
std::unique_ptr< SelectionEnginem_pSelEngine
 
std::vector< RowPosm_aSelectedRows
 
std::unique_ptr< TableFunctionSetm_pTableFunctionSet
 
RowPos m_nAnchor
 
bool m_bUpdatingColWidths
 
vcl::AccessibleFactoryAccess m_aFactoryAccess
 
vcl::table::IAccessibleTableControlm_pAccessibleTable
 

Friends

class TableGeometry
 
class TableRowGeometry
 
class TableColumnGeometry
 
class SuspendInvariants
 

Detailed Description

Definition at line 74 of file tablecontrol_impl.hxx.

Constructor & Destructor Documentation

◆ TableControl_Impl()

svt::table::TableControl_Impl::TableControl_Impl ( TableControl _rAntiImpl)
explicit

◆ ~TableControl_Impl()

svt::table::TableControl_Impl::~TableControl_Impl ( )
overridevirtual

Member Function Documentation

◆ activateCell()

void svt::table::TableControl_Impl::activateCell ( ColPos const  i_col,
RowPos const  i_row 
)
overridevirtual

activates the given cell

Implements svt::table::ITableControl.

Definition at line 1811 of file tablecontrol_impl.cxx.

References goTo().

◆ allColumnsRemoved()

void svt::table::TableControl_Impl::allColumnsRemoved ( )
overridevirtual

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

Implements svt::table::ITableModelListener.

Definition at line 444 of file tablecontrol_impl.cxx.

References impl_ni_relayout(), vcl::Window::Invalidate(), m_nColumnCount, m_pModel, and m_rAntiImpl.

◆ appFontWidthToPixel()

tools::Long svt::table::TableControl_Impl::appFontWidthToPixel ( tools::Long const  i_appFontUnits) const

Definition at line 1793 of file tablecontrol_impl.cxx.

References m_pDataWindow.

Referenced by impl_ni_calculateColumnWidths().

◆ calcCellRect()

tools::Rectangle svt::table::TableControl_Impl::calcCellRect ( sal_Int32  nRow,
sal_Int32  nCol 
) const

Definition at line 2344 of file tablecontrol_impl.cxx.

References impl_getCellRect().

◆ calcHeaderCellRect()

tools::Rectangle svt::table::TableControl_Impl::calcHeaderCellRect ( bool  bColHeader,
sal_Int32  nPos 
)

◆ calcHeaderRect()

tools::Rectangle svt::table::TableControl_Impl::calcHeaderRect ( bool  bColHeader)

◆ calcTableRect()

tools::Rectangle svt::table::TableControl_Impl::calcTableRect ( ) const

Definition at line 2338 of file tablecontrol_impl.cxx.

References impl_getAllVisibleDataCellArea().

◆ captureMouse()

void svt::table::TableControl_Impl::captureMouse ( )
overridevirtual

captures the mouse to the table window

Implements svt::table::ITableControl.

Definition at line 1755 of file tablecontrol_impl.cxx.

References m_pDataWindow.

◆ cellsUpdated()

void svt::table::TableControl_Impl::cellsUpdated ( RowPos const  i_firstRow,
RowPos const  i_lastRow 
)
overridevirtual

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.

Implements svt::table::ITableModelListener.

Definition at line 453 of file tablecontrol_impl.cxx.

References invalidateRowRange().

◆ checkCursorPosition()

void svt::table::TableControl_Impl::checkCursorPosition ( )

◆ columnChanged()

void svt::table::TableControl_Impl::columnChanged ( ColPos const  i_column,
ColumnAttributeGroup const  i_attributeGroup 
)
overridevirtual

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.

Implements svt::table::ITableModelListener.

Definition at line 477 of file tablecontrol_impl.cxx.

References svt::table::All, ALL, APPEARANCE, impl_invalidateColumn(), impl_ni_relayout(), invalidate(), m_bUpdatingColWidths, NONE, and WIDTH.

◆ columnInserted()

void svt::table::TableControl_Impl::columnInserted ( )
overridevirtual

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

Implements svt::table::ITableModelListener.

Definition at line 416 of file tablecontrol_impl.cxx.

References impl_ni_relayout(), vcl::Window::Invalidate(), m_nColumnCount, m_pModel, and m_rAntiImpl.

◆ columnRemoved()

void svt::table::TableControl_Impl::columnRemoved ( )
overridevirtual

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

Implements svt::table::ITableModelListener.

Definition at line 425 of file tablecontrol_impl.cxx.

References COL_INVALID, goTo(), impl_ni_relayout(), vcl::Window::Invalidate(), m_nColumnCount, m_nCurColumn, m_nCurRow, m_pModel, and m_rAntiImpl.

◆ commitAccessibleEvent()

void svt::table::TableControl_Impl::commitAccessibleEvent ( sal_Int16 const  i_eventID)

Definition at line 2295 of file tablecontrol_impl.cxx.

References Any, and impl_commitAccessibleEvent().

◆ commitCellEvent()

void svt::table::TableControl_Impl::commitCellEvent ( sal_Int16 const  i_eventID,
const css::uno::Any &  i_newValue,
const css::uno::Any &  i_oldValue 
)

◆ commitTableEvent()

void svt::table::TableControl_Impl::commitTableEvent ( sal_Int16 const  i_eventID,
const css::uno::Any &  i_newValue,
const css::uno::Any &  i_oldValue 
)

◆ DECL_LINK() [1/2]

svt::table::TableControl_Impl::DECL_LINK ( OnScroll  ,
ScrollBar ,
void   
)
private

◆ DECL_LINK() [2/2]

svt::table::TableControl_Impl::DECL_LINK ( OnUpdateScrollbars  ,
void *  ,
void   
)
private

◆ dispatchAction()

bool svt::table::TableControl_Impl::dispatchAction ( TableControlAction  _eAction)
overridevirtual

◆ disposeAccessible()

void svt::table::TableControl_Impl::disposeAccessible ( )

◆ doPaintContent()

void svt::table::TableControl_Impl::doPaintContent ( vcl::RenderContext rRenderContext,
const tools::Rectangle _rUpdateRect 
)

◆ ensureVisible()

void svt::table::TableControl_Impl::ensureVisible ( ColPos  _nColumn,
RowPos  _nRow 
)

ensures that the given coordinate is visible

Parameters
_nColumnthe column position which should be visible. Must be non-negative, and smaller than the column count.
_nRowthe row position which should be visibleMust be non-negative, and smaller than the row count.

Definition at line 1972 of file tablecontrol_impl.cxx.

References DBG_ASSERT, impl_getVisibleColumns(), impl_getVisibleRows(), impl_scrollColumns(), impl_scrollRows(), m_nColumnCount, m_nLeftColumn, m_nRowCount, and m_nTopRow.

Referenced by dispatchAction(), and goTo().

◆ getAccessible()

Reference< XAccessible > svt::table::TableControl_Impl::getAccessible ( vcl::Window i_parentWindow)

◆ getAnchor()

RowPos svt::table::TableControl_Impl::getAnchor ( ) const
inline

Definition at line 143 of file tablecontrol_impl.hxx.

References m_nAnchor.

Referenced by svt::table::TableFunctionSet::SetCursorAtPoint().

◆ getAntiImpl() [1/2]

TableControl & svt::table::TableControl_Impl::getAntiImpl ( )
inline

Definition at line 150 of file tablecontrol_impl.hxx.

References m_rAntiImpl.

◆ getAntiImpl() [2/2]

const TableControl & svt::table::TableControl_Impl::getAntiImpl ( ) const
inline

Definition at line 149 of file tablecontrol_impl.hxx.

References m_rAntiImpl.

Referenced by svt::table::TableDataWindow::MouseButtonUp().

◆ getCellContentAsString()

OUString svt::table::TableControl_Impl::getCellContentAsString ( RowPos const  i_row,
ColPos const  i_col 
)

retrieves the content of the given cell, converted to a string

Definition at line 2004 of file tablecontrol_impl.cxx.

References Any, and m_pModel.

◆ getColAtPoint()

ColPos svt::table::TableControl_Impl::getColAtPoint ( const Point rPoint) const

◆ getColumnMetrics()

ColumnMetrics svt::table::TableControl_Impl::getColumnMetrics ( ColPos const  i_column) const
overridevirtual

retrieves the metrics for a given column

Implements svt::table::ITableControl.

Definition at line 1717 of file tablecontrol_impl.cxx.

References ENSURE_OR_RETURN, and m_aColumnWidths.

◆ getCurrentColumn()

ColPos svt::table::TableControl_Impl::getCurrentColumn ( ) const
overridevirtual

returns the index of the currently active column

Implements svt::table::ITableControl.

Definition at line 1731 of file tablecontrol_impl.cxx.

References m_nCurColumn.

◆ getCurrentRow()

RowPos svt::table::TableControl_Impl::getCurrentRow ( ) const
overridevirtual

returns the index of the currently active row

Implements svt::table::ITableControl.

Definition at line 1737 of file tablecontrol_impl.cxx.

References m_nCurRow.

◆ getCurRow()

RowPos svt::table::TableControl_Impl::getCurRow ( ) const
inline

◆ getDataWindow() [1/2]

TableDataWindow & svt::table::TableControl_Impl::getDataWindow ( )
inline

Definition at line 271 of file tablecontrol_impl.hxx.

References m_pDataWindow.

◆ getDataWindow() [2/2]

const TableDataWindow & svt::table::TableControl_Impl::getDataWindow ( ) const
inline

Definition at line 272 of file tablecontrol_impl.hxx.

References m_pDataWindow.

◆ getHorzScrollbar()

ScrollBar * svt::table::TableControl_Impl::getHorzScrollbar ( )
inline

Definition at line 273 of file tablecontrol_impl.hxx.

References m_pHScroll.

Referenced by svt::table::TableDataWindow::EventNotify().

◆ getInputHandler()

const PTableInputHandler & svt::table::TableControl_Impl::getInputHandler ( ) const
inline

◆ getLeftColumn()

ColPos svt::table::TableControl_Impl::getLeftColumn ( ) const
inline

Definition at line 147 of file tablecontrol_impl.hxx.

References m_nLeftColumn.

Referenced by svt::table::TableFunctionSet::SetCursorAtPoint().

◆ getModel()

PTableModel svt::table::TableControl_Impl::getModel ( ) const
overridevirtual

returns the table model

The returned model is guaranteed to not be <NULL>.

Implements svt::table::ITableControl.

Definition at line 1725 of file tablecontrol_impl.cxx.

References m_pModel.

Referenced by doPaintContent(), and svt::table::TableDataWindow::RequestHelp().

◆ getRowAtPoint()

RowPos svt::table::TableControl_Impl::getRowAtPoint ( const Point rPoint) const

◆ getRowSelectedNumber()

int svt::table::TableControl_Impl::getRowSelectedNumber ( const ::std::vector< RowPos > &  selectedRows,
RowPos  current 
)
static

returns the position of the current row in the selection vector

Definition at line 2168 of file tablecontrol_impl.cxx.

Referenced by dispatchAction().

◆ getSelectedRowCount()

size_t svt::table::TableControl_Impl::getSelectedRowCount ( ) const
inline

◆ getSelectedRowIndex()

RowPos svt::table::TableControl_Impl::getSelectedRowIndex ( size_t const  i_selectionIndex) const

Definition at line 2160 of file tablecontrol_impl.cxx.

References m_aSelectedRows, and ROW_INVALID.

Referenced by svt::table::TableFunctionSet::DeselectAll().

◆ getSelEngine()

SelectionEngine * svt::table::TableControl_Impl::getSelEngine ( )
overridevirtual

◆ getTableSizePixel()

Size svt::table::TableControl_Impl::getTableSizePixel ( ) const
overridevirtual

retrieves the size of the table window, in pixels

Implements svt::table::ITableControl.

Definition at line 1743 of file tablecontrol_impl.cxx.

References m_pDataWindow.

◆ getTopRow()

RowPos svt::table::TableControl_Impl::getTopRow ( ) const
inline

Definition at line 146 of file tablecontrol_impl.hxx.

References m_nTopRow.

Referenced by doPaintContent(), and svt::table::TableFunctionSet::SetCursorAtPoint().

◆ getVertScrollbar()

ScrollBar * svt::table::TableControl_Impl::getVertScrollbar ( )
inline

Definition at line 274 of file tablecontrol_impl.hxx.

References m_pVScroll.

Referenced by svt::table::TableDataWindow::EventNotify().

◆ goTo()

bool svt::table::TableControl_Impl::goTo ( ColPos  _nColumn,
RowPos  _nRow 
)

moves the cursor to the cell with the given coordinates

To ease the caller's code, the coordinates must not necessarily denote a valid position. If they don't, <FALSE> will be returned.

Definition at line 1950 of file tablecontrol_impl.cxx.

References ensureVisible(), m_nColumnCount, m_nCurColumn, m_nCurRow, and m_nRowCount.

Referenced by activateCell(), columnRemoved(), dispatchAction(), rowsInserted(), rowsRemoved(), and svt::table::TableFunctionSet::SetCursorAtPoint().

◆ hasRowSelection()

bool svt::table::TableControl_Impl::hasRowSelection ( ) const
inline

◆ hideCursor()

void svt::table::TableControl_Impl::hideCursor ( )
overridevirtual

hides the cell cursor

The method cares for successive calls, that is, for every call to ->hideCursor(), you need one call to ->showCursor. Only if the number of both calls matches, the cursor is really shown.

See also
showCursor

Implements svt::table::ITableControl.

Definition at line 1268 of file tablecontrol_impl.cxx.

References impl_ni_doSwitchCursor(), and m_nCursorHidden.

◆ hideTracking()

void svt::table::TableControl_Impl::hideTracking ( )
overridevirtual

hides a previously shown tracking rectangle

Implements svt::table::ITableControl.

Definition at line 1799 of file tablecontrol_impl.cxx.

References m_pDataWindow.

◆ hitTest()

TableCell svt::table::TableControl_Impl::hitTest ( const Point rPoint) const
overridevirtual

◆ impl_commitAccessibleEvent()

void svt::table::TableControl_Impl::impl_commitAccessibleEvent ( sal_Int16 const  i_eventID,
css::uno::Any const &  i_newValue 
)
private

◆ impl_getAllVisibleCellsArea()

tools::Rectangle svt::table::TableControl_Impl::impl_getAllVisibleCellsArea ( ) const
private

retrieves the area occupied by the totality of (at least partially) visible cells

The returned area includes row and column headers. Also, it takes into account the fact that there might be less columns than would normally find room in the control.

As a result of respecting the partial visibility of rows and columns, the returned area might be larger than the data window's output size.

Definition at line 502 of file tablecontrol_impl.cxx.

References tools::Rectangle::AdjustRight(), impl_getVisibleRows(), m_aColumnWidths, m_nColHeaderHeightPixel, m_nLeftColumn, m_nRowHeaderWidthPixel, m_nRowHeightPixel, tools::Rectangle::Right(), tools::Rectangle::SetBottom(), and tools::Rectangle::SetRight().

Referenced by calcHeaderRect(), doPaintContent(), impl_getAllVisibleDataCellArea(), impl_getCellRect(), impl_invalidateColumn(), invalidateRowRange(), and invalidateSelectedRegion().

◆ impl_getAllVisibleDataCellArea()

tools::Rectangle svt::table::TableControl_Impl::impl_getAllVisibleDataCellArea ( ) const
private

retrieves the area occupied by all (at least partially) visible data cells.

Effectively, the returned area is the same as returned by ->impl_getAllVisibleCellsArea, minus the row and column header areas.

Definition at line 538 of file tablecontrol_impl.cxx.

References impl_getAllVisibleCellsArea(), m_nColHeaderHeightPixel, m_nRowHeaderWidthPixel, tools::Rectangle::SetLeft(), and tools::Rectangle::SetTop().

Referenced by calcTableRect(), and doPaintContent().

◆ impl_getCellRect()

void svt::table::TableControl_Impl::impl_getCellRect ( ColPos  _nColumn,
RowPos  _nRow,
tools::Rectangle _rCellRect 
) const
private

◆ impl_getColumnForOrdinate()

ColPos svt::table::TableControl_Impl::impl_getColumnForOrdinate ( tools::Long const  i_ordinate) const
private

retrieves the column which covers the given ordinate

Definition at line 2179 of file tablecontrol_impl.cxx.

References COL_INVALID, COL_ROW_HEADERS, m_aColumnWidths, m_nColumnCount, and m_nRowHeaderWidthPixel.

Referenced by getColAtPoint().

◆ impl_getRowForAbscissa()

RowPos svt::table::TableControl_Impl::impl_getRowForAbscissa ( tools::Long const  i_abscissa) const
private

retrieves the row which covers the given abscissa

Definition at line 2205 of file tablecontrol_impl.cxx.

References m_nColHeaderHeightPixel, m_nRowHeightPixel, m_nTopRow, m_pModel, ROW_COL_HEADERS, and ROW_INVALID.

Referenced by getRowAtPoint().

◆ impl_getVisibleColumns()

TableSize svt::table::TableControl_Impl::impl_getVisibleColumns ( bool  _bAcceptPartialCol) const
private

returns the number of visible columns

The value may change with different horizontal scroll positions, as different columns have different widths. For instance, if your control is 100 pixels wide, and has three columns of width 50, 50, 100, respectively, then this method will return either "2" or "1", depending on which column is the first visible one.

Parameters
_bAcceptPartialRowspecifies whether a possible only partially visible last row is counted, too.

Definition at line 1937 of file tablecontrol_impl.cxx.

References DBG_ASSERT, m_nLeftColumn, and m_pDataWindow.

Referenced by checkCursorPosition(), and ensureVisible().

◆ impl_getVisibleRows()

TableSize svt::table::TableControl_Impl::impl_getVisibleRows ( bool  _bAcceptPartialRow) const
private

returns the number of visible rows.

Parameters
_bAcceptPartialRowspecifies whether a possible only partially visible last row is counted, too.

Definition at line 1925 of file tablecontrol_impl.cxx.

References DBG_ASSERT, m_nColHeaderHeightPixel, m_nRowHeightPixel, and m_pDataWindow.

Referenced by checkCursorPosition(), dispatchAction(), doPaintContent(), ensureVisible(), impl_getAllVisibleCellsArea(), and invalidateRowRange().

◆ impl_invalidateColumn()

void svt::table::TableControl_Impl::impl_invalidateColumn ( ColPos const  i_column)
private

invalidates the window area occupied by the given column

Definition at line 467 of file tablecontrol_impl.cxx.

References svt::table::TableGeometry::getRect(), impl_getAllVisibleCellsArea(), vcl::Window::Invalidate(), svt::table::TableGeometry::isValid(), and m_rAntiImpl.

Referenced by columnChanged().

◆ impl_isAccessibleAlive()

bool svt::table::TableControl_Impl::impl_isAccessibleAlive ( ) const
private

◆ impl_ni_calculateColumnWidths()

tools::Long svt::table::TableControl_Impl::impl_ni_calculateColumnWidths ( ColPos const  i_assumeInflexibleColumnsUpToIncluding,
bool const  i_assumeVerticalScrollbar,
::std::vector< tools::Long > &  o_newColWidthsPixel 
) const
private

calculates the new width of our columns, taking into account their min and max widths, and their relative flexibility.

Parameters
i_assumeInflexibleColumnsUpToIncludingthe index of a column up to which all columns should be considered as inflexible, or COL_INVALID.
i_assumeVerticalScrollbarcontrols whether or not we should assume the presence of a vertical scrollbar. If <true>, and if the model has a VerticalScrollbarVisibility != ScrollbarShowNever, the method will leave space for a vertical scrollbar.
Returns
the overall width of the grid, which is available for columns

Definition at line 688 of file tablecontrol_impl.cxx.

References appFontWidthToPixel(), col, ENSURE_OR_RETURN, ENSURE_OR_THROW, first(), vcl::Window::GetOutputSizePixel(), StyleSettings::GetScrollBarSize(), vcl::Window::GetSettings(), AllSettings::GetStyleSettings(), i, m_nRowHeaderWidthPixel, m_pModel, m_rAntiImpl, MIN_COLUMN_WIDTH_PIXEL, svt::table::ScrollbarShowNever, and Size::Width().

Referenced by impl_ni_relayout().

◆ impl_ni_doSwitchCursor()

void svt::table::TableControl_Impl::impl_ni_doSwitchCursor ( bool  _bOn)
private

toggles the cursor visibility

The method is not bound to the classes public invariants, as it's used in situations where the they must not necessarily be fulfilled.

Definition at line 1655 of file tablecontrol_impl.cxx.

References impl_getCellRect(), m_nCurColumn, m_nCurRow, m_pDataWindow, and m_pModel.

Referenced by hideCursor(), and showCursor().

◆ impl_ni_positionChildWindows()

void svt::table::TableControl_Impl::impl_ni_positionChildWindows ( tools::Rectangle const &  i_dataCellPlayground,
bool const  i_verticalScrollbar,
bool const  i_horizontalScrollbar 
)
private

◆ impl_ni_relayout()

void svt::table::TableControl_Impl::impl_ni_relayout ( ColPos const  i_assumeInflexibleColumnsUpToIncluding = COL_INVALID)
private

◆ impl_ni_ScrollColumns()

TableSize svt::table::TableControl_Impl::impl_ni_ScrollColumns ( TableSize  _nColumnDelta)
private

scrolls the view by the given number of columns

The method is not bound to the classes public invariants, as it's used in situations where the they must not necessarily be fulfilled.

Returns
the number of columns by which the viewport was scrolled. This may differ from the given numbers to scroll in case the begin or the end of the column range were reached.

Definition at line 2080 of file tablecontrol_impl.cxx.

References tools::Rectangle::GetWidth(), LINK, m_aColumnWidths, m_nColumnCount, m_nLeftColumn, m_nRowHeaderWidthPixel, m_pDataWindow, m_pHScroll, m_rAntiImpl, and vcl::Window::PostUserEvent().

Referenced by impl_scrollColumns().

◆ impl_ni_ScrollRows()

TableSize svt::table::TableControl_Impl::impl_ni_ScrollRows ( TableSize  _nRowDelta)
private

scrolls the view by the given number of rows

The method is not bound to the classes public invariants, as it's used in situations where the they must not necessarily be fulfilled.

Returns
the number of rows by which the viewport was scrolled. This may differ from the given numbers to scroll in case the begin or the end of the row range were reached.

Definition at line 2016 of file tablecontrol_impl.cxx.

References LINK, m_nColHeaderHeightPixel, m_nRowCount, m_nRowHeightPixel, m_nTopRow, m_pDataWindow, m_pVScroll, m_rAntiImpl, and vcl::Window::PostUserEvent().

Referenced by impl_scrollRows().

◆ impl_ni_updateCachedModelValues()

void svt::table::TableControl_Impl::impl_ni_updateCachedModelValues ( )
private

updates all cached model values

The method is not bound to the classes public invariants, as it's used in situations where the they must not necessarily be fulfilled.

Definition at line 561 of file tablecontrol_impl.cxx.

References impl_ni_updateCachedTableMetrics(), m_nColumnCount, m_nLeftColumn, m_nRowCount, m_nTopRow, m_pInputHandler, and m_pModel.

Referenced by setModel().

◆ impl_ni_updateCachedTableMetrics()

void svt::table::TableControl_Impl::impl_ni_updateCachedTableMetrics ( )
private

updates the cached table metrics (row height etc.)

Definition at line 547 of file tablecontrol_impl.cxx.

References vcl::Window::LogicToPixel(), m_nColHeaderHeightPixel, m_nRowHeaderWidthPixel, m_nRowHeightPixel, m_pModel, and m_rAntiImpl.

Referenced by impl_ni_updateCachedModelValues(), and tableMetricsChanged().

◆ impl_scrollColumns()

TableSize svt::table::TableControl_Impl::impl_scrollColumns ( TableSize const  i_columnDelta)
private

equivalent to impl_ni_ScrollColumns, but checks the instances invariants beforehand (in a non-product build only)

Definition at line 2143 of file tablecontrol_impl.cxx.

References impl_ni_ScrollColumns().

Referenced by ensureVisible().

◆ impl_scrollRows()

TableSize svt::table::TableControl_Impl::impl_scrollRows ( TableSize const  i_rowDelta)
private

equivalent to impl_ni_ScrollRows, but checks the instances invariants beforehand (in a non-product build only)

Definition at line 2074 of file tablecontrol_impl.cxx.

References impl_ni_ScrollRows().

Referenced by ensureVisible().

◆ invalidate()

void svt::table::TableControl_Impl::invalidate ( TableArea const  i_what)
overridevirtual

invalidates the table window

Implements svt::table::ITableControl.

Definition at line 1767 of file tablecontrol_impl.cxx.

References svt::table::All, calcHeaderRect(), svt::table::ColumnHeaders, m_pDataWindow, and svt::table::RowHeaders.

Referenced by columnChanged(), and impl_ni_relayout().

◆ invalidateRect()

void svt::table::TableControl_Impl::invalidateRect ( const tools::Rectangle rInvalidateRect)

Definition at line 1855 of file tablecontrol_impl.cxx.

References m_pDataWindow.

Referenced by invalidateRowRange(), and invalidateSelectedRegion().

◆ invalidateRow()

void svt::table::TableControl_Impl::invalidateRow ( RowPos const  i_row)
inline

◆ invalidateRowRange()

void svt::table::TableControl_Impl::invalidateRowRange ( RowPos const  i_firstRow,
RowPos const  i_lastRow 
)

invalidates the part of the data window which is covered by the given rows

Parameters
i_firstRowthe index of the first row to include in the invalidation
i_lastRowthe index of the last row to include in the invalidation, or ROW_INVALID if the invalidation should happen down to the bottom of the data window.

Definition at line 1871 of file tablecontrol_impl.cxx.

References svt::table::TableGeometry::getRect(), svt::table::TableRowGeometry::getRow(), impl_getAllVisibleCellsArea(), impl_getVisibleRows(), invalidateRect(), svt::table::TableGeometry::isValid(), m_nTopRow, m_pDataWindow, svt::table::TableRowGeometry::moveDown(), ROW_INVALID, tools::Rectangle::SetBottom(), and tools::Rectangle::Union().

Referenced by cellsUpdated(), invalidateRow(), rowsInserted(), and rowsRemoved().

◆ invalidateSelectedRegion()

void svt::table::TableControl_Impl::invalidateSelectedRegion ( RowPos  _nPrevRow,
RowPos  _nCurRow 
)

◆ invalidateSelectedRows()

void svt::table::TableControl_Impl::invalidateSelectedRows ( )

invalidates all selected rows

Definition at line 1862 of file tablecontrol_impl.cxx.

References invalidateRow(), and m_aSelectedRows.

Referenced by dispatchAction().

◆ isAccessibleAlive()

bool svt::table::TableControl_Impl::isAccessibleAlive ( ) const
inline

Definition at line 286 of file tablecontrol_impl.hxx.

References impl_isAccessibleAlive().

◆ isRowSelected()

bool svt::table::TableControl_Impl::isRowSelected ( RowPos  _nRow) const
overridevirtual

◆ markAllRowsAsDeselected()

bool svt::table::TableControl_Impl::markAllRowsAsDeselected ( )

marks all rows as deselected

Returns
<TRUE> if and only if the selection actually changed by this operation

Definition at line 2260 of file tablecontrol_impl.cxx.

References m_aSelectedRows.

Referenced by svt::table::TableFunctionSet::DeselectAll(), and rowsRemoved().

◆ markAllRowsAsSelected()

bool svt::table::TableControl_Impl::markAllRowsAsSelected ( )

marks all rows as selected

Returns
<FALSE> if and only if all rows were selected already.

Definition at line 2270 of file tablecontrol_impl.cxx.

References ENSURE_OR_RETURN_FALSE, SelectionEngine::GetSelectionMode(), getSelEngine(), i, isRowSelected(), m_aSelectedRows, and m_pModel.

◆ markRowAsDeselected()

bool svt::table::TableControl_Impl::markRowAsDeselected ( RowPos const  i_rowIndex)

removes the given row index from m_aSelectedRows

Returns
<TRUE> if and only if the row was previously marked as selected

Definition at line 2219 of file tablecontrol_impl.cxx.

References m_aSelectedRows.

Referenced by svt::table::TableFunctionSet::DeselectAtPoint(), and rowsRemoved().

◆ markRowAsSelected()

bool svt::table::TableControl_Impl::markRowAsSelected ( RowPos const  i_rowIndex)

marks the given row as selected, by putting it into m_aSelectedRows

Returns
<TRUE> if and only if the row was previously not marked as selected

Definition at line 2230 of file tablecontrol_impl.cxx.

References SelectionEngine::GetSelectionMode(), getSelEngine(), isRowSelected(), and m_aSelectedRows.

Referenced by svt::table::TableFunctionSet::SetCursorAtPoint().

◆ onResize()

void svt::table::TableControl_Impl::onResize ( )

to be called when the anti-impl instance has been resized

Definition at line 1163 of file tablecontrol_impl.cxx.

References checkCursorPosition(), and impl_ni_relayout().

◆ pixelWidthToAppFont()

tools::Long svt::table::TableControl_Impl::pixelWidthToAppFont ( tools::Long const  i_pixels) const
overridevirtual

calculates a width, given in pixels, into an AppFont-based width

Implements svt::table::ITableControl.

Definition at line 1787 of file tablecontrol_impl.cxx.

References m_pDataWindow.

Referenced by impl_ni_relayout().

◆ releaseMouse()

void svt::table::TableControl_Impl::releaseMouse ( )
overridevirtual

releases the mouse, after it had previously been captured

Implements svt::table::ITableControl.

Definition at line 1761 of file tablecontrol_impl.cxx.

References m_pDataWindow.

◆ rowsInserted()

void svt::table::TableControl_Impl::rowsInserted ( RowPos  first,
RowPos  last 
)
overridevirtual

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

Implements svt::table::ITableModelListener.

Definition at line 304 of file tablecontrol_impl.cxx.

References Any, goTo(), impl_commitAccessibleEvent(), impl_isAccessibleAlive(), impl_ni_relayout(), invalidateRowRange(), m_aSelectedRows, m_nCurColumn, m_nCurRow, m_nRowCount, m_pModel, m_rAntiImpl, ROW_INVALID, svt::table::TableControl::Select(), and selectionChanged().

◆ rowsRemoved()

void svt::table::TableControl_Impl::rowsRemoved ( RowPos  first,
RowPos  last 
)
overridevirtual

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

Implements svt::table::ITableModelListener.

Definition at line 340 of file tablecontrol_impl.cxx.

References Any, commitTableEvent(), ENSURE_OR_RETURN_VOID, goTo(), impl_isAccessibleAlive(), impl_ni_relayout(), invalidateRowRange(), m_aSelectedRows, m_nCurColumn, m_nCurRow, m_nRowCount, m_nTopRow, m_pModel, m_rAntiImpl, markAllRowsAsDeselected(), markRowAsDeselected(), ROW_INVALID, svt::table::TableControl::Select(), and selectionChanged().

◆ setAnchor()

void svt::table::TableControl_Impl::setAnchor ( RowPos const  i_anchor)
inline

◆ setModel()

void svt::table::TableControl_Impl::setModel ( const PTableModel _pModel)

◆ setPointer()

void svt::table::TableControl_Impl::setPointer ( PointerStyle  i_pointer)
overridevirtual

sets a new mouse pointer for the table window

Implements svt::table::ITableControl.

Definition at line 1749 of file tablecontrol_impl.cxx.

References m_pDataWindow.

◆ showCursor()

void svt::table::TableControl_Impl::showCursor ( )
overridevirtual

shows the cell cursor

See also
hideCursor

Implements svt::table::ITableControl.

Definition at line 1275 of file tablecontrol_impl.cxx.

References DBG_ASSERT, impl_ni_doSwitchCursor(), and m_nCursorHidden.

◆ showTracking()

void svt::table::TableControl_Impl::showTracking ( tools::Rectangle const &  i_location,
ShowTrackFlags const  i_flags 
)
overridevirtual

shows a tracking rectangle

Implements svt::table::ITableControl.

Definition at line 1805 of file tablecontrol_impl.cxx.

References m_pDataWindow.

◆ tableMetricsChanged()

void svt::table::TableControl_Impl::tableMetricsChanged ( )
overridevirtual

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.

Implements svt::table::ITableModelListener.

Definition at line 459 of file tablecontrol_impl.cxx.

References impl_ni_relayout(), impl_ni_updateCachedTableMetrics(), vcl::Window::Invalidate(), and m_rAntiImpl.

Friends And Related Function Documentation

◆ SuspendInvariants

friend class SuspendInvariants
friend

Definition at line 80 of file tablecontrol_impl.hxx.

◆ TableColumnGeometry

friend class TableColumnGeometry
friend

Definition at line 79 of file tablecontrol_impl.hxx.

◆ TableGeometry

friend class TableGeometry
friend

Definition at line 77 of file tablecontrol_impl.hxx.

◆ TableRowGeometry

friend class TableRowGeometry
friend

Definition at line 78 of file tablecontrol_impl.hxx.

Member Data Documentation

◆ m_aColumnWidths

ColumnPositions svt::table::TableControl_Impl::m_aColumnWidths
private

◆ m_aFactoryAccess

vcl::AccessibleFactoryAccess svt::table::TableControl_Impl::m_aFactoryAccess
private

Definition at line 133 of file tablecontrol_impl.hxx.

Referenced by getAccessible().

◆ m_aSelectedRows

std::vector<RowPos> svt::table::TableControl_Impl::m_aSelectedRows
private

◆ m_bUpdatingColWidths

bool svt::table::TableControl_Impl::m_bUpdatingColWidths
private

Definition at line 131 of file tablecontrol_impl.hxx.

Referenced by columnChanged(), and impl_ni_relayout().

◆ m_nAnchor

RowPos svt::table::TableControl_Impl::m_nAnchor
private

Definition at line 130 of file tablecontrol_impl.hxx.

Referenced by dispatchAction(), getAnchor(), and setAnchor().

◆ m_nColHeaderHeightPixel

tools::Long svt::table::TableControl_Impl::m_nColHeaderHeightPixel
private

◆ m_nColumnCount

TableSize svt::table::TableControl_Impl::m_nColumnCount
private

◆ m_nCurColumn

ColPos svt::table::TableControl_Impl::m_nCurColumn
private

◆ m_nCurRow

RowPos svt::table::TableControl_Impl::m_nCurRow
private

◆ m_nCursorHidden

sal_Int32 svt::table::TableControl_Impl::m_nCursorHidden
private

Definition at line 110 of file tablecontrol_impl.hxx.

Referenced by hideCursor(), and showCursor().

◆ m_nLeftColumn

ColPos svt::table::TableControl_Impl::m_nLeftColumn
private

◆ m_nRowCount

TableSize svt::table::TableControl_Impl::m_nRowCount
private

◆ m_nRowHeaderWidthPixel

tools::Long svt::table::TableControl_Impl::m_nRowHeaderWidthPixel
private

◆ m_nRowHeightPixel

tools::Long svt::table::TableControl_Impl::m_nRowHeightPixel
private

◆ m_nTopRow

RowPos svt::table::TableControl_Impl::m_nTopRow
private

◆ m_pAccessibleTable

vcl::table::IAccessibleTableControl* svt::table::TableControl_Impl::m_pAccessibleTable
private

◆ m_pDataWindow

VclPtr<TableDataWindow> svt::table::TableControl_Impl::m_pDataWindow
private

the window to contain all data content, including header bars

The window's upper left corner is at position (0,0), relative to the table control, which is the direct parent of the data window.

Definition at line 117 of file tablecontrol_impl.hxx.

Referenced by appFontWidthToPixel(), captureMouse(), checkCursorPosition(), getDataWindow(), getTableSizePixel(), hideTracking(), impl_getVisibleColumns(), impl_getVisibleRows(), impl_ni_doSwitchCursor(), impl_ni_positionChildWindows(), impl_ni_ScrollColumns(), impl_ni_ScrollRows(), invalidate(), invalidateRect(), invalidateRowRange(), pixelWidthToAppFont(), releaseMouse(), setPointer(), showTracking(), TableControl_Impl(), and ~TableControl_Impl().

◆ m_pHScroll

VclPtr<ScrollBar> svt::table::TableControl_Impl::m_pHScroll
private

the horizontal scrollbar, if any

Definition at line 121 of file tablecontrol_impl.hxx.

Referenced by getHorzScrollbar(), impl_ni_positionChildWindows(), impl_ni_ScrollColumns(), and ~TableControl_Impl().

◆ m_pInputHandler

PTableInputHandler svt::table::TableControl_Impl::m_pInputHandler
private

the input handler to use, usually the input handler as provided by ->m_pModel

Definition at line 88 of file tablecontrol_impl.hxx.

Referenced by getInputHandler(), and impl_ni_updateCachedModelValues().

◆ m_pModel

PTableModel svt::table::TableControl_Impl::m_pModel
private

◆ m_pScrollCorner

VclPtr<ScrollBarBox> svt::table::TableControl_Impl::m_pScrollCorner
private

Definition at line 122 of file tablecontrol_impl.hxx.

Referenced by impl_ni_positionChildWindows(), and ~TableControl_Impl().

◆ m_pSelEngine

std::unique_ptr<SelectionEngine> svt::table::TableControl_Impl::m_pSelEngine
private

◆ m_pTableFunctionSet

std::unique_ptr<TableFunctionSet> svt::table::TableControl_Impl::m_pTableFunctionSet
private

Definition at line 128 of file tablecontrol_impl.hxx.

Referenced by TableControl_Impl(), and ~TableControl_Impl().

◆ m_pVScroll

VclPtr<ScrollBar> svt::table::TableControl_Impl::m_pVScroll
private

the vertical scrollbar, if any

Definition at line 119 of file tablecontrol_impl.hxx.

Referenced by getVertScrollbar(), impl_ni_positionChildWindows(), impl_ni_ScrollRows(), and ~TableControl_Impl().

◆ m_rAntiImpl

TableControl& svt::table::TableControl_Impl::m_rAntiImpl
private

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