LibreOffice Module sfx2 (master) 1
|
#include <thumbnailviewacc.hxx>
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 ThumbnailViewAcc * | getImplementation (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... | |
ThumbnailViewItem * | getItem (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 |
ThumbnailView * | mpParent |
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 |
Definition at line 45 of file thumbnailviewacc.hxx.
ThumbnailViewAcc::ThumbnailViewAcc | ( | ThumbnailView * | pParent | ) |
Definition at line 38 of file thumbnailviewacc.cxx.
|
overridevirtual |
Definition at line 43 of file thumbnailviewacc.cxx.
|
overridevirtual |
Definition at line 195 of file thumbnailviewacc.cxx.
References comphelper::UnoImplBase::m_aMutex, mxEventListeners, and ThrowIfDisposed().
|
overridevirtual |
Definition at line 381 of file thumbnailviewacc.cxx.
References ThrowIfDisposed().
|
overridevirtual |
Definition at line 233 of file thumbnailviewacc.cxx.
References tools::Rectangle::Contains(), getBounds(), and ThrowIfDisposed().
|
overridevirtual |
Definition at line 426 of file thumbnailviewacc.cxx.
References getAccessibleChildCount(), and ThrowIfDisposed().
|
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.
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().
|
overridevirtual |
Definition at line 243 of file thumbnailviewacc.cxx.
References ThumbnailViewItem::GetAccessible(), ThumbnailView::GetItemId(), ThumbnailView::GetItemPos(), ThumbnailView::mFilteredItemList, mpParent, ThrowIfDisposed(), and THUMBNAILVIEW_ITEM_NONEITEM.
|
overridevirtual |
Definition at line 67 of file thumbnailviewacc.cxx.
References ThumbnailViewItem::GetAccessible(), getAccessibleChildCount(), getItem(), i, and ThrowIfDisposed().
|
overridevirtual |
Definition at line 59 of file thumbnailviewacc.cxx.
References ThumbnailView::ImplGetVisibleItemCount(), mpParent, and ThrowIfDisposed().
Referenced by deselectAccessibleChild(), getAccessibleChild(), isAccessibleChildSelected(), and selectAccessibleChild().
|
overridevirtual |
Definition at line 53 of file thumbnailviewacc.cxx.
References ThrowIfDisposed().
|
overridevirtual |
Definition at line 135 of file thumbnailviewacc.cxx.
References ThrowIfDisposed().
|
overridevirtual |
Definition at line 91 of file thumbnailviewacc.cxx.
References getAccessibleParent(), ThrowIfDisposed(), and TOOLS_WARN_EXCEPTION.
|
overridevirtual |
Definition at line 141 of file thumbnailviewacc.cxx.
References weld::CustomWidgetController::GetAccessibleName(), mpParent, and ThrowIfDisposed().
|
overridevirtual |
Definition at line 84 of file thumbnailviewacc.cxx.
References weld::DrawingArea::get_accessible_parent(), weld::CustomWidgetController::GetDrawingArea(), mpParent, and ThrowIfDisposed().
Referenced by getAccessibleIndexInParent(), getLocale(), and getLocationOnScreen().
|
overridevirtual |
Definition at line 155 of file thumbnailviewacc.cxx.
References ThrowIfDisposed().
|
overridevirtual |
Definition at line 127 of file thumbnailviewacc.cxx.
References ThrowIfDisposed().
|
overridevirtual |
Definition at line 161 of file thumbnailviewacc.cxx.
References ThrowIfDisposed().
|
overridevirtual |
Definition at line 342 of file thumbnailviewacc.cxx.
References Application::GetSettings(), AllSettings::GetStyleSettings(), StyleSettings::GetWindowColor(), and ThrowIfDisposed().
|
overridevirtual |
Definition at line 264 of file thumbnailviewacc.cxx.
References weld::CustomWidgetController::GetOutputSizePixel(), Size::Height(), mpParent, ThrowIfDisposed(), Size::Width(), Point::X(), and Point::Y().
Referenced by containsPoint(), getLocation(), and getSize().
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().
|
overridevirtual |
Definition at line 335 of file thumbnailviewacc.cxx.
References Application::GetSettings(), AllSettings::GetStyleSettings(), StyleSettings::GetWindowTextColor(), and ThrowIfDisposed().
|
staticnoexcept |
Definition at line 47 of file thumbnailviewacc.cxx.
Referenced by ThumbnailView::GetFocus(), ThumbnailView::ImplFireAccessibleEvent(), ThumbnailView::ImplHasAccessibleListeners(), and ThumbnailView::LoseFocus().
|
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.
nIndex | Index of the item to return. The index 0 denotes the None-Item when present. |
Definition at line 481 of file thumbnailviewacc.cxx.
References ThumbnailView::ImplGetVisibleItem(), mpParent, and nIndex.
Referenced by getAccessibleChild(), getSelectedAccessibleChild(), getSelectedAccessibleChildCount(), isAccessibleChildSelected(), and selectAccessibleChild().
|
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().
|
overridevirtual |
Definition at line 177 of file thumbnailviewacc.cxx.
References getAccessibleParent(), and ThrowIfDisposed().
|
overridevirtual |
Definition at line 280 of file thumbnailviewacc.cxx.
References getBounds(), and ThrowIfDisposed().
Referenced by getLocationOnScreen().
|
overridevirtual |
Definition at line 292 of file thumbnailviewacc.cxx.
References getAccessibleParent(), getLocation(), and ThrowIfDisposed().
|
overridevirtual |
Definition at line 409 of file thumbnailviewacc.cxx.
References ThumbnailViewItem::GetAccessible(), getItem(), getItemCount(), i, ThumbnailView::IsItemSelected(), ThumbnailViewItem::mnId, mpParent, nCount, and ThrowIfDisposed().
|
overridevirtual |
Definition at line 392 of file thumbnailviewacc.cxx.
References getItem(), getItemCount(), i, ThumbnailView::IsItemSelected(), ThumbnailViewItem::mnId, mpParent, nCount, and ThrowIfDisposed().
|
overridevirtual |
Definition at line 316 of file thumbnailviewacc.cxx.
References getBounds(), and ThrowIfDisposed().
|
overridevirtual |
Definition at line 328 of file thumbnailviewacc.cxx.
References weld::CustomWidgetController::GrabFocus(), mpParent, and ThrowIfDisposed().
|
inline |
Definition at line 57 of file thumbnailviewacc.hxx.
References mxEventListeners.
Referenced by ThumbnailView::ImplHasAccessibleListeners().
|
overridevirtual |
Definition at line 365 of file thumbnailviewacc.cxx.
References getAccessibleChildCount(), getItem(), ThumbnailView::IsItemSelected(), ThumbnailViewItem::mnId, mpParent, and ThrowIfDisposed().
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().
|
overridevirtual |
Definition at line 218 of file thumbnailviewacc.cxx.
References comphelper::UnoImplBase::m_aMutex, mxEventListeners, and ThrowIfDisposed().
|
overridevirtual |
Definition at line 349 of file thumbnailviewacc.cxx.
References getAccessibleChildCount(), getItem(), ThumbnailViewItem::mnId, mpParent, ThumbnailView::SelectItem(), and ThrowIfDisposed().
|
overridevirtual |
Definition at line 386 of file thumbnailviewacc.cxx.
References 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.
css::lang::DisposedException |
Definition at line 486 of file thumbnailviewacc.cxx.
References DBG_ASSERT, comphelper::UnoImplBase::m_bDisposed, mpParent, and SAL_WARN.
Referenced by addAccessibleEventListener(), clearAccessibleSelection(), containsPoint(), deselectAccessibleChild(), getAccessibleAtPoint(), getAccessibleChild(), getAccessibleChildCount(), getAccessibleContext(), getAccessibleDescription(), getAccessibleIndexInParent(), getAccessibleName(), getAccessibleParent(), getAccessibleRelationSet(), getAccessibleRole(), getAccessibleStateSet(), getBackground(), getBounds(), getForeground(), getLocale(), getLocation(), getLocationOnScreen(), getSelectedAccessibleChild(), getSelectedAccessibleChildCount(), getSize(), grabFocus(), isAccessibleChildSelected(), removeAccessibleEventListener(), selectAccessibleChild(), and selectAllAccessibleChildren().
|
private |
Definition at line 114 of file thumbnailviewacc.hxx.
Referenced by disposing(), getAccessibleAtPoint(), getAccessibleChildCount(), getAccessibleName(), getAccessibleParent(), getBounds(), getItem(), getItemCount(), getSelectedAccessibleChild(), getSelectedAccessibleChildCount(), grabFocus(), isAccessibleChildSelected(), selectAccessibleChild(), and ThrowIfDisposed().
|
private |
Definition at line 113 of file thumbnailviewacc.hxx.
Referenced by addAccessibleEventListener(), disposing(), FireAccessibleEvent(), HasAccessibleListeners(), and removeAccessibleEventListener().