LibreOffice Module sd (master) 1
|
This class makes the Impress outline view accessible. More...
#include <AccessibleOutlineView.hxx>
Public Member Functions | |
AccessibleOutlineView (::sd::Window *pSdWindow, ::sd::OutlineViewShell *pViewShell, const css::uno::Reference< css::frame::XController > &rxController, const css::uno::Reference< css::accessibility::XAccessible > &rxParent) | |
virtual | ~AccessibleOutlineView () override |
virtual void | Init () override |
Complete the initialization begun in the constructor. More... | |
virtual void | ViewForwarderChanged () override |
A view forwarder change is signalled for instance when any of the window events is received. More... | |
virtual sal_Int64 SAL_CALL | getAccessibleChildCount () override |
This implementation returns either 1 or 0 depending on whether there is an active accessible OLE object or not. More... | |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessibleChild (sal_Int64 nIndex) override |
This implementation either returns the active accessible OLE object if it exists and the given index is 0 or throws an exception. More... | |
virtual OUString SAL_CALL | getAccessibleName () 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 OUString SAL_CALL | getImplementationName () override |
Returns an identifier for the implementation of this object. More... | |
virtual void SAL_CALL | propertyChange (const css::beans::PropertyChangeEvent &rEventObject) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &rEventObject) override |
virtual void SAL_CALL | disposing () override |
![]() | |
AccessibleDocumentViewBase (::sd::Window *pSdWindow, ::sd::ViewShell *pViewShell, css::uno::Reference< css::frame::XController > xController, const css::uno::Reference< css::accessibility::XAccessible > &rxParent) | |
Create a new object. More... | |
virtual | ~AccessibleDocumentViewBase () override |
virtual void | Init () |
Initialize a new object. More... | |
DECL_LINK (WindowChildEventListener, VclWindowEvent &, void) | |
Define callback for listening to window child events of VCL. More... | |
virtual void | ViewForwarderChanged () override |
A view forwarder change is signalled for instance when any of the window events is received. More... | |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessibleParent () override |
virtual sal_Int64 SAL_CALL | getAccessibleChildCount () override |
This implementation returns either 1 or 0 depending on whether there is an active accessible OLE object or not. More... | |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessibleChild (sal_Int64 nIndex) override |
This implementation either returns the active accessible OLE object if it exists and the given index is 0 or throws an exception. More... | |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessibleAtPoint (const css::awt::Point &aPoint) override |
Iterate over all children and test whether the specified point lies within one of their bounding boxes. More... | |
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 css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) override |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
virtual OUString SAL_CALL | getImplementationName () override |
Returns an identifier for the implementation of this object. More... | |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &rEventObject) override |
virtual void SAL_CALL | propertyChange (const css::beans::PropertyChangeEvent &rEventObject) override |
virtual void SAL_CALL | windowResized (const css::awt::WindowEvent &e) override |
virtual void SAL_CALL | windowMoved (const css::awt::WindowEvent &e) override |
virtual void SAL_CALL | windowShown (const css::lang::EventObject &e) override |
virtual void SAL_CALL | windowHidden (const css::lang::EventObject &e) override |
virtual void SAL_CALL | focusGained (const css::awt::FocusEvent &e) override |
virtual void SAL_CALL | focusLost (const css::awt::FocusEvent &e) override |
virtual css::uno::Any SAL_CALL | getExtendedAttributes () override |
void | SwitchViewActivated () |
virtual sal_Int32 SAL_CALL | getForeground () override |
virtual sal_Int32 SAL_CALL | getBackground () override |
virtual void | impl_dispose () |
![]() | |
AccessibleContextBase (css::uno::Reference< css::accessibility::XAccessible > xParent, const sal_Int16 aRole) | |
virtual | ~AccessibleContextBase () override |
void | CommitChange (sal_Int16 aEventId, const css::uno::Any &rNewValue, const css::uno::Any &rOldValue, sal_Int32 nValueIndex) |
void | SetAccessibleDescription (const OUString &rsDescription, StringOrigin eDescriptionOrigin) |
void | SetAccessibleName (const OUString &rsName, StringOrigin eNameOrigin) |
virtual bool | SetState (sal_Int64 aState) |
virtual bool | ResetState (sal_Int64 aState) |
bool | GetState (sal_Int64 aState) |
void | SetRelationSet (const css::uno::Reference< css::accessibility::XAccessibleRelationSet > &rxRelationSet) |
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL | getAccessibleContext () 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 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 OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &sServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
bool | IsDisposed () const |
![]() | |
AccessibleComponentBase () | |
virtual | ~AccessibleComponentBase () |
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 css::uno::Reference< css::awt::XFont > SAL_CALL | getFont () override |
virtual OUString SAL_CALL | getTitledBorderText () override |
virtual OUString SAL_CALL | getToolTipText () override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () |
![]() | |
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 |
AccessibleSelectionBase () | |
virtual | ~AccessibleSelectionBase () |
virtual void | ViewForwarderChanged ()=0 |
Private Member Functions | |
virtual void | Activated () override |
This method is called when (after) the frame containing this document has been activated. More... | |
virtual void | Deactivated () override |
This method is called when (before or after?) the frame containing this document has been deactivated. More... | |
AccessibleOutlineView (const AccessibleOutlineView &) | |
AccessibleOutlineView & | operator= (const AccessibleOutlineView &) |
virtual void SAL_CALL | disposing () override |
virtual OUString | CreateAccessibleName () override |
Create an accessible name that contains the current view mode. More... | |
void | UpdateChildren () |
Invalidate text helper, updates visible children. More... | |
Private Attributes | |
AccessibleTextHelper | maTextHelper |
Additional Inherited Members | |
![]() | |
enum | StringOrigin |
![]() | |
::sd::ViewShell * | mpViewShell |
![]() | |
ManuallySet | |
FromShape | |
AutomaticallyCreated | |
NotSet | |
![]() | |
virtual void SAL_CALL | disposing () override |
virtual OUString | CreateAccessibleName () override |
Create a name string. More... | |
virtual void | Activated () |
This method is called when (after) the frame containing this document has been activated. More... | |
virtual void | Deactivated () |
This method is called when (before or after?) the frame containing this document has been deactivated. More... | |
void | SetAccessibleOLEObject (const css::uno::Reference< css::accessibility::XAccessible > &xOLEObject) |
Set or remove the currently active accessible OLE object. More... | |
![]() | |
virtual void SAL_CALL | disposing () override |
virtual OUString | CreateAccessibleName () |
void | FireEvent (const css::accessibility::AccessibleEventObject &aEvent) |
void | ThrowIfDisposed () |
void | SetAccessibleRole (sal_Int16 _nRole) |
virtual ::osl::Mutex & | implGetMutex ()=0 |
![]() | |
~IAccessibleViewForwarderListener () | |
![]() | |
css::uno::Reference< css::awt::XWindow > | mxWindow |
The API window that is made accessible. More... | |
css::uno::Reference< css::frame::XController > | mxController |
The controller of the window in which this view is displayed. More... | |
css::uno::Reference< css::frame::XModel > | mxModel |
Model of the document. More... | |
AccessibleShapeTreeInfo | maShapeTreeInfo |
AccessibleViewForwarder | maViewForwarder |
The view forwarder passed to the children manager. More... | |
css::uno::Reference< css::accessibility::XAccessible > | mxAccessibleOLEObject |
Accessible OLE object. More... | |
Link< VclWindowEvent &, void > | maWindowLink |
![]() | |
sal_Int64 | mnStateSet |
css::uno::Reference< css::accessibility::XAccessibleRelationSet > | mxRelationSet |
This class makes the Impress outline view accessible.
Please see the documentation of the base class for further explanations of the individual methods. This class is a mere wrapper around the AccessibleTextHelper class; as basically the Outline View is a big Outliner.
Definition at line 36 of file AccessibleOutlineView.hxx.
accessibility::AccessibleOutlineView::AccessibleOutlineView | ( | ::sd::Window * | pSdWindow, |
::sd::OutlineViewShell * | pViewShell, | ||
const css::uno::Reference< css::frame::XController > & | rxController, | ||
const css::uno::Reference< css::accessibility::XAccessible > & | rxParent | ||
) |
|
overridevirtual |
Definition at line 75 of file AccessibleOutlineView.cxx.
|
private |
|
overrideprivatevirtual |
This method is called when (after) the frame containing this document has been activated.
Can be used to send FOCUSED state changes for the currently selected element.
Note: Currently used as a substitute for FocusGained. Should be renamed in the future.
Reimplemented from accessibility::AccessibleDocumentViewBase.
Definition at line 170 of file AccessibleOutlineView.cxx.
|
overridevirtual |
Reimplemented from accessibility::AccessibleContextBase.
Definition at line 142 of file AccessibleOutlineView.cxx.
|
overrideprivatevirtual |
Create an accessible name that contains the current view mode.
Create a name for this view.
Reimplemented from accessibility::AccessibleDocumentViewBase.
Definition at line 223 of file AccessibleOutlineView.cxx.
References SdResId().
|
overrideprivatevirtual |
This method is called when (before or after?) the frame containing this document has been deactivated.
Can be used to send FOCUSED state changes for the currently selected element.
Note: Currently used as a substitute for FocusLost. Should be renamed in the future.
Reimplemented from accessibility::AccessibleDocumentViewBase.
Definition at line 178 of file AccessibleOutlineView.cxx.
|
overridevirtual |
Reimplemented from accessibility::AccessibleDocumentViewBase.
Definition at line 270 of file AccessibleDocumentViewBase.cxx.
|
overrideprivatevirtual |
Reimplemented from accessibility::AccessibleDocumentViewBase.
Definition at line 186 of file AccessibleOutlineView.cxx.
|
overridevirtual |
Reimplemented from accessibility::AccessibleDocumentViewBase.
|
overridevirtual |
This implementation either returns the active accessible OLE object if it exists and the given index is 0 or throws an exception.
Reimplemented from accessibility::AccessibleDocumentViewBase.
Definition at line 106 of file AccessibleOutlineView.cxx.
References nIndex.
|
overridevirtual |
This implementation returns either 1 or 0 depending on whether there is an active accessible OLE object or not.
Reimplemented from accessibility::AccessibleDocumentViewBase.
Definition at line 97 of file AccessibleOutlineView.cxx.
|
overridevirtual |
Reimplemented from accessibility::AccessibleContextBase.
Definition at line 114 of file AccessibleOutlineView.cxx.
References sd::View::GetDoc(), SdDrawDocument::getDocAccTitle(), sd::View::GetDocSh(), SfxObjectShell::GetTitle(), SdResId(), SFX_TITLE_APINAME, and sName.
|
overridevirtual |
Returns an identifier for the implementation of this object.
Reimplemented from accessibility::AccessibleDocumentViewBase.
Definition at line 161 of file AccessibleOutlineView.cxx.
|
overridevirtual |
Complete the initialization begun in the constructor.
Reimplemented from accessibility::AccessibleDocumentViewBase.
Definition at line 79 of file AccessibleOutlineView.cxx.
|
private |
|
overridevirtual |
Reimplemented from accessibility::AccessibleDocumentViewBase.
Definition at line 197 of file AccessibleOutlineView.cxx.
References SAL_INFO.
|
overridevirtual |
Reimplemented from accessibility::AccessibleContextBase.
Definition at line 150 of file AccessibleOutlineView.cxx.
|
private |
Invalidate text helper, updates visible children.
Definition at line 228 of file AccessibleOutlineView.cxx.
|
overridevirtual |
A view forwarder change is signalled for instance when any of the window events is received.
Thus, instead of overriding the four windowResized... methods it will be sufficient in most cases just to override this method.
Reimplemented from accessibility::AccessibleDocumentViewBase.
Definition at line 87 of file AccessibleOutlineView.cxx.
|
private |
Definition at line 113 of file AccessibleOutlineView.hxx.