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

#include <accessibleruler.hxx>

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

Public Member Functions

 SvtRulerAccessible (css::uno::Reference< css::accessibility::XAccessible > xParent, Ruler &rRepresentation, OUString aName)
 
bool isVisible ()
 
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext () override
 
virtual sal_Bool SAL_CALL containsPoint (const css::awt::Point &rPoint) override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint (const css::awt::Point &rPoint) 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 sal_Int64 SAL_CALL getAccessibleChildCount () override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild (sal_Int64 nIndex) override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent () override
 
virtual sal_Int64 SAL_CALL getAccessibleIndexInParent () 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 uno::Reference to indicate that the relation set is not supported. More...
 
virtual sal_Int64 SAL_CALL getAccessibleStateSet () override
 
virtual css::lang::Locale SAL_CALL getLocale () override
 
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 getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &sServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
- Public Member Functions inherited from cppu::WeakAggComponentImplHelper5< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5 >
 WeakAggComponentImplHelper5 (::osl::Mutex &rMutex) SAL_NOEXCEPT
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryAggregation (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT 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 ~SvtRulerAccessible () override
 
virtual void SAL_CALL disposing () override
 
bool IsAlive () const
 
void ThrowExceptionIfNotAlive ()
 
tools::Rectangle GetBoundingBoxOnScreen ()
 @Return the object's current bounding box relative to the desktop. More...
 
tools::Rectangle GetBoundingBox ()
 @Return the object's current bounding box relative to the parent object. More...
 

Private Attributes

OUString msName
 Name of this object. More...
 
css::uno::Reference< css::accessibility::XAccessible > mxParent
 Reference to the parent object. More...
 
VclPtr< RulermpRepr
 pointer to internal representation More...
 
sal_uInt32 mnClientId
 client id in the AccessibleEventNotifier queue More...
 

Additional Inherited Members

- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Detailed Description

Definition at line 46 of file accessibleruler.hxx.

Constructor & Destructor Documentation

◆ SvtRulerAccessible()

SvtRulerAccessible::SvtRulerAccessible ( css::uno::Reference< css::accessibility::XAccessible >  xParent,
Ruler rRepresentation,
OUString  aName 
)

Definition at line 42 of file accessibleruler.cxx.

References aName, m_aMutex, msName, and mxParent.

◆ ~SvtRulerAccessible()

SvtRulerAccessible::~SvtRulerAccessible ( )
overrideprivatevirtual

Definition at line 53 of file accessibleruler.cxx.

References dispose(), IsAlive(), and m_refCount.

Member Function Documentation

◆ addAccessibleEventListener()

void SAL_CALL SvtRulerAccessible::addAccessibleEventListener ( const css::uno::Reference< css::accessibility::XAccessibleEventListener > &  xListener)
overridevirtual

◆ containsPoint()

sal_Bool SAL_CALL SvtRulerAccessible::containsPoint ( const css::awt::Point &  rPoint)
overridevirtual

Definition at line 72 of file accessibleruler.cxx.

References tools::Rectangle::Contains(), GetBoundingBox(), and VCLPoint().

◆ disposing()

void SAL_CALL SvtRulerAccessible::disposing ( )
overrideprivatevirtual

◆ getAccessibleAtPoint()

uno::Reference< XAccessible > SAL_CALL SvtRulerAccessible::getAccessibleAtPoint ( const css::awt::Point &  rPoint)
overridevirtual

Definition at line 79 of file accessibleruler.cxx.

References cppu::BaseMutex::m_aMutex, and ThrowExceptionIfNotAlive().

◆ getAccessibleChild()

uno::Reference< XAccessible > SAL_CALL SvtRulerAccessible::getAccessibleChild ( sal_Int64  nIndex)
overridevirtual

Definition at line 134 of file accessibleruler.cxx.

◆ getAccessibleChildCount()

sal_Int64 SAL_CALL SvtRulerAccessible::getAccessibleChildCount ( )
overridevirtual

Definition at line 125 of file accessibleruler.cxx.

References cppu::BaseMutex::m_aMutex, and ThrowExceptionIfNotAlive().

◆ getAccessibleContext()

uno::Reference< XAccessibleContext > SAL_CALL SvtRulerAccessible::getAccessibleContext ( )
overridevirtual

Definition at line 65 of file accessibleruler.cxx.

◆ getAccessibleDescription()

OUString SAL_CALL SvtRulerAccessible::getAccessibleDescription ( )
overridevirtual

Definition at line 177 of file accessibleruler.cxx.

◆ getAccessibleIndexInParent()

sal_Int64 SAL_CALL SvtRulerAccessible::getAccessibleIndexInParent ( )
overridevirtual

Definition at line 146 of file accessibleruler.cxx.

References i, cppu::BaseMutex::m_aMutex, and mxParent.

◆ getAccessibleName()

OUString SAL_CALL SvtRulerAccessible::getAccessibleName ( )
overridevirtual

Definition at line 182 of file accessibleruler.cxx.

References cppu::BaseMutex::m_aMutex, and msName.

◆ getAccessibleParent()

uno::Reference< XAccessible > SAL_CALL SvtRulerAccessible::getAccessibleParent ( )
overridevirtual

Definition at line 141 of file accessibleruler.cxx.

References mxParent.

◆ getAccessibleRelationSet()

uno::Reference< XAccessibleRelationSet > SAL_CALL SvtRulerAccessible::getAccessibleRelationSet ( )
overridevirtual

Return empty uno::Reference to indicate that the relation set is not supported.

Definition at line 191 of file accessibleruler.cxx.

◆ getAccessibleRole()

sal_Int16 SAL_CALL SvtRulerAccessible::getAccessibleRole ( )
overridevirtual

Definition at line 172 of file accessibleruler.cxx.

◆ getAccessibleStateSet()

sal_Int64 SAL_CALL SvtRulerAccessible::getAccessibleStateSet ( )
overridevirtual

Definition at line 197 of file accessibleruler.cxx.

References IsAlive(), isVisible(), cppu::BaseMutex::m_aMutex, mpRepr, and WB_HORZ.

◆ getBackground()

sal_Int32 SvtRulerAccessible::getBackground ( )
overridevirtual

◆ GetBoundingBox()

tools::Rectangle SvtRulerAccessible::GetBoundingBox ( )
private

@Return the object's current bounding box relative to the parent object.

Exceptions
css::uno::RuntimeException

Definition at line 339 of file accessibleruler.cxx.

References cppu::BaseMutex::m_aMutex, mpRepr, and ThrowExceptionIfNotAlive().

Referenced by containsPoint(), getBounds(), getLocation(), and getSize().

◆ GetBoundingBoxOnScreen()

tools::Rectangle SvtRulerAccessible::GetBoundingBoxOnScreen ( )
private

@Return the object's current bounding box relative to the desktop.

Exceptions
css::uno::RuntimeException

Definition at line 330 of file accessibleruler.cxx.

References cppu::BaseMutex::m_aMutex, mpRepr, and ThrowExceptionIfNotAlive().

Referenced by getLocationOnScreen().

◆ getBounds()

awt::Rectangle SAL_CALL SvtRulerAccessible::getBounds ( )
overridevirtual

Definition at line 91 of file accessibleruler.cxx.

References AWTRectangle(), and GetBoundingBox().

◆ getForeground()

sal_Int32 SvtRulerAccessible::getForeground ( )
overridevirtual

◆ getImplementationId()

Sequence< sal_Int8 > SAL_CALL SvtRulerAccessible::getImplementationId ( )
overridevirtual

◆ getImplementationName()

OUString SAL_CALL SvtRulerAccessible::getImplementationName ( )
overridevirtual

Definition at line 292 of file accessibleruler.cxx.

◆ getLocale()

lang::Locale SAL_CALL SvtRulerAccessible::getLocale ( )
overridevirtual

Definition at line 220 of file accessibleruler.cxx.

References cppu::BaseMutex::m_aMutex, and mxParent.

◆ getLocation()

awt::Point SAL_CALL SvtRulerAccessible::getLocation ( )
overridevirtual

Definition at line 97 of file accessibleruler.cxx.

References AWTPoint(), GetBoundingBox(), and TopLeft.

◆ getLocationOnScreen()

awt::Point SAL_CALL SvtRulerAccessible::getLocationOnScreen ( )
overridevirtual

Definition at line 103 of file accessibleruler.cxx.

References AWTPoint(), GetBoundingBoxOnScreen(), and TopLeft.

◆ getSize()

awt::Size SAL_CALL SvtRulerAccessible::getSize ( )
overridevirtual

Definition at line 109 of file accessibleruler.cxx.

References AWTSize(), and GetBoundingBox().

◆ getSupportedServiceNames()

Sequence< OUString > SAL_CALL SvtRulerAccessible::getSupportedServiceNames ( )
overridevirtual

Definition at line 302 of file accessibleruler.cxx.

◆ grabFocus()

void SAL_CALL SvtRulerAccessible::grabFocus ( )
overridevirtual

◆ IsAlive()

bool SvtRulerAccessible::IsAlive ( ) const
inlineprivate
Returns
true if it's disposed or in disposing

Definition at line 181 of file accessibleruler.hxx.

Referenced by getAccessibleStateSet(), and ~SvtRulerAccessible().

◆ isVisible()

bool SvtRulerAccessible::isVisible ( )
Exceptions
css::uno::RuntimeException

Definition at line 115 of file accessibleruler.cxx.

References cppu::BaseMutex::m_aMutex, mpRepr, and ThrowExceptionIfNotAlive().

Referenced by getAccessibleStateSet().

◆ removeAccessibleEventListener()

void SAL_CALL SvtRulerAccessible::removeAccessibleEventListener ( const css::uno::Reference< css::accessibility::XAccessibleEventListener > &  xListener)
overridevirtual

◆ supportsService()

sal_Bool SAL_CALL SvtRulerAccessible::supportsService ( const OUString &  sServiceName)
overridevirtual

Definition at line 297 of file accessibleruler.cxx.

References sServiceName, and cppu::supportsService().

◆ ThrowExceptionIfNotAlive()

void SvtRulerAccessible::ThrowExceptionIfNotAlive ( )
private
Exceptions
DisposedExceptionif it's not alive

Definition at line 349 of file accessibleruler.cxx.

Referenced by getAccessibleAtPoint(), getAccessibleChildCount(), getBackground(), GetBoundingBox(), GetBoundingBoxOnScreen(), getForeground(), grabFocus(), and isVisible().

Member Data Documentation

◆ mnClientId

sal_uInt32 SvtRulerAccessible::mnClientId
private

client id in the AccessibleEventNotifier queue

Definition at line 178 of file accessibleruler.hxx.

Referenced by addAccessibleEventListener(), disposing(), and removeAccessibleEventListener().

◆ mpRepr

VclPtr<Ruler> SvtRulerAccessible::mpRepr
private

pointer to internal representation

Definition at line 175 of file accessibleruler.hxx.

Referenced by disposing(), getAccessibleStateSet(), getBackground(), GetBoundingBox(), GetBoundingBoxOnScreen(), getForeground(), grabFocus(), and isVisible().

◆ msName

OUString SvtRulerAccessible::msName
private

Name of this object.

Definition at line 168 of file accessibleruler.hxx.

Referenced by getAccessibleName().

◆ mxParent

css::uno::Reference< css::accessibility::XAccessible > SvtRulerAccessible::mxParent
private

Reference to the parent object.

Definition at line 172 of file accessibleruler.hxx.

Referenced by disposing(), getAccessibleIndexInParent(), getAccessibleParent(), and getLocale().


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