LibreOffice Module svx (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SvxRectCtlAccessibleContext Class Referencefinal

#include <svxrectctaccessiblecontext.hxx>

Inheritance diagram for SvxRectCtlAccessibleContext:
[legend]
Collaboration diagram for SvxRectCtlAccessibleContext:
[legend]

Public Member Functions

 SvxRectCtlAccessibleContext (SvxRectCtl *pRepresentation)
 
virtual void SAL_CALL grabFocus () override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint (const css::awt::Point &rPoint) 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::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent () override
 
virtual sal_Int16 SAL_CALL getAccessibleRole () override
 
virtual OUString SAL_CALL getAccessibleDescription () override
 
virtual OUString SAL_CALL getAccessibleName () override
 
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet () override
 Return empty reference to indicate that the relation set is not supported. More...
 
virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet () override
 
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext () override
 
virtual sal_Int32 SAL_CALL getForeground () override
 
virtual sal_Int32 SAL_CALL getBackground () override
 
void selectChild (RectPoint ePoint)
 Selects a new child by point. More...
 
void FireChildFocus (RectPoint eButton)
 
- Public Member Functions inherited from comphelper::OAccessibleSelectionHelper
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 nSelectedChildIndex) override
 
- 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 OUString SAL_CALL getAccessibleId () override
 
virtual sal_Int32 SAL_CALL getAccessibleIndexInParent () override
 
virtual css::lang::Locale SAL_CALL getLocale () override
 
- Public Member Functions inherited from cppu::ImplHelper1< class >
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
 

Private Member Functions

virtual ~SvxRectCtlAccessibleContext () override
 
virtual bool implIsSelected (sal_Int32 nAccessibleChildIndex) override
 
virtual void implSelect (sal_Int32 nAccessibleChildIndex, bool bSelect) override
 
virtual css::awt::Rectangle implGetBounds () override
 
virtual void SAL_CALL disposing () override
 
void checkChildIndex (long nIndex)
 
void selectChild (long nIndexOfChild)
 Selects a new child by index. More...
 

Private Attributes

OUString msDescription
 Description of this object. More...
 
OUString msName
 Name of this object. More...
 
SvxRectCtlmpRepr
 pointer to internal representation More...
 
std::vector< rtl::Reference< SvxRectCtlChildAccessibleContext > > mvChildren
 array for all possible children More...
 
long mnSelectedChild
 actual selected child More...
 

Additional Inherited Members

- Protected Member Functions inherited from comphelper::OAccessibleSelectionHelper
 OAccessibleSelectionHelper ()
 
virtual css::uno::Reference< css::accessibility::XAccessibleContext > implGetAccessibleContext () override
 
- Protected Member Functions inherited from comphelper::OAccessibleComponentHelper
 OAccessibleComponentHelper ()
 
- Protected Member Functions inherited from comphelper::OCommonAccessibleComponent
 OCommonAccessibleComponent ()
 
virtual ~OCommonAccessibleComponent () override
 
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
 
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 comphelper::OCommonAccessibleSelection
 OCommonAccessibleSelection ()
 
 ~OCommonAccessibleSelection ()
 
void selectAccessibleChild (sal_Int32 nChildIndex)
 
bool isAccessibleChildSelected (sal_Int32 nChildIndex)
 
void clearAccessibleSelection ()
 
void selectAllAccessibleChildren ()
 
sal_Int32 getSelectedAccessibleChildCount ()
 
css::uno::Reference< css::accessibility::XAccessible > getSelectedAccessibleChild (sal_Int32 nSelectedChildIndex)
 
void deselectAccessibleChild (sal_Int32 nSelectedChildIndex)
 
- Protected Member Functions inherited from cppu::ImplHelper1< class >
 ~ImplHelper1 ()
 

Detailed Description

Definition at line 66 of file svxrectctaccessiblecontext.hxx.

Constructor & Destructor Documentation

SvxRectCtlAccessibleContext::SvxRectCtlAccessibleContext ( SvxRectCtl pRepresentation)
SvxRectCtlAccessibleContext::~SvxRectCtlAccessibleContext ( )
overrideprivatevirtual

Member Function Documentation

void SvxRectCtlAccessibleContext::checkChildIndex ( long  nIndex)
private
void SAL_CALL SvxRectCtlAccessibleContext::disposing ( )
overrideprivatevirtual

Reimplemented from comphelper::OAccessibleContextHelper.

Definition at line 373 of file svxrectctaccessiblecontext.cxx.

References m_aMutex, mpRepr, and mvChildren.

void SvxRectCtlAccessibleContext::FireChildFocus ( RectPoint  eButton)
Reference< XAccessible > SAL_CALL SvxRectCtlAccessibleContext::getAccessibleAtPoint ( const css::awt::Point &  rPoint)
overridevirtual

Definition at line 122 of file svxrectctaccessiblecontext.cxx.

