LibreOffice Module svx (master) 1
|
#include <GraphCtlAccessibleContext.hxx>
Public Member Functions | |
SvxGraphCtrlAccessibleContext (GraphCtrl &rRepresentation) | |
initialize this component and set default values More... | |
void | Notify (SfxBroadcaster &aBC, const SfxHint &aHint) override |
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL | getAccessibleContext () override |
Return the XAccessibleContext. More... | |
virtual sal_Bool SAL_CALL | containsPoint (const css::awt::Point &rPoint) override |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessibleAtPoint (const css::awt::Point &rPoint) 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 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 |
Return empty reference to indicate that the relation set is not supported. More... | |
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 |
virtual OUString SAL_CALL | getServiceName () 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 |
virtual tools::Rectangle | GetVisibleArea () const override |
Returns the area of the underlying document that is visible in the corresponding window. More... | |
virtual Point | LogicToPixel (const Point &rPoint) const override |
Transform the specified point from internal coordinates in 100th of mm to an absolute screen position. More... | |
virtual Size | LogicToPixel (const Size &rSize) const override |
Transform the specified size from internal coordinates in 100th of mm to a screen oriented pixel size. More... | |
void | setModelAndView (SdrModel *pModel, SdrView *pView) |
This method is used by the graph control to tell the accessibility object about a new model and view. More... | |
Public Member Functions inherited from cppu::WeakAggComponentImplHelper7< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7 > | |
WeakAggComponentImplHelper7 (::osl::Mutex &rMutex) SAL_NOEXCEPT | |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) SAL_OVERRIDE |
virtual css::uno::Any SAL_CALL | queryAggregation (css::uno::Type const &rType) SAL_OVERRIDE |
virtual void SAL_CALL | acquire () SAL_NOEXCEPT SAL_OVERRIDE |
virtual void SAL_CALL | release () SAL_NOEXCEPT SAL_OVERRIDE |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () SAL_OVERRIDE |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () SAL_OVERRIDE |
Public Member Functions inherited from SfxListener | |
SfxListener () | |
SfxListener (const SfxListener &rCopy) | |
virtual | ~SfxListener () COVERITY_NOEXCEPT_FALSE |
void | StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected) |
void | EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false) |
void | EndListeningAll () |
bool | IsListening (SfxBroadcaster &rBroadcaster) const |
sal_uInt16 | GetBroadcasterCount () const |
SfxBroadcaster * | GetBroadcasterJOE (sal_uInt16 nNo) const |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) |
void | RemoveBroadcaster_Impl (SfxBroadcaster &rBC) |
virtual bool | IsSdrView () const |
Public Member Functions inherited from accessibility::IAccessibleViewForwarder | |
IAccessibleViewForwarder ()=default | |
IAccessibleViewForwarder (IAccessibleViewForwarder const &)=default | |
IAccessibleViewForwarder (IAccessibleViewForwarder &&)=default | |
IAccessibleViewForwarder & | operator= (IAccessibleViewForwarder const &)=default |
IAccessibleViewForwarder & | operator= (IAccessibleViewForwarder &&)=default |
virtual | ~IAccessibleViewForwarder () |
virtual tools::Rectangle | GetVisibleArea () const =0 |
Returns the area of the underlying document that is visible in the corresponding window. More... | |
virtual Point | LogicToPixel (const Point &rPoint) const =0 |
Transform the specified point from internal coordinates in 100th of mm to an absolute screen position. More... | |
virtual Size | LogicToPixel (const Size &rSize) const =0 |
Transform the specified size from internal coordinates in 100th of mm to a screen oriented pixel size. More... | |
Private Types | |
typedef ::std::map< const SdrObject *, rtl::Reference<::accessibility::AccessibleShape > > | ShapesMapType |
map of accessible shapes More... | |
Private Member Functions | |
virtual | ~SvxGraphCtrlAccessibleContext () override |
on destruction, this component is disposed and all dispose listeners are called, except if this component was already disposed More... | |
void | checkChildIndexOnSelection (sal_Int64 nIndexOfChild) |
virtual void SAL_CALL | disposing () final override |
SdrObject * | getSdrObject (sal_Int64 nIndex) |
returns the SdrObject at index nIndex from the model of this graph More... | |
void | CommitChange (sal_Int16 aEventId, const css::uno::Any &rNewValue, const css::uno::Any &rOldValue) |
sends an AccessibleEventObject to all added XAccessibleEventListeners More... | |
css::uno::Reference< css::accessibility::XAccessible > | getAccessible (const SdrObject *pObj) |
returns the XAccessible interface for a given SdrObject. More... | |
Private Attributes | |
::accessibility::AccessibleShapeTreeInfo | maTreeInfo |
OUString | msDescription |
Description of this object. More... | |
OUString | msName |
Name of this object. More... | |
ShapesMapType | mxShapes |
GraphCtrl * | mpControl |
SdrModel * | mpModel |
SdrPage * | mpPage |
SdrView * | mpView |
sal_uInt32 | mnClientId |
client id in the AccessibleEventNotifier queue More... | |
bool | mbDisposed |
Private Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Friends | |
class | GraphCtrl |
Definition at line 70 of file GraphCtlAccessibleContext.hxx.
|
private |
map of accessible shapes
Definition at line 173 of file GraphCtlAccessibleContext.hxx.
SvxGraphCtrlAccessibleContext::SvxGraphCtrlAccessibleContext | ( | GraphCtrl & | rRepresentation | ) |
initialize this component and set default values
Definition at line 57 of file GraphCtlAccessibleContext.cxx.
References weld::DrawingArea::get_ref_device(), weld::CustomWidgetController::GetDrawingArea(), OutputDevice::GetOwnerWindow(), SdrModel::GetPage(), GraphCtrl::GetSdrModel(), GraphCtrl::GetSdrView(), m_aMutex, maTreeInfo, mbDisposed, mpControl, mpModel, mpPage, mpPage, mpView, mpView, msDescription, msName, accessibility::AccessibleShapeTreeInfo::SetSdrView(), accessibility::AccessibleShapeTreeInfo::SetViewForwarder(), accessibility::AccessibleShapeTreeInfo::SetWindow(), and SvxResId().
|
overrideprivatevirtual |
on destruction, this component is disposed and all dispose listeners are called, except if this component was already disposed
Definition at line 100 of file GraphCtlAccessibleContext.cxx.
References disposing().
|
overridevirtual |
Definition at line 433 of file GraphCtlAccessibleContext.cxx.
References comphelper::AccessibleEventNotifier::addEventListener(), mnClientId, and comphelper::AccessibleEventNotifier::registerClient().
|
private |
css::lang::IndexOutOfBoundsException |
Definition at line 629 of file GraphCtlAccessibleContext.cxx.
References getSelectedAccessibleChildCount().
Referenced by deselectAccessibleChild(), and getSelectedAccessibleChild().
|
overridevirtual |
Definition at line 549 of file GraphCtlAccessibleContext.cxx.
References mpView, and SdrMarkView::UnmarkAllObj().
|
private |
sends an AccessibleEventObject to all added XAccessibleEventListeners
Definition at line 299 of file GraphCtlAccessibleContext.cxx.
References comphelper::AccessibleEventNotifier::addEvent(), aEvent, and mnClientId.
Referenced by getAccessible(), and Notify().
|
overridevirtual |
Definition at line 155 of file GraphCtlAccessibleContext.cxx.
References getSize().
|
overridevirtual |
Definition at line 600 of file GraphCtlAccessibleContext.cxx.
References checkChildIndexOnSelection(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), getSdrObject(), SdrPaintView::GetSdrPageView(), SdrMarkView::MarkObj(), mpView, nCount, nIndex, and SdrMarkView::UnmarkAllObj().
|
finaloverrideprivatevirtual |
Definition at line 665 of file GraphCtlAccessibleContext.cxx.
References mbDisposed, mnClientId, mpControl, mpPage, mpView, mxShapes, and comphelper::AccessibleEventNotifier::revokeClientNotifyDisposing().
Referenced by ~SvxGraphCtrlAccessibleContext().
|
private |
returns the XAccessible interface for a given SdrObject.
Multiple calls for the same SdrObject return the same XAccessible.
Definition at line 109 of file GraphCtlAccessibleContext.cxx.
References Any, CommitChange(), getAccessibleParent(), maTreeInfo, and mxShapes.
Referenced by getAccessibleAtPoint(), getAccessibleChild(), getSelectedAccessibleChild(), and Notify().
|
overridevirtual |
Definition at line 166 of file GraphCtlAccessibleContext.cxx.
References weld::DrawingArea::get_ref_device(), getAccessible(), weld::CustomWidgetController::GetDrawingArea(), SdrPaintView::GetSdrPageView(), cppu::BaseMutex::m_aMutex, mpControl, mpPage, mpView, OutputDevice::PixelToLogic(), and SdrObjListPrimitiveHit().
|
overridevirtual |
Definition at line 314 of file GraphCtlAccessibleContext.cxx.
References getAccessible(), getSdrObject(), and nIndex.
|
overridevirtual |
Definition at line 272 of file GraphCtlAccessibleContext.cxx.
References SdrObjList::GetObjCount(), and mpPage.
Referenced by isAccessibleChildSelected(), and selectAccessibleChild().
|
overridevirtual |
Return the XAccessibleContext.
Definition at line 149 of file GraphCtlAccessibleContext.cxx.
|
overridevirtual |
Definition at line 369 of file GraphCtlAccessibleContext.cxx.
References msDescription.
|
overridevirtual |
Definition at line 331 of file GraphCtlAccessibleContext.cxx.
References getAccessibleParent(), and i.
|
overridevirtual |
Definition at line 376 of file GraphCtlAccessibleContext.cxx.
References msName.
|
overridevirtual |
Definition at line 321 of file GraphCtlAccessibleContext.cxx.
References weld::DrawingArea::get_accessible_parent(), weld::CustomWidgetController::GetDrawingArea(), and mpControl.
Referenced by getAccessible(), getAccessibleIndexInParent(), getLocale(), and getLocationOnScreen().
|
overridevirtual |
Return empty reference to indicate that the relation set is not supported.
Definition at line 386 of file GraphCtlAccessibleContext.cxx.
|
overridevirtual |
Definition at line 363 of file GraphCtlAccessibleContext.cxx.
|
overridevirtual |
Definition at line 392 of file GraphCtlAccessibleContext.cxx.
References weld::CustomWidgetController::HasFocus(), mbDisposed, and mpControl.
|
overridevirtual |
Definition at line 481 of file GraphCtlAccessibleContext.cxx.
References Application::GetSettings(), AllSettings::GetStyleSettings(), and StyleSettings::GetWindowColor().
|
overridevirtual |
Definition at line 193 of file GraphCtlAccessibleContext.cxx.
References weld::CustomWidgetController::GetOutputSizePixel(), Size::Height(), mpControl, Size::Width(), Point::X(), and Point::Y().
Referenced by getLocation(), and getSize().
|
overridevirtual |
Definition at line 474 of file GraphCtlAccessibleContext.cxx.
References svtools::FONTCOLOR, svtools::ColorConfig::GetColorValue(), and svtools::ColorConfigValue::nColor.
|
overridevirtual |
Reimplemented from cppu::WeakAggComponentImplHelper7< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7 >.
Definition at line 506 of file GraphCtlAccessibleContext.cxx.
|
overridevirtual |
Definition at line 488 of file GraphCtlAccessibleContext.cxx.
|
overridevirtual |
Definition at line 416 of file GraphCtlAccessibleContext.cxx.
References getAccessibleParent().
|
overridevirtual |
Definition at line 212 of file GraphCtlAccessibleContext.cxx.
References getBounds(), and mpControl.
Referenced by getLocationOnScreen().
|
overridevirtual |
Definition at line 228 of file GraphCtlAccessibleContext.cxx.
References getAccessibleParent(), getLocation(), and mpControl.
|
private |
returns the SdrObject at index nIndex from the model of this graph
css::uno::RuntimeException | |
css::lang::IndexOutOfBoundsException |
Definition at line 284 of file GraphCtlAccessibleContext.cxx.
References SdrObjList::GetObj(), SdrObjList::GetObjCount(), o3tl::make_unsigned(), mpPage, and nIndex.
Referenced by deselectAccessibleChild(), getAccessibleChild(), isAccessibleChildSelected(), and selectAccessibleChild().
|
overridevirtual |
Definition at line 583 of file GraphCtlAccessibleContext.cxx.
References checkChildIndexOnSelection(), getAccessible(), SdrMarkList::GetMark(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), mpView, and nIndex.
|
overridevirtual |
Definition at line 571 of file GraphCtlAccessibleContext.cxx.
References SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), and mpView.
Referenced by checkChildIndexOnSelection().
|
overridevirtual |
Definition at line 512 of file GraphCtlAccessibleContext.cxx.
|
overridevirtual |
Definition at line 255 of file GraphCtlAccessibleContext.cxx.
References getBounds(), and mpControl.
Referenced by containsPoint().
|
overridevirtual |
Definition at line 498 of file GraphCtlAccessibleContext.cxx.
|
overridevirtual |
Returns the area of the underlying document that is visible in the corresponding window.
Implements accessibility::IAccessibleViewForwarder.
Definition at line 744 of file GraphCtlAccessibleContext.cxx.
References SdrPaintView::GetPaintWindow(), SdrPaintWindow::GetVisibleArea(), mpView, and SdrPaintView::PaintWindowCount().
|
overridevirtual |
Definition at line 464 of file GraphCtlAccessibleContext.cxx.
References weld::CustomWidgetController::GrabFocus(), and mpControl.
|
overridevirtual |
Definition at line 535 of file GraphCtlAccessibleContext.cxx.
References getAccessibleChildCount(), getSdrObject(), SdrMarkView::IsObjMarked(), mpView, and nIndex.
Transform the specified point from internal coordinates in 100th of mm to an absolute screen position.
rPoint | Point in internal coordinates (100th of mm). |
Implements accessibility::IAccessibleViewForwarder.
Definition at line 757 of file GraphCtlAccessibleContext.cxx.
References weld::DrawingArea::get_ref_device(), weld::CustomWidgetController::GetDrawingArea(), GraphCtrl::GetPositionInDialog(), OutputDevice::LogicToPixel(), and mpControl.
Transform the specified size from internal coordinates in 100th of mm to a screen oriented pixel size.
rSize | Size in internal coordinates (100th of mm). |
Implements accessibility::IAccessibleViewForwarder.
Definition at line 769 of file GraphCtlAccessibleContext.cxx.
References weld::DrawingArea::get_ref_device(), weld::CustomWidgetController::GetDrawingArea(), OutputDevice::LogicToPixel(), and mpControl.
|
overridevirtual |
Reimplemented from SfxListener.
Definition at line 698 of file GraphCtlAccessibleContext.cxx.
References Any, CommitChange(), dispose(), getAccessible(), SfxHint::GetId(), SdrHint::GetKind(), SdrHint::GetObject(), ModelCleared, mxShapes, ObjectChange, ObjectInserted, and ObjectRemoved.
|
overridevirtual |
Definition at line 445 of file GraphCtlAccessibleContext.cxx.
References mnClientId, comphelper::AccessibleEventNotifier::removeEventListener(), and comphelper::AccessibleEventNotifier::revokeClient().
|
overridevirtual |
Definition at line 518 of file GraphCtlAccessibleContext.cxx.
References getAccessibleChildCount(), getSdrObject(), SdrPaintView::GetSdrPageView(), SdrMarkView::MarkObj(), mpView, and nIndex.
|
overridevirtual |
Definition at line 560 of file GraphCtlAccessibleContext.cxx.
References SdrMarkView::MarkAllObj(), and mpView.
This method is used by the graph control to tell the accessibility object about a new model and view.
Replace the model, page, and view pointers by the ones provided (explicitly and implicitly).
Definition at line 639 of file GraphCtlAccessibleContext.cxx.
References SdrModel::GetPage(), maTreeInfo, mbDisposed, mpModel, mpPage, mpView, and accessibility::AccessibleShapeTreeInfo::SetSdrView().
|
overridevirtual |
Definition at line 493 of file GraphCtlAccessibleContext.cxx.
References sServiceName, and cppu::supportsService().
|
friend |
Definition at line 75 of file GraphCtlAccessibleContext.hxx.
|
private |
Definition at line 161 of file GraphCtlAccessibleContext.hxx.
Referenced by getAccessible(), setModelAndView(), and SvxGraphCtrlAccessibleContext().
|
private |
Definition at line 185 of file GraphCtlAccessibleContext.hxx.
Referenced by disposing(), getAccessibleStateSet(), setModelAndView(), and SvxGraphCtrlAccessibleContext().
|
private |
client id in the AccessibleEventNotifier queue
Definition at line 183 of file GraphCtlAccessibleContext.hxx.
Referenced by addAccessibleEventListener(), CommitChange(), disposing(), and removeAccessibleEventListener().
|
private |
Definition at line 176 of file GraphCtlAccessibleContext.hxx.
Referenced by disposing(), getAccessibleAtPoint(), getAccessibleParent(), getAccessibleStateSet(), getBounds(), getLocation(), getLocationOnScreen(), getSize(), grabFocus(), LogicToPixel(), and SvxGraphCtrlAccessibleContext().
|
private |
Definition at line 178 of file GraphCtlAccessibleContext.hxx.
Referenced by setModelAndView(), and SvxGraphCtrlAccessibleContext().
|
private |
Definition at line 179 of file GraphCtlAccessibleContext.hxx.
Referenced by disposing(), getAccessibleAtPoint(), getAccessibleChildCount(), getSdrObject(), setModelAndView(), and SvxGraphCtrlAccessibleContext().
|
private |
Definition at line 180 of file GraphCtlAccessibleContext.hxx.
Referenced by clearAccessibleSelection(), deselectAccessibleChild(), disposing(), getAccessibleAtPoint(), getSelectedAccessibleChild(), getSelectedAccessibleChildCount(), GetVisibleArea(), isAccessibleChildSelected(), selectAccessibleChild(), selectAllAccessibleChildren(), setModelAndView(), and SvxGraphCtrlAccessibleContext().
|
private |
Description of this object.
This is not a constant because it can be set from the outside.
Definition at line 166 of file GraphCtlAccessibleContext.hxx.
Referenced by getAccessibleDescription(), and SvxGraphCtrlAccessibleContext().
|
private |
Name of this object.
Definition at line 170 of file GraphCtlAccessibleContext.hxx.
Referenced by getAccessibleName(), and SvxGraphCtrlAccessibleContext().
|
private |
Definition at line 174 of file GraphCtlAccessibleContext.hxx.
Referenced by disposing(), getAccessible(), and Notify().