LibreOffice Module sd (master) 1
|
This class makes the SlideSorterViewShell accessible. More...
#include <AccessibleSlideSorterView.hxx>
Classes | |
class | Implementation |
Inner implementation class of the AccessibleSlideSorterView. More... | |
Public Member Functions | |
AccessibleSlideSorterView (::sd::slidesorter::SlideSorter &rSlideSorter, vcl::Window *pParentWindow) | |
void | Init () |
virtual | ~AccessibleSlideSorterView () override |
void | Destroyed () |
This method acts like a dispose call. More... | |
void | FireAccessibleEvent (short nEventId, const css::uno::Any &rOldValue, const css::uno::Any &rNewValue) |
virtual void SAL_CALL | disposing () override |
AccessibleSlideSorterObject * | GetAccessibleChildImplementation (sal_Int32 nIndex) |
Return the implementation object of the specified child. More... | |
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 |
Return the number of currently visible children. More... | |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessibleChild (sal_Int64 nIndex) override |
Return the specified child or throw exception. More... | |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessibleParent () override |
Return a reference to the parent. More... | |
virtual sal_Int64 SAL_CALL | getAccessibleIndexInParent () override |
Return this objects index among the parents children. More... | |
virtual sal_Int16 SAL_CALL | getAccessibleRole () override |
Return this object's role. More... | |
virtual OUString SAL_CALL | getAccessibleDescription () override |
Return this object's description. More... | |
virtual OUString SAL_CALL | getAccessibleName () override |
Return the object's current name. More... | |
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL | getAccessibleRelationSet () override |
Return NULL to indicate that an empty relation set. More... | |
virtual sal_Int64 SAL_CALL | getAccessibleStateSet () override |
Return the set of current states. More... | |
virtual css::lang::Locale SAL_CALL | getLocale () override |
Return the parents locale or throw exception if this object has no parent yet/anymore. More... | |
virtual sal_Bool SAL_CALL | containsPoint (const css::awt::Point &aPoint) override |
The default implementation uses the result of <member>getBounds</member> to determine whether the given point lies inside this object. More... | |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessibleAtPoint (const css::awt::Point &aPoint) override |
The default implementation returns an empty reference. More... | |
virtual css::awt::Rectangle SAL_CALL | getBounds () override |
The default implementation returns an empty rectangle. More... | |
virtual css::awt::Point SAL_CALL | getLocation () override |
The default implementation uses the result of <member>getBounds</member> to determine the location. More... | |
virtual css::awt::Point SAL_CALL | getLocationOnScreen () override |
The default implementation returns an empty position, i.e. More... | |
virtual css::awt::Size SAL_CALL | getSize () override |
The default implementation uses the result of <member>getBounds</member> to determine the size. More... | |
virtual void SAL_CALL | grabFocus () override |
The default implementation does nothing. More... | |
virtual sal_Int32 SAL_CALL | getForeground () override |
Returns black as the default foreground color. More... | |
virtual sal_Int32 SAL_CALL | getBackground () override |
Returns white as the default background color. More... | |
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 |
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... | |
void | SwitchViewActivated () |
Private Member Functions | |
void | ThrowIfDisposed () |
Check whether or not the object has been disposed (or is in the state of being disposed). More... | |
Private Attributes | |
::std::unique_ptr< Implementation > | mpImpl |
::sd::slidesorter::SlideSorter & | mrSlideSorter |
sal_uInt32 | mnClientId |
VclPtr< vcl::Window > | mpContentWindow |
Additional Inherited Members | |
Protected Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
This class makes the SlideSorterViewShell accessible.
It uses objects of the AccessibleSlideSorterObject class to the make the page objects accessible.
Definition at line 54 of file AccessibleSlideSorterView.hxx.
accessibility::AccessibleSlideSorterView::AccessibleSlideSorterView | ( | ::sd::slidesorter::SlideSorter & | rSlideSorter, |
vcl::Window * | pParentWindow | ||
) |
Definition at line 113 of file AccessibleSlideSorterView.cxx.
References m_aMutex.
|
overridevirtual |
Definition at line 128 of file AccessibleSlideSorterView.cxx.
References Destroyed().
|
overridevirtual |
Definition at line 320 of file AccessibleSlideSorterView.cxx.
References comphelper::AccessibleEventNotifier::addEventListener(), cppu::BaseMutex::m_aMutex, mnClientId, comphelper::AccessibleEventNotifier::registerClient(), and x.
|
overridevirtual |
|
overridevirtual |
The default implementation uses the result of <member>getBounds</member> to determine whether the given point lies inside this object.
Definition at line 368 of file AccessibleSlideSorterView.cxx.
References getBounds(), and ThrowIfDisposed().
|
overridevirtual |
Definition at line 585 of file AccessibleSlideSorterView.cxx.
References sd::slidesorter::controller::PageSelector::DeselectPage(), getAccessibleChildCount(), sd::slidesorter::SlideSorter::GetController(), accessibility::AccessibleSlideSorterObject::GetPageNumber(), sd::slidesorter::controller::SlideSorterController::GetPageSelector(), mpImpl, mrSlideSorter, and ThrowIfDisposed().
void accessibility::AccessibleSlideSorterView::Destroyed | ( | ) |
This method acts like a dispose call.
It sends a disposing to all of its listeners. It may be called twice.
Definition at line 173 of file AccessibleSlideSorterView.cxx.
References cppu::BaseMutex::m_aMutex, mnClientId, and comphelper::AccessibleEventNotifier::revokeClientNotifyDisposing().
Referenced by ~AccessibleSlideSorterView().
|
overridevirtual |
Definition at line 151 of file AccessibleSlideSorterView.cxx.
References mnClientId, mpImpl, and comphelper::AccessibleEventNotifier::revokeClientNotifyDisposing().
void accessibility::AccessibleSlideSorterView::FireAccessibleEvent | ( | short | nEventId, |
const css::uno::Any & | rOldValue, | ||
const css::uno::Any & | rNewValue | ||
) |
Definition at line 133 of file AccessibleSlideSorterView.cxx.
References comphelper::AccessibleEventNotifier::addEvent(), and mnClientId.
Referenced by SwitchViewActivated().
|
overridevirtual |
The default implementation returns an empty reference.
Definition at line 379 of file AccessibleSlideSorterView.cxx.
References sd::slidesorter::SlideSorter::GetController(), sd::slidesorter::controller::SlideSorterController::GetPageAt(), mpImpl, mrSlideSorter, and ThrowIfDisposed().
|
overridevirtual |
Return the specified child or throw exception.
Definition at line 204 of file AccessibleSlideSorterView.cxx.
References cppu::BaseMutex::m_aMutex, mpImpl, nIndex, and ThrowIfDisposed().
|
overridevirtual |
Return the number of currently visible children.
Definition at line 196 of file AccessibleSlideSorterView.cxx.
References cppu::BaseMutex::m_aMutex, mpImpl, and ThrowIfDisposed().
Referenced by deselectAccessibleChild(), isAccessibleChildSelected(), and selectAccessibleChild().
AccessibleSlideSorterObject * accessibility::AccessibleSlideSorterView::GetAccessibleChildImplementation | ( | sal_Int32 | nIndex | ) |
Return the implementation object of the specified child.
nIndex | Index of the child for which to return the implementation object. |
Definition at line 161 of file AccessibleSlideSorterView.cxx.
References cppu::BaseMutex::m_aMutex, mpImpl, and nIndex.
Referenced by sd::slidesorter::controller::SlideSorterController::PageNameHasChanged().
|
overridevirtual |
Definition at line 188 of file AccessibleSlideSorterView.cxx.
References ThrowIfDisposed().
Referenced by getAccessibleIndexInParent().
|
overridevirtual |
Return this object's description.
Definition at line 260 of file AccessibleSlideSorterView.cxx.
References SdResId(), and ThrowIfDisposed().
|
overridevirtual |
Return this objects index among the parents children.
Definition at line 231 of file AccessibleSlideSorterView.cxx.
References getAccessibleContext(), getAccessibleParent(), i, and ThrowIfDisposed().
|
overridevirtual |
Return the object's current name.
Definition at line 268 of file AccessibleSlideSorterView.cxx.
References SdResId(), and ThrowIfDisposed().
|
overridevirtual |
Return a reference to the parent.
Definition at line 215 of file AccessibleSlideSorterView.cxx.
References vcl::Window::GetAccessible(), mpContentWindow, and ThrowIfDisposed().
Referenced by getAccessibleIndexInParent(), getLocale(), and getLocationOnScreen().
|
overridevirtual |
Return NULL to indicate that an empty relation set.
Definition at line 277 of file AccessibleSlideSorterView.cxx.
|
overridevirtual |
Return this object's role.
Definition at line 254 of file AccessibleSlideSorterView.cxx.
References ThrowIfDisposed().
|
overridevirtual |
Return the set of current states.
Definition at line 282 of file AccessibleSlideSorterView.cxx.
References mpContentWindow, ThrowIfDisposed(), and VISIBLE.
|
overridevirtual |
Returns white as the default background color.
Definition at line 487 of file AccessibleSlideSorterView.cxx.
References Application::GetSettings(), AllSettings::GetStyleSettings(), StyleSettings::GetWindowColor(), and ThrowIfDisposed().
|
overridevirtual |
The default implementation returns an empty rectangle.
Definition at line 395 of file AccessibleSlideSorterView.cxx.
References Size::Height(), mpContentWindow, ThrowIfDisposed(), Size::Width(), Point::X(), and Point::Y().
Referenced by containsPoint().
|
overridevirtual |
Returns black as the default foreground color.
Definition at line 479 of file AccessibleSlideSorterView.cxx.
References svtools::FONTCOLOR, svtools::ColorConfig::GetColorValue(), svtools::ColorConfigValue::nColor, and ThrowIfDisposed().
|
overridevirtual |
Returns an identifier for the implementation of this object.
Definition at line 602 of file AccessibleSlideSorterView.cxx.
|
overridevirtual |
Return the parents locale or throw exception if this object has no parent yet/anymore.
Definition at line 305 of file AccessibleSlideSorterView.cxx.
References getAccessibleParent(), AllSettings::GetLanguageTag(), LanguageTag::getLocale(), Application::GetSettings(), and ThrowIfDisposed().
|
overridevirtual |
The default implementation uses the result of <member>getBounds</member> to determine the location.
Definition at line 415 of file AccessibleSlideSorterView.cxx.
References mpContentWindow, ThrowIfDisposed(), Point::X(), and Point::Y().
Referenced by getLocationOnScreen().
|
overridevirtual |
The default implementation returns an empty position, i.e.
Calculate the location on screen from the parent's location on screen and our own relative location.
the result of the default constructor of <type>css::awt::Point</type>.
Definition at line 433 of file AccessibleSlideSorterView.cxx.
References getAccessibleParent(), getLocation(), and ThrowIfDisposed().
|
overridevirtual |
Definition at line 554 of file AccessibleSlideSorterView.cxx.
References sd::slidesorter::SlideSorter::GetController(), sd::slidesorter::controller::PageSelector::GetPageCount(), sd::slidesorter::controller::SlideSorterController::GetPageSelector(), getSelectedAccessibleChildCount(), i, sd::slidesorter::controller::PageSelector::IsPageSelected(), mpImpl, mrSlideSorter, and ThrowIfDisposed().
|
overridevirtual |
Definition at line 546 of file AccessibleSlideSorterView.cxx.
References sd::slidesorter::SlideSorter::GetController(), sd::slidesorter::controller::SlideSorterController::GetPageSelector(), sd::slidesorter::controller::PageSelector::GetSelectedPageCount(), mrSlideSorter, and ThrowIfDisposed().
Referenced by getSelectedAccessibleChild().
|
overridevirtual |
The default implementation uses the result of <member>getBounds</member> to determine the size.
Definition at line 455 of file AccessibleSlideSorterView.cxx.
References Size::Height(), mpContentWindow, ThrowIfDisposed(), and Size::Width().
|
overridevirtual |
Returns a list of all supported services.
Definition at line 613 of file AccessibleSlideSorterView.cxx.
References ThrowIfDisposed().
|
overridevirtual |
The default implementation does nothing.
Definition at line 470 of file AccessibleSlideSorterView.cxx.
References mpContentWindow, and ThrowIfDisposed().
void accessibility::AccessibleSlideSorterView::Init | ( | void | ) |
Definition at line 123 of file AccessibleSlideSorterView.cxx.
References mpContentWindow, mpImpl, and mrSlideSorter.
|
overridevirtual |
Definition at line 511 of file AccessibleSlideSorterView.cxx.
References getAccessibleChildCount(), sd::slidesorter::SlideSorter::GetController(), accessibility::AccessibleSlideSorterObject::GetPageNumber(), sd::slidesorter::controller::SlideSorterController::GetPageSelector(), sd::slidesorter::controller::PageSelector::IsPageSelected(), mpImpl, mrSlideSorter, and ThrowIfDisposed().
|
overridevirtual |
Definition at line 341 of file AccessibleSlideSorterView.cxx.
References cppu::BaseMutex::m_aMutex, mnClientId, comphelper::AccessibleEventNotifier::removeEventListener(), comphelper::AccessibleEventNotifier::revokeClient(), and ThrowIfDisposed().
|
overridevirtual |
Definition at line 496 of file AccessibleSlideSorterView.cxx.
References getAccessibleChildCount(), sd::slidesorter::SlideSorter::GetController(), accessibility::AccessibleSlideSorterObject::GetPageNumber(), sd::slidesorter::controller::SlideSorterController::GetPageSelector(), mpImpl, mrSlideSorter, sd::slidesorter::controller::PageSelector::SelectPage(), and ThrowIfDisposed().
|
overridevirtual |
|
overridevirtual |
Return whether the specified service is supported by this class.
Definition at line 607 of file AccessibleSlideSorterView.cxx.
References sServiceName, and cppu::supportsService().
void accessibility::AccessibleSlideSorterView::SwitchViewActivated | ( | ) |
Definition at line 853 of file AccessibleSlideSorterView.cxx.
References Any, FireAccessibleEvent(), and mpImpl.
Referenced by sd::slidesorter::SlideSorterViewShell::SwitchViewFireFocus().
|
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 624 of file AccessibleSlideSorterView.cxx.
References SAL_WARN.
Referenced by clearAccessibleSelection(), containsPoint(), deselectAccessibleChild(), getAccessibleAtPoint(), getAccessibleChild(), getAccessibleChildCount(), getAccessibleContext(), getAccessibleDescription(), getAccessibleIndexInParent(), getAccessibleName(), getAccessibleParent(), getAccessibleRole(), getAccessibleStateSet(), getBackground(), getBounds(), getForeground(), getLocale(), getLocation(), getLocationOnScreen(), getSelectedAccessibleChild(), getSelectedAccessibleChildCount(), getSize(), getSupportedServiceNames(), grabFocus(), isAccessibleChildSelected(), removeAccessibleEventListener(), selectAccessibleChild(), and selectAllAccessibleChildren().
|
private |
Definition at line 237 of file AccessibleSlideSorterView.hxx.
Referenced by addAccessibleEventListener(), Destroyed(), disposing(), FireAccessibleEvent(), and removeAccessibleEventListener().
|
private |
Definition at line 239 of file AccessibleSlideSorterView.hxx.
Referenced by getAccessibleParent(), getAccessibleStateSet(), getBounds(), getLocation(), getSize(), grabFocus(), and Init().
|
private |
Definition at line 233 of file AccessibleSlideSorterView.hxx.
Referenced by deselectAccessibleChild(), disposing(), getAccessibleAtPoint(), getAccessibleChild(), getAccessibleChildCount(), GetAccessibleChildImplementation(), getSelectedAccessibleChild(), Init(), isAccessibleChildSelected(), selectAccessibleChild(), and SwitchViewActivated().
|
private |
Definition at line 235 of file AccessibleSlideSorterView.hxx.
Referenced by accessibility::AccessibleSlideSorterView::Implementation::Activated(), clearAccessibleSelection(), accessibility::AccessibleSlideSorterView::Implementation::ConnectListeners(), deselectAccessibleChild(), getAccessibleAtPoint(), accessibility::AccessibleSlideSorterView::Implementation::GetAccessibleChild(), getSelectedAccessibleChild(), getSelectedAccessibleChildCount(), accessibility::IMPL_LINK_NOARG(), Init(), isAccessibleChildSelected(), accessibility::AccessibleSlideSorterView::Implementation::ReleaseListeners(), selectAccessibleChild(), selectAllAccessibleChildren(), and accessibility::AccessibleSlideSorterView::Implementation::UpdateChildren().