LibreOffice Module svx (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
accessibility::AccessibleCell Class Reference

#include <accessiblecell.hxx>

Inheritance diagram for accessibility::AccessibleCell:
[legend]
Collaboration diagram for accessibility::AccessibleCell:
[legend]

Public Member Functions

 AccessibleCell (const css::uno::Reference< css::accessibility::XAccessible > &rxParent, sdr::table::CellRef xCell, sal_Int32 nIndex, const AccessibleShapeTreeInfo &rShapeTreeInfo)
 
virtual ~AccessibleCell () override
 
 AccessibleCell (const AccessibleCell &)=delete
 
AccessibleCelloperator= (const AccessibleCell &)=delete
 
void Init ()
 
virtual bool SetState (sal_Int64 aState) override
 
virtual bool ResetState (sal_Int64 aState) override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &aType) override
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual sal_Int64 SAL_CALL getAccessibleChildCount () override
 The children of this cell come from the paragraphs of text. More...
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild (sal_Int64 nIndex) override
 Forward the request to the shape. More...
 
virtual sal_Int64 SAL_CALL getAccessibleStateSet () override
 Return a copy of the state set. More...
 
virtual sal_Int64 SAL_CALL getAccessibleIndexInParent () override
 
virtual OUString SAL_CALL getAccessibleName () override
 
const sdr::table::CellRefgetCellRef () const
 
void UpdateChildren ()
 
virtual sal_Bool SAL_CALL containsPoint (const css::awt::Point &aPoint) override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint (const css::awt::Point &aPoint) override
 The implementation below is at the moment straightforward. More...
 
virtual css::awt::Rectangle SAL_CALL getBounds () 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 void SAL_CALL grabFocus () override
 
virtual sal_Int32 SAL_CALL getForeground () override
 
virtual sal_Int32 SAL_CALL getBackground () override
 
virtual css::uno::Reference< css::awt::XFont > SAL_CALL getFont () override
 
virtual OUString SAL_CALL getTitledBorderText () override
 
virtual OUString SAL_CALL getToolTipText () override
 
virtual void SAL_CALL addAccessibleEventListener (const css::uno::Reference< css::accessibility::XAccessibleEventListener > &rxListener) override
 
virtual void SAL_CALL removeAccessibleEventListener (const css::uno::Reference< css::accessibility::XAccessibleEventListener > &rxListener) override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual void ViewForwarderChanged () override
 This method is called to indicate a change of the specified view forwarder, specifically, a change in visible area. More...
 
void setIndexInParent (sal_Int32 _nIndex)
 set the index _nIndex at the accessible cell param _nIndex The new index in parent. More...
 
AccessibleTableShapeGetParentTable ()
 
- Public Member Functions inherited from accessibility::AccessibleComponentBase
 AccessibleComponentBase ()
 
virtual ~AccessibleComponentBase ()
 
virtual sal_Bool SAL_CALL containsPoint (const css::awt::Point &aPoint) override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint (const css::awt::Point &aPoint) override
 
virtual css::awt::Rectangle SAL_CALL getBounds () 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 void SAL_CALL grabFocus () override
 
virtual sal_Int32 SAL_CALL getForeground () override
 
virtual sal_Int32 SAL_CALL getBackground () override
 
virtual css::uno::Reference< css::awt::XFont > SAL_CALL getFont () override
 
virtual OUString SAL_CALL getTitledBorderText () override
 
virtual OUString SAL_CALL getToolTipText () override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes ()
 
virtual void ViewForwarderChanged ()=0
 This method is called to indicate a change of the specified view forwarder, specifically, a change in visible area. More...
 

Static Public Member Functions

static OUString getCellName (sal_Int32 nCol, sal_Int32 nRow)
 

Private Member Functions

virtual void SAL_CALL disposing () override
 This method is called from the component helper base class while disposing. More...
 

Private Attributes

AccessibleShapeTreeInfo maShapeTreeInfo
 Bundle of information passed to all shapes in a document tree. More...
 
sal_Int32 mnIndexInParent
 the index in parent. More...
 
std::unique_ptr< AccessibleTextHelpermpText
 The accessible text engine. May be NULL if it can not be created. More...
 
sdr::table::CellRef mxCell
 
AccessibleTableShapepAccTable
 

Additional Inherited Members

- Protected Member Functions inherited from accessibility::IAccessibleViewForwarderListener
 ~IAccessibleViewForwarderListener ()
 

Detailed Description

Definition at line 45 of file accessiblecell.hxx.

Constructor & Destructor Documentation

◆ AccessibleCell() [1/2]

accessibility::AccessibleCell::AccessibleCell ( const css::uno::Reference< css::accessibility::XAccessible > &  rxParent,
sdr::table::CellRef  xCell,
sal_Int32  nIndex,
const AccessibleShapeTreeInfo rShapeTreeInfo 
)

