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

This class makes the SlideSorterViewShell accessible. More...

#include <AccessibleSlideSorterView.hxx>

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

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
 
AccessibleSlideSorterObjectGetAccessibleChildImplementation (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< ImplementationmpImpl
 
::sd::slidesorter::SlideSortermrSlideSorter
 
sal_uInt32 mnClientId
 
VclPtr< vcl::WindowmpContentWindow
 

Additional Inherited Members

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ AccessibleSlideSorterView()

accessibility::AccessibleSlideSorterView::AccessibleSlideSorterView ( ::sd::slidesorter::SlideSorter rSlideSorter,
vcl::Window pParentWindow 
)

Definition at line 113 of file AccessibleSlideSorterView.cxx.

References m_aMutex.

◆ ~AccessibleSlideSorterView()

accessibility::AccessibleSlideSorterView::~AccessibleSlideSorterView ( )
overridevirtual

Definition at line 128 of file AccessibleSlideSorterView.cxx.

References Destroyed().

Member Function Documentation

◆ addAccessibleEventListener()

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

◆ clearAccessibleSelection()

void SAL_CALL accessibility::AccessibleSlideSorterView::clearAccessibleSelection ( )
overridevirtual

◆ containsPoint()

sal_Bool SAL_CALL accessibility::AccessibleSlideSorterView::containsPoint ( const css::awt::Point &  aPoint)
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().

◆ deselectAccessibleChild()

void SAL_CALL accessibility::AccessibleSlideSorterView::deselectAccessibleChild ( sal_Int64  nSelectedChildIndex)
overridevirtual

◆ Destroyed()

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().

◆ disposing()

void SAL_CALL accessibility::AccessibleSlideSorterView::disposing ( )
overridevirtual

◆ FireAccessibleEvent()

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

◆ getAccessibleAtPoint()

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

◆ getAccessibleChild()

Reference< XAccessible > SAL_CALL accessibility::AccessibleSlideSorterView::getAccessibleChild ( sal_Int64  nIndex)
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().

◆ getAccessibleChildCount()

sal_Int64 SAL_CALL accessibility::AccessibleSlideSorterView::getAccessibleChildCount ( )
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().

◆ GetAccessibleChildImplementation()

AccessibleSlideSorterObject * accessibility::AccessibleSlideSorterView::GetAccessibleChildImplementation ( sal_Int32  nIndex)

Return the implementation object of the specified child.

Parameters
nIndexIndex 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().

◆ getAccessibleContext()

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

Definition at line 188 of file AccessibleSlideSorterView.cxx.

References ThrowIfDisposed().

Referenced by getAccessibleIndexInParent().

◆ getAccessibleDescription()

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

Return this object's description.

Definition at line 260 of file AccessibleSlideSorterView.cxx.

References SdResId(), and ThrowIfDisposed().

◆ getAccessibleIndexInParent()

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

Return this objects index among the parents children.

Definition at line 231 of file AccessibleSlideSorterView.cxx.

References getAccessibleContext(), getAccessibleParent(), i, and ThrowIfDisposed().

◆ getAccessibleName()

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

Return the object's current name.

Definition at line 268 of file AccessibleSlideSorterView.cxx.

References SdResId(), and ThrowIfDisposed().

◆ getAccessibleParent()

Reference< XAccessible > SAL_CALL accessibility::AccessibleSlideSorterView::getAccessibleParent ( )
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().

◆ getAccessibleRelationSet()

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

Return NULL to indicate that an empty relation set.

Definition at line 277 of file AccessibleSlideSorterView.cxx.

◆ getAccessibleRole()

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

Return this object's role.

Definition at line 254 of file AccessibleSlideSorterView.cxx.

References ThrowIfDisposed().

◆ getAccessibleStateSet()

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

Return the set of current states.

Definition at line 282 of file AccessibleSlideSorterView.cxx.

References mpContentWindow, ThrowIfDisposed(), and VISIBLE.

◆ getBackground()

sal_Int32 SAL_CALL accessibility::AccessibleSlideSorterView::getBackground ( )
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().

◆ getBounds()

awt::Rectangle SAL_CALL accessibility::AccessibleSlideSorterView::getBounds ( )
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().

◆ getForeground()

sal_Int32 SAL_CALL accessibility::AccessibleSlideSorterView::getForeground ( )
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().

◆ getImplementationName()

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

Returns an identifier for the implementation of this object.

Definition at line 602 of file AccessibleSlideSorterView.cxx.

◆ getLocale()

lang::Locale SAL_CALL accessibility::AccessibleSlideSorterView::getLocale ( )
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().

◆ getLocation()

awt::Point SAL_CALL accessibility::AccessibleSlideSorterView::getLocation ( )
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().

◆ getLocationOnScreen()

awt::Point SAL_CALL accessibility::AccessibleSlideSorterView::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().

◆ getSelectedAccessibleChild()

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

◆ getSelectedAccessibleChildCount()

sal_Int64 SAL_CALL accessibility::AccessibleSlideSorterView::getSelectedAccessibleChildCount ( )
overridevirtual

◆ getSize()

awt::Size SAL_CALL accessibility::AccessibleSlideSorterView::getSize ( )
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().

◆ getSupportedServiceNames()

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

Returns a list of all supported services.

Definition at line 613 of file AccessibleSlideSorterView.cxx.

References ThrowIfDisposed().

◆ grabFocus()

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

The default implementation does nothing.

Definition at line 470 of file AccessibleSlideSorterView.cxx.

References mpContentWindow, and ThrowIfDisposed().

◆ Init()

void accessibility::AccessibleSlideSorterView::Init ( void  )

Definition at line 123 of file AccessibleSlideSorterView.cxx.

References mpContentWindow, mpImpl, and mrSlideSorter.

◆ isAccessibleChildSelected()

sal_Bool SAL_CALL accessibility::AccessibleSlideSorterView::isAccessibleChildSelected ( sal_Int64  nChildIndex)
overridevirtual

◆ removeAccessibleEventListener()

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

◆ selectAccessibleChild()

void SAL_CALL accessibility::AccessibleSlideSorterView::selectAccessibleChild ( sal_Int64  nChildIndex)
overridevirtual

◆ selectAllAccessibleChildren()

void SAL_CALL accessibility::AccessibleSlideSorterView::selectAllAccessibleChildren ( )
overridevirtual

◆ supportsService()

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

Return whether the specified service is supported by this class.

Definition at line 607 of file AccessibleSlideSorterView.cxx.

References sServiceName, and cppu::supportsService().

◆ SwitchViewActivated()

void accessibility::AccessibleSlideSorterView::SwitchViewActivated ( )

◆ ThrowIfDisposed()

void accessibility::AccessibleSlideSorterView::ThrowIfDisposed ( )
private

Member Data Documentation

◆ mnClientId

sal_uInt32 accessibility::AccessibleSlideSorterView::mnClientId
private

◆ mpContentWindow

VclPtr<vcl::Window> accessibility::AccessibleSlideSorterView::mpContentWindow
private

◆ mpImpl

::std::unique_ptr<Implementation> accessibility::AccessibleSlideSorterView::mpImpl
private

◆ mrSlideSorter

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

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