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 css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
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 disposing () override
 
virtual void SAL_CALL grabFocus () override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint (const css::awt::Point &aPoint) override
 
virtual void SendFocusEvent (bool bFocused)
 Sends a GetFocus or LoseFocus event to all listeners. More...
 
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...
 
virtual void SendTableUpdateEvent (sal_uInt32 nFirstColumn, sal_uInt32 nLastColumn, bool bAllRows)
 Sends a table model changed event for changed cell contents to all listeners. More...
 
virtual void SendInsertColumnEvent (sal_uInt32 nFirstColumn, sal_uInt32 nLastColumn)
 Sends a table model changed event for an inserted column to all listeners. More...
 
virtual void SendRemoveColumnEvent (sal_uInt32 nFirstColumn, sal_uInt32 nLastColumn)
 Sends a table model changed event for a removed column 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 sal_Int64 SAL_CALL getAccessibleChildCount () override=0
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild (sal_Int64 i) override=0
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent () override=0
 
virtual sal_Int16 SAL_CALL getAccessibleRole () override=0
 
virtual OUString SAL_CALL getAccessibleDescription () override=0
 
virtual OUString SAL_CALL getAccessibleName () override=0
 
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet () override=0
 
virtual sal_Int64 SAL_CALL getAccessibleStateSet () override=0
 
virtual OUString SAL_CALL getAccessibleId () override
 
virtual sal_Int64 SAL_CALL getAccessibleIndexInParent () override
 
virtual css::lang::Locale SAL_CALL getLocale () override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_OVERRIDE
 

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
 

Additional Inherited Members

- Protected Member Functions inherited from ScAccessibleCsvControl
virtual css::awt::Rectangle implGetBounds () override
 
ScCsvControlimplGetControl () const
 Returns the VCL control. More...
 
sal_Int64 implCreateStateSet ()
 Creates a StateSet 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
 
virtual css::awt::Rectangle implGetBounds ()=0
 
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
 
virtual void SAL_CALL disposing () override
 
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 Ifc1, class Ifc2, class Ifc3 >
 ~ImplHelper3 () SAL_NOEXCEPT
 

Detailed Description

Accessible class representing the CSV grid control.

Definition at line 232 of file AccessibleCsvControl.hxx.

Member Typedef Documentation

◆ XAccessibleSet

Definition at line 235 of file AccessibleCsvControl.hxx.

Constructor & Destructor Documentation

◆ ScAccessibleCsvGrid()

ScAccessibleCsvGrid::ScAccessibleCsvGrid ( ScCsvGrid rGrid)
explicit

Definition at line 760 of file AccessibleCsvControl.cxx.

◆ ~ScAccessibleCsvGrid()

ScAccessibleCsvGrid::~ScAccessibleCsvGrid ( )
overridevirtual

Member Function Documentation

◆ acquire()

void SAL_CALL ScAccessibleCsvGrid::acquire ( )
overridevirtualnoexcept

Definition at line 1111 of file AccessibleCsvControl.cxx.

◆ clearAccessibleSelection()

void SAL_CALL ScAccessibleCsvGrid::clearAccessibleSelection ( )
overridevirtual

◆ deselectAccessibleChild()

void SAL_CALL ScAccessibleCsvGrid::deselectAccessibleChild ( sal_Int64  nSelectedChildIndex)
overridevirtual

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

Definition at line 1088 of file AccessibleCsvControl.cxx.

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

◆ disposing()

void ScAccessibleCsvGrid::disposing ( )
overridevirtual

Reimplemented from ScAccessibleCsvControl.

Definition at line 770 of file AccessibleCsvControl.cxx.

References ScAccessibleCsvControl::disposing(), and maAccessibleChildren.

◆ ensureValidIndex()

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

Definition at line 1198 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 1204 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 992 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive().

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

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

Referenced by getSelectedAccessibleChild(), and SendFocusEvent().

◆ getAccessibleChild()

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

◆ getAccessibleChildCount()

sal_Int64 SAL_CALL ScAccessibleCsvGrid::getAccessibleChildCount ( )
overridevirtual

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

Implements comphelper::OAccessibleContextHelper.

Definition at line 816 of file AccessibleCsvControl.cxx.

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

◆ getAccessibleColumn()

sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleColumn ( sal_Int64  nChildIndex)
overridevirtual

Returns the column index of the specified child.

Definition at line 1025 of file AccessibleCsvControl.cxx.

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

◆ getAccessibleColumnCount()

sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleColumnCount ( )
overridevirtual

Returns the number of columns in the table.

Definition at line 897 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive(), and 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 912 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive(), 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 927 of file AccessibleCsvControl.cxx.

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

◆ getAccessibleColumnHeaders()

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

Returns the column headers as an AccessibleTable.

Definition at line 940 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive().