Definition at line 53 of file accessiblecell.cxx.

References nIndex, pAccTable, and TABLE_CELL.

◆ ~AccessibleCell()

accessibility::AccessibleCell::~AccessibleCell ( )
overridevirtual

Definition at line 64 of file accessiblecell.cxx.

References DBG_ASSERT, and mpText.

◆ AccessibleCell() [2/2]

accessibility::AccessibleCell::AccessibleCell ( const AccessibleCell )
delete

Member Function Documentation

◆ acquire()

void SAL_CALL accessibility::AccessibleCell::acquire ( )
overridevirtualnoexcept

Definition at line 137 of file accessiblecell.cxx.

◆ addAccessibleEventListener()

void SAL_CALL accessibility::AccessibleCell::addAccessibleEventListener ( const css::uno::Reference< css::accessibility::XAccessibleEventListener > &  rxListener)
overridevirtual

◆ containsPoint()

sal_Bool SAL_CALL accessibility::AccessibleCell::containsPoint ( const css::awt::Point &  aPoint)
overridevirtual

◆ disposing()

void accessibility::AccessibleCell::disposing ( )
overrideprivatevirtual

This method is called from the component helper base class while disposing.

Definition at line 475 of file accessiblecell.cxx.

References accessibility::AccessibleShapeTreeInfo::dispose(), m_aMutex, maShapeTreeInfo, mpText, and mxCell.

◆ getAccessibleAtPoint()

Reference< XAccessible > SAL_CALL accessibility::AccessibleCell::getAccessibleAtPoint ( const css::awt::Point &  aPoint)
overridevirtual

The implementation below is at the moment straightforward.

It iterates over all children (and thereby instances all children which have not been already instantiated) until a child covering the specified point is found. This leaves room for improvement. For instance, first iterate only over the already instantiated children and only if no match is found instantiate the remaining ones.

Reimplemented from accessibility::AccessibleComponentBase.

Definition at line 247 of file accessiblecell.cxx.

References getAccessibleChild(), getAccessibleChildCount(), i, and m_aMutex.

◆ getAccessibleChild()

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

Forward the request to the shape.

Return the requested shape or throw an exception for a wrong index.

Definition at line 165 of file accessiblecell.cxx.

References mpText, and nIndex.

Referenced by getAccessibleAtPoint().

◆ getAccessibleChildCount()

sal_Int64 SAL_CALL accessibility::AccessibleCell::getAccessibleChildCount ( )
overridevirtual

The children of this cell come from the paragraphs of text.

Definition at line 154 of file accessiblecell.cxx.

References mpText.

Referenced by getAccessibleAtPoint().

◆ getAccessibleIndexInParent()

sal_Int64 SAL_CALL accessibility::AccessibleCell::getAccessibleIndexInParent ( )
overridevirtual

Definition at line 499 of file accessiblecell.cxx.

References mnIndexInParent.

◆ getAccessibleName()

OUString SAL_CALL accessibility::AccessibleCell::getAccessibleName ( )
overridevirtual

◆ getAccessibleStateSet()

sal_Int64 SAL_CALL accessibility::AccessibleCell::getAccessibleStateSet ( )
overridevirtual

Return a copy of the state set.

Possible states are: ENABLED SHOWING VISIBLE

Definition at line 180 of file accessiblecell.cxx.

References accessibility::AccessibleContextBase::getAccessibleStateSet(), m_aMutex, mpText, and mxCell.

◆ getBackground()

sal_Int32 SAL_CALL accessibility::AccessibleCell::getBackground ( )
overridevirtual

Reimplemented from accessibility::AccessibleComponentBase.

Definition at line 378 of file accessiblecell.cxx.

◆ getBounds()

css::awt::Rectangle SAL_CALL accessibility::AccessibleCell::getBounds ( )
overridevirtual

◆ getCellName()

OUString accessibility::AccessibleCell::getCellName ( sal_Int32  nCol,
sal_Int32  nRow 
)
static

Definition at line 506 of file accessiblecell.cxx.

References aBuf, aStr, and comphelper::string::reverseString().

Referenced by getAccessibleName().

◆ getCellRef()

const sdr::table::CellRef & accessibility::AccessibleCell::getCellRef ( ) const
inline

Definition at line 71 of file accessiblecell.hxx.

References mxCell.

Referenced by accessibility::AccessibleTextHelper_Impl::IsActive().

◆ getFont()

css::uno::Reference< css::awt::XFont > SAL_CALL accessibility::AccessibleCell::getFont ( )
overridevirtual

◆ getForeground()

sal_Int32 SAL_CALL accessibility::AccessibleCell::getForeground ( )
overridevirtual

Reimplemented from accessibility::AccessibleComponentBase.

Definition at line 369 of file accessiblecell.cxx.

◆ getImplementationName()

