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_Int32 SAL_CALL | getAccessibleChildCount () override |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessibleChild (sal_Int32 nIndex) override |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessibleParent () override |
virtual sal_Int32 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 css::uno::Reference< css::accessibility::XAccessibleStateSet > 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_Int32 nChildIndex) override |
virtual sal_Bool SAL_CALL | isAccessibleChildSelected (sal_Int32 nChildIndex) override |
virtual void SAL_CALL | clearAccessibleSelection () override |
virtual void SAL_CALL | selectAllAccessibleChildren () override |
virtual sal_Int32 SAL_CALL | getSelectedAccessibleChildCount () override |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getSelectedAccessibleChild (sal_Int32 nSelectedChildIndex) override |
virtual void SAL_CALL | deselectAccessibleChild (sal_Int32 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... | |
![]() | |
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 |
![]() | |
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 |
void | RemoveBroadcaster_Impl (SfxBroadcaster &rBC) |
![]() | |
IAccessibleViewForwarder ()=default | |
IAccessibleViewForwarder (IAccessibleViewForwarder const &)=default | |
IAccessibleViewForwarder (IAccessibleViewForwarder &&)=default | |
IAccessibleViewForwarder & | operator= (IAccessibleViewForwarder const &)=default |
IAccessibleViewForwarder & | operator= (IAccessibleViewForwarder &&)=default |
virtual | ~IAccessibleViewForwarder () |
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 (tools::Long nIndexOfChild) |
virtual void SAL_CALL | disposing () final override |
SdrObject * | getSdrObject (sal_Int32 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 |
![]() | |
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 58 of file GraphCtlAccessibleContext.cxx.
References false, 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 101 of file GraphCtlAccessibleContext.cxx.
References disposing().
|
overridevirtual |
Definition at line 434 of file GraphCtlAccessibleContext.cxx.
References comphelper::AccessibleEventNotifier::addEventListener(), mnClientId, and comphelper::AccessibleEventNotifier::registerClient().
|
private |
css::lang::IndexOutOfBoundsException |
Definition at line 624 of file GraphCtlAccessibleContext.cxx.
References getSelectedAccessibleChildCount().
Referenced by deselectAccessibleChild(), and getSelectedAccessibleChild().
|
overridevirtual |
Definition at line 544 of file GraphCtlAccessibleContext.cxx.
References mpView, and SdrMarkView::UnmarkAllObj().
|
private |
sends an AccessibleEventObject to all added XAccessibleEventListeners
Definition at line 300 of file GraphCtlAccessibleContext.cxx.
References comphelper::AccessibleEventNotifier::addEvent(), aEvent, and mnClientId.
Referenced by getAccessible(), and Notify().
|
overridevirtual |
Definition at line 156 of file GraphCtlAccessibleContext.cxx.
References getSize().
|
overridevirtual |
Definition at line 595 of file GraphCtlAccessibleContext.cxx.
References checkChildIndexOnSelection(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), getSdrObject(), SdrPaintView::GetSdrPageView(), SdrMarkView::MarkObj(), mpView, nCount, and SdrMarkView::UnmarkAllObj().
|
finaloverrideprivatevirtual |
Definition at line 660 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 110 of file GraphCtlAccessibleContext.cxx.
References Any, CommitChange(), getAccessibleParent(), maTreeInfo, and mxShapes.
Referenced by getAccessibleAtPoint(), getAccessibleChild(), getSelectedAccessibleChild(), and Notify().
|
overridevirtual |
Definition at line 167 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(), Point, and SdrObjListPrimitiveHit().
|
overridevirtual |
Definition at line 315 of file GraphCtlAccessibleContext.cxx.
References getAccessible(), and getSdrObject().
|
overridevirtual |
Definition at line 273 of file GraphCtlAccessibleContext.cxx.
References SdrObjList::GetObjCount(), and mpPage.
|
overridevirtual |
Return the XAccessibleContext.
Definition at line 150 of file GraphCtlAccessibleContext.cxx.
|
overridevirtual |
Definition at line 370 of file GraphCtlAccessibleContext.cxx.
References msDescription.
|
overridevirtual |
Definition at line 332 of file GraphCtlAccessibleContext.cxx.
References getAccessibleParent(), and i.
|
overridevirtual |
Definition at line 377 of file GraphCtlAccessibleContext.cxx.
References msName.
|
overridevirtual |
Definition at line 322 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 387 of file GraphCtlAccessibleContext.cxx.
|
overridevirtual |
Definition at line 364 of file GraphCtlAccessibleContext.cxx.
|
overridevirtual |
Definition at line 393 of file GraphCtlAccessibleContext.cxx.
References weld::CustomWidgetController::HasFocus(), mbDisposed, and mpControl.
|
overridevirtual |
Definition at line 482 of file GraphCtlAccessibleContext.cxx.
References Application::GetSettings(), AllSettings::GetStyleSettings(), and StyleSettings::GetWindowColor().
|
overridevirtual |
Definition at line 194 of file GraphCtlAccessibleContext.cxx.
References weld::CustomWidgetController::GetOutputSizePixel(), mpControl, Point, and Size::Width().
Referenced by getLocation(), and getSize().
|
overridevirtual |
Definition at line 475 of file GraphCtlAccessibleContext.cxx.
References svtools::FONTCOLOR, svtools::ColorConfig::GetColorValue(), and svtools::ColorConfigValue::nColor.
|
overridevirtual |
Reimplemented from cppu::WeakAggComponentImplHelper7< class, class, class, class, class, class, class >.
Definition at line 507 of file GraphCtlAccessibleContext.cxx.
|
overridevirtual |
Definition at line 489 of file GraphCtlAccessibleContext.cxx.
|
overridevirtual |
Definition at line 417 of file GraphCtlAccessibleContext.cxx.
References getAccessibleParent().
|
overridevirtual |
Definition at line 213 of file GraphCtlAccessibleContext.cxx.
References getBounds(), and mpControl.
Referenced by getLocationOnScreen().
|
overridevirtual |
Definition at line 229 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 285 of file GraphCtlAccessibleContext.cxx.
References SdrObjList::GetObj(), SdrObjList::GetObjCount(), o3tl::make_unsigned(), and mpPage.
Referenced by deselectAccessibleChild(), getAccessibleChild(), isAccessibleChildSelected(), and selectAccessibleChild().
|
overridevirtual |
Definition at line 578 of file GraphCtlAccessibleContext.cxx.
References checkChildIndexOnSelection(), getAccessible(), SdrMarkList::GetMark(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), and mpView.
|
overridevirtual |
Definition at line 566 of file GraphCtlAccessibleContext.cxx.
References SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), and mpView.
Referenced by checkChildIndexOnSelection().
|
overridevirtual |
Definition at line 513 of file GraphCtlAccessibleContext.cxx.
|
overridevirtual |
Definition at line 256 of file GraphCtlAccessibleContext.cxx.
References getBounds(), and mpControl.
Referenced by containsPoint().
|
overridevirtual |
Definition at line 499 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 739 of file GraphCtlAccessibleContext.cxx.
References SdrPaintView::GetPaintWindow(), SdrPaintWindow::GetVisibleArea(), mpView, and SdrPaintView::PaintWindowCount().
|
overridevirtual |
Definition at line 465 of file GraphCtlAccessibleContext.cxx.
References weld::CustomWidgetController::GrabFocus(), and mpControl.
|
overridevirtual |
Definition at line 533 of file GraphCtlAccessibleContext.cxx.
References getSdrObject(), SdrMarkView::IsObjMarked(), and mpView.
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 752 of file GraphCtlAccessibleContext.cxx.
References weld::DrawingArea::get_ref_device(), weld::CustomWidgetController::GetDrawingArea(), GraphCtrl::GetPositionInDialog(), OutputDevice::LogicToPixel(), mpControl, and Point.
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 764 of file GraphCtlAccessibleContext.cxx.
References weld::DrawingArea::get_ref_device(), weld::CustomWidgetController::GetDrawingArea(), OutputDevice::LogicToPixel(), and mpControl.
|
overridevirtual |
Reimplemented from SfxListener.
Definition at line 693 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 446 of file GraphCtlAccessibleContext.cxx.
References mnClientId, comphelper::AccessibleEventNotifier::removeEventListener(), and comphelper::AccessibleEventNotifier::revokeClient().
|
overridevirtual |
Definition at line 519 of file GraphCtlAccessibleContext.cxx.
References getSdrObject(), SdrPaintView::GetSdrPageView(), SdrMarkView::MarkObj(), and mpView.
|
overridevirtual |
Definition at line 555 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 634 of file GraphCtlAccessibleContext.cxx.
References SdrModel::GetPage(), maTreeInfo, mbDisposed, mpModel, mpPage, mpView, and accessibility::AccessibleShapeTreeInfo::SetSdrView().
|
overridevirtual |
Definition at line 494 of file GraphCtlAccessibleContext.cxx.
References 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().