LibreOffice Module sc (master) 1
Public Member Functions | Protected Types | Private Member Functions | Private Attributes | List of all members
ScAccessibleCsvGrid Class Reference

Accessible class representing the CSV grid control. More...

#include <AccessibleCsvControl.hxx>

Inheritance diagram for ScAccessibleCsvGrid:
[legend]
Collaboration diagram for ScAccessibleCsvGrid:
[legend]

Public Member Functions

 ScAccessibleCsvGrid (ScCsvGrid &rGrid)
 
virtual ~ScAccessibleCsvGrid () override
 
virtual void SAL_CALL disposing () override
 
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext () override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent () override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint (const css::awt::Point &rPoint) override
 Returns the cell at the specified point. More...
 
virtual OUString SAL_CALL getAccessibleDescription () override
 
virtual OUString SAL_CALL getAccessibleName () override
 
virtual sal_Int32 SAL_CALL getForeground () override
 
virtual sal_Int32 SAL_CALL getBackground () override
 
virtual sal_Int16 SAL_CALL getAccessibleRole () override
 
virtual sal_Int64 SAL_CALL getAccessibleChildCount () override
 Returns the child count (count of cells in the table). More...
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild (sal_Int64 nIndex) override
 Returns the specified child cell. More...
 
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet () override
 Returns the relation to the ruler control. More...
 
virtual sal_Int64 SAL_CALL getAccessibleStateSet () override
 Returns the current set of states. More...
 
virtual sal_Int32 SAL_CALL getAccessibleRowCount () override
 Returns the number of rows in the table. More...
 
virtual sal_Int32 SAL_CALL getAccessibleColumnCount () override
 Returns the number of columns in the table. More...
 
virtual OUString SAL_CALL getAccessibleRowDescription (sal_Int32 nRow) override
 Returns the description of the specified row in the table. More...
 
virtual OUString SAL_CALL getAccessibleColumnDescription (sal_Int32 nColumn) override
 Returns the description text of the specified column in the table. More...
 
virtual sal_Int32 SAL_CALL getAccessibleRowExtentAt (sal_Int32 nRow, sal_Int32 nColumn) override
 Returns the number of rows occupied at a specified row and column. More...
 
virtual sal_Int32 SAL_CALL getAccessibleColumnExtentAt (sal_Int32 nRow, sal_Int32 nColumn) override
 Returns the number of rows occupied at a specified row and column. More...
 
virtual css::uno::Reference< css::accessibility::XAccessibleTable > SAL_CALL getAccessibleRowHeaders () override
 Returns the row headers as an AccessibleTable. More...
 
virtual css::uno::Reference< css::accessibility::XAccessibleTable > SAL_CALL getAccessibleColumnHeaders () override
 Returns the column headers as an AccessibleTable. More...
 
virtual css::uno::Sequence< sal_Int32 > SAL_CALL getSelectedAccessibleRows () override
 Returns the selected rows as a sequence. More...
 
virtual css::uno::Sequence< sal_Int32 > SAL_CALL getSelectedAccessibleColumns () override
 Returns the selected columns as a sequence. More...
 
virtual sal_Bool SAL_CALL isAccessibleRowSelected (sal_Int32 nRow) override
 Returns true, if the specified row is selected. More...
 
virtual sal_Bool SAL_CALL isAccessibleColumnSelected (sal_Int32 nColumn) override
 Returns true, if the specified column is selected. More...
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleCellAt (sal_Int32 nRow, sal_Int32 nColumn) override
 Returns the accessible cell object at the specified position. More...
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleCaption () override
 Returns the caption object of the table. More...
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleSummary () override
 Returns the summary description object of the table. More...
 
virtual sal_Bool SAL_CALL isAccessibleSelected (sal_Int32 nRow, sal_Int32 nColumn) override
 Returns true, if the cell at a specified position is selected. More...
 
virtual sal_Int64 SAL_CALL getAccessibleIndex (sal_Int32 nRow, sal_Int32 nColumn) override
 Returns the child index of the cell at the specified position. More...
 
virtual sal_Int32 SAL_CALL getAccessibleRow (sal_Int64 nChildIndex) override
 Returns the row index of the specified child. More...
 
virtual sal_Int32 SAL_CALL getAccessibleColumn (sal_Int64 nChildIndex) override
 Returns the column index of the specified child. More...
 
virtual void SAL_CALL selectAccessibleChild (sal_Int64 nChildIndex) override
 Selects the specified child (selects the entire column or the entire table). More...
 
virtual sal_Bool SAL_CALL isAccessibleChildSelected (sal_Int64 nChildIndex) override
 Returns true, if the specified child is selected. More...
 
virtual void SAL_CALL clearAccessibleSelection () override
 Deselects all cells. More...
 
virtual void SAL_CALL selectAllAccessibleChildren () override
 Selects all cells. More...
 
virtual sal_Int64 SAL_CALL getSelectedAccessibleChildCount () override
 Returns the count of selected children. More...
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild (sal_Int64 nSelectedChildIndex) override
 Returns the child with the specified index in all selected children. More...
 
virtual void SAL_CALL deselectAccessibleChild (sal_Int64 nSelectedChildIndex) override
 Deselects the child with the specified index in all selected children. More...
 
virtual void SendFocusEvent (bool bFocused) override
 Sends a GetFocus or LoseFocus event to all listeners. More...
 
virtual void SendTableUpdateEvent (sal_uInt32 nFirstColumn, sal_uInt32 nLastColumn, bool bAllRows) override
 Sends a table model changed event for changed cell contents to all listeners. More...
 
virtual void SendInsertColumnEvent (sal_uInt32 nFirstColumn, sal_uInt32 nLastColumn) override
 Sends a table model changed event for an inserted column to all listeners. More...
 
virtual void SendRemoveColumnEvent (sal_uInt32 nFirstColumn, sal_uInt32 nLastColumn) override
 Sends a table model changed event for a removed column to all listeners. More...
 

Protected Types

typedef std::map< sal_Int64, rtl::Reference< ScAccessibleCsvCell > > XAccessibleSet
 

Private Member Functions

void ensureValidIndex (sal_Int64 nIndex) const
 
void ensureValidPosition (sal_Int32 nRow, sal_Int32 nColumn) const
 @Throws css::lang::IndexOutOfBoundsException if the specified position is invalid. More...
 
ScCsvGridimplGetGrid () const
 Returns the VCL grid control. More...
 
bool implIsColumnSelected (sal_Int32 nColumn) const
 Returns true, if the specified column (including header) is selected. More...
 
void implSelectColumn (sal_Int32 nColumn, bool bSelect)
 Selects the specified column (including header). More...
 
sal_Int32 implGetRowCount () const
 Returns the count of visible rows in the table (including header). More...
 
sal_Int32 implGetColumnCount () const
 Returns the total column count in the table (including header). More...
 
sal_Int32 implGetSelColumnCount () const
 Returns the count of selected columns in the table. More...
 
sal_Int64 implGetCellCount () const
 Returns the total cell count in the table (including header). More...
 
sal_Int32 implGetRow (sal_Int64 nIndex) const
 Returns the row index from cell index (including header). More...
 
sal_Int32 implGetColumn (sal_Int64 nIndex) const
 Returns the column index from cell index (including header). More...
 
sal_Int32 implGetSelColumn (sal_Int32 nSelColumn) const
 Returns the absolute column index of the nSelColumn-th selected column. More...
 
sal_Int64 implGetIndex (sal_Int32 nRow, sal_Int32 nColumn) const
 Returns the child index from cell position (including header). More...
 
OUString implGetCellText (sal_Int32 nRow, sal_Int32 nColumn) const
 Returns the contents of the specified cell (including header). More...
 
rtl::Reference< ScAccessibleCsvCellimplCreateCellObj (sal_Int32 nRow, sal_Int32 nColumn)
 Creates a new accessible object of the specified cell. More...
 
css::uno::Reference< css::accessibility::XAccessible > getAccessibleCell (sal_Int32 nRow, sal_Int32 nColumn)
 

Private Attributes

XAccessibleSet maAccessibleChildren
 

Detailed Description

Accessible class representing the CSV grid control.

Definition at line 216 of file AccessibleCsvControl.hxx.

Member Typedef Documentation

◆ XAccessibleSet

Definition at line 223 of file AccessibleCsvControl.hxx.

Constructor & Destructor Documentation

◆ ScAccessibleCsvGrid()

ScAccessibleCsvGrid::ScAccessibleCsvGrid ( ScCsvGrid rGrid)
explicit

Definition at line 739 of file AccessibleCsvControl.cxx.

◆ ~ScAccessibleCsvGrid()

ScAccessibleCsvGrid::~ScAccessibleCsvGrid ( )
overridevirtual

Definition at line 744 of file AccessibleCsvControl.cxx.

Member Function Documentation

◆ clearAccessibleSelection()

void SAL_CALL ScAccessibleCsvGrid::clearAccessibleSelection ( )
overridevirtual

Deselects all cells.

Definition at line 1035 of file AccessibleCsvControl.cxx.

References implGetGrid(), and ScCsvGrid::SelectAll().

◆ deselectAccessibleChild()

void SAL_CALL ScAccessibleCsvGrid::deselectAccessibleChild ( sal_Int64  nSelectedChildIndex)
overridevirtual

Deselects the child with the specified index in all selected children.

Definition at line 1067 of file AccessibleCsvControl.cxx.

References ensureValidIndex(), ensureValidPosition(), implGetSelColumn(), implGetSelColumnCount(), and implSelectColumn().

◆ disposing()

void ScAccessibleCsvGrid::disposing ( )
overridevirtual

◆ ensureValidIndex()

void ScAccessibleCsvGrid::ensureValidIndex ( sal_Int64  nIndex) const
private
Exceptions
css::lang::IndexOutOfBoundsExceptionif nIndex is not a valid child index.

Definition at line 1144 of file AccessibleCsvControl.cxx.

References implGetCellCount(), and nIndex.

Referenced by deselectAccessibleChild(), getAccessibleChild(), getAccessibleColumn(), getAccessibleRow(), isAccessibleChildSelected(), isAccessibleColumnSelected(), and selectAccessibleChild().

◆ ensureValidPosition()

void ScAccessibleCsvGrid::ensureValidPosition ( sal_Int32  nRow,
sal_Int32  nColumn 
) const
private

@Throws css::lang::IndexOutOfBoundsException if the specified position is invalid.

Definition at line 1150 of file AccessibleCsvControl.cxx.

References implGetColumnCount(), and implGetRowCount().

Referenced by deselectAccessibleChild(), getAccessibleCellAt(), getAccessibleColumnDescription(), getAccessibleColumnExtentAt(), getAccessibleIndex(), getAccessibleRowDescription(), and getAccessibleRowExtentAt().

◆ getAccessibleAtPoint()

Reference< XAccessible > SAL_CALL ScAccessibleCsvGrid::getAccessibleAtPoint ( const css::awt::Point &  rPoint)
overridevirtual

◆ getAccessibleCaption()

Reference< XAccessible > SAL_CALL ScAccessibleCsvGrid::getAccessibleCaption ( )
overridevirtual

Returns the caption object of the table.

Definition at line 971 of file AccessibleCsvControl.cxx.

◆ getAccessibleCell()

Reference< XAccessible > ScAccessibleCsvGrid::getAccessibleCell ( sal_Int32  nRow,
sal_Int32  nColumn 
)
private

◆ getAccessibleCellAt()

Reference< XAccessible > SAL_CALL ScAccessibleCsvGrid::getAccessibleCellAt ( sal_Int32  nRow,
sal_Int32  nColumn 
)
overridevirtual

Returns the accessible cell object at the specified position.

Definition at line 963 of file AccessibleCsvControl.cxx.

References ensureValidPosition(), and getAccessibleCell().

Referenced by getSelectedAccessibleChild(), and SendFocusEvent().

◆ getAccessibleChild()

Reference< XAccessible > SAL_CALL ScAccessibleCsvGrid::getAccessibleChild ( sal_Int64  nIndex)
overridevirtual

Returns the specified child cell.

Definition at line 818 of file AccessibleCsvControl.cxx.

References ensureValidIndex(), getAccessibleCell(), implGetColumn(), implGetRow(), and nIndex.

◆ getAccessibleChildCount()

sal_Int64 SAL_CALL ScAccessibleCsvGrid::getAccessibleChildCount ( )
overridevirtual

Returns the child count (count of cells in the table).

Definition at line 795 of file AccessibleCsvControl.cxx.

References implGetCellCount().

◆ getAccessibleColumn()

sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleColumn ( sal_Int64  nChildIndex)
overridevirtual

Returns the column index of the specified child.

Definition at line 1004 of file AccessibleCsvControl.cxx.

References ensureValidIndex(), and implGetColumn().

◆ getAccessibleColumnCount()

sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleColumnCount ( )
overridevirtual

Returns the number of columns in the table.

Definition at line 876 of file AccessibleCsvControl.cxx.

References implGetColumnCount().

◆ getAccessibleColumnDescription()

OUString SAL_CALL ScAccessibleCsvGrid::getAccessibleColumnDescription ( sal_Int32  nColumn)
overridevirtual

Returns the description text of the specified column in the table.

Definition at line 891 of file AccessibleCsvControl.cxx.

References ensureValidPosition(), and implGetCellText().

◆ getAccessibleColumnExtentAt()

sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleColumnExtentAt ( sal_Int32  nRow,
sal_Int32  nColumn 
)
overridevirtual

Returns the number of rows occupied at a specified row and column.

@descr Returns always 1 (Merged cells not supported).

Definition at line 906 of file AccessibleCsvControl.cxx.

References ensureValidPosition().

◆ getAccessibleColumnHeaders()

Reference< XAccessibleTable > SAL_CALL ScAccessibleCsvGrid::getAccessibleColumnHeaders ( )
overridevirtual

Returns the column headers as an AccessibleTable.

Definition at line 919 of file AccessibleCsvControl.cxx.

◆ getAccessibleContext()

virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL ScAccessibleCsvGrid::getAccessibleContext ( )
inlineoverridevirtual

Definition at line 234 of file AccessibleCsvControl.hxx.

◆ getAccessibleDescription()

OUString SAL_CALL ScAccessibleCsvGrid::getAccessibleDescription ( )
overridevirtual

Definition at line 1139 of file AccessibleCsvControl.cxx.

References ScResId().

◆ getAccessibleIndex()

sal_Int64 SAL_CALL ScAccessibleCsvGrid::getAccessibleIndex ( sal_Int32  nRow,
sal_Int32  nColumn 
)
overridevirtual

Returns the child index of the cell at the specified position.

Definition at line 988 of file AccessibleCsvControl.cxx.

References ensureValidPosition(), and implGetIndex().

◆ getAccessibleName()

OUString SAL_CALL ScAccessibleCsvGrid::getAccessibleName ( )
overridevirtual

Definition at line 1134 of file AccessibleCsvControl.cxx.

References ScResId().

◆ getAccessibleParent()

css::uno::Reference< css::accessibility::XAccessible > SAL_CALL ScAccessibleCsvGrid::getAccessibleParent ( )
overridevirtual

Definition at line 1223 of file AccessibleCsvControl.cxx.

◆ getAccessibleRelationSet()

Reference< XAccessibleRelationSet > SAL_CALL ScAccessibleCsvGrid::getAccessibleRelationSet ( )
overridevirtual

◆ getAccessibleRole()

virtual sal_Int16 SAL_CALL ScAccessibleCsvGrid::getAccessibleRole ( )
inlineoverridevirtual

Definition at line 248 of file AccessibleCsvControl.hxx.

References TABLE.

◆ getAccessibleRow()

sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleRow ( sal_Int64  nChildIndex)
overridevirtual

Returns the row index of the specified child.

Definition at line 996 of file AccessibleCsvControl.cxx.

References ensureValidIndex(), and implGetRow().

◆ getAccessibleRowCount()

sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleRowCount ( )
overridevirtual

Returns the number of rows in the table.

Definition at line 869 of file AccessibleCsvControl.cxx.

References implGetRowCount().

◆ getAccessibleRowDescription()

OUString SAL_CALL ScAccessibleCsvGrid::getAccessibleRowDescription ( sal_Int32  nRow)
overridevirtual

Returns the description of the specified row in the table.

Definition at line 883 of file AccessibleCsvControl.cxx.

References ensureValidPosition(), and implGetCellText().

◆ getAccessibleRowExtentAt()

sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleRowExtentAt ( sal_Int32  nRow,
sal_Int32  nColumn 
)
overridevirtual

Returns the number of rows occupied at a specified row and column.

@descr Returns always 1 (Merged cells not supported).

Definition at line 899 of file AccessibleCsvControl.cxx.

References ensureValidPosition().

◆ getAccessibleRowHeaders()

Reference< XAccessibleTable > SAL_CALL ScAccessibleCsvGrid::getAccessibleRowHeaders ( )
overridevirtual

Returns the row headers as an AccessibleTable.

Definition at line 913 of file AccessibleCsvControl.cxx.

◆ getAccessibleStateSet()

sal_Int64 SAL_CALL ScAccessibleCsvGrid::getAccessibleStateSet ( )
overridevirtual

Returns the current set of states.

Definition at line 850 of file AccessibleCsvControl.cxx.

References implGetGrid(), and isAlive().

◆ getAccessibleSummary()

Reference< XAccessible > SAL_CALL ScAccessibleCsvGrid::getAccessibleSummary ( )
overridevirtual

Returns the summary description object of the table.

Definition at line 977 of file AccessibleCsvControl.cxx.

◆ getBackground()

sal_Int32 SAL_CALL ScAccessibleCsvGrid::getBackground ( )
overridevirtual

Definition at line 786 of file AccessibleCsvControl.cxx.

References SC_MOD.

◆ getForeground()

sal_Int32 SAL_CALL ScAccessibleCsvGrid::getForeground ( )
overridevirtual

Definition at line 779 of file AccessibleCsvControl.cxx.

References Application::GetSettings().

◆ getSelectedAccessibleChild()

Reference< XAccessible > SAL_CALL ScAccessibleCsvGrid::getSelectedAccessibleChild ( sal_Int64  nSelectedChildIndex)
overridevirtual

Returns the child with the specified index in all selected children.

Definition at line 1054 of file AccessibleCsvControl.cxx.

References getAccessibleCellAt(), implGetSelColumn(), and implGetSelColumnCount().

◆ getSelectedAccessibleChildCount()

sal_Int64 SAL_CALL ScAccessibleCsvGrid::getSelectedAccessibleChildCount ( )
overridevirtual

Returns the count of selected children.

Definition at line 1047 of file AccessibleCsvControl.cxx.

References implGetRowCount(), and implGetSelColumnCount().

◆ getSelectedAccessibleColumns()

Sequence< sal_Int32 > SAL_CALL ScAccessibleCsvGrid::getSelectedAccessibleColumns ( )
overridevirtual

◆ getSelectedAccessibleRows()

Sequence< sal_Int32 > SAL_CALL ScAccessibleCsvGrid::getSelectedAccessibleRows ( )
overridevirtual

Returns the selected rows as a sequence.

Definition at line 925 of file AccessibleCsvControl.cxx.

◆ implCreateCellObj()

rtl::Reference< ScAccessibleCsvCell > ScAccessibleCsvGrid::implCreateCellObj ( sal_Int32  nRow,
sal_Int32  nColumn 
)
private

Creates a new accessible object of the specified cell.

Indexes must be valid.

Definition at line 1218 of file AccessibleCsvControl.cxx.

References implGetCellText(), and implGetGrid().

Referenced by getAccessibleCell().

◆ implGetCellCount()

sal_Int64 ScAccessibleCsvGrid::implGetCellCount ( ) const
inlineprivate

Returns the total cell count in the table (including header).

Definition at line 382 of file AccessibleCsvControl.hxx.

References implGetColumnCount(), and implGetRowCount().

Referenced by ensureValidIndex(), and getAccessibleChildCount().

◆ implGetCellText()

OUString ScAccessibleCsvGrid::implGetCellText ( sal_Int32  nRow,
sal_Int32  nColumn 
) const
private

Returns the contents of the specified cell (including header).

Indexes must be valid.

Definition at line 1204 of file AccessibleCsvControl.cxx.

References ScCsvGrid::GetCellText(), ScCsvGrid::GetColumnTypeName(), ScCsvControl::GetFirstVisLine(), implGetGrid(), and lcl_GetGridColumn().

Referenced by getAccessibleColumnDescription(), getAccessibleRowDescription(), and implCreateCellObj().

◆ implGetColumn()

sal_Int32 ScAccessibleCsvGrid::implGetColumn ( sal_Int64  nIndex) const
inlineprivate

Returns the column index from cell index (including header).

Definition at line 387 of file AccessibleCsvControl.hxx.

References implGetColumnCount(), and nIndex.

Referenced by getAccessibleChild(), getAccessibleColumn(), isAccessibleChildSelected(), and selectAccessibleChild().

◆ implGetColumnCount()

sal_Int32 ScAccessibleCsvGrid::implGetColumnCount ( ) const
private

Returns the total column count in the table (including header).

Definition at line 1177 of file AccessibleCsvControl.cxx.

References ScCsvGrid::GetColumnCount(), and implGetGrid().

Referenced by ensureValidPosition(), getAccessibleColumnCount(), getSelectedAccessibleColumns(), implGetCellCount(), implGetColumn(), implGetIndex(), and implGetRow().

◆ implGetGrid()

ScCsvGrid & ScAccessibleCsvGrid::implGetGrid ( ) const
private

◆ implGetIndex()

sal_Int64 ScAccessibleCsvGrid::implGetIndex ( sal_Int32  nRow,
sal_Int32  nColumn 
) const
inlineprivate

Returns the child index from cell position (including header).

Definition at line 391 of file AccessibleCsvControl.hxx.

References implGetColumnCount().

Referenced by getAccessibleCell(), and getAccessibleIndex().

◆ implGetRow()

sal_Int32 ScAccessibleCsvGrid::implGetRow ( sal_Int64  nIndex) const
inlineprivate

Returns the row index from cell index (including header).

Definition at line 385 of file AccessibleCsvControl.hxx.

References implGetColumnCount(), and nIndex.

Referenced by getAccessibleChild(), and getAccessibleRow().

◆ implGetRowCount()

sal_Int32 ScAccessibleCsvGrid::implGetRowCount ( ) const
private

Returns the count of visible rows in the table (including header).

Definition at line 1172 of file AccessibleCsvControl.cxx.

References ScCsvControl::GetFirstVisLine(), ScCsvControl::GetLastVisLine(), and implGetGrid().

Referenced by ensureValidPosition(), getAccessibleRowCount(), getSelectedAccessibleChildCount(), implGetCellCount(), and SendTableUpdateEvent().

◆ implGetSelColumn()

sal_Int32 ScAccessibleCsvGrid::implGetSelColumn ( sal_Int32  nSelColumn) const
private

Returns the absolute column index of the nSelColumn-th selected column.

Definition at line 1191 of file AccessibleCsvControl.cxx.

References CSV_COLUMN_INVALID, ScCsvGrid::GetFirstSelected(), ScCsvGrid::GetNextSelected(), and implGetGrid().

Referenced by deselectAccessibleChild(), and getSelectedAccessibleChild().

◆ implGetSelColumnCount()

sal_Int32 ScAccessibleCsvGrid::implGetSelColumnCount ( ) const
private

◆ implIsColumnSelected()

bool ScAccessibleCsvGrid::implIsColumnSelected ( sal_Int32  nColumn) const
private

Returns true, if the specified column (including header) is selected.

Definition at line 1161 of file AccessibleCsvControl.cxx.

References implGetGrid(), ScCsvGrid::IsSelected(), and lcl_GetGridColumn().

Referenced by isAccessibleChildSelected(), and isAccessibleColumnSelected().

◆ implSelectColumn()

void ScAccessibleCsvGrid::implSelectColumn ( sal_Int32  nColumn,
bool  bSelect 
)
private

Selects the specified column (including header).

Definition at line 1166 of file AccessibleCsvControl.cxx.

References implGetGrid(), lcl_GetGridColumn(), and ScCsvGrid::Select().

Referenced by deselectAccessibleChild(), and selectAccessibleChild().

◆ isAccessibleChildSelected()

sal_Bool SAL_CALL ScAccessibleCsvGrid::isAccessibleChildSelected ( sal_Int64  nChildIndex)
overridevirtual

Returns true, if the specified child is selected.

Definition at line 1026 of file AccessibleCsvControl.cxx.

References ensureValidIndex(), implGetColumn(), and implIsColumnSelected().

◆ isAccessibleColumnSelected()

sal_Bool SAL_CALL ScAccessibleCsvGrid::isAccessibleColumnSelected ( sal_Int32  nColumn)
overridevirtual

Returns true, if the specified column is selected.

Definition at line 955 of file AccessibleCsvControl.cxx.

References ensureValidIndex(), and implIsColumnSelected().

Referenced by isAccessibleSelected().

◆ isAccessibleRowSelected()

sal_Bool SAL_CALL ScAccessibleCsvGrid::isAccessibleRowSelected ( sal_Int32  nRow)
overridevirtual

Returns true, if the specified row is selected.

Definition at line 949 of file AccessibleCsvControl.cxx.

◆ isAccessibleSelected()

sal_Bool SAL_CALL ScAccessibleCsvGrid::isAccessibleSelected ( sal_Int32  nRow,
sal_Int32  nColumn 
)
overridevirtual

Returns true, if the cell at a specified position is selected.

Definition at line 983 of file AccessibleCsvControl.cxx.

References isAccessibleColumnSelected().

◆ selectAccessibleChild()

void SAL_CALL ScAccessibleCsvGrid::selectAccessibleChild ( sal_Int64  nChildIndex)
overridevirtual

Selects the specified child (selects the entire column or the entire table).

Definition at line 1014 of file AccessibleCsvControl.cxx.

References ensureValidIndex(), implGetColumn(), implGetGrid(), implSelectColumn(), and ScCsvGrid::SelectAll().

Referenced by selectAllAccessibleChildren().

◆ selectAllAccessibleChildren()

void SAL_CALL ScAccessibleCsvGrid::selectAllAccessibleChildren ( )
overridevirtual

Selects all cells.

Definition at line 1042 of file AccessibleCsvControl.cxx.

References selectAccessibleChild().

◆ SendFocusEvent()

void ScAccessibleCsvGrid::SendFocusEvent ( bool  bFocused)
overridevirtual

Sends a GetFocus or LoseFocus event to all listeners.

Definition at line 1084 of file AccessibleCsvControl.cxx.

References Any, getAccessibleCellAt(), implGetGrid(), lcl_GetApiColumn(), and ScAccessibleCsvControl::SendFocusEvent().

◆ SendInsertColumnEvent()

void ScAccessibleCsvGrid::SendInsertColumnEvent ( sal_uInt32  nFirstColumn,
sal_uInt32  nLastColumn 
)
overridevirtual

Sends a table model changed event for an inserted column to all listeners.

Definition at line 1106 of file AccessibleCsvControl.cxx.

References Any, and lcl_GetApiColumn().

◆ SendRemoveColumnEvent()

void ScAccessibleCsvGrid::SendRemoveColumnEvent ( sal_uInt32  nFirstColumn,
sal_uInt32  nLastColumn 
)
overridevirtual

Sends a table model changed event for a removed column to all listeners.

Definition at line 1119 of file AccessibleCsvControl.cxx.

References Any, and lcl_GetApiColumn().

◆ SendTableUpdateEvent()

void ScAccessibleCsvGrid::SendTableUpdateEvent ( sal_uInt32  nFirstColumn,
sal_uInt32  nLastColumn,
bool  bAllRows 
)
overridevirtual

Sends a table model changed event for changed cell contents to all listeners.

Definition at line 1093 of file AccessibleCsvControl.cxx.

References Any, implGetRowCount(), and lcl_GetApiColumn().

Member Data Documentation

◆ maAccessibleChildren

XAccessibleSet ScAccessibleCsvGrid::maAccessibleChildren
private

Definition at line 226 of file AccessibleCsvControl.hxx.

Referenced by disposing(), and getAccessibleCell().


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