LibreOffice Module sw (master)  1
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
SwAccessibleTable Class Reference

#include <acctable.hxx>

Inheritance diagram for SwAccessibleTable:
Collaboration diagram for SwAccessibleTable:

Public Types

typedef std::vector< std::pair< SwAccessibleContext *, css::uno::WeakReference< css::accessibility::XAccessible > > > Cells_t

Public Member Functions

 SwAccessibleTable (std::shared_ptr< SwAccessibleMap > const &pInitMap, const SwTabFrame *pTableFrame)
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 css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
virtual OUString SAL_CALL getAccessibleDescription () override
 Return this object's description. More...
virtual sal_Int32 SAL_CALL getAccessibleRowCount () override
virtual sal_Int32 SAL_CALL getAccessibleColumnCount () override
virtual OUString SAL_CALL getAccessibleRowDescription (sal_Int32 nRow) override
virtual OUString SAL_CALL getAccessibleColumnDescription (sal_Int32 nColumn) override
virtual sal_Int32 SAL_CALL getAccessibleRowExtentAt (sal_Int32 nRow, sal_Int32 nColumn) override
virtual sal_Int32 SAL_CALL getAccessibleColumnExtentAt (sal_Int32 nRow, sal_Int32 nColumn) override
virtual css::uno::Reference< css::accessibility::XAccessibleTable > SAL_CALL getAccessibleRowHeaders () override
virtual css::uno::Reference< css::accessibility::XAccessibleTable > SAL_CALL getAccessibleColumnHeaders () override
virtual css::uno::Sequence< sal_Int32 > SAL_CALL getSelectedAccessibleRows () override
virtual css::uno::Sequence< sal_Int32 > SAL_CALL getSelectedAccessibleColumns () override
virtual sal_Bool SAL_CALL isAccessibleRowSelected (sal_Int32 nRow) override
virtual sal_Bool SAL_CALL isAccessibleColumnSelected (sal_Int32 nColumn) override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleCellAt (sal_Int32 nRow, sal_Int32 nColumn) override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleCaption () override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleSummary () override
virtual sal_Bool SAL_CALL isAccessibleSelected (sal_Int32 nRow, sal_Int32 nColumn) override
virtual sal_Int32 SAL_CALL getAccessibleIndex (sal_Int32 nRow, sal_Int32 nColumn) override
virtual sal_Int32 SAL_CALL getAccessibleRow (sal_Int32 nChildIndex) override
virtual sal_Int32 SAL_CALL getAccessibleColumn (sal_Int32 nChildIndex) override
virtual sal_Bool SAL_CALL selectRow (sal_Int32 row) override
virtual sal_Bool SAL_CALL selectColumn (sal_Int32 column) override
virtual sal_Bool SAL_CALL unselectRow (sal_Int32 row) override
virtual sal_Bool SAL_CALL unselectColumn (sal_Int32 column) override
virtual OUString SAL_CALL getImplementationName () override
 Returns an identifier for the implementation of this object. More...
virtual sal_Bool SAL_CALL supportsService (const OUString &sServiceName) override
 Return whether the specified service is supported by this class. More...
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 Returns a list of all supported services. More...
virtual void InvalidatePosOrSize (const SwRect &rOldBox) override
virtual void Dispose (bool bRecursive, bool bCanSkipInvisible=true) override
virtual void DisposeChild (const sw::access::SwAccessibleChild &rFrameOrObj, bool bRecursive, bool bCanSkipInvisible) override
virtual void InvalidateChildPosOrSize (const sw::access::SwAccessibleChild &rFrameOrObj, const SwRect &rFrame) override
virtual void SAL_CALL selectAccessibleChild (sal_Int32 nChildIndex) override
virtual sal_Bool SAL_CALL isAccessibleChildSelected (sal_Int32 nChildIndex) override
virtual void SAL_CALL clearAccessibleSelection () override
virtual void SAL_CALL selectAllAccessibleChildren () override
virtual sal_Int32 SAL_CALL getSelectedAccessibleChildCount () override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild (sal_Int32 nSelectedChildIndex) override
virtual void SAL_CALL deselectAccessibleChild (sal_Int32 nChildIndex) override
sal_Int32 SAL_CALL getBackground () override
void FireSelectionEvent ()
void AddSelectionCell (SwAccessibleContext *, bool bAddOrRemove)
- Public Member Functions inherited from SwAccessibleContext
void FireAccessibleEvent (css::accessibility::AccessibleEventObject &rEvent)
 SwAccessibleContext (std::shared_ptr< SwAccessibleMap > const &pMap, sal_Int16 nRole, const SwFrame *pFrame)
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext () override
virtual sal_Int32 SAL_CALL getAccessibleChildCount () override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild (sal_Int32 nIndex) override
virtual css::uno::Sequence< css::uno::Reference< css::accessibility::XAccessible > > SAL_CALL getAccessibleChildren () override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent () override
virtual sal_Int32 SAL_CALL getAccessibleIndexInParent () override
virtual sal_Int16 SAL_CALL getAccessibleRole () override
virtual OUString SAL_CALL getAccessibleName () override
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet () override
virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet () override
virtual css::lang::Locale SAL_CALL getLocale () override
 Return the parents locale or throw exception if this object has no parent yet/anymore. More...
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_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
void InvalidateContent ()
void InvalidateCursorPos ()
void InvalidateFocus ()
void InvalidateStates (AccessibleStates _nStates)
void InvalidateRelation (sal_uInt16 nType)
void InvalidateTextSelection ()
 #i27301# - text selection has changed More...
