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 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 cppu::ImplHelper1< class >
 ~ImplHelper1 ()
 

Detailed Description

Definition at line 49 of file svxrectctaccessiblecontext.hxx.

Constructor & Destructor Documentation

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

Definition at line 110 of file svxrectctaccessiblecontext.cxx.

Member Function Documentation

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

Definition at line 369 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 118 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

Definition at line 133 of file svxrectctaccessiblecontext.cxx.

References m_aMutex, and SvxRectCtl::NO_CHILDREN.

Referenced by checkChildIndex(), FireChildFocus(), and selectChild().

virtual css::uno::Reference< css::accessibility::XAccessibleContext> SAL_CALL SvxRectCtlAccessibleContext::getAccessibleContext ( )
inlineoverridevirtual

Definition at line 74 of file svxrectctaccessiblecontext.hxx.

OUString SAL_CALL SvxRectCtlAccessibleContext::getAccessibleDescription ( )
overridevirtual

Definition at line 188 of file svxrectctaccessiblecontext.cxx.

References m_aMutex, and msDescription.

OUString SAL_CALL SvxRectCtlAccessibleContext::getAccessibleName ( )
overridevirtual

Definition at line 194 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.

Definition at line 203 of file svxrectctaccessiblecontext.cxx.

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

sal_Int16 SAL_CALL SvxRectCtlAccessibleContext::getAccessibleRole ( )
overridevirtual

Definition at line 183 of file svxrectctaccessiblecontext.cxx.

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

Definition at line 291 of file svxrectctaccessiblecontext.cxx.

References checkChildIndex(), m_aMutex, and mnSelectedChild.

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 363 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 333 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 132 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 119 of file svxrectctaccessiblecontext.hxx.

Referenced by getAccessibleDescription(), and SvxRectCtlAccessibleContext().

OUString SvxRectCtlAccessibleContext::msName
private

Name of this object.

Definition at line 123 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 129 of file svxrectctaccessiblecontext.hxx.

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


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