LibreOffice Module starmath (master) 1
|
#include <accessibility.hxx>
Public Member Functions | |
SmGraphicAccessible (SmGraphicWidget *pGraphicWin) | |
virtual | ~SmGraphicAccessible () override |
void | ClearWin () |
void | LaunchEvent (const sal_Int16 nAccessibleEventId, const css::uno::Any &rOldVal, const css::uno::Any &rNewVal) |
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL | getAccessibleContext () override |
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 sal_Int64 SAL_CALL | getAccessibleChildCount () override |
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL | getAccessibleChild (sal_Int64 i) 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 sal_Int32 SAL_CALL | getCaretPosition () override |
virtual sal_Bool SAL_CALL | setCaretPosition (sal_Int32 nIndex) override |
virtual sal_Unicode SAL_CALL | getCharacter (sal_Int32 nIndex) override |
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL | getCharacterAttributes (sal_Int32 nIndex, const css::uno::Sequence< OUString > &aRequestedAttributes) override |
virtual css::awt::Rectangle SAL_CALL | getCharacterBounds (sal_Int32 nIndex) override |
virtual sal_Int32 SAL_CALL | getCharacterCount () override |
virtual sal_Int32 SAL_CALL | getIndexAtPoint (const css::awt::Point &aPoint) override |
virtual OUString SAL_CALL | getSelectedText () override |
virtual sal_Int32 SAL_CALL | getSelectionStart () override |
virtual sal_Int32 SAL_CALL | getSelectionEnd () override |
virtual sal_Bool SAL_CALL | setSelection (sal_Int32 nStartIndex, sal_Int32 nEndIndex) override |
virtual OUString SAL_CALL | getText () override |
virtual OUString SAL_CALL | getTextRange (sal_Int32 nStartIndex, sal_Int32 nEndIndex) override |
virtual css::accessibility::TextSegment SAL_CALL | getTextAtIndex (sal_Int32 nIndex, sal_Int16 aTextType) override |
virtual css::accessibility::TextSegment SAL_CALL | getTextBeforeIndex (sal_Int32 nIndex, sal_Int16 aTextType) override |
virtual css::accessibility::TextSegment SAL_CALL | getTextBehindIndex (sal_Int32 nIndex, sal_Int16 aTextType) override |
virtual sal_Bool SAL_CALL | copyText (sal_Int32 nStartIndex, sal_Int32 nEndIndex) override |
virtual sal_Bool SAL_CALL | scrollSubstringTo (sal_Int32 nStartIndex, sal_Int32 nEndIndex, css::accessibility::AccessibleScrollType aScrollType) override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
Private Member Functions | |
SmGraphicAccessible (const SmGraphicAccessible &)=delete | |
SmGraphicAccessible & | operator= (const SmGraphicAccessible &)=delete |
SmDocShell * | GetDoc_Impl () |
OUString | GetAccessibleText_Impl () |
Private Attributes | |
OUString | aAccName |
sal_uInt32 | nClientId |
client id in the AccessibleEventNotifier queue More... | |
SmGraphicWidget * | pWin |
Definition at line 53 of file accessibility.hxx.
|
privatedelete |
|
explicit |
Definition at line 54 of file accessibility.cxx.
References pWin.
|
overridevirtual |
Definition at line 62 of file accessibility.cxx.
|
overridevirtual |
Definition at line 363 of file accessibility.cxx.
References comphelper::AccessibleEventNotifier::addEventListener(), nClientId, pWin, and comphelper::AccessibleEventNotifier::registerClient().
void SmGraphicAccessible::ClearWin | ( | ) |
Definition at line 81 of file accessibility.cxx.
References nClientId, pWin, and comphelper::AccessibleEventNotifier::revokeClientNotifyDisposing().
|
overridevirtual |
the arguments coordinates are relative to the current window ! Thus the top-left point is (0, 0)
Definition at line 112 of file accessibility.cxx.
References weld::CustomWidgetController::GetOutputSizePixel(), Size::Height(), pWin, and Size::Width().
Referenced by getAccessibleAtPoint().
|
overridevirtual |
Definition at line 689 of file accessibility.cxx.
References weld::CustomWidgetController::GetClipboard(), getTextRange(), and pWin.
|
overridevirtual |
Definition at line 126 of file accessibility.cxx.
References containsPoint().
|
overridevirtual |
Definition at line 251 of file accessibility.cxx.
|
overridevirtual |
Definition at line 246 of file accessibility.cxx.
|
overridevirtual |
Definition at line 107 of file accessibility.cxx.
|
overridevirtual |
Definition at line 308 of file accessibility.cxx.
References GetDoc_Impl(), and SmDocShell::GetText().
|
overridevirtual |
Definition at line 266 of file accessibility.cxx.
References getAccessibleParent(), and TOOLS_WARN_EXCEPTION.
|
overridevirtual |
Definition at line 315 of file accessibility.cxx.
References aAccName.
|
overridevirtual |
Definition at line 257 of file accessibility.cxx.
References weld::DrawingArea::get_accessible_parent(), weld::CustomWidgetController::GetDrawingArea(), and pWin.
Referenced by getAccessibleIndexInParent(), and getLocationOnScreen().
|
overridevirtual |
Definition at line 321 of file accessibility.cxx.
|
overridevirtual |
Definition at line 303 of file accessibility.cxx.
|
overridevirtual |
Definition at line 326 of file accessibility.cxx.
References COL_TRANSPARENT(), weld::DrawingArea::get_ref_device(), OutputDevice::GetBackground(), Wallpaper::GetColor(), weld::CustomWidgetController::GetDrawingArea(), weld::CustomWidgetController::HasFocus(), weld::CustomWidgetController::IsActive(), weld::CustomWidgetController::IsReallyVisible(), weld::CustomWidgetController::IsVisible(), and pWin.
|
private |
Definition at line 72 of file accessibility.cxx.
References SmDocShell::GetAccessibleText(), and GetDoc_Impl().
Referenced by getCharacter(), getCharacterAttributes(), getCharacterBounds(), getCharacterCount(), getText(), getTextAtIndex(), getTextBeforeIndex(), getTextBehindIndex(), getTextRange(), setCaretPosition(), and setSelection().
|
overridevirtual |
Definition at line 228 of file accessibility.cxx.
References weld::DrawingArea::get_ref_device(), OutputDevice::GetBackground(), Wallpaper::GetColor(), weld::CustomWidgetController::GetDrawingArea(), Application::GetSettings(), AllSettings::GetStyleSettings(), StyleSettings::GetWindowColor(), Wallpaper::IsBitmap(), Wallpaper::IsGradient(), and pWin.
|
overridevirtual |
Definition at line 136 of file accessibility.cxx.
References weld::CustomWidgetController::GetOutputSizePixel(), Size::Height(), pWin, Size::Width(), Point::X(), and Point::Y().
Referenced by getLocation().
|
overridevirtual |
Definition at line 396 of file accessibility.cxx.
|
overridevirtual |
Definition at line 410 of file accessibility.cxx.
References GetAccessibleText_Impl(), and nIndex.
|
overridevirtual |
Definition at line 419 of file accessibility.cxx.
References GetAccessibleText_Impl(), and nIndex.
|
overridevirtual |
pNode may be 0 if the index belongs to a char that was inserted only for the accessible text!
Definition at line 430 of file accessibility.cxx.
References aBuf, Point::AdjustX(), SmNode::FindNodeWithAccessibleIndex(), weld::DrawingArea::get_ref_device(), SmNode::GetAccessibleIndex(), SmNode::GetAccessibleText(), GetAccessibleText_Impl(), SmViewShell::GetDoc(), weld::CustomWidgetController::GetDrawingArea(), SmNode::GetFont(), SmGraphicWidget::GetFormulaDrawPos(), SmDocShell::GetFormulaTree(), SmRect::GetSize(), OutputDevice::GetTextArray(), SmRect::GetTopLeft(), SmGraphicWidget::GetView(), Size::Height(), OutputDevice::LogicToPixel(), nIndex, pWin, OutputDevice::SetFont(), Size::setWidth(), Size::Width(), Point::X(), and Point::Y().
|
overridevirtual |
Definition at line 498 of file accessibility.cxx.
References GetAccessibleText_Impl().
|
private |
Definition at line 66 of file accessibility.cxx.
References SmViewShell::GetDoc(), SmGraphicWidget::GetView(), and pWin.
Referenced by getAccessibleDescription(), and GetAccessibleText_Impl().
|
overridevirtual |
Definition at line 216 of file accessibility.cxx.
References weld::DrawingArea::get_ref_device(), weld::CustomWidgetController::GetDrawingArea(), OutputDevice::GetTextColor(), and pWin.
|
overridevirtual |
Definition at line 724 of file accessibility.cxx.
|
overridevirtual |
Definition at line 504 of file accessibility.cxx.
References aBuf, tools::Rectangle::Contains(), SmNode::FindRectClosestTo(), weld::DrawingArea::get_ref_device(), SmNode::GetAccessibleIndex(), SmNode::GetAccessibleText(), SmViewShell::GetDoc(), weld::CustomWidgetController::GetDrawingArea(), SmNode::GetFont(), SmGraphicWidget::GetFormulaDrawPos(), SmDocShell::GetFormulaTree(), SmRect::GetLeft(), SmRect::GetSize(), OutputDevice::GetTextArray(), SmRect::GetTopLeft(), SmGraphicWidget::GetView(), i, SmNode::IsVisible(), SmRect::OrientedDist(), OutputDevice::PixelToLogic(), pWin, OutputDevice::SetFont(), and Point::X().
|
overridevirtual |
Definition at line 354 of file accessibility.cxx.
References LanguageTag::getLocale(), Application::GetSettings(), AllSettings::GetUILanguageTag(), and Locale.
|
overridevirtual |
Definition at line 154 of file accessibility.cxx.
References getBounds(), and pWin.
Referenced by getLocationOnScreen().
|
overridevirtual |
Definition at line 169 of file accessibility.cxx.
References getAccessibleParent(), getLocation(), and pWin.
|
overridevirtual |
Definition at line 567 of file accessibility.cxx.
|
overridevirtual |
Definition at line 577 of file accessibility.cxx.
|
overridevirtual |
Definition at line 572 of file accessibility.cxx.
|
overridevirtual |
Definition at line 198 of file accessibility.cxx.
References weld::CustomWidgetController::GetOutputSizePixel(), Size::Height(), pWin, and Size::Width().
|
overridevirtual |
Definition at line 735 of file accessibility.cxx.
|
overridevirtual |
Definition at line 594 of file accessibility.cxx.
References GetAccessibleText_Impl().
|
overridevirtual |
! nIndex is allowed to be the string length
Definition at line 618 of file accessibility.cxx.
References GetAccessibleText_Impl(), and nIndex.
|
overridevirtual |
! nIndex is allowed to be the string length
Definition at line 641 of file accessibility.cxx.
References GetAccessibleText_Impl(), and nIndex.
|
overridevirtual |
! nIndex is allowed to be the string length
Definition at line 665 of file accessibility.cxx.
References GetAccessibleText_Impl(), and nIndex.
|
overridevirtual |
! nEndIndex may be the string length per definition of the interface !! ! text should be copied exclusive that end index though. And arguments ! may be switched.
Definition at line 600 of file accessibility.cxx.
References GetAccessibleText_Impl().
Referenced by copyText().
|
overridevirtual |
Definition at line 207 of file accessibility.cxx.
References weld::CustomWidgetController::GrabFocus(), and pWin.
void SmGraphicAccessible::LaunchEvent | ( | const sal_Int16 | nAccessibleEventId, |
const css::uno::Any & | rOldVal, | ||
const css::uno::Any & | rNewVal | ||
) |
Definition at line 91 of file accessibility.cxx.
References comphelper::AccessibleEventNotifier::addEvent(), and nClientId.
Referenced by SmDocShell::SetText().
|
privatedelete |
|
overridevirtual |
Definition at line 378 of file accessibility.cxx.
References nClientId, comphelper::AccessibleEventNotifier::removeEventListener(), and comphelper::AccessibleEventNotifier::revokeClient().
|
overridevirtual |
Definition at line 719 of file accessibility.cxx.
|
overridevirtual |
Definition at line 401 of file accessibility.cxx.
References GetAccessibleText_Impl(), and nIndex.
|
overridevirtual |
Definition at line 582 of file accessibility.cxx.
References GetAccessibleText_Impl().
|
overridevirtual |
Definition at line 729 of file accessibility.cxx.
References cppu::supportsService().
|
private |
Definition at line 56 of file accessibility.hxx.
Referenced by getAccessibleName().
|
private |
client id in the AccessibleEventNotifier queue
Definition at line 58 of file accessibility.hxx.
Referenced by addAccessibleEventListener(), ClearWin(), LaunchEvent(), and removeAccessibleEventListener().
|
private |
Definition at line 60 of file accessibility.hxx.
Referenced by addAccessibleEventListener(), ClearWin(), containsPoint(), copyText(), getAccessibleParent(), getAccessibleStateSet(), getBackground(), getBounds(), getCharacterBounds(), GetDoc_Impl(), getForeground(), getIndexAtPoint(), getLocation(), getLocationOnScreen(), getSize(), grabFocus(), and SmGraphicAccessible().