OUString SAL_CALL accessibility::AccessibleCell::getImplementationName ( )
overridevirtual

Definition at line 443 of file accessiblecell.cxx.

◆ getLocation()

css::awt::Point SAL_CALL accessibility::AccessibleCell::getLocation ( )
overridevirtual

Reimplemented from accessibility::AccessibleComponentBase.

Definition at line 323 of file accessiblecell.cxx.

References getBounds().

Referenced by getLocationOnScreen().

◆ getLocationOnScreen()

css::awt::Point SAL_CALL accessibility::AccessibleCell::getLocationOnScreen ( )
overridevirtual

Reimplemented from accessibility::AccessibleComponentBase.

Definition at line 331 of file accessiblecell.cxx.

References getLocation(), and SAL_WARN.

◆ GetParentTable()

AccessibleTableShape * accessibility::AccessibleCell::GetParentTable ( )
inline

Definition at line 109 of file accessiblecell.hxx.

References pAccTable.

Referenced by accessibility::AccessibleTextHelper_Impl::SetShapeFocus().

◆ getSize()

awt::Size SAL_CALL accessibility::AccessibleCell::getSize ( )
overridevirtual

Reimplemented from accessibility::AccessibleComponentBase.

Definition at line 355 of file accessiblecell.cxx.

References getBounds().

◆ getSupportedServiceNames()

Sequence< OUString > SAL_CALL accessibility::AccessibleCell::getSupportedServiceNames ( )
overridevirtual

◆ getTitledBorderText()

OUString SAL_CALL accessibility::AccessibleCell::getTitledBorderText ( )
overridevirtual

◆ getToolTipText()

OUString SAL_CALL accessibility::AccessibleCell::getToolTipText ( )
overridevirtual

◆ grabFocus()

void SAL_CALL accessibility::AccessibleCell::grabFocus ( )
overridevirtual

◆ Init()

void accessibility::AccessibleCell::Init ( void  )

◆ operator=()

AccessibleCell & accessibility::AccessibleCell::operator= ( const AccessibleCell )
delete

◆ queryInterface()

Any SAL_CALL accessibility::AccessibleCell::queryInterface ( const css::uno::Type &  aType)
overridevirtual

Definition at line 131 of file accessiblecell.cxx.

References Any.

◆ release()

void SAL_CALL accessibility::AccessibleCell::release ( )
overridevirtualnoexcept

Definition at line 143 of file accessiblecell.cxx.

◆ removeAccessibleEventListener()

void SAL_CALL accessibility::AccessibleCell::removeAccessibleEventListener ( const css::uno::Reference< css::accessibility::XAccessibleEventListener > &  rxListener)
overridevirtual

◆ ResetState()

bool accessibility::AccessibleCell::ResetState ( sal_Int64  aState)
overridevirtual

◆ setIndexInParent()

void accessibility::AccessibleCell::setIndexInParent ( sal_Int32  _nIndex)
inline

set the index _nIndex at the accessible cell param _nIndex The new index in parent.

Definition at line 106 of file accessiblecell.hxx.

References mnIndexInParent.

◆ SetState()

bool accessibility::AccessibleCell::SetState ( sal_Int64  aState)
overridevirtual

◆ UpdateChildren()

void accessibility::AccessibleCell::UpdateChildren ( )

Definition at line 564 of file accessiblecell.cxx.

References mpText.

◆ ViewForwarderChanged()

void accessibility::AccessibleCell::ViewForwarderChanged ( )
overridevirtual

This method is called to indicate a change of the specified view forwarder, specifically, a change in visible area.

Implements accessibility::IAccessibleViewForwarderListener.

Definition at line 460 of file accessiblecell.cxx.

References Any, and mpText.

Member Data Documentation

◆ maShapeTreeInfo

AccessibleShapeTreeInfo accessibility::AccessibleCell::maShapeTreeInfo
private

Bundle of information passed to all shapes in a document tree.

Definition at line 113 of file accessiblecell.hxx.

Referenced by disposing(), getBounds(), and Init().

◆ mnIndexInParent

sal_Int32 accessibility::AccessibleCell::mnIndexInParent
private

the index in parent.

Definition at line 116 of file accessiblecell.hxx.

Referenced by getAccessibleIndexInParent(), getAccessibleName(), and setIndexInParent().

◆ mpText

std::unique_ptr<AccessibleTextHelper> accessibility::AccessibleCell::mpText
private

◆ mxCell

sdr::table::CellRef accessibility::AccessibleCell::mxCell
private

Definition at line 121 of file accessiblecell.hxx.

Referenced by disposing(), getAccessibleStateSet(), getBounds(), getCellRef(), and Init().

◆ pAccTable

AccessibleTableShape* accessibility::AccessibleCell::pAccTable
private

Definition at line 126 of file accessiblecell.hxx.

Referenced by AccessibleCell(), getAccessibleName(), and GetParentTable().


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