References m_aMutex, NOCHILDSELECTED, and PointToIndex().

Reference< XAccessible > SAL_CALL SvxRectCtlAccessibleContext::getAccessibleChild ( sal_Int32  nIndex)
overridevirtual
sal_Int32 SAL_CALL SvxRectCtlAccessibleContext::getAccessibleChildCount ( )
overridevirtual
virtual css::uno::Reference< css::accessibility::XAccessibleContext> SAL_CALL SvxRectCtlAccessibleContext::getAccessibleContext ( )
inlineoverridevirtual

Definition at line 91 of file svxrectctaccessiblecontext.hxx.

OUString SAL_CALL SvxRectCtlAccessibleContext::getAccessibleDescription ( )
overridevirtual

Implements comphelper::OAccessibleContextHelper.

Definition at line 192 of file svxrectctaccessiblecontext.cxx.

References m_aMutex, and msDescription.

OUString SAL_CALL SvxRectCtlAccessibleContext::getAccessibleName ( )
overridevirtual

Implements comphelper::OAccessibleContextHelper.

Definition at line 198 of file svxrectctaccessiblecontext.cxx.

References m_aMutex, and msName.

Reference< XAccessible > SAL_CALL SvxRectCtlAccessibleContext::getAccessibleParent ( )
overridevirtual
Reference< XAccessibleRelationSet > SAL_CALL SvxRectCtlAccessibleContext::getAccessibleRelationSet ( )
overridevirtual

Return empty reference to indicate that the relation set is not supported.

Implements comphelper::OAccessibleContextHelper.

Definition at line 207 of file svxrectctaccessiblecontext.cxx.

References SvxRectCtl::get_accessible_relation_set(), m_aMutex, and mpRepr.

sal_Int16 SAL_CALL SvxRectCtlAccessibleContext::getAccessibleRole ( )
overridevirtual
Reference< XAccessibleStateSet > SAL_CALL SvxRectCtlAccessibleContext::getAccessibleStateSet ( )
overridevirtual
sal_Int32 SvxRectCtlAccessibleContext::getBackground ( )
overridevirtual
sal_Int32 SvxRectCtlAccessibleContext::getForeground ( )
overridevirtual
void SAL_CALL SvxRectCtlAccessibleContext::grabFocus ( )
overridevirtual
awt::Rectangle SvxRectCtlAccessibleContext::implGetBounds ( )
overrideprivatevirtual
bool SvxRectCtlAccessibleContext::implIsSelected ( sal_Int32  nAccessibleChildIndex)
overrideprivatevirtual
void SvxRectCtlAccessibleContext::implSelect ( sal_Int32  nAccessibleChildIndex,
bool  bSelect 
)
overrideprivatevirtual
void SvxRectCtlAccessibleContext::selectChild ( RectPoint  ePoint)

Selects a new child by point.

If the child was not selected before, the state of the child will be updated. If the point is not invalid, the index will internally set to NOCHILDSELECTED

Parameters
eButtonButton which belongs to the child which should be selected.

Definition at line 367 of file svxrectctaccessiblecontext.cxx.

References PointToIndex().

void SvxRectCtlAccessibleContext::selectChild ( long  nIndexOfChild)
private

Selects a new child by index.

If the child was not selected before, the state of the child will be updated. If the index is invalid, the index will internally set to NOCHILDSELECTED

Parameters
nIndexOfChildIndex of the new child which should be selected.

Definition at line 337 of file svxrectctaccessiblecontext.cxx.

References getAccessibleChildCount(), m_aMutex, mnSelectedChild, mvChildren, NOCHILDSELECTED, and SvxRectCtlChildAccessibleContext::setStateChecked().

Member Data Documentation

long SvxRectCtlAccessibleContext::mnSelectedChild
private

actual selected child

Definition at line 149 of file svxrectctaccessiblecontext.hxx.

Referenced by FireChildFocus(), getAccessibleChild(), implIsSelected(), and selectChild().

SvxRectCtl* SvxRectCtlAccessibleContext::mpRepr
private
OUString SvxRectCtlAccessibleContext::msDescription
private

Description of this object.

This is not a constant because it can be set from the outside.

Definition at line 136 of file svxrectctaccessiblecontext.hxx.

Referenced by getAccessibleDescription(), and SvxRectCtlAccessibleContext().

OUString SvxRectCtlAccessibleContext::msName
private

Name of this object.

Definition at line 140 of file svxrectctaccessiblecontext.hxx.

Referenced by getAccessibleName(), and SvxRectCtlAccessibleContext().

std::vector<rtl::Reference<SvxRectCtlChildAccessibleContext> > SvxRectCtlAccessibleContext::mvChildren
private

array for all possible children

Definition at line 146 of file svxrectctaccessiblecontext.hxx.

Referenced by disposing(), FireChildFocus(), getAccessibleChild(), selectChild(), and SvxRectCtlAccessibleContext().


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