LibreOffice Module svx (master) 1
|
#include <accessiblecell.hxx>
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 | |
AccessibleCell & | operator= (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::CellRef & | getCellRef () 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... | |
AccessibleTableShape * | GetParentTable () |
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< AccessibleTextHelper > | mpText |
The accessible text engine. May be NULL if it can not be created. More... | |
sdr::table::CellRef | mxCell |
AccessibleTableShape * | pAccTable |
Additional Inherited Members | |
Protected Member Functions inherited from accessibility::IAccessibleViewForwarderListener | |
~IAccessibleViewForwarderListener () | |
Definition at line 45 of file accessiblecell.hxx.
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.
|
overridevirtual |
Definition at line 64 of file accessiblecell.cxx.
References DBG_ASSERT, and mpText.
|
delete |
|
overridevirtualnoexcept |
Definition at line 137 of file accessiblecell.cxx.
|
overridevirtual |
Definition at line 412 of file accessiblecell.cxx.
References accessibility::AccessibleContextBase::addAccessibleEventListener(), m_aMutex, and mpText.
|
overridevirtual |
Reimplemented from accessibility::AccessibleComponentBase.
Definition at line 234 of file accessiblecell.cxx.
References accessibility::AccessibleComponentBase::containsPoint().
|
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.
|
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.
|
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().
|
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().
|
overridevirtual |
Definition at line 499 of file accessiblecell.cxx.
References mnIndexInParent.
|
overridevirtual |
Definition at line 543 of file accessiblecell.cxx.
References Exception, getCellName(), accessibility::AccessibleTableShape::getColumnAndRow(), mnIndexInParent, and pAccTable.
|
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.
|
overridevirtual |
Reimplemented from accessibility::AccessibleComponentBase.
Definition at line 378 of file accessiblecell.cxx.
|
overridevirtual |
Reimplemented from accessibility::AccessibleComponentBase.
Definition at line 277 of file accessiblecell.cxx.
References Size::getHeight(), tools::Rectangle::GetIntersection(), tools::Rectangle::getOpenHeight(), tools::Rectangle::getOpenWidth(), accessibility::AccessibleShapeTreeInfo::GetViewForwarder(), Size::getWidth(), Point::getX(), Point::getY(), tools::Rectangle::Left(), accessibility::IAccessibleViewForwarder::LogicToPixel(), m_aMutex, maShapeTreeInfo, mxCell, SAL_INFO, tools::Rectangle::Top(), x, and y.
Referenced by getLocation(), and getSize().
|
static |
Definition at line 506 of file accessiblecell.cxx.
References aBuf, aStr, and comphelper::string::reverseString().
Referenced by getAccessibleName().
|
inline |
Definition at line 71 of file accessiblecell.hxx.
References mxCell.
Referenced by accessibility::AccessibleTextHelper_Impl::IsActive().
|
overridevirtual |
Reimplemented from accessibility::AccessibleComponentBase.
Definition at line 390 of file accessiblecell.cxx.
References accessibility::AccessibleComponentBase::getFont().
|
overridevirtual |
Reimplemented from accessibility::AccessibleComponentBase.
Definition at line 369 of file accessiblecell.cxx.
|
overridevirtual |
Definition at line 443 of file accessiblecell.cxx.
|
overridevirtual |
Reimplemented from accessibility::AccessibleComponentBase.
Definition at line 323 of file accessiblecell.cxx.
References getBounds().
Referenced by getLocationOnScreen().
|
overridevirtual |
Reimplemented from accessibility::AccessibleComponentBase.
Definition at line 331 of file accessiblecell.cxx.
References getLocation(), and SAL_WARN.
|
inline |
Definition at line 109 of file accessiblecell.hxx.
References pAccTable.
Referenced by accessibility::AccessibleTextHelper_Impl::SetShapeFocus().
|
overridevirtual |
Reimplemented from accessibility::AccessibleComponentBase.
Definition at line 355 of file accessiblecell.cxx.
References getBounds().
|
overridevirtual |
Definition at line 449 of file accessiblecell.cxx.
References comphelper::concatSequences(), and accessibility::AccessibleContextBase::getSupportedServiceNames().
|
overridevirtual |
Reimplemented from accessibility::AccessibleComponentBase.
Definition at line 397 of file accessiblecell.cxx.
References accessibility::AccessibleComponentBase::getTitledBorderText().
|
overridevirtual |
Reimplemented from accessibility::AccessibleComponentBase.
Definition at line 403 of file accessiblecell.cxx.
References accessibility::AccessibleComponentBase::getToolTipText().
|
overridevirtual |
Reimplemented from accessibility::AccessibleComponentBase.
Definition at line 363 of file accessiblecell.cxx.
References accessibility::AccessibleComponentBase::grabFocus().
void accessibility::AccessibleCell::Init | ( | void | ) |
Definition at line 70 of file accessiblecell.cxx.
References vcl::Window::GetOutDev(), accessibility::AccessibleShapeTreeInfo::GetSdrView(), accessibility::AccessibleShapeTreeInfo::GetWindow(), maShapeTreeInfo, mpText, and mxCell.
|
delete |
|
overridevirtual |
Definition at line 131 of file accessiblecell.cxx.
References Any.
|
overridevirtualnoexcept |
Definition at line 143 of file accessiblecell.cxx.
|
overridevirtual |
Definition at line 431 of file accessiblecell.cxx.
References mpText, and accessibility::AccessibleContextBase::removeAccessibleEventListener().
|
overridevirtual |
Definition at line 109 of file accessiblecell.cxx.
References mpText, and accessibility::AccessibleContextBase::ResetState().
Referenced by accessibility::AccessibleTableShape::ResetState().
|
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.
|
overridevirtual |
Definition at line 90 of file accessiblecell.cxx.
References mpText, and accessibility::AccessibleContextBase::SetState().
Referenced by accessibility::AccessibleTableShape::SetState().
void accessibility::AccessibleCell::UpdateChildren | ( | ) |
Definition at line 564 of file accessiblecell.cxx.
References mpText.
|
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.
|
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().
|
private |
the index in parent.
Definition at line 116 of file accessiblecell.hxx.
Referenced by getAccessibleIndexInParent(), getAccessibleName(), and setIndexInParent().
|
private |
The accessible text engine. May be NULL if it can not be created.
Definition at line 119 of file accessiblecell.hxx.
Referenced by addAccessibleEventListener(), disposing(), getAccessibleChild(), getAccessibleChildCount(), getAccessibleStateSet(), Init(), removeAccessibleEventListener(), ResetState(), SetState(), UpdateChildren(), ViewForwarderChanged(), and ~AccessibleCell().
|
private |
Definition at line 121 of file accessiblecell.hxx.
Referenced by disposing(), getAccessibleStateSet(), getBounds(), getCellRef(), and Init().
|
private |
Definition at line 126 of file accessiblecell.hxx.
Referenced by AccessibleCell(), getAccessibleName(), and GetParentTable().