LibreOffice Module svx (master)  1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected 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, const sdr::table::CellRef &rCell, sal_Int32 nIndex, const AccessibleShapeTreeInfo &rShapeTreeInfo)
 
virtual ~AccessibleCell () override
 
 AccessibleCell (const AccessibleCell &)=delete
 
AccessibleCelloperator= (const AccessibleCell &)=delete
 
void Init ()
 
virtual bool SetState (sal_Int16 aState) override
 
virtual bool ResetState (sal_Int16 aState) override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &aType) override
 
virtual void SAL_CALL acquire () override throw ()
 
virtual void SAL_CALL release () override throw ()
 
virtual sal_Int32 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_Int32 nIndex) override
 Forward the request to the shape. More...
 
virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet () override
 Return a copy of the state set. More...
 
virtual sal_Int32 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 css::uno::Sequence< css::uno::Type > SAL_CALL getTypes ()
 

Static Public Member Functions

static OUString getCellName (sal_Int32 nCol, sal_Int32 nRow)
 

Protected Member Functions

virtual void SAL_CALL disposing () override
 This method is called from the component helper base class while disposing. More...
 
- Protected Member Functions inherited from accessibility::IAccessibleViewForwarderListener
 ~IAccessibleViewForwarderListener ()
 

Protected 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
 

Detailed Description

Definition at line 49 of file accessiblecell.hxx.

Constructor & Destructor Documentation

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

Definition at line 53 of file accessiblecell.cxx.

References pAccTable.

accessibility::AccessibleCell::~AccessibleCell ( )
overridevirtual

Definition at line 64 of file accessiblecell.cxx.

References DBG_ASSERT, and mpText.

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

Member Function Documentation

void SAL_CALL accessibility::AccessibleCell::acquire ( )
throw (
)
overridevirtual

Definition at line 147 of file accessiblecell.cxx.

void SAL_CALL accessibility::AccessibleCell::addAccessibleEventListener ( const css::uno::Reference< css::accessibility::XAccessibleEventListener > &  rxListener)
overridevirtual
sal_Bool SAL_CALL accessibility::AccessibleCell::containsPoint ( const css::awt::Point &  aPoint)
overridevirtual
void accessibility::AccessibleCell::disposing ( )
overrideprotectedvirtual

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

Definition at line 507 of file accessiblecell.cxx.

References accessibility::AccessibleShapeTreeInfo::dispose(), maMutex, maShapeTreeInfo, mpText, mxCell, and utl::AccessibleStateSetHelper::RemoveState().

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 271 of file accessiblecell.cxx.

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

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

Forward the request to the shape.

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

Definition at line 175 of file accessiblecell.cxx.

References mpText.

Referenced by getAccessibleAtPoint().

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

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

Definition at line 164 of file accessiblecell.cxx.

References mpText.

Referenced by getAccessibleAtPoint().

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

Definition at line 533 of file accessiblecell.cxx.

References mnIndexInParent.

OUString SAL_CALL accessibility::AccessibleCell::getAccessibleName ( )
overridevirtual
Reference< XAccessibleStateSet > SAL_CALL accessibility::AccessibleCell::getAccessibleStateSet ( )
overridevirtual

Return a copy of the state set.

Possible states are: ENABLED SHOWING VISIBLE

Definition at line 191 of file accessiblecell.cxx.

References utl::AccessibleStateSetHelper::AddState(), accessibility::AccessibleContextBase::getAccessibleStateSet(), maMutex, mpText, mxCell, and utl::AccessibleStateSetHelper::RemoveState().

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

Reimplemented from accessibility::AccessibleComponentBase.

Definition at line 402 of file accessiblecell.cxx.

css::awt::Rectangle SAL_CALL accessibility::AccessibleCell::getBounds ( )
overridevirtual
OUString accessibility::AccessibleCell::getCellName ( sal_Int32  nCol,
sal_Int32  nRow 
)
static

Definition at line 540 of file accessiblecell.cxx.

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

Referenced by getAccessibleName().

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

Definition at line 75 of file accessiblecell.hxx.

References mxCell.

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

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

Reimplemented from accessibility::AccessibleComponentBase.

Definition at line 393 of file accessiblecell.cxx.

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

Definition at line 467 of file accessiblecell.cxx.

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

Reimplemented from accessibility::AccessibleComponentBase.

Definition at line 347 of file accessiblecell.cxx.

References getBounds().

Referenced by getLocationOnScreen().

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

Reimplemented from accessibility::AccessibleComponentBase.

Definition at line 355 of file accessiblecell.cxx.

References getLocation(), and SAL_WARN.

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

Definition at line 113 of file accessiblecell.hxx.

References pAccTable.

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

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

Reimplemented from accessibility::AccessibleComponentBase.

Definition at line 379 of file accessiblecell.cxx.

References getBounds().

Sequence< OUString > SAL_CALL accessibility::AccessibleCell::getSupportedServiceNames ( )
overridevirtual
OUString SAL_CALL accessibility::AccessibleCell::getTitledBorderText ( )
overridevirtual
OUString SAL_CALL accessibility::AccessibleCell::getToolTipText ( )
overridevirtual
void SAL_CALL accessibility::AccessibleCell::grabFocus ( )
overridevirtual
void accessibility::AccessibleCell::Init ( void  )
AccessibleCell& accessibility::AccessibleCell::operator= ( const AccessibleCell )
delete
Any SAL_CALL accessibility::AccessibleCell::queryInterface ( const css::uno::Type &  aType)
overridevirtual

Definition at line 141 of file accessiblecell.cxx.

References Any.

void SAL_CALL accessibility::AccessibleCell::release ( )
throw (
)
overridevirtual

Definition at line 153 of file accessiblecell.cxx.

void SAL_CALL accessibility::AccessibleCell::removeAccessibleEventListener ( const css::uno::Reference< css::accessibility::XAccessibleEventListener > &  rxListener)
overridevirtual
bool accessibility::AccessibleCell::ResetState ( sal_Int16  aState)
overridevirtual
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 110 of file accessiblecell.hxx.

References mnIndexInParent.

bool accessibility::AccessibleCell::SetState ( sal_Int16  aState)
overridevirtual
void accessibility::AccessibleCell::UpdateChildren ( )

Definition at line 597 of file accessiblecell.cxx.

References mpText.

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 492 of file accessiblecell.cxx.

References Any, and mpText.

Member Data Documentation

AccessibleShapeTreeInfo accessibility::AccessibleCell::maShapeTreeInfo
protected

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

Definition at line 116 of file accessiblecell.hxx.

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

sal_Int32 accessibility::AccessibleCell::mnIndexInParent
protected

the index in parent.

Definition at line 119 of file accessiblecell.hxx.

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

std::unique_ptr<AccessibleTextHelper> accessibility::AccessibleCell::mpText
protected
sdr::table::CellRef accessibility::AccessibleCell::mxCell
protected

Definition at line 124 of file accessiblecell.hxx.

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

AccessibleTableShape* accessibility::AccessibleCell::pAccTable
protected

Definition at line 129 of file accessiblecell.hxx.

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


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