LibreOffice Module sd (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
accessibility::AccessibleSlideSorterObject Class Reference

This class makes page objects of the slide sorter accessible. More...

#include <AccessibleSlideSorterObject.hxx>

Inheritance diagram for accessibility::AccessibleSlideSorterObject:
[legend]
Collaboration diagram for accessibility::AccessibleSlideSorterObject:
[legend]

Public Member Functions

 AccessibleSlideSorterObject (const css::uno::Reference< css::accessibility::XAccessible > &rxParent, ::sd::slidesorter::SlideSorter &rSlideSorter, sal_uInt16 nPageNumber)
 Create a new object that represents a page object in the slide sorter. More...
 
virtual ~AccessibleSlideSorterObject () override
 
SdPageGetPage () const
 Return the page that is made accessible by the called object. More...
 
sal_uInt16 GetPageNumber () const
 The page number as given to the constructor. More...
 
void FireAccessibleEvent (short nEventId, const css::uno::Any &rOldValue, const css::uno::Any &rNewValue)
 
virtual void disposing (std::unique_lock< std::mutex > &) override
 
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext () 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 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
 
virtual sal_Int64 SAL_CALL getAccessibleStateSet () override
 
virtual css::lang::Locale SAL_CALL getLocale () 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
 
virtual sal_Int32 SAL_CALL getBackground () 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...
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelper< typename... Ifc >
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual void SAL_CALL dispose () noexcept final override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelperBase
virtual ~WeakComponentImplHelperBase () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual void disposing (std::unique_lock< std::mutex > &)
 
- Public Member Functions inherited from comphelper::UnoImplBase
virtual ~UnoImplBase ()
 

Private Member Functions

void ThrowIfDisposed ()
 Check whether or not the object has been disposed (or is in the state of being disposed). More...
 
bool IsDisposed () const
 Check whether or not the object has been disposed (or is in the state of being disposed). More...
 

Private Attributes

css::uno::Reference< css::accessibility::XAccessible > mxParent
 
sal_uInt16 mnPageNumber
 
::sd::slidesorter::SlideSortermrSlideSorter
 
sal_uInt32 mnClientId
 

Additional Inherited Members

- Protected Member Functions inherited from comphelper::WeakComponentImplHelperBase
void throwIfDisposed (std::unique_lock< std::mutex > &)
 
- Protected Attributes inherited from comphelper::WeakComponentImplHelperBase
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > maEventListeners
 
- Protected Attributes inherited from comphelper::UnoImplBase
std::mutex m_aMutex
 
bool m_bDisposed
 

Detailed Description

This class makes page objects of the slide sorter accessible.

Definition at line 43 of file AccessibleSlideSorterObject.hxx.

Constructor & Destructor Documentation

◆ AccessibleSlideSorterObject()

accessibility::AccessibleSlideSorterObject::AccessibleSlideSorterObject ( const css::uno::Reference< css::accessibility::XAccessible > &  rxParent,
::sd::slidesorter::SlideSorter rSlideSorter,
sal_uInt16  nPageNumber 
)

Create a new object that represents a page object in the slide sorter.

Parameters
rxParentThe accessible parent.
rSlideSorterThe slide sorter whose model manages the page.
nPageNumberThe number of the page in the range [0,nPageCount).

Definition at line 52 of file AccessibleSlideSorterObject.cxx.

References mxParent.

◆ ~AccessibleSlideSorterObject()

accessibility::AccessibleSlideSorterObject::~AccessibleSlideSorterObject ( )
overridevirtual

Member Function Documentation

◆ addAccessibleEventListener()

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

◆ containsPoint()

sal_Bool SAL_CALL accessibility::AccessibleSlideSorterObject::containsPoint ( const css::awt::Point &  aPoint)
overridevirtual

Definition at line 273 of file AccessibleSlideSorterObject.cxx.

References getSize(), and ThrowIfDisposed().

◆ disposing()

void accessibility::AccessibleSlideSorterObject::disposing ( std::unique_lock< std::mutex > &  )
overridevirtual

◆ FireAccessibleEvent()

void accessibility::AccessibleSlideSorterObject::FireAccessibleEvent ( short  nEventId,
const css::uno::Any &  rOldValue,
const css::uno::Any &  rNewValue 
)

◆ getAccessibleAtPoint()

Reference< XAccessible > SAL_CALL accessibility::AccessibleSlideSorterObject::getAccessibleAtPoint ( const css::awt::Point &  aPoint)
overridevirtual

Definition at line 284 of file AccessibleSlideSorterObject.cxx.

◆ getAccessibleChild()

Reference< XAccessible > SAL_CALL accessibility::AccessibleSlideSorterObject::getAccessibleChild ( sal_Int64  nIndex)
overridevirtual

Definition at line 114 of file AccessibleSlideSorterObject.cxx.

References ThrowIfDisposed().

◆ getAccessibleChildCount()

sal_Int64 SAL_CALL accessibility::AccessibleSlideSorterObject::getAccessibleChildCount ( )
overridevirtual

Definition at line 108 of file AccessibleSlideSorterObject.cxx.

References ThrowIfDisposed().

◆ getAccessibleContext()

Reference< XAccessibleContext > SAL_CALL accessibility::AccessibleSlideSorterObject::getAccessibleContext ( )
overridevirtual

Definition at line 100 of file AccessibleSlideSorterObject.cxx.

References ThrowIfDisposed().

◆ getAccessibleDescription()

OUString SAL_CALL accessibility::AccessibleSlideSorterObject::getAccessibleDescription ( )
overridevirtual

Definition at line 157 of file AccessibleSlideSorterObject.cxx.

References SdResId(), and ThrowIfDisposed().

◆ getAccessibleIndexInParent()

sal_Int64 SAL_CALL accessibility::AccessibleSlideSorterObject::getAccessibleIndexInParent ( )
overridevirtual

Definition at line 126 of file AccessibleSlideSorterObject.cxx.

References i, mxParent, and ThrowIfDisposed().

◆ getAccessibleName()

OUString SAL_CALL accessibility::AccessibleSlideSorterObject::getAccessibleName ( )
overridevirtual

Definition at line 163 of file AccessibleSlideSorterObject.cxx.

References SdPage::GetName(), GetPage(), and ThrowIfDisposed().

◆ getAccessibleParent()

Reference< XAccessible > SAL_CALL accessibility::AccessibleSlideSorterObject::getAccessibleParent ( )
overridevirtual

Definition at line 120 of file AccessibleSlideSorterObject.cxx.

References mxParent, and ThrowIfDisposed().

◆ getAccessibleRelationSet()

Reference< XAccessibleRelationSet > SAL_CALL accessibility::AccessibleSlideSorterObject::getAccessibleRelationSet ( )
overridevirtual

Definition at line 176 of file AccessibleSlideSorterObject.cxx.

References ThrowIfDisposed().

◆ getAccessibleRole()

sal_Int16 SAL_CALL accessibility::AccessibleSlideSorterObject::getAccessibleRole ( )
overridevirtual

Definition at line 151 of file AccessibleSlideSorterObject.cxx.

References ThrowIfDisposed().

◆ getAccessibleStateSet()

sal_Int64 SAL_CALL accessibility::AccessibleSlideSorterObject::getAccessibleStateSet ( )
overridevirtual

◆ getBackground()

sal_Int32 SAL_CALL accessibility::AccessibleSlideSorterObject::getBackground ( )
overridevirtual

◆ getBounds()

awt::Rectangle SAL_CALL accessibility::AccessibleSlideSorterObject::getBounds ( )
overridevirtual

◆ getForeground()

sal_Int32 SAL_CALL accessibility::AccessibleSlideSorterObject::getForeground ( )
overridevirtual

◆ getImplementationName()

OUString SAL_CALL accessibility::AccessibleSlideSorterObject::getImplementationName ( )
overridevirtual

Returns an identifier for the implementation of this object.

Definition at line 380 of file AccessibleSlideSorterObject.cxx.

◆ getLocale()

lang::Locale SAL_CALL accessibility::AccessibleSlideSorterObject::getLocale ( )
overridevirtual

Definition at line 211 of file AccessibleSlideSorterObject.cxx.

References mxParent, and ThrowIfDisposed().

◆ getLocation()

awt::Point SAL_CALL accessibility::AccessibleSlideSorterObject::getLocation ( )
overridevirtual

Definition at line 322 of file AccessibleSlideSorterObject.cxx.

References getBounds(), and ThrowIfDisposed().

Referenced by getLocationOnScreen().

◆ getLocationOnScreen()

awt::Point SAL_CALL accessibility::AccessibleSlideSorterObject::getLocationOnScreen ( )
overridevirtual

Definition at line 329 of file AccessibleSlideSorterObject.cxx.

References getLocation(), mxParent, and ThrowIfDisposed().

◆ GetPage()

SdPage * accessibility::AccessibleSlideSorterObject::GetPage ( ) const

◆ GetPageNumber()

sal_uInt16 accessibility::AccessibleSlideSorterObject::GetPageNumber ( ) const
inline

◆ getSize()

awt::Size SAL_CALL accessibility::AccessibleSlideSorterObject::getSize ( )
overridevirtual

Definition at line 351 of file AccessibleSlideSorterObject.cxx.

References getBounds(), and ThrowIfDisposed().

Referenced by containsPoint().

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL accessibility::AccessibleSlideSorterObject::getSupportedServiceNames ( )
overridevirtual

Returns a list of all supported services.

Definition at line 391 of file AccessibleSlideSorterObject.cxx.

References ThrowIfDisposed().

◆ grabFocus()

void SAL_CALL accessibility::AccessibleSlideSorterObject::grabFocus ( )
overridevirtual

Definition at line 358 of file AccessibleSlideSorterObject.cxx.

◆ IsDisposed()

bool accessibility::AccessibleSlideSorterObject::IsDisposed ( ) const
private

Check whether or not the object has been disposed (or is in the state of being disposed).

Returns
sal_True, if the object is disposed or in the course of being disposed. Otherwise, sal_False is returned.

Definition at line 411 of file AccessibleSlideSorterObject.cxx.

References comphelper::UnoImplBase::m_bDisposed.

Referenced by addAccessibleEventListener(), and ~AccessibleSlideSorterObject().

◆ removeAccessibleEventListener()

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

◆ supportsService()

sal_Bool SAL_CALL accessibility::AccessibleSlideSorterObject::supportsService ( const OUString &  sServiceName)
overridevirtual

Return whether the specified service is supported by this class.

Definition at line 385 of file AccessibleSlideSorterObject.cxx.

References sServiceName, and cppu::supportsService().

◆ ThrowIfDisposed()

void accessibility::AccessibleSlideSorterObject::ThrowIfDisposed ( )
private

Check whether or not the object has been disposed (or is in the state of being disposed).

If that is the case then DisposedException is thrown to inform the (indirect) caller of the foul deed.

Exceptions
css::lang::DisposedException

Definition at line 401 of file AccessibleSlideSorterObject.cxx.

References comphelper::UnoImplBase::m_bDisposed, and SAL_WARN.

Referenced by containsPoint(), getAccessibleChild(), getAccessibleChildCount(), getAccessibleContext(), getAccessibleDescription(), getAccessibleIndexInParent(), getAccessibleName(), getAccessibleParent(), getAccessibleRelationSet(), getAccessibleRole(), getAccessibleStateSet(), getBackground(), getBounds(), getForeground(), getLocale(), getLocation(), getLocationOnScreen(), getSize(), getSupportedServiceNames(), and removeAccessibleEventListener().

Member Data Documentation

◆ mnClientId

sal_uInt32 accessibility::AccessibleSlideSorterObject::mnClientId
private

◆ mnPageNumber

sal_uInt16 accessibility::AccessibleSlideSorterObject::mnPageNumber
private

◆ mrSlideSorter

::sd::slidesorter::SlideSorter& accessibility::AccessibleSlideSorterObject::mrSlideSorter
private

Definition at line 166 of file AccessibleSlideSorterObject.hxx.

Referenced by getAccessibleStateSet(), getBounds(), and GetPage().

◆ mxParent

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

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