LibreOffice Module sfx2 (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
ThumbnailViewAcc Class Reference

#include <thumbnailviewacc.hxx>

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

Public Member Functions

 ThumbnailViewAcc (ThumbnailView *pParent)
 
virtual ~ThumbnailViewAcc () override
 
void FireAccessibleEvent (short nEventId, const css::uno::Any &rOldValue, const css::uno::Any &rNewValue)
 
bool HasAccessibleListeners () const
 
void GetFocus ()
 Called by the corresponding ValueSet when it gets the focus. More...
 
void LoseFocus ()
 Called by the corresponding ValueSet when it loses the focus. More...
 
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext () 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 sal_Int64 SAL_CALL getAccessibleChildCount () override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild (sal_Int64 i) 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 void SAL_CALL selectAccessibleChild (sal_Int64 nChildIndex) override
 
virtual sal_Bool SAL_CALL isAccessibleChildSelected (sal_Int64 nChildIndex) override
 
virtual void SAL_CALL clearAccessibleSelection () override
 
virtual void SAL_CALL selectAllAccessibleChildren () override
 
virtual sal_Int64 SAL_CALL getSelectedAccessibleChildCount () override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild (sal_Int64 nSelectedChildIndex) override
 
virtual void SAL_CALL deselectAccessibleChild (sal_Int64 nSelectedChildIndex) override
 
- 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 ()
 

Static Public Member Functions

static ThumbnailViewAccgetImplementation (const css::uno::Reference< css::uno::XInterface > &rxData) noexcept
 

Private Member Functions

virtual void disposing (std::unique_lock< std::mutex > &) override
 Tell all listeners that the object is dying. More...
 
sal_uInt16 getItemCount () const
 Return the number of items. More...
 
ThumbnailViewItemgetItem (sal_uInt16 nIndex) const
 Return the item associated with the given index. More...
 
void ThrowIfDisposed ()
 Check whether or not the object has been disposed (or is in the state of being disposed). More...
 

Private Attributes

::std::vector< css::uno::Reference< css::accessibility::XAccessibleEventListener > > mxEventListeners
 
ThumbnailViewmpParent
 

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

Definition at line 45 of file thumbnailviewacc.hxx.

Constructor & Destructor Documentation

◆ ThumbnailViewAcc()

ThumbnailViewAcc::ThumbnailViewAcc ( ThumbnailView pParent)

Definition at line 38 of file thumbnailviewacc.cxx.

◆ ~ThumbnailViewAcc()

ThumbnailViewAcc::~ThumbnailViewAcc ( )
overridevirtual

Definition at line 43 of file thumbnailviewacc.cxx.

Member Function Documentation

◆ addAccessibleEventListener()

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

◆ clearAccessibleSelection()

void SAL_CALL ThumbnailViewAcc::clearAccessibleSelection ( )
overridevirtual

Definition at line 381 of file thumbnailviewacc.cxx.

References ThrowIfDisposed().

◆ containsPoint()

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

◆ deselectAccessibleChild()

void SAL_CALL ThumbnailViewAcc::deselectAccessibleChild ( sal_Int64  nSelectedChildIndex)
overridevirtual

Definition at line 426 of file thumbnailviewacc.cxx.

References getAccessibleChildCount(), and ThrowIfDisposed().

◆ disposing()

void ThumbnailViewAcc::disposing ( std::unique_lock< std::mutex > &  rGuard)
overrideprivatevirtual

Tell all listeners that the object is dying.

This callback is usually called from the WeakComponentImplHelper class.

Reimplemented from comphelper::WeakComponentImplHelperBase.

Definition at line 440 of file thumbnailviewacc.cxx.

References aEvent, comphelper::UnoImplBase::m_aMutex, mpParent, and mxEventListeners.

◆ FireAccessibleEvent()

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

Definition at line 517 of file thumbnailviewacc.cxx.

References mxEventListeners.

Referenced by GetFocus(), ThumbnailView::ImplFireAccessibleEvent(), and LoseFocus().

◆ getAccessibleAtPoint()

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

◆ getAccessibleChild()

uno::Reference< accessibility::XAccessible > SAL_CALL ThumbnailViewAcc::getAccessibleChild ( sal_Int64  i)
overridevirtual

◆ getAccessibleChildCount()

sal_Int64 SAL_CALL ThumbnailViewAcc::getAccessibleChildCount ( )
overridevirtual

◆ getAccessibleContext()

uno::Reference< accessibility::XAccessibleContext > SAL_CALL ThumbnailViewAcc::getAccessibleContext ( )
overridevirtual

Definition at line 53 of file thumbnailviewacc.cxx.

References ThrowIfDisposed().

◆ getAccessibleDescription()

OUString SAL_CALL ThumbnailViewAcc::getAccessibleDescription ( )
overridevirtual

Definition at line 135 of file thumbnailviewacc.cxx.

References ThrowIfDisposed().

◆ getAccessibleIndexInParent()

sal_Int64 SAL_CALL ThumbnailViewAcc::getAccessibleIndexInParent ( )
overridevirtual

◆ getAccessibleName()

OUString SAL_CALL ThumbnailViewAcc::getAccessibleName ( )
overridevirtual

◆ getAccessibleParent()

uno::Reference< accessibility::XAccessible > SAL_CALL ThumbnailViewAcc::getAccessibleParent ( )
overridevirtual

◆ getAccessibleRelationSet()

uno::Reference< accessibility::XAccessibleRelationSet > SAL_CALL ThumbnailViewAcc::getAccessibleRelationSet ( )
overridevirtual

Definition at line 155 of file thumbnailviewacc.cxx.

References ThrowIfDisposed().

◆ getAccessibleRole()

sal_Int16 SAL_CALL ThumbnailViewAcc::getAccessibleRole ( )
overridevirtual

Definition at line 127 of file thumbnailviewacc.cxx.

References ThrowIfDisposed().

◆ getAccessibleStateSet()

sal_Int64 SAL_CALL ThumbnailViewAcc::getAccessibleStateSet ( )
overridevirtual

Definition at line 161 of file thumbnailviewacc.cxx.

References ThrowIfDisposed().

◆ getBackground()

sal_Int32 SAL_CALL ThumbnailViewAcc::getBackground ( )
overridevirtual

◆ getBounds()

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

◆ GetFocus()

void ThumbnailViewAcc::GetFocus ( )

Called by the corresponding ValueSet when it gets the focus.

Stores the new focus state and broadcasts a state change event.

Definition at line 548 of file thumbnailviewacc.cxx.

References FireAccessibleEvent().

Referenced by ThumbnailView::GetFocus().

◆ getForeground()

sal_Int32 SAL_CALL ThumbnailViewAcc::getForeground ( )
overridevirtual

◆ getImplementation()

ThumbnailViewAcc * ThumbnailViewAcc::getImplementation ( const css::uno::Reference< css::uno::XInterface > &  rxData)
staticnoexcept

◆ getItem()

ThumbnailViewItem * ThumbnailViewAcc::getItem ( sal_uInt16  nIndex) const
private

Return the item associated with the given index.

The None-Item is taken into account which, when present, is taken to be the first (with index 0) item.

Parameters
nIndexIndex of the item to return. The index 0 denotes the None-Item when present.
Returns
Returns NULL when the given index is out of range.

Definition at line 481 of file thumbnailviewacc.cxx.

References ThumbnailView::ImplGetVisibleItem(), mpParent, and nIndex.

Referenced by getAccessibleChild(), getSelectedAccessibleChild(), getSelectedAccessibleChildCount(), isAccessibleChildSelected(), and selectAccessibleChild().

◆ getItemCount()

sal_uInt16 ThumbnailViewAcc::getItemCount ( ) const
private

Return the number of items.

This takes the None-Item into account.

Definition at line 476 of file thumbnailviewacc.cxx.

References ThumbnailView::ImplGetVisibleItemCount(), and mpParent.

Referenced by getSelectedAccessibleChild(), and getSelectedAccessibleChildCount().

◆ getLocale()

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

Definition at line 177 of file thumbnailviewacc.cxx.

References getAccessibleParent(), and ThrowIfDisposed().

◆ getLocation()

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

Definition at line 280 of file thumbnailviewacc.cxx.

References getBounds(), and ThrowIfDisposed().

Referenced by getLocationOnScreen().

◆ getLocationOnScreen()

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

Definition at line 292 of file thumbnailviewacc.cxx.

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

◆ getSelectedAccessibleChild()

uno::Reference< accessibility::XAccessible > SAL_CALL ThumbnailViewAcc::getSelectedAccessibleChild ( sal_Int64  nSelectedChildIndex)
overridevirtual

◆ getSelectedAccessibleChildCount()

sal_Int64 SAL_CALL ThumbnailViewAcc::getSelectedAccessibleChildCount ( )
overridevirtual

◆ getSize()

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

Definition at line 316 of file thumbnailviewacc.cxx.

References getBounds(), and ThrowIfDisposed().

◆ grabFocus()

void SAL_CALL ThumbnailViewAcc::grabFocus ( )
overridevirtual

◆ HasAccessibleListeners()

bool ThumbnailViewAcc::HasAccessibleListeners ( ) const
inline

Definition at line 57 of file thumbnailviewacc.hxx.

References mxEventListeners.

Referenced by ThumbnailView::ImplHasAccessibleListeners().

◆ isAccessibleChildSelected()

sal_Bool SAL_CALL ThumbnailViewAcc::isAccessibleChildSelected ( sal_Int64  nChildIndex)
overridevirtual

◆ LoseFocus()

void ThumbnailViewAcc::LoseFocus ( )

Called by the corresponding ValueSet when it loses the focus.

Stores the new focus state and broadcasts a state change event.

Definition at line 558 of file thumbnailviewacc.cxx.

References FireAccessibleEvent().

Referenced by ThumbnailView::LoseFocus().

◆ removeAccessibleEventListener()

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

◆ selectAccessibleChild()

void SAL_CALL ThumbnailViewAcc::selectAccessibleChild ( sal_Int64  nChildIndex)
overridevirtual

◆ selectAllAccessibleChildren()

void SAL_CALL ThumbnailViewAcc::selectAllAccessibleChildren ( )
overridevirtual

Definition at line 386 of file thumbnailviewacc.cxx.

References ThrowIfDisposed().

◆ ThrowIfDisposed()

void ThumbnailViewAcc::ThrowIfDisposed ( )
private

Member Data Documentation

◆ mpParent

ThumbnailView* ThumbnailViewAcc::mpParent
private

◆ mxEventListeners

::std::vector< css::uno::Reference< css::accessibility::XAccessibleEventListener > > ThumbnailViewAcc::mxEventListeners
private

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