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_Int32 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_Int32 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 css::uno::Reference< css::accessibility::XAccessibleStateSet > 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_Int32 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_Int32 nChildIndex) override
 Returns the row index of the specified child. More...
 
virtual sal_Int32 SAL_CALL getAccessibleColumn (sal_Int32 nChildIndex) override
 Returns the column index of the specified child. More...
 
virtual void SAL_CALL selectAccessibleChild (sal_Int32 nChildIndex) override
 Selects the specified child (selects the entire column or the entire table). More...
 
virtual sal_Bool SAL_CALL isAccessibleChildSelected (sal_Int32 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_Int32 SAL_CALL getSelectedAccessibleChildCount () override
 Returns the count of selected children. More...
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild (sal_Int32 nSelectedChildIndex) override
 Returns the child with the specified index in all selected children. More...
 
virtual void SAL_CALL deselectAccessibleChild (sal_Int32 nSelectedChildIndex) override
 Deselects the child with the specified index in all selected children. More...
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
virtual void SAL_CALL acquire () override throw ()
 
virtual void SAL_CALL release () override throw ()
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 Returns a sequence with all supported interface types. More...
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 Returns an implementation ID. 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...
 
- Public Member Functions inherited from ScAccessibleCsvControl
 ScAccessibleCsvControl (ScCsvControl &rControl)
 Pointer to the VCL control. More...
 
virtual ~ScAccessibleCsvControl () override
 
virtual void SAL_CALL grabFocus () override
 
virtual void SendCaretEvent ()
 Sends a caret changed event to all listeners. More...
 
void SendVisibleEvent ()
 Sends a visible area changed event to all listeners. More...
 
void SendSelectionEvent ()
 Sends a selection changed event to all listeners. More...
 
- Public Member Functions inherited from comphelper::OAccessibleComponentHelper
virtual sal_Bool SAL_CALL containsPoint (const css::awt::Point &aPoint) override
 
virtual css::awt::Point SAL_CALL getLocation () override
 
virtual css::awt::Point SAL_CALL getLocationOnScreen () override
 
virtual css::awt::Size SAL_CALL getSize () override
 
virtual css::awt::Rectangle SAL_CALL getBounds () override
 
- Public Member Functions inherited from comphelper::OAccessibleContextHelper
virtual void SAL_CALL addAccessibleEventListener (const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override
 
virtual void SAL_CALL removeAccessibleEventListener (const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override
 
virtual OUString SAL_CALL getAccessibleId () override
 
virtual sal_Int32 SAL_CALL getAccessibleIndexInParent () override
 
virtual css::lang::Locale SAL_CALL getLocale () override
 
- Public Member Functions inherited from cppu::ImplHelper3< class, class, class >
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 

Protected Types

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

Private Member Functions

void ensureValidIndex (sal_Int32 nIndex) const
 
void ensureValidPosition (sal_Int32 nRow, sal_Int32 nColumn) const
 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_Int32 implGetCellCount () const
 Returns the total cell count in the table (including header). More...
 
sal_Int32 implGetRow (sal_Int32 nIndex) const
 Returns the row index from cell index (including header). More...
 
sal_Int32 implGetColumn (sal_Int32 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_Int32 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...
 
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
 

Additional Inherited Members

- Protected Member Functions inherited from ScAccessibleCsvControl
virtual css::awt::Rectangle implGetBounds () override
 
ScCsvControlimplGetControl () const
 Returns the VCL control. More...
 
rtl::Reference<::utl::AccessibleStateSetHelperimplCreateStateSet ()
 Creates a StateSetHelper and fills it with DEFUNC, OPAQUE, ENABLED, SHOWING and VISIBLE. More...
 
- Protected Member Functions inherited from comphelper::OAccessibleComponentHelper
 OAccessibleComponentHelper ()
 
- Protected Member Functions inherited from comphelper::OCommonAccessibleComponent
 OCommonAccessibleComponent ()
 
virtual ~OCommonAccessibleComponent () override
 
bool containsPoint (const css::awt::Point &aPoint)
 
css::awt::Point getLocation ()
 
css::awt::Point getLocationOnScreen ()
 
css::awt::Size getSize ()
 
css::awt::Rectangle getBounds ()
 
- Protected Member Functions inherited from comphelper::OAccessibleContextHelper
virtual ~OAccessibleContextHelper () override
 
 OAccessibleContextHelper ()
 
void lateInit (const css::uno::Reference< css::accessibility::XAccessible > &_rxAccessible)
 
css::uno::Reference< css::accessibility::XAccessible > getAccessibleCreator () const
 
void NotifyAccessibleEvent (const sal_Int16 _nEventId, const css::uno::Any &_rOldValue, const css::uno::Any &_rNewValue)
 
bool isAlive () const
 
void ensureAlive () const
 
void ensureDisposed ()
 
css::uno::Reference< css::accessibility::XAccessibleContext > implGetParentContext ()
 
::osl::Mutex & GetMutex ()
 
- Protected Member Functions inherited from comphelper::OAccessibleComponentHelper_Base
 ~OAccessibleComponentHelper_Base ()
 
- Protected Member Functions inherited from cppu::ImplHelper3< class, class, class >
 ~ImplHelper3 ()
 

Detailed Description

Accessible class representing the CSV grid control.

Definition at line 234 of file AccessibleCsvControl.hxx.

Member Typedef Documentation

Definition at line 237 of file AccessibleCsvControl.hxx.

Constructor & Destructor Documentation

ScAccessibleCsvGrid::ScAccessibleCsvGrid ( ScCsvGrid rGrid)
explicit

Definition at line 762 of file AccessibleCsvControl.cxx.

ScAccessibleCsvGrid::~ScAccessibleCsvGrid ( )
overridevirtual

Member Function Documentation

void SAL_CALL ScAccessibleCsvGrid::acquire ( )
throw (
)
overridevirtual

Definition at line 1112 of file AccessibleCsvControl.cxx.

void SAL_CALL ScAccessibleCsvGrid::clearAccessibleSelection ( )
overridevirtual
void SAL_CALL ScAccessibleCsvGrid::deselectAccessibleChild ( sal_Int32  nSelectedChildIndex)
overridevirtual

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

Definition at line 1090 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive(), ensureValidPosition(), implGetSelColumn(), implGetSelColumnCount(), and implSelectColumn().

void ScAccessibleCsvGrid::disposing ( )
overridevirtual

Reimplemented from ScAccessibleCsvControl.

Definition at line 772 of file AccessibleCsvControl.cxx.

References ScAccessibleCsvControl::disposing(), and maAccessibleChildren.

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

Definition at line 1199 of file AccessibleCsvControl.cxx.

References implGetCellCount().

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

void ScAccessibleCsvGrid::ensureValidPosition ( sal_Int32  nRow,
sal_Int32  nColumn 
) const
private
Reference< XAccessible > SAL_CALL ScAccessibleCsvGrid::getAccessibleAtPoint ( const css::awt::Point &  rPoint)
overridevirtual
Reference< XAccessible > SAL_CALL ScAccessibleCsvGrid::getAccessibleCaption ( )
overridevirtual

Returns the caption object of the table.

Definition at line 994 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive().

Reference< XAccessible > ScAccessibleCsvGrid::getAccessibleCell ( sal_Int32  nRow,
sal_Int32  nColumn 
)
private
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 986 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive(), ensureValidPosition(), and getAccessibleCell().

Referenced by getSelectedAccessibleChild(), and SendFocusEvent().

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

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

Implements comphelper::OAccessibleContextHelper.

Definition at line 818 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive(), and implGetCellCount().

sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleColumn ( sal_Int32  nChildIndex)
overridevirtual

Returns the column index of the specified child.

Definition at line 1027 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive(), ensureValidIndex(), and implGetColumn().

sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleColumnCount ( )
overridevirtual

Returns the number of columns in the table.

Definition at line 900 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive(), and implGetColumnCount().

OUString SAL_CALL ScAccessibleCsvGrid::getAccessibleColumnDescription ( sal_Int32  nColumn)
overridevirtual

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

Definition at line 915 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive(), ensureValidPosition(), and implGetCellText().

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.

Returns always 1 (Merged cells not supported).

Definition at line 930 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive(), and ensureValidPosition().

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

Returns the column headers as an AccessibleTable.

Definition at line 943 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive().

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

Definition at line 248 of file AccessibleCsvControl.hxx.

OUString SAL_CALL ScAccessibleCsvGrid::getAccessibleDescription ( )
overridevirtual

Implements comphelper::OAccessibleContextHelper.

Definition at line 1194 of file AccessibleCsvControl.cxx.

References ScResId().

sal_Int32 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 1011 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive(), ensureValidPosition(), and implGetIndex().

OUString SAL_CALL ScAccessibleCsvGrid::getAccessibleName ( )
overridevirtual

Implements comphelper::OAccessibleContextHelper.

Definition at line 1189 of file AccessibleCsvControl.cxx.

References ScResId().

css::uno::Reference< css::accessibility::XAccessible > SAL_CALL ScAccessibleCsvGrid::getAccessibleParent ( )
overridevirtual
Reference< XAccessibleRelationSet > SAL_CALL ScAccessibleCsvGrid::getAccessibleRelationSet ( )
overridevirtual
virtual sal_Int16 SAL_CALL ScAccessibleCsvGrid::getAccessibleRole ( )
inlineoverridevirtual

Implements comphelper::OAccessibleContextHelper.

Definition at line 262 of file AccessibleCsvControl.hxx.

References TABLE.

sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleRow ( sal_Int32  nChildIndex)
overridevirtual

Returns the row index of the specified child.

Definition at line 1019 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive(), ensureValidIndex(), and implGetRow().

sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleRowCount ( )
overridevirtual

Returns the number of rows in the table.

Definition at line 893 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive(), and implGetRowCount().

OUString SAL_CALL ScAccessibleCsvGrid::getAccessibleRowDescription ( sal_Int32  nRow)
overridevirtual

Returns the description of the specified row in the table.

Definition at line 907 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive(), ensureValidPosition(), and implGetCellText().

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.

Returns always 1 (Merged cells not supported).

Definition at line 923 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive(), and ensureValidPosition().

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

Returns the row headers as an AccessibleTable.

Definition at line 937 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive().

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

Returns the summary description object of the table.

Definition at line 1000 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive().

sal_Int32 SAL_CALL ScAccessibleCsvGrid::getBackground ( )
overridevirtual
sal_Int32 SAL_CALL ScAccessibleCsvGrid::getForeground ( )
overridevirtual
Sequence< sal_Int8 > SAL_CALL ScAccessibleCsvGrid::getImplementationId ( )
overridevirtual

Returns an implementation ID.

Reimplemented from cppu::ImplHelper3< class, class, class >.

Definition at line 1132 of file AccessibleCsvControl.cxx.

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

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

Definition at line 1077 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive(), getAccessibleCellAt(), implGetSelColumn(), and implGetSelColumnCount().

sal_Int32 SAL_CALL ScAccessibleCsvGrid::getSelectedAccessibleChildCount ( )
overridevirtual

Returns the count of selected children.

Definition at line 1070 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive(), implGetRowCount(), and implGetSelColumnCount().

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

Returns the selected rows as a sequence.

Definition at line 949 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive().

Sequence< css::uno::Type > SAL_CALL ScAccessibleCsvGrid::getTypes ( )
overridevirtual

Returns a sequence with all supported interface types.

Reimplemented from cppu::ImplHelper3< class, class, class >.

Definition at line 1124 of file AccessibleCsvControl.cxx.

References cppu::UnoType< class >::get(), and Sequence.

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 1273 of file AccessibleCsvControl.cxx.

References implGetCellText(), and implGetGrid().

Referenced by getAccessibleCell().

sal_Int32 ScAccessibleCsvGrid::implGetCellCount ( ) const
inlineprivate

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

Definition at line 412 of file AccessibleCsvControl.hxx.

Referenced by ensureValidIndex(), and getAccessibleChildCount().

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 1259 of file AccessibleCsvControl.cxx.

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

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

sal_Int32 ScAccessibleCsvGrid::implGetColumn ( sal_Int32  nIndex) const
inlineprivate

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

Definition at line 417 of file AccessibleCsvControl.hxx.

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

sal_Int32 ScAccessibleCsvGrid::implGetColumnCount ( ) const
private

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

Definition at line 1232 of file AccessibleCsvControl.cxx.

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

Referenced by ensureValidPosition(), getAccessibleColumnCount(), and getSelectedAccessibleColumns().

ScCsvGrid & ScAccessibleCsvGrid::implGetGrid ( ) const
private
sal_Int32 ScAccessibleCsvGrid::implGetIndex ( sal_Int32  nRow,
sal_Int32  nColumn 
) const
inlineprivate

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

Definition at line 421 of file AccessibleCsvControl.hxx.

Referenced by getAccessibleCell(), and getAccessibleIndex().

sal_Int32 ScAccessibleCsvGrid::implGetRow ( sal_Int32  nIndex) const
inlineprivate

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

Definition at line 415 of file AccessibleCsvControl.hxx.

Referenced by getAccessibleChild(), and getAccessibleRow().

sal_Int32 ScAccessibleCsvGrid::implGetRowCount ( ) const
private
sal_Int32 ScAccessibleCsvGrid::implGetSelColumn ( sal_Int32  nSelColumn) const
private

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

Definition at line 1246 of file AccessibleCsvControl.cxx.

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

Referenced by deselectAccessibleChild(), and getSelectedAccessibleChild().

sal_Int32 ScAccessibleCsvGrid::implGetSelColumnCount ( ) const
private
bool ScAccessibleCsvGrid::implIsColumnSelected ( sal_Int32  nColumn) const
private

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

Definition at line 1216 of file AccessibleCsvControl.cxx.

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

Referenced by isAccessibleChildSelected(), and isAccessibleColumnSelected().

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

Selects the specified column (including header).

Definition at line 1221 of file AccessibleCsvControl.cxx.

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

Referenced by deselectAccessibleChild(), and selectAccessibleChild().

sal_Bool SAL_CALL ScAccessibleCsvGrid::isAccessibleChildSelected ( sal_Int32  nChildIndex)
overridevirtual

Returns true, if the specified child is selected.

Definition at line 1049 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive(), ensureValidIndex(), implGetColumn(), and implIsColumnSelected().

sal_Bool SAL_CALL ScAccessibleCsvGrid::isAccessibleColumnSelected ( sal_Int32  nColumn)
overridevirtual

Returns true, if the specified column is selected.

Definition at line 978 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive(), ensureValidIndex(), and implIsColumnSelected().

Referenced by isAccessibleSelected().

sal_Bool SAL_CALL ScAccessibleCsvGrid::isAccessibleRowSelected ( sal_Int32  nRow)
overridevirtual

Returns true, if the specified row is selected.

Definition at line 972 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive().

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 1006 of file AccessibleCsvControl.cxx.

References isAccessibleColumnSelected().

Any SAL_CALL ScAccessibleCsvGrid::queryInterface ( const css::uno::Type &  rType)
overridevirtual
void SAL_CALL ScAccessibleCsvGrid::release ( )
throw (
)
overridevirtual

Definition at line 1117 of file AccessibleCsvControl.cxx.

void SAL_CALL ScAccessibleCsvGrid::selectAccessibleChild ( sal_Int32  nChildIndex)
overridevirtual

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

Definition at line 1037 of file AccessibleCsvControl.cxx.

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

Referenced by selectAllAccessibleChildren().

void SAL_CALL ScAccessibleCsvGrid::selectAllAccessibleChildren ( )
overridevirtual

Selects all cells.

Definition at line 1065 of file AccessibleCsvControl.cxx.

References selectAccessibleChild().

void ScAccessibleCsvGrid::SendFocusEvent ( bool  bFocused)
overridevirtual
void ScAccessibleCsvGrid::SendInsertColumnEvent ( sal_uInt32  nFirstColumn,
sal_uInt32  nLastColumn 
)
overridevirtual

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

Reimplemented from ScAccessibleCsvControl.

Definition at line 1161 of file AccessibleCsvControl.cxx.

References Any, implGetRowCount(), lcl_GetApiColumn(), and comphelper::OAccessibleContextHelper::NotifyAccessibleEvent().

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

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

Reimplemented from ScAccessibleCsvControl.

Definition at line 1174 of file AccessibleCsvControl.cxx.

References Any, implGetRowCount(), lcl_GetApiColumn(), and comphelper::OAccessibleContextHelper::NotifyAccessibleEvent().

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.

Reimplemented from ScAccessibleCsvControl.

Definition at line 1148 of file AccessibleCsvControl.cxx.

References Any, implGetRowCount(), lcl_GetApiColumn(), and comphelper::OAccessibleContextHelper::NotifyAccessibleEvent().

Member Data Documentation

XAccessibleSet ScAccessibleCsvGrid::maAccessibleChildren
private

Definition at line 240 of file AccessibleCsvControl.hxx.

Referenced by disposing(), and getAccessibleCell().


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