◆ getAccessibleContext()

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

Definition at line 246 of file AccessibleCsvControl.hxx.

◆ getAccessibleDescription()

OUString SAL_CALL ScAccessibleCsvGrid::getAccessibleDescription ( )
overridevirtual

Implements comphelper::OAccessibleContextHelper.

Definition at line 1193 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 1009 of file AccessibleCsvControl.cxx.

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

◆ getAccessibleName()

OUString SAL_CALL ScAccessibleCsvGrid::getAccessibleName ( )
overridevirtual

Implements comphelper::OAccessibleContextHelper.

Definition at line 1188 of file AccessibleCsvControl.cxx.

References ScResId().

◆ getAccessibleParent()

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

◆ getAccessibleRelationSet()

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

◆ getAccessibleRole()

virtual sal_Int16 SAL_CALL ScAccessibleCsvGrid::getAccessibleRole ( )
inlineoverridevirtual

Implements comphelper::OAccessibleContextHelper.

Definition at line 260 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 1017 of file AccessibleCsvControl.cxx.

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

◆ getAccessibleRowCount()

sal_Int32 SAL_CALL ScAccessibleCsvGrid::getAccessibleRowCount ( )
overridevirtual

Returns the number of rows in the table.

Definition at line 890 of file AccessibleCsvControl.cxx.

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

◆ getAccessibleRowDescription()

OUString SAL_CALL ScAccessibleCsvGrid::getAccessibleRowDescription ( sal_Int32  nRow)
overridevirtual

Returns the description of the specified row in the table.

Definition at line 904 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive(), 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 920 of file AccessibleCsvControl.cxx.

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

◆ getAccessibleRowHeaders()

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

Returns the row headers as an AccessibleTable.

Definition at line 934 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive().

◆ getAccessibleStateSet()

sal_Int64 SAL_CALL ScAccessibleCsvGrid::getAccessibleStateSet ( )
overridevirtual

◆ getAccessibleSummary()

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

Returns the summary description object of the table.

Definition at line 998 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive().

◆ getBackground()

sal_Int32 SAL_CALL ScAccessibleCsvGrid::getBackground ( )
overridevirtual

◆ getForeground()

sal_Int32 SAL_CALL ScAccessibleCsvGrid::getForeground ( )
overridevirtual

◆ getImplementationId()

Sequence< sal_Int8 > SAL_CALL ScAccessibleCsvGrid::getImplementationId ( )
overridevirtual

Returns an implementation ID.

Reimplemented from cppu::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 >.

Definition at line 1131 of file AccessibleCsvControl.cxx.

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

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

◆ getSelectedAccessibleChildCount()

sal_Int64 SAL_CALL ScAccessibleCsvGrid::getSelectedAccessibleChildCount ( )
overridevirtual

Returns the count of selected children.

Definition at line 1068 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive(), 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 946 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive().

◆ getTypes()

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

Returns a sequence with all supported interface types.

Reimplemented from cppu::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 >.

Definition at line 1123 of file AccessibleCsvControl.cxx.

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

◆ 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 1272 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 410 of file AccessibleCsvControl.hxx.

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 1258 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 415 of file AccessibleCsvControl.hxx.

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

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

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

◆ 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 419 of file AccessibleCsvControl.hxx.

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 413 of file AccessibleCsvControl.hxx.

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

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

Referenced by ensureValidPosition(), getAccessibleRowCount(), getSelectedAccessibleChildCount(), 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 1245 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 1215 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 1220 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 1047 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive(), 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 976 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive(), 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 970 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive().

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

References isAccessibleColumnSelected().

◆ queryInterface()

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

◆ release()

void SAL_CALL ScAccessibleCsvGrid::release ( )
overridevirtualnoexcept

Definition at line 1116 of file AccessibleCsvControl.cxx.

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

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

Referenced by selectAllAccessibleChildren().

◆ selectAllAccessibleChildren()

void SAL_CALL ScAccessibleCsvGrid::selectAllAccessibleChildren ( )
overridevirtual

Selects all cells.

Definition at line 1063 of file AccessibleCsvControl.cxx.

References selectAccessibleChild().

◆ SendFocusEvent()

void ScAccessibleCsvGrid::SendFocusEvent ( bool  bFocused)
overridevirtual

◆ SendInsertColumnEvent()

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

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

◆ SendRemoveColumnEvent()

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

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

◆ 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.

Reimplemented from ScAccessibleCsvControl.

Definition at line 1147 of file AccessibleCsvControl.cxx.

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

Member Data Documentation

◆ maAccessibleChildren

XAccessibleSet ScAccessibleCsvGrid::maAccessibleChildren
private

Definition at line 238 of file AccessibleCsvControl.hxx.

Referenced by disposing(), and getAccessibleCell().


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