LibreOffice Module toolkit (master) 1
|
#include <tablecontrol_impl.hxx>
Public Member Functions | |
void | setModel (const PTableModel &_pModel) |
const PTableInputHandler & | getInputHandler () const |
RowPos | getCurRow () const |
RowPos | getAnchor () const |
void | setAnchor (RowPos const i_anchor) |
RowPos | getTopRow () const |
ColPos | getLeftColumn () const |
const TableControl & | getAntiImpl () const |
TableControl & | getAntiImpl () |
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 SelectionEngine * | getSelEngine () 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 |
TableDataWindow & | getDataWindow () |
const TableDataWindow & | getDataWindow () const |
ScrollBar * | getHorzScrollbar () |
ScrollBar * | getVertScrollbar () |
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 SelectionEngine * | getSelEngine ()=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 | |
TableControl & | m_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< TableDataWindow > | m_pDataWindow |
the window to contain all data content, including header bars More... | |
VclPtr< ScrollBar > | m_pVScroll |
the vertical scrollbar, if any More... | |
VclPtr< ScrollBar > | m_pHScroll |
the horizontal scrollbar, if any More... | |
VclPtr< ScrollBarBox > | m_pScrollCorner |
std::unique_ptr< SelectionEngine > | m_pSelEngine |
std::vector< RowPos > | m_aSelectedRows |
std::unique_ptr< TableFunctionSet > | m_pTableFunctionSet |
RowPos | m_nAnchor |
bool | m_bUpdatingColWidths |
vcl::AccessibleFactoryAccess | m_aFactoryAccess |
vcl::table::IAccessibleTableControl * | m_pAccessibleTable |
Friends | |
class | TableGeometry |
class | TableRowGeometry |
class | TableColumnGeometry |
class | SuspendInvariants |
Definition at line 74 of file tablecontrol_impl.hxx.
|
explicit |
Definition at line 218 of file tablecontrol_impl.cxx.
References Create(), m_pDataWindow, m_pSelEngine, m_pTableFunctionSet, and make_shared().
|
overridevirtual |
Definition at line 248 of file tablecontrol_impl.cxx.
References VclPtr< class reference_type >::disposeAndClear(), m_pDataWindow, m_pHScroll, m_pScrollCorner, m_pSelEngine, m_pTableFunctionSet, and m_pVScroll.
|
overridevirtual |
activates the given cell
Implements svt::table::ITableControl.
Definition at line 1811 of file tablecontrol_impl.cxx.
References goTo().
|
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.
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().
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().
tools::Rectangle svt::table::TableControl_Impl::calcHeaderCellRect | ( | bool | bColHeader, |
sal_Int32 | nPos | ||
) |
Definition at line 2326 of file tablecontrol_impl.cxx.
References calcHeaderRect(), COL_ROW_HEADERS, svt::table::TableCellGeometry::getRect(), nPos, and ROW_COL_HEADERS.
tools::Rectangle svt::table::TableControl_Impl::calcHeaderRect | ( | bool | bColHeader | ) |
Definition at line 2315 of file tablecontrol_impl.cxx.
References tools::Rectangle::GetSize(), Size::Height(), impl_getAllVisibleCellsArea(), m_nColHeaderHeightPixel, m_nRowHeaderWidthPixel, tools::Rectangle::TopLeft(), and Size::Width().
Referenced by calcHeaderCellRect(), and invalidate().
tools::Rectangle svt::table::TableControl_Impl::calcTableRect | ( | ) | const |
Definition at line 2338 of file tablecontrol_impl.cxx.
References impl_getAllVisibleDataCellArea().
|
overridevirtual |
captures the mouse to the table window
Implements svt::table::ITableControl.
Definition at line 1755 of file tablecontrol_impl.cxx.
References m_pDataWindow.
|
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().
void svt::table::TableControl_Impl::checkCursorPosition | ( | ) |
Definition at line 1894 of file tablecontrol_impl.cxx.
References impl_getVisibleColumns(), impl_getVisibleRows(), m_nColumnCount, m_nLeftColumn, m_nRowCount, m_nTopRow, and m_pDataWindow.
Referenced by onResize().
|
overridevirtual |
notifies the listener that attributes of a given column changed
i_column | the position of the column whose attributes changed |
i_attributeGroup | a 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.
|
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.
|
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.
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().
void svt::table::TableControl_Impl::commitCellEvent | ( | sal_Int16 const | i_eventID, |
const css::uno::Any & | i_newValue, | ||
const css::uno::Any & | i_oldValue | ||
) |
Definition at line 2301 of file tablecontrol_impl.cxx.
References vcl::table::IAccessibleTableControl::commitCellEvent(), impl_isAccessibleAlive(), and m_pAccessibleTable.
void svt::table::TableControl_Impl::commitTableEvent | ( | sal_Int16 const | i_eventID, |
const css::uno::Any & | i_newValue, | ||
const css::uno::Any & | i_oldValue | ||
) |
Definition at line 2308 of file tablecontrol_impl.cxx.
References vcl::table::IAccessibleTableControl::commitTableEvent(), impl_isAccessibleAlive(), and m_pAccessibleTable.
Referenced by rowsRemoved().
|
private |
|
private |
|
overridevirtual |
dispatches an action to the table control
Implements svt::table::ITableControl.
Definition at line 1283 of file tablecontrol_impl.cxx.
References svt::table::cursorBottomRight, svt::table::cursorDown, svt::table::cursorLeft, svt::table::cursorPageDown, svt::table::cursorPageUp, svt::table::cursorRight, svt::table::cursorSelectRow, svt::table::cursorSelectRowAreaBottom, svt::table::cursorSelectRowAreaTop, svt::table::cursorSelectRowDown, svt::table::cursorSelectRowUp, svt::table::cursorToFirstLine, svt::table::cursorToLastLine, svt::table::cursorToLineEnd, svt::table::cursorToLineStart, svt::table::cursorTopLeft, svt::table::cursorUp, ensureVisible(), getRowSelectedNumber(), goTo(), impl_getVisibleRows(), invalidateRow(), invalidateSelectedRegion(), invalidateSelectedRows(), isRowSelected(), m_aSelectedRows, m_nAnchor, m_nColumnCount, m_nCurColumn, m_nCurRow, m_nRowCount, m_pSelEngine, m_rAntiImpl, pos, svt::table::TableControl::Select(), and selectionChanged().
void svt::table::TableControl_Impl::disposeAccessible | ( | ) |
Definition at line 2393 of file tablecontrol_impl.cxx.
References vcl::table::IAccessibleTableControl::DisposeAccessImpl(), and m_pAccessibleTable.
void svt::table::TableControl_Impl::doPaintContent | ( | vcl::RenderContext & | rRenderContext, |
const tools::Rectangle & | _rUpdateRect | ||
) |
paints the table control content which intersects with the given rectangle
Definition at line 1170 of file tablecontrol_impl.cxx.
References tools::Rectangle::BottomRight(), COL_ROW_HEADERS, DBG_ASSERT, tools::Rectangle::GetIntersection(), getModel(), svt::table::TableGeometry::getRect(), svt::table::TableCellGeometry::getRect(), OutputDevice::GetSettings(), AllSettings::GetStyleSettings(), getTopRow(), Control::HasControlFocus(), impl_getAllVisibleCellsArea(), impl_getAllVisibleDataCellArea(), impl_getVisibleRows(), tools::Rectangle::IsEmpty(), isRowSelected(), svt::table::TableGeometry::isValid(), svt::table::TableCellGeometry::isValid(), m_nColHeaderHeightPixel, m_nLeftColumn, m_nRowCount, m_nRowHeaderWidthPixel, m_nRowHeightPixel, m_nTopRow, m_pModel, m_rAntiImpl, ROW_COL_HEADERS, tools::Rectangle::SetBottom(), and tools::Rectangle::SetRight().
Referenced by svt::table::TableDataWindow::Paint().
ensures that the given coordinate is visible
_nColumn | the column position which should be visible. Must be non-negative, and smaller than the column count. |
_nRow | the 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().
Reference< XAccessible > svt::table::TableControl_Impl::getAccessible | ( | vcl::Window & | i_parentWindow | ) |
Definition at line 2372 of file tablecontrol_impl.cxx.
References DBG_TESTSOLARMUTEX, vcl::Window::GetAccessible(), vcl::table::IAccessibleTableControl::getMyself(), m_aFactoryAccess, m_pAccessibleTable, and m_rAntiImpl.
|
inline |
Definition at line 143 of file tablecontrol_impl.hxx.
References m_nAnchor.
Referenced by svt::table::TableFunctionSet::SetCursorAtPoint().
|
inline |
Definition at line 150 of file tablecontrol_impl.hxx.
References m_rAntiImpl.
|
inline |
Definition at line 149 of file tablecontrol_impl.hxx.
References m_rAntiImpl.
Referenced by svt::table::TableDataWindow::MouseButtonUp().
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.
Definition at line 1692 of file tablecontrol_impl.cxx.
References impl_getColumnForOrdinate(), and Point::X().
Referenced by hitTest(), svt::table::TableDataWindow::RequestHelp(), and svt::table::TableFunctionSet::SetCursorAtPoint().
|
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.
|
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.
|
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.
|
inline |
Definition at line 141 of file tablecontrol_impl.hxx.
References m_nCurRow.
Referenced by svt::table::TableFunctionSet::CreateAnchor(), and svt::table::TableFunctionSet::SetCursorAtPoint().
|
inline |
Definition at line 271 of file tablecontrol_impl.hxx.
References m_pDataWindow.
|
inline |
Definition at line 272 of file tablecontrol_impl.hxx.
References m_pDataWindow.
|
inline |
Definition at line 273 of file tablecontrol_impl.hxx.
References m_pHScroll.
Referenced by svt::table::TableDataWindow::EventNotify().
|
inline |
Definition at line 139 of file tablecontrol_impl.hxx.
References m_pInputHandler.
Referenced by svt::table::TableDataWindow::MouseButtonDown(), svt::table::TableDataWindow::MouseButtonUp(), and svt::table::TableDataWindow::MouseMove().
|
inline |
Definition at line 147 of file tablecontrol_impl.hxx.
References m_nLeftColumn.
Referenced by svt::table::TableFunctionSet::SetCursorAtPoint().
|
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().
Definition at line 1686 of file tablecontrol_impl.cxx.
References impl_getRowForAbscissa(), and Point::Y().
Referenced by hitTest(), svt::table::TableFunctionSet::IsSelectionAtPoint(), svt::table::TableDataWindow::MouseButtonDown(), svt::table::TableDataWindow::RequestHelp(), and svt::table::TableFunctionSet::SetCursorAtPoint().
|
static |
returns the position of the current row in the selection vector
Definition at line 2168 of file tablecontrol_impl.cxx.
Referenced by dispatchAction().
|
inline |
Definition at line 213 of file tablecontrol_impl.hxx.
References m_aSelectedRows.
Referenced by svt::table::TableFunctionSet::DeselectAll(), svt::table::TableDataWindow::MouseButtonDown(), and svt::table::TableFunctionSet::SetCursorAtPoint().
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().
|
overridevirtual |
returns selection engine
Implements svt::table::ITableControl.
Definition at line 2149 of file tablecontrol_impl.cxx.
References m_pSelEngine.
Referenced by svt::table::TableFunctionSet::IsSelectionAtPoint(), markAllRowsAsSelected(), markRowAsSelected(), and svt::table::TableFunctionSet::SetCursorAtPoint().
|
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.
|
inline |
Definition at line 146 of file tablecontrol_impl.hxx.
References m_nTopRow.
Referenced by doPaintContent(), and svt::table::TableFunctionSet::SetCursorAtPoint().
|
inline |
Definition at line 274 of file tablecontrol_impl.hxx.
References m_pVScroll.
Referenced by svt::table::TableDataWindow::EventNotify().
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().
|
inline |
Definition at line 212 of file tablecontrol_impl.hxx.
References m_aSelectedRows.
Referenced by svt::table::TableFunctionSet::DeselectAll(), svt::table::TableFunctionSet::IsSelectionAtPoint(), and svt::table::TableFunctionSet::SetCursorAtPoint().
|
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.
Implements svt::table::ITableControl.
Definition at line 1268 of file tablecontrol_impl.cxx.
References impl_ni_doSwitchCursor(), and m_nCursorHidden.
|
overridevirtual |
hides a previously shown tracking rectangle
Implements svt::table::ITableControl.
Definition at line 1799 of file tablecontrol_impl.cxx.
References m_pDataWindow.
does a hit test for the given pixel coordinates
Implements svt::table::ITableControl.
Definition at line 1698 of file tablecontrol_impl.cxx.
References COL_ROW_HEADERS, svt::table::ColumnDivider, svt::table::TableCell::eArea, getColAtPoint(), svt::table::MutableColumnMetrics::getEnd(), getRowAtPoint(), m_aColumnWidths, m_pModel, svt::table::TableCell::nColumn, and Point::X().
|
private |
Definition at line 2407 of file tablecontrol_impl.cxx.
References vcl::table::IAccessibleTableControl::commitEvent(), impl_isAccessibleAlive(), and m_pAccessibleTable.
Referenced by commitAccessibleEvent(), and rowsInserted().
|
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().
|
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().
|
private |
determines the rectangle occupied by the given cell
Definition at line 1670 of file tablecontrol_impl.cxx.
References COL_INVALID, svt::table::TableCellGeometry::getRect(), impl_getAllVisibleCellsArea(), m_pModel, ROW_INVALID, and tools::Rectangle::SetEmpty().
Referenced by calcCellRect(), impl_ni_doSwitchCursor(), and invalidateSelectedRegion().
|
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().
|
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().
|
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.
_bAcceptPartialRow | specifies 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().
|
private |
returns the number of visible rows.
_bAcceptPartialRow | specifies 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().
|
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().
|
private |
Definition at line 2401 of file tablecontrol_impl.cxx.
References vcl::table::IAccessibleTableControl::isAlive(), and m_pAccessibleTable.
Referenced by commitCellEvent(), commitTableEvent(), impl_commitAccessibleEvent(), isAccessibleAlive(), rowsInserted(), and rowsRemoved().
|
private |
calculates the new width of our columns, taking into account their min and max widths, and their relative flexibility.
i_assumeInflexibleColumnsUpToIncluding | the index of a column up to which all columns should be considered as inflexible, or COL_INVALID . |
i_assumeVerticalScrollbar | controls 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. |
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().
|
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().
|
private |
positions all child windows, e.g.
the both scrollbars, the corner window, and the data window
Definition at line 1072 of file tablecontrol_impl.cxx.
References tools::Rectangle::Bottom(), VclPtr< class reference_type >::Create(), VclPtr< class reference_type >::disposeAndClear(), tools::Rectangle::GetHeight(), StyleSettings::GetScrollBarSize(), vcl::Window::GetSettings(), tools::Rectangle::GetSize(), AllSettings::GetStyleSettings(), tools::Rectangle::GetWidth(), LINK, m_aColumnWidths, m_nColHeaderHeightPixel, m_nColumnCount, m_nLeftColumn, m_nRowCount, m_nRowHeaderWidthPixel, m_nRowHeightPixel, m_nTopRow, m_pDataWindow, m_pHScroll, m_pScrollCorner, m_pVScroll, m_rAntiImpl, tools::Rectangle::Right(), and tools::Rectangle::TopLeft().
Referenced by impl_ni_relayout().
|
private |
does a relayout of the table control
Column widths, and consequently the availability of the vertical and horizontal scrollbar, are updated with a call to this method.
i_assumeInflexibleColumnsUpToIncluding | the index of a column up to which all columns should be considered as inflexible, or COL_INVALID . |
Definition at line 941 of file tablecontrol_impl.cxx.
References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustRight(), svt::table::All, col, ENSURE_OR_RETURN_VOID, ENSURE_OR_THROW, tools::Rectangle::GetHeight(), vcl::Window::GetOutputSizePixel(), StyleSettings::GetScrollBarSize(), vcl::Window::GetSettings(), AllSettings::GetStyleSettings(), tools::Rectangle::GetWidth(), impl_ni_calculateColumnWidths(), impl_ni_positionChildWindows(), invalidate(), m_aColumnWidths, m_bUpdatingColWidths, m_nColHeaderHeightPixel, m_nColumnCount, m_nLeftColumn, m_nRowCount, m_nRowHeaderWidthPixel, m_nRowHeightPixel, m_nTopRow, m_pModel, m_rAntiImpl, pixelWidthToAppFont(), tools::Rectangle::SetLeft(), and tools::Rectangle::SetTop().
Referenced by allColumnsRemoved(), columnChanged(), columnInserted(), columnRemoved(), onResize(), rowsInserted(), rowsRemoved(), setModel(), and tableMetricsChanged().
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.
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().
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.
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().
|
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().
|
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().
|
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().
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().
|
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().
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().
|
inline |
invalidates the part of the data window which is covered by the given row
Definition at line 204 of file tablecontrol_impl.hxx.
References invalidateRowRange().
Referenced by svt::table::TableFunctionSet::DeselectAll(), svt::table::TableFunctionSet::DeselectAtPoint(), dispatchAction(), invalidateSelectedRows(), and svt::table::TableFunctionSet::SetCursorAtPoint().
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
i_firstRow | the index of the first row to include in the invalidation |
i_lastRow | the 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().
???
Definition at line 1817 of file tablecontrol_impl.cxx.
References tools::Rectangle::Bottom(), impl_getAllVisibleCellsArea(), impl_getCellRect(), invalidateRect(), tools::Rectangle::Left(), m_nCurColumn, tools::Rectangle::Right(), tools::Rectangle::SetBottom(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), tools::Rectangle::SetTop(), and tools::Rectangle::Top().
Referenced by dispatchAction(), and svt::table::TableFunctionSet::SetCursorAtPoint().
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().
|
inline |
Definition at line 286 of file tablecontrol_impl.hxx.
References impl_isAccessibleAlive().
|
overridevirtual |
determines whether a given row is selected
Implements svt::table::ITableControl.
Definition at line 2154 of file tablecontrol_impl.cxx.
References m_aSelectedRows.
Referenced by dispatchAction(), doPaintContent(), svt::table::TableFunctionSet::IsSelectionAtPoint(), markAllRowsAsSelected(), markRowAsSelected(), and svt::table::TableDataWindow::MouseButtonDown().
bool svt::table::TableControl_Impl::markAllRowsAsDeselected | ( | ) |
marks all rows as deselected
Definition at line 2260 of file tablecontrol_impl.cxx.
References m_aSelectedRows.
Referenced by svt::table::TableFunctionSet::DeselectAll(), and rowsRemoved().
bool svt::table::TableControl_Impl::markAllRowsAsSelected | ( | ) |
marks all rows as selected
Definition at line 2270 of file tablecontrol_impl.cxx.
References ENSURE_OR_RETURN_FALSE, SelectionEngine::GetSelectionMode(), getSelEngine(), i, isRowSelected(), m_aSelectedRows, and m_pModel.
bool svt::table::TableControl_Impl::markRowAsDeselected | ( | RowPos const | i_rowIndex | ) |
removes the given row index from m_aSelectedRows
Definition at line 2219 of file tablecontrol_impl.cxx.
References m_aSelectedRows.
Referenced by svt::table::TableFunctionSet::DeselectAtPoint(), and rowsRemoved().
bool svt::table::TableControl_Impl::markRowAsSelected | ( | RowPos const | i_rowIndex | ) |
marks the given row as selected, by putting it into m_aSelectedRows
Definition at line 2230 of file tablecontrol_impl.cxx.
References SelectionEngine::GetSelectionMode(), getSelEngine(), isRowSelected(), and m_aSelectedRows.
Referenced by svt::table::TableFunctionSet::SetCursorAtPoint().
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().
|
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().
|
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.
notifies the listener that one or more rows have been inserted into the table
first | the index of the first newly inserted row |
last | the 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().
notifies the listener that one or more rows have been removed from the table
first | the old index of the first removed row. If this is -1 , then all rows have been removed from the model. |
last | the 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().
|
inline |
Definition at line 144 of file tablecontrol_impl.hxx.
References m_nAnchor.
Referenced by svt::table::TableFunctionSet::CreateAnchor(), svt::table::TableFunctionSet::DestroyAnchor(), svt::table::TableFunctionSet::IsSelectionAtPoint(), and svt::table::TableFunctionSet::SetCursorAtPoint().
void svt::table::TableControl_Impl::setModel | ( | const PTableModel & | _pModel | ) |
Definition at line 258 of file tablecontrol_impl.cxx.
References COL_INVALID, impl_ni_relayout(), impl_ni_updateCachedModelValues(), vcl::Window::Invalidate(), m_nColumnCount, m_nCurColumn, m_nCurRow, m_nRowCount, m_pModel, m_rAntiImpl, and ROW_INVALID.
|
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.
|
overridevirtual |
shows the cell cursor
Implements svt::table::ITableControl.
Definition at line 1275 of file tablecontrol_impl.cxx.
References DBG_ASSERT, impl_ni_doSwitchCursor(), and m_nCursorHidden.
|
overridevirtual |
shows a tracking rectangle
Implements svt::table::ITableControl.
Definition at line 1805 of file tablecontrol_impl.cxx.
References m_pDataWindow.
|
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.
|
friend |
Definition at line 80 of file tablecontrol_impl.hxx.
|
friend |
Definition at line 79 of file tablecontrol_impl.hxx.
|
friend |
Definition at line 77 of file tablecontrol_impl.hxx.
|
friend |
Definition at line 78 of file tablecontrol_impl.hxx.
|
private |
info about the widths of our columns
Definition at line 90 of file tablecontrol_impl.hxx.
Referenced by getColumnMetrics(), hitTest(), impl_getAllVisibleCellsArea(), impl_getColumnForOrdinate(), svt::table::TableColumnGeometry::impl_initRect(), svt::table::TableColumnGeometry::impl_isValidColumn(), impl_ni_positionChildWindows(), impl_ni_relayout(), impl_ni_ScrollColumns(), and svt::table::TableColumnGeometry::moveRight().
|
private |
Definition at line 133 of file tablecontrol_impl.hxx.
Referenced by getAccessible().
|
private |
Definition at line 126 of file tablecontrol_impl.hxx.
Referenced by dispatchAction(), getSelectedRowCount(), getSelectedRowIndex(), hasRowSelection(), invalidateSelectedRows(), isRowSelected(), markAllRowsAsDeselected(), markAllRowsAsSelected(), markRowAsDeselected(), markRowAsSelected(), rowsInserted(), and rowsRemoved().
|
private |
Definition at line 131 of file tablecontrol_impl.hxx.
Referenced by columnChanged(), and impl_ni_relayout().
|
private |
Definition at line 130 of file tablecontrol_impl.hxx.
Referenced by dispatchAction(), getAnchor(), and setAnchor().
|
private |
the height of the column header row in the table, measured in pixels
Definition at line 95 of file tablecontrol_impl.hxx.
Referenced by calcHeaderRect(), doPaintContent(), impl_getAllVisibleCellsArea(), impl_getAllVisibleDataCellArea(), impl_getRowForAbscissa(), impl_getVisibleRows(), svt::table::TableRowGeometry::impl_initRect(), impl_ni_positionChildWindows(), impl_ni_relayout(), impl_ni_ScrollRows(), impl_ni_updateCachedTableMetrics(), and svt::table::TableRowGeometry::TableRowGeometry().
|
private |
the number of columns in the table control. Cached model value.
Definition at line 100 of file tablecontrol_impl.hxx.
Referenced by allColumnsRemoved(), checkCursorPosition(), columnInserted(), columnRemoved(), dispatchAction(), ensureVisible(), goTo(), impl_getColumnForOrdinate(), impl_ni_positionChildWindows(), impl_ni_relayout(), impl_ni_ScrollColumns(), impl_ni_updateCachedModelValues(), and setModel().
|
private |
Definition at line 105 of file tablecontrol_impl.hxx.
Referenced by columnRemoved(), dispatchAction(), getCurrentColumn(), goTo(), impl_ni_doSwitchCursor(), invalidateSelectedRegion(), rowsInserted(), rowsRemoved(), and setModel().
|
private |
Definition at line 106 of file tablecontrol_impl.hxx.
Referenced by columnRemoved(), dispatchAction(), getCurrentRow(), getCurRow(), goTo(), impl_ni_doSwitchCursor(), rowsInserted(), rowsRemoved(), and setModel().
|
private |
Definition at line 110 of file tablecontrol_impl.hxx.
Referenced by hideCursor(), and showCursor().
|
private |
Definition at line 107 of file tablecontrol_impl.hxx.
Referenced by checkCursorPosition(), doPaintContent(), ensureVisible(), getLeftColumn(), impl_getAllVisibleCellsArea(), impl_getVisibleColumns(), svt::table::TableColumnGeometry::impl_initRect(), impl_ni_positionChildWindows(), impl_ni_relayout(), impl_ni_ScrollColumns(), impl_ni_updateCachedModelValues(), and svt::table::TableColumnGeometry::moveRight().
|
private |
the number of rows in the table control. Cached model value.
Definition at line 103 of file tablecontrol_impl.hxx.
Referenced by checkCursorPosition(), dispatchAction(), doPaintContent(), ensureVisible(), goTo(), impl_ni_positionChildWindows(), impl_ni_relayout(), impl_ni_ScrollRows(), impl_ni_updateCachedModelValues(), rowsInserted(), rowsRemoved(), and setModel().
|
private |
the width of the row header column in the table, measured in pixels
Definition at line 97 of file tablecontrol_impl.hxx.
Referenced by calcHeaderRect(), doPaintContent(), impl_getAllVisibleCellsArea(), impl_getAllVisibleDataCellArea(), impl_getColumnForOrdinate(), svt::table::TableColumnGeometry::impl_initRect(), impl_ni_calculateColumnWidths(), impl_ni_positionChildWindows(), impl_ni_relayout(), impl_ni_ScrollColumns(), impl_ni_updateCachedTableMetrics(), and svt::table::TableColumnGeometry::TableColumnGeometry().
|
private |
the height of a single row in the table, measured in pixels
Definition at line 93 of file tablecontrol_impl.hxx.
Referenced by doPaintContent(), impl_getAllVisibleCellsArea(), impl_getRowForAbscissa(), impl_getVisibleRows(), svt::table::TableRowGeometry::impl_initRect(), impl_ni_positionChildWindows(), impl_ni_relayout(), impl_ni_ScrollRows(), impl_ni_updateCachedTableMetrics(), and svt::table::TableRowGeometry::moveDown().
|
private |
Definition at line 108 of file tablecontrol_impl.hxx.
Referenced by checkCursorPosition(), doPaintContent(), ensureVisible(), getTopRow(), impl_getRowForAbscissa(), svt::table::TableRowGeometry::impl_initRect(), impl_ni_positionChildWindows(), impl_ni_relayout(), impl_ni_ScrollRows(), impl_ni_updateCachedModelValues(), invalidateRowRange(), svt::table::TableRowGeometry::moveDown(), and rowsRemoved().
|
private |
Definition at line 134 of file tablecontrol_impl.hxx.
Referenced by commitCellEvent(), commitTableEvent(), disposeAccessible(), getAccessible(), impl_commitAccessibleEvent(), and impl_isAccessibleAlive().
|
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().
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().
|
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().
|
private |
the model of the table control
Definition at line 86 of file tablecontrol_impl.hxx.
Referenced by allColumnsRemoved(), columnInserted(), columnRemoved(), doPaintContent(), getCellContentAsString(), getModel(), hitTest(), impl_getCellRect(), impl_getRowForAbscissa(), svt::table::TableRowGeometry::impl_isValidRow(), impl_ni_calculateColumnWidths(), impl_ni_doSwitchCursor(), impl_ni_relayout(), impl_ni_updateCachedModelValues(), impl_ni_updateCachedTableMetrics(), markAllRowsAsSelected(), rowsInserted(), rowsRemoved(), and setModel().
|
private |
Definition at line 122 of file tablecontrol_impl.hxx.
Referenced by impl_ni_positionChildWindows(), and ~TableControl_Impl().
|
private |
Definition at line 124 of file tablecontrol_impl.hxx.
Referenced by dispatchAction(), getSelEngine(), TableControl_Impl(), and ~TableControl_Impl().
|
private |
Definition at line 128 of file tablecontrol_impl.hxx.
Referenced by TableControl_Impl(), and ~TableControl_Impl().
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().
|
private |
the control whose impl-instance we implement
Definition at line 84 of file tablecontrol_impl.hxx.
Referenced by allColumnsRemoved(), columnInserted(), columnRemoved(), dispatchAction(), doPaintContent(), getAccessible(), getAntiImpl(), impl_invalidateColumn(), impl_ni_calculateColumnWidths(), impl_ni_positionChildWindows(), impl_ni_relayout(), impl_ni_ScrollColumns(), impl_ni_ScrollRows(), impl_ni_updateCachedTableMetrics(), rowsInserted(), rowsRemoved(), setModel(), and tableMetricsChanged().