void InvalidateAttr ()
 #i88069# - attributes has changed More...
bool HasAdditionalAccessibleChildren ()
vcl::WindowGetAdditionalAccessibleChild (const sal_Int32 nIndex)
 #i88070# - get additional accessible child by index More...
void GetAdditionalAccessibleChildren (std::vector< vcl::Window * > *pChildren)
 #i88070# - get all additional accessible children More...
const OUString & GetName () const
virtual bool HasCursor ()
bool Select (SwPaM *pPaM, SdrObject *pObj, bool bAdd)
bool Select (SwPaM &rPaM)
bool Select (SdrObject *pObj, bool bAdd)
virtual bool SetSelectedState (bool bSelected)
bool IsSelectedInDoc () const
- Public Member Functions inherited from SwAccessibleFrame
bool IsShowing (const SwAccessibleMap &rAccMap, const sw::access::SwAccessibleChild &rFrameOrObj) const
bool IsShowing (const SwRect &rFrame) const
bool IsShowing (const SwAccessibleMap &rAccMap) const
const SwFrameGetFrame () const
sal_Int32 GetChildIndex (SwAccessibleMap &rAccMap, const sw::access::SwAccessibleChild &rChild) const
- Public Member Functions inherited from SvtListener
 SvtListener ()=default
 SvtListener (const SvtListener &r)=default
virtual ~SvtListener () COVERITY_NOEXCEPT_FALSE
bool StartListening (SvtBroadcaster &rBroadcaster)
void EndListening (SvtBroadcaster &rBroadcaster)
void EndListeningAll ()
void CopyAllBroadcasters (const SvtListener &r)
bool HasBroadcaster () const
virtual void Query (QueryBase &rQuery) const

Public Attributes

Cells_t m_vecCellAdd
Cells_t m_vecCellRemove

Protected Member Functions

virtual void GetStates (::utl::AccessibleStateSetHelper &rStateSet) override
virtual ~SwAccessibleTable () override
void SetDesc (const OUString &sNewDesc)
virtual std::unique_ptr< SwAccessibleTableData_ImplCreateNewTableData ()
void UpdateTableData ()
void ClearTableData ()
SwAccessibleTableData_ImplGetTableData ()
bool HasTableData () const
virtual void Notify (const SfxHint &) override
- Protected Member Functions inherited from SwAccessibleContext
void SetName (const OUString &rName)
sal_Int16 GetRole () const
void SetParent (SwAccessibleContext *pParent)
css::uno::Reference< css::accessibility::XAccessible > GetWeakParent () const
bool IsDisposing () const
vcl::WindowGetWindow ()
SwAccessibleMapGetMap ()
const SwAccessibleMapGetMap () const
SwViewShellGetShell ()
 convenience method to get the SwViewShell through accessibility map More...
const SwViewShellGetShell () const
SwCursorShellGetCursorShell ()
 convenience method to get SwCursorShell through accessibility map More...
const SwCursorShellGetCursorShell () const
void ChildrenScrolled (const SwFrame *pFrame, const SwRect &rOldVisArea)
void Scrolled (const SwRect &rOldVisArea)
void ScrolledWithin (const SwRect &rOldVisArea)
void ScrolledIn ()
void ScrolledOut (const SwRect &rOldVisArea)
void InvalidateChildrenStates (const SwFrame *_pFrame, AccessibleStates _nStates)
void DisposeChildren (const SwFrame *pFrame, bool bRecursive, bool bCanSkipInvisible)
void DisposeShape (const SdrObject *pObj,::accessibility::AccessibleShape *pAccImpl)
void ScrolledInShape (::accessibility::AccessibleShape *pAccImpl)
virtual void InvalidateContent_ (bool bVisibleDataFired)
virtual void InvalidateCursorPos_ ()
virtual void InvalidateFocus_ ()
void FireVisibleDataEvent ()
void FireStateChangedEvent (sal_Int16 nState, bool bNewState)
bool IsEditableState ()
css::awt::Rectangle getBoundsImpl (bool bRelative)
 Get bounding box. More...
