LibreOffice Module sc (master) 1
|
Accessible class representing the CSV grid control. More...
#include <AccessibleCsvControl.hxx>
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... | |
ScCsvGrid & | implGetGrid () 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< ScAccessibleCsvCell > | implCreateCellObj (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 |
Accessible class representing the CSV grid control.
Definition at line 216 of file AccessibleCsvControl.hxx.
|
protected |
Definition at line 223 of file AccessibleCsvControl.hxx.
|
explicit |
Definition at line 739 of file AccessibleCsvControl.cxx.
|
overridevirtual |
Definition at line 744 of file AccessibleCsvControl.cxx.
|
overridevirtual |
Deselects all cells.
Definition at line 1035 of file AccessibleCsvControl.cxx.
References implGetGrid(), and ScCsvGrid::SelectAll().
|
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().
|
overridevirtual |
Definition at line 749 of file AccessibleCsvControl.cxx.
References ScAccessibleCsvControl::disposing(), and maAccessibleChildren.
|
private |
css::lang::IndexOutOfBoundsException | if 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().
|
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().
|
overridevirtual |
Returns the cell at the specified point.
Definition at line 760 of file AccessibleCsvControl.cxx.
References getAccessibleCell(), ScCsvGrid::GetColumnFromX(), ScCsvControl::GetFirstVisLine(), ScCsvControl::GetFirstX(), ScCsvControl::GetHdrHeight(), ScCsvControl::GetLastX(), ScCsvControl::GetLineFromY(), implGetGrid(), and lcl_GetApiColumn().
|
overridevirtual |
Returns the caption object of the table.
Definition at line 971 of file AccessibleCsvControl.cxx.
|
private |
Definition at line 802 of file AccessibleCsvControl.cxx.
References implCreateCellObj(), implGetIndex(), maAccessibleChildren, and nIndex.
Referenced by getAccessibleAtPoint(), getAccessibleCellAt(), and getAccessibleChild().
|
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().
|
overridevirtual |
Returns the specified child cell.
Definition at line 818 of file AccessibleCsvControl.cxx.
References ensureValidIndex(), getAccessibleCell(), implGetColumn(), implGetRow(), and nIndex.
|
overridevirtual |
Returns the child count (count of cells in the table).
Definition at line 795 of file AccessibleCsvControl.cxx.
References implGetCellCount().
|
overridevirtual |
Returns the column index of the specified child.
Definition at line 1004 of file AccessibleCsvControl.cxx.
References ensureValidIndex(), and implGetColumn().
|
overridevirtual |
Returns the number of columns in the table.
Definition at line 876 of file AccessibleCsvControl.cxx.
References implGetColumnCount().
|
overridevirtual |
Returns the description text of the specified column in the table.
Definition at line 891 of file AccessibleCsvControl.cxx.
References ensureValidPosition(), and implGetCellText().
|
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().
|
overridevirtual |
Returns the column headers as an AccessibleTable.
Definition at line 919 of file AccessibleCsvControl.cxx.
|
inlineoverridevirtual |
Definition at line 234 of file AccessibleCsvControl.hxx.
|
overridevirtual |
Definition at line 1139 of file AccessibleCsvControl.cxx.
References ScResId().
|
overridevirtual |
Returns the child index of the cell at the specified position.
Definition at line 988 of file AccessibleCsvControl.cxx.
References ensureValidPosition(), and implGetIndex().
|
overridevirtual |
Definition at line 1134 of file AccessibleCsvControl.cxx.
References ScResId().
|
overridevirtual |
Definition at line 1223 of file AccessibleCsvControl.cxx.
|
overridevirtual |
Returns the relation to the ruler control.
Definition at line 827 of file AccessibleCsvControl.cxx.
References aSeq, ScCsvControl::GetAccessible(), ScCsvTableBox::GetRuler(), ScCsvGrid::GetTableBox(), implGetGrid(), and weld::CustomWidgetController::IsVisible().
|
inlineoverridevirtual |
Definition at line 248 of file AccessibleCsvControl.hxx.
References TABLE.
|
overridevirtual |
Returns the row index of the specified child.
Definition at line 996 of file AccessibleCsvControl.cxx.
References ensureValidIndex(), and implGetRow().
|
overridevirtual |
Returns the number of rows in the table.
Definition at line 869 of file AccessibleCsvControl.cxx.
References implGetRowCount().
|
overridevirtual |
Returns the description of the specified row in the table.
Definition at line 883 of file AccessibleCsvControl.cxx.
References ensureValidPosition(), and implGetCellText().
|
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().
|
overridevirtual |
Returns the row headers as an AccessibleTable.
Definition at line 913 of file AccessibleCsvControl.cxx.
|
overridevirtual |
Returns the current set of states.
Definition at line 850 of file AccessibleCsvControl.cxx.
References implGetGrid(), and isAlive().
|
overridevirtual |
Returns the summary description object of the table.
Definition at line 977 of file AccessibleCsvControl.cxx.
|
overridevirtual |
Definition at line 786 of file AccessibleCsvControl.cxx.
References SC_MOD.
|
overridevirtual |
Definition at line 779 of file AccessibleCsvControl.cxx.
References Application::GetSettings().
|
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().
|
overridevirtual |
Returns the count of selected children.
Definition at line 1047 of file AccessibleCsvControl.cxx.
References implGetRowCount(), and implGetSelColumnCount().
|
overridevirtual |
Returns the selected columns as a sequence.
Definition at line 931 of file AccessibleCsvControl.cxx.
References aSeq, CSV_COLUMN_INVALID, ScCsvGrid::GetFirstSelected(), ScCsvGrid::GetNextSelected(), implGetColumnCount(), implGetGrid(), and lcl_GetApiColumn().
|
overridevirtual |
Returns the selected rows as a sequence.
Definition at line 925 of file AccessibleCsvControl.cxx.
|
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().
|
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().
|
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().
|
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().
|
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().
|
private |
Returns the VCL grid control.
Assumes a living object.
Definition at line 1156 of file AccessibleCsvControl.cxx.
Referenced by clearAccessibleSelection(), getAccessibleAtPoint(), getAccessibleRelationSet(), getAccessibleStateSet(), getSelectedAccessibleColumns(), implCreateCellObj(), implGetCellText(), implGetColumnCount(), implGetRowCount(), implGetSelColumn(), implGetSelColumnCount(), implIsColumnSelected(), implSelectColumn(), selectAccessibleChild(), and SendFocusEvent().
|
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().
|
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().
|
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().
|
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().
|
private |
Returns the count of selected columns in the table.
Definition at line 1182 of file AccessibleCsvControl.cxx.
References CSV_COLUMN_INVALID, ScCsvGrid::GetFirstSelected(), ScCsvGrid::GetNextSelected(), implGetGrid(), and nCount.
Referenced by deselectAccessibleChild(), getSelectedAccessibleChild(), and getSelectedAccessibleChildCount().
|
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().
|
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().
|
overridevirtual |
Returns true, if the specified child is selected.
Definition at line 1026 of file AccessibleCsvControl.cxx.
References ensureValidIndex(), implGetColumn(), and implIsColumnSelected().
|
overridevirtual |
Returns true, if the specified column is selected.
Definition at line 955 of file AccessibleCsvControl.cxx.
References ensureValidIndex(), and implIsColumnSelected().
Referenced by isAccessibleSelected().
|
overridevirtual |
Returns true, if the specified row is selected.
Definition at line 949 of file AccessibleCsvControl.cxx.
|
overridevirtual |
Returns true, if the cell at a specified position is selected.
Definition at line 983 of file AccessibleCsvControl.cxx.
References isAccessibleColumnSelected().
|
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().
|
overridevirtual |
Selects all cells.
Definition at line 1042 of file AccessibleCsvControl.cxx.
References selectAccessibleChild().
|
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().
|
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().
|
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().
|
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().
|
private |
Definition at line 226 of file AccessibleCsvControl.hxx.
Referenced by disposing(), and getAccessibleCell().