void NotRegisteredAtAccessibleMap ()
void RemoveFrameFromAccessibleMap ()
void ThrowIfDisposed ()
virtual ~SwAccessibleContext () override
css::uno::Reference< css::accessibility::XAccessible > getAccessibleParentImpl ()
- Protected Member Functions inherited from SwAccessibleFrame
bool IsEditable (SwViewShell const *pVSh) const
bool IsOpaque (SwViewShell const *pVSh) const
bool IsInPagePreview () const
void ClearFrame ()
 SwAccessibleFrame (const SwRect &rVisArea, const SwFrame *pFrame, bool bIsPagePreview)
virtual ~SwAccessibleFrame ()
SwRect GetBounds (const SwAccessibleMap &rAccMap, const SwFrame *pFrame=nullptr)
const SwFrameGetParent () const
sal_Int32 GetChildCount (SwAccessibleMap &rAccMap) const
sw::access::SwAccessibleChild GetChild (SwAccessibleMap &rAccMap, sal_Int32 nPos) const
sw::access::SwAccessibleChild GetChildAtPixel (const Point &rPos, SwAccessibleMap &rAccMap) const
void GetChildren (SwAccessibleMap &rAccMap, std::list< sw::access::SwAccessibleChild > &rChildren) const
void SetVisArea (const SwRect &rNewVisArea)
const SwRectGetVisArea () const
OUString GetFormattedPageNumber () const

Private Member Functions

const SwSelBoxesGetSelBoxes () const
void FireTableChangeEvent (const SwAccessibleTableData_Impl &rTableData)
const SwTableBoxGetTableBox (sal_Int32) const
 get the SwTableBox* for the given child More...
bool IsChildSelected (sal_Int32 nChildIndex) const
sal_Int32 GetIndexOfSelectedChild (sal_Int32 nSelectedChildIndex) const

Private Attributes

std::unique_ptr< SwAccessibleTableData_ImplmpTableData
OUString m_sDesc

Additional Inherited Members

- Static Public Member Functions inherited from SwAccessibleContext
static OUString GetResource (TranslateId pResId, const OUString *pArg1=nullptr, const OUString *pArg2=nullptr)
- Static Public Member Functions inherited from SwAccessibleFrame
static const SwFrameGetParent (const sw::access::SwAccessibleChild &rFrameOrObj, bool bInPagePreview)
- Static Protected Member Functions inherited from SwAccessibleFrame
static sal_Int32 GetChildCount (SwAccessibleMap &rAccMap, const SwRect &rVisArea, const SwFrame *pFrame, bool bInPagePreviewr)
static sw::access::SwAccessibleChild GetChild (SwAccessibleMap &rAccMap, const SwRect &rVisArea, const SwFrame &rFrame, sal_Int32 &rPos, bool bInPagePreview)
static bool GetChildIndex (SwAccessibleMap &rAccMap, const SwRect &rVisArea, const SwFrame &rFrame, const sw::access::SwAccessibleChild &rChild, sal_Int32 &rPos, bool bInPagePreview)
static sw::access::SwAccessibleChild GetChildAtPixel (const SwRect &rVisArea, const SwFrame &rFrame, const Point &rPos, bool bInPagePreview, SwAccessibleMap &rAccMap)
static void GetChildren (SwAccessibleMap &rAccMap, const SwRect &rVisArea, const SwFrame &rFrame, std::list< sw::access::SwAccessibleChild > &rChildren, bool bInPagePreview)
- Protected Attributes inherited from SwAccessibleContext
std::mutex m_Mutex
bool m_isSelectedInDoc

Detailed Description

Definition at line 40 of file acctable.hxx.

Member Typedef Documentation

typedef std::vector< std::pair<SwAccessibleContext*, css::uno::WeakReference<css::accessibility::XAccessible> > > SwAccessibleTable::Cells_t

Definition at line 217 of file acctable.hxx.

Constructor & Destructor Documentation

SwAccessibleTable::~SwAccessibleTable ( )

Definition at line 628 of file acctable.cxx.

References mpTableData.

SwAccessibleTable::SwAccessibleTable ( std::shared_ptr< SwAccessibleMap > const &  pInitMap,
const SwTabFrame pTableFrame 

Member Function Documentation

virtual void SAL_CALL SwAccessibleTable::acquire ( )

Definition at line 102 of file acctable.hxx.

void SwAccessibleTable::AddSelectionCell ( SwAccessibleContext pAccCell,
bool  bAddOrRemove 

Definition at line 1547 of file acctable.cxx.

References m_vecCellAdd, and m_vecCellRemove.

void SAL_CALL SwAccessibleTable::clearAccessibleSelection ( )
void SwAccessibleTable::ClearTableData ( )

Definition at line 733 of file acctable.cxx.

References mpTableData.

Referenced by DisposeChild(), and InvalidateChildPosOrSize().

std::unique_ptr< SwAccessibleTableData_Impl > SwAccessibleTable::CreateNewTableData ( )
void SAL_CALL SwAccessibleTable::deselectAccessibleChild ( sal_Int32  nChildIndex)
void SwAccessibleTable::Dispose ( bool  bRecursive,
bool  bCanSkipInvisible = true 

Reimplemented from SwAccessibleContext.

Definition at line 1192 of file acctable.cxx.

References SwAccessibleContext::Dispose(), and SvtListener::EndListeningAll().

void SwAccessibleTable::DisposeChild ( const sw::access::SwAccessibleChild rFrameOrObj,
bool  bRecursive,
bool  bCanSkipInvisible 
void SwAccessibleTable::FireSelectionEvent ( )
void SwAccessibleTable::FireTableChangeEvent ( const SwAccessibleTableData_Impl rTableData)
uno::Reference< XAccessible > SAL_CALL SwAccessibleTable::getAccessibleCaption ( )

Definition at line 1030 of file acctable.cxx.

uno::Reference< XAccessible > SAL_CALL SwAccessibleTable::getAccessibleCellAt ( sal_Int32  nRow,
sal_Int32  nColumn 
sal_Int32 SAL_CALL SwAccessibleTable::getAccessibleColumn ( sal_Int32  nChildIndex)
sal_Int32 SAL_CALL SwAccessibleTable::getAccessibleColumnCount ( )
OUString SAL_CALL SwAccessibleTable::getAccessibleColumnDescription ( sal_Int32  nColumn)
sal_Int32 SAL_CALL SwAccessibleTable::getAccessibleColumnExtentAt ( sal_Int32  nRow,
sal_Int32  nColumn 
uno::Reference< XAccessibleTable > SAL_CALL SwAccessibleTable::getAccessibleColumnHeaders ( )
OUString SAL_CALL SwAccessibleTable::getAccessibleDescription ( )

Return this object's description.

Definition at line 738 of file acctable.cxx.

References m_sDesc, and SwAccessibleContext::ThrowIfDisposed().

sal_Int32 SAL_CALL SwAccessibleTable::getAccessibleIndex ( sal_Int32  nRow,
sal_Int32  nColumn 
sal_Int32 SAL_CALL SwAccessibleTable::getAccessibleRow ( sal_Int32  nChildIndex)
sal_Int32 SAL_CALL SwAccessibleTable::getAccessibleRowCount ( )
OUString SAL_CALL SwAccessibleTable::getAccessibleRowDescription ( sal_Int32  nRow)
sal_Int32 SAL_CALL SwAccessibleTable::getAccessibleRowExtentAt ( sal_Int32  nRow,
sal_Int32  nColumn 
uno::Reference< XAccessibleTable > SAL_CALL SwAccessibleTable::getAccessibleRowHeaders ( )

Reimplemented in SwAccessibleTableColHeaders.

Definition at line 892 of file acctable.cxx.

Referenced by getAccessibleRowDescription().

uno::Reference< XAccessible > SAL_CALL SwAccessibleTable::getAccessibleSummary ( )

Definition at line 1036 of file acctable.cxx.

sal_Int32 SAL_CALL SwAccessibleTable::getBackground ( )
uno::Sequence< sal_Int8 > SAL_CALL SwAccessibleTable::getImplementationId ( )

Definition at line 715 of file acctable.cxx.

OUString SAL_CALL SwAccessibleTable::getImplementationName ( )

Returns an identifier for the implementation of this object.

Reimplemented in SwAccessibleTableColHeaders.

Definition at line 1159 of file acctable.cxx.

sal_Int32 SwAccessibleTable::GetIndexOfSelectedChild ( sal_Int32  nSelectedChildIndex) const
const SwSelBoxes * SwAccessibleTable::GetSelBoxes ( ) const
uno::Reference< XAccessible > SAL_CALL SwAccessibleTable::getSelectedAccessibleChild ( sal_Int32  nSelectedChildIndex)
sal_Int32 SAL_CALL SwAccessibleTable::getSelectedAccessibleChildCount ( )
uno::Sequence< sal_Int32 > SAL_CALL SwAccessibleTable::getSelectedAccessibleColumns ( )
uno::Sequence< sal_Int32 > SAL_CALL SwAccessibleTable::getSelectedAccessibleRows ( )
void SwAccessibleTable::GetStates ( ::utl::AccessibleStateSetHelper rStateSet)
uno::Sequence< OUString > SAL_CALL SwAccessibleTable::getSupportedServiceNames ( )

Returns a list of all supported services.

In this case that is just the AccessibleContext service.

Definition at line 1170 of file acctable.cxx.

References sAccessibleServiceName.

const SwTableBox * SwAccessibleTable::GetTableBox ( sal_Int32  nChildIndex) const
SwAccessibleTableData_Impl & SwAccessibleTable::GetTableData ( )
uno::Sequence< uno::Type > SAL_CALL SwAccessibleTable::getTypes ( )

Definition at line 707 of file acctable.cxx.

References cppu::OTypeCollection::getTypes().

bool SwAccessibleTable::HasTableData ( ) const

Definition at line 85 of file acctable.hxx.

Referenced by DisposeChild(), InvalidateChildPosOrSize(), and InvalidatePosOrSize().

void SwAccessibleTable::InvalidateChildPosOrSize ( const sw::access::SwAccessibleChild rFrameOrObj,
const SwRect rFrame 
void SwAccessibleTable::InvalidatePosOrSize ( const SwRect rOldBox)
sal_Bool SAL_CALL SwAccessibleTable::isAccessibleChildSelected ( sal_Int32  nChildIndex)
sal_Bool SAL_CALL SwAccessibleTable::isAccessibleColumnSelected ( sal_Int32  nColumn)
sal_Bool SAL_CALL SwAccessibleTable::isAccessibleRowSelected ( sal_Int32  nRow)
sal_Bool SAL_CALL SwAccessibleTable::isAccessibleSelected ( sal_Int32  nRow,
sal_Int32  nColumn 
bool SwAccessibleTable::IsChildSelected ( sal_Int32  nChildIndex) const
void SwAccessibleTable::Notify ( const SfxHint rHint)
uno::Any SwAccessibleTable::queryInterface ( const css::uno::Type &  aType)

Reimplemented in SwAccessibleTableColHeaders.

Definition at line 680 of file acctable.cxx.

Referenced by SwAccessibleTableColHeaders::queryInterface().

virtual void SAL_CALL SwAccessibleTable::release ( )

Definition at line 105 of file acctable.hxx.

void SAL_CALL SwAccessibleTable::selectAccessibleChild ( sal_Int32  nChildIndex)
void SAL_CALL SwAccessibleTable::selectAllAccessibleChildren ( )
sal_Bool SAL_CALL SwAccessibleTable::selectColumn ( sal_Int32  column)
sal_Bool SAL_CALL SwAccessibleTable::selectRow ( sal_Int32  row)
void SwAccessibleTable::SetDesc ( const OUString &  sNewDesc)
sal_Bool SAL_CALL SwAccessibleTable::supportsService ( const OUString &  sServiceName)

Return whether the specified service is supported by this class.

Reimplemented from SwAccessibleContext.

Definition at line 1164 of file acctable.cxx.

References cppu::supportsService().

sal_Bool SAL_CALL SwAccessibleTable::unselectColumn ( sal_Int32  column)
sal_Bool SAL_CALL SwAccessibleTable::unselectRow ( sal_Int32  row)
void SwAccessibleTable::UpdateTableData ( )

Member Data Documentation

OUString SwAccessibleTable::m_sDesc

Definition at line 48 of file acctable.hxx.

Referenced by getAccessibleDescription(), Notify(), and SwAccessibleTable().

Cells_t SwAccessibleTable::m_vecCellAdd

Definition at line 218 of file acctable.hxx.

Referenced by AddSelectionCell(), and FireSelectionEvent().

Cells_t SwAccessibleTable::m_vecCellRemove

Definition at line 219 of file acctable.hxx.

Referenced by AddSelectionCell(), and FireSelectionEvent().

std::unique_ptr<SwAccessibleTableData_Impl> SwAccessibleTable::mpTableData

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