LibreOffice Module svx (master) 1
|
Public Types | |
typedef ::std::vector< sal_Int16 > | VectorOfStates |
Public Member Functions | |
AccessibleTextHelper_Impl () | |
virtual | ~AccessibleTextHelper_Impl () override |
sal_Int64 | getAccessibleChildCount () const |
uno::Reference< XAccessible > | getAccessibleChild (sal_Int64 i) |
void | addAccessibleEventListener (const uno::Reference< XAccessibleEventListener > &xListener) |
void | removeAccessibleEventListener (const uno::Reference< XAccessibleEventListener > &xListener) |
uno::Reference< XAccessible > | getAccessibleAtPoint (const awt::Point &aPoint) |
SvxEditSourceAdapter & | GetEditSource () const |
void | SetEditSource (::std::unique_ptr< SvxEditSource > &&pEditSource) |
void | SetEventSource (const uno::Reference< XAccessible > &rInterface) |
void | SetOffset (const Point &) |
Point | GetOffset () const |
void | SetStartIndex (sal_Int32 nOffset) |
sal_Int32 | GetStartIndex () const |
void | SetAdditionalChildStates (sal_Int64 nChildStates) |
void | Dispose () |
void | FireEvent (const sal_Int16 nEventId, const uno::Any &rNewValue=uno::Any(), const uno::Any &rOldValue=uno::Any()) const |
void | FireEvent (const AccessibleEventObject &rEvent) const |
void | SetFocus (bool bHaveFocus) |
bool | HaveFocus () const |
void | SetChildFocus (sal_Int32 nChild, bool bHaveFocus) |
void | SetShapeFocus (bool bHaveFocus) |
void | ChangeChildFocus (sal_Int32 nNewChild) |
void | CheckInvariants () const |
void | UpdateVisibleChildren (bool bBroadcastEvents=true) |
void | UpdateBoundRect () |
void | UpdateSelection () |
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 |
Private Member Functions | |
void | ProcessQueue () |
void | GotPropertyEvent (const uno::Any &rNewValue, const sal_Int16 nEventId) const |
void | ShutdownEditSource () |
void | ParagraphsMoved (sal_Int32 nFirst, sal_Int32 nMiddle, sal_Int32 nLast) |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override |
comphelper::AccessibleEventNotifier::TClientId | getNotifierClientId () const |
SvxTextForwarder & | GetTextForwarder () const |
SvxViewForwarder & | GetViewForwarder () const |
SvxEditViewForwarder & | GetEditViewForwarder () const |
bool | IsActive () const |
Private Attributes | |
uno::Reference< XAccessible > | mxFrontEnd |
SvxEditSourceAdapter | maEditSource |
ESelection | maLastSelection |
sal_Int32 | mnFirstVisibleChild |
sal_Int32 | mnLastVisibleChild |
sal_Int32 | mnStartIndex |
::accessibility::AccessibleParaManager | maParaManager |
AccessibleTextEventQueue | maEventQueue |
bool | mbInNotify |
bool | mbGroupHasFocus |
bool | mbThisHasFocus |
std::mutex | maMutex |
Point | maOffset |
our current offset to the containing shape/cell (guarded by maMutex) More... | |
comphelper::AccessibleEventNotifier::TClientId | mnNotifierClientId |
client Id from AccessibleEventNotifier More... | |
Static Private Attributes | |
static constexpr comphelper::AccessibleEventNotifier::TClientId | snNotifierClientRevoked = std::numeric_limits<comphelper::AccessibleEventNotifier::TClientId>::max() |
Definition at line 80 of file AccessibleTextHelper.cxx.
typedef ::std::vector< sal_Int16 > accessibility::AccessibleTextHelper_Impl::VectorOfStates |
Definition at line 83 of file AccessibleTextHelper.cxx.
accessibility::AccessibleTextHelper_Impl::AccessibleTextHelper_Impl | ( | ) |
Definition at line 230 of file AccessibleTextHelper.cxx.
References EE_INDEX_NOT_FOUND, EE_PARA_NOT_FOUND, mnNotifierClientId, mnStartIndex, and SAL_INFO.
|
overridevirtual |
Definition at line 249 of file AccessibleTextHelper.cxx.
References Dispose().
void accessibility::AccessibleTextHelper_Impl::addAccessibleEventListener | ( | const uno::Reference< XAccessibleEventListener > & | xListener | ) |
Definition at line 1455 of file AccessibleTextHelper.cxx.
References comphelper::AccessibleEventNotifier::addEventListener(), getNotifierClientId(), and snNotifierClientRevoked.
void accessibility::AccessibleTextHelper_Impl::ChangeChildFocus | ( | sal_Int32 | nNewChild | ) |
Definition at line 385 of file AccessibleTextHelper.cxx.
References maParaManager, mbGroupHasFocus, mbThisHasFocus, SAL_INFO, and SetShapeFocus().
Referenced by UpdateSelection().
void accessibility::AccessibleTextHelper_Impl::CheckInvariants | ( | ) | const |
Definition at line 824 of file AccessibleTextHelper.cxx.
References mnFirstVisibleChild, and mnLastVisibleChild.
void accessibility::AccessibleTextHelper_Impl::Dispose | ( | ) |
Definition at line 1367 of file AccessibleTextHelper.cxx.
References SfxListener::EndListening(), getNotifierClientId(), maEditSource, maParaManager, mnNotifierClientId, mxFrontEnd, comphelper::AccessibleEventNotifier::revokeClient(), SAL_INFO, and snNotifierClientRevoked.
Referenced by ~AccessibleTextHelper_Impl().
void accessibility::AccessibleTextHelper_Impl::FireEvent | ( | const AccessibleEventObject & | rEvent | ) | const |
Definition at line 1424 of file AccessibleTextHelper.cxx.
References comphelper::AccessibleEventNotifier::addEvent(), getNotifierClientId(), and snNotifierClientRevoked.
void accessibility::AccessibleTextHelper_Impl::FireEvent | ( | const sal_Int16 | nEventId, |
const uno::Any & | rNewValue = uno::Any() , |
||
const uno::Any & | rOldValue = uno::Any() |
||
) | const |
Definition at line 1398 of file AccessibleTextHelper.cxx.
References aEvent, DBG_ASSERT, FireEvent(), maMutex, and mxFrontEnd.
Referenced by FireEvent(), GotPropertyEvent(), ProcessQueue(), SetShapeFocus(), ShutdownEditSource(), and UpdateVisibleChildren().
uno::Reference< XAccessible > accessibility::AccessibleTextHelper_Impl::getAccessibleAtPoint | ( | const awt::Point & | aPoint | ) |
Definition at line 1479 of file AccessibleTextHelper.cxx.
References tools::Rectangle::Contains(), DBG_ASSERT, getAccessibleChild(), SvxTextForwarder::GetMapMode(), GetOffset(), SvxTextForwarder::GetParaBounds(), GetStartIndex(), GetTextForwarder(), GetViewForwarder(), mnFirstVisibleChild, mnLastVisibleChild, and mxFrontEnd.
uno::Reference< XAccessible > accessibility::AccessibleTextHelper_Impl::getAccessibleChild | ( | sal_Int64 | i | ) |
Definition at line 1437 of file AccessibleTextHelper.cxx.
References DBG_ASSERT, getAccessibleChildCount(), GetEditSource(), GetStartIndex(), GetTextForwarder(), i, maParaManager, mnFirstVisibleChild, and mxFrontEnd.
Referenced by getAccessibleAtPoint(), and ProcessQueue().
sal_Int64 accessibility::AccessibleTextHelper_Impl::getAccessibleChildCount | ( | ) | const |
Definition at line 1432 of file AccessibleTextHelper.cxx.
References mnFirstVisibleChild, and mnLastVisibleChild.
Referenced by getAccessibleChild().
SvxEditSourceAdapter & accessibility::AccessibleTextHelper_Impl::GetEditSource | ( | ) | const |
Definition at line 314 of file AccessibleTextHelper.cxx.
References maEditSource, and mxFrontEnd.
Referenced by getAccessibleChild(), IsActive(), and UpdateVisibleChildren().
|
private |
Definition at line 294 of file AccessibleTextHelper.cxx.
References SvxViewForwarder::IsValid(), maEditSource, and mxFrontEnd.
Referenced by ProcessQueue(), SetFocus(), and UpdateSelection().
|
inlineprivate |
Definition at line 173 of file AccessibleTextHelper.cxx.
References mnNotifierClientId.
Referenced by addAccessibleEventListener(), Dispose(), FireEvent(), and removeAccessibleEventListener().
|
inline |
Definition at line 110 of file AccessibleTextHelper.cxx.
References maMutex, and maOffset.
Referenced by getAccessibleAtPoint().
|
inline |
Definition at line 117 of file AccessibleTextHelper.cxx.
References mnStartIndex.
Referenced by getAccessibleAtPoint(), getAccessibleChild(), and ProcessQueue().
|
private |
Definition at line 262 of file AccessibleTextHelper.cxx.
References SvxTextForwarder::IsValid(), maEditSource, and mxFrontEnd.
Referenced by getAccessibleAtPoint(), getAccessibleChild(), ParagraphsMoved(), ProcessQueue(), SetEditSource(), UpdateSelection(), and UpdateVisibleChildren().
|
private |
Definition at line 278 of file AccessibleTextHelper.cxx.
References SvxViewForwarder::IsValid(), maEditSource, and mxFrontEnd.
Referenced by getAccessibleAtPoint().
|
inlineprivate |
Definition at line 164 of file AccessibleTextHelper.cxx.
References FireEvent().
Referenced by ProcessQueue(), SetShapeFocus(), and UpdateVisibleChildren().
|
inline |
Definition at line 134 of file AccessibleTextHelper.cxx.
References mbThisHasFocus.
|
private |
Definition at line 466 of file AccessibleTextHelper.cxx.
References accessibility::AccessibleCell::getCellRef(), GetEditSource(), SvxEditSource::GetEditViewForwarder(), SvxViewForwarder::IsValid(), and mxFrontEnd.
Referenced by ProcessQueue(), and SetFocus().
|
overrideprivatevirtual |
Reimplemented from SfxListener.
Definition at line 1295 of file AccessibleTextHelper.cxx.
References accessibility::AccessibleTextEventQueue::Append(), accessibility::AccessibleTextEventQueue::Clear(), DBG_TESTSOLARMUTEX, DBG_UNHANDLED_EXCEPTION, SfxHint::GetId(), maEventQueue, mbInNotify, ProcessQueue(), and ShutdownEditSource().
|
private |
Definition at line 856 of file AccessibleTextHelper.cxx.
References begin, end, SvxTextForwarder::GetParagraphCount(), GetTextForwarder(), and maParaManager.
Referenced by ProcessQueue().
|
private |
Definition at line 1015 of file AccessibleTextHelper.cxx.
References begin, BeginEdit, DBG_ASSERT, DBG_UNHANDLED_EXCEPTION, EE_INDEX_NOT_FOUND, EE_PARA_ALL, EE_PARA_NOT_FOUND, end, EndEdit, FireEvent(), accessibility::AccessibleTextEventQueue::ForEach(), getAccessibleChild(), GetEditViewForwarder(), SvxEditSourceHint::GetEndValue(), SfxHint::GetId(), SdrHint::GetKind(), SvxTextForwarder::GetParagraphCount(), GetSelection(), GetStartIndex(), SvxEditSourceHint::GetStartValue(), GetTextForwarder(), TextHint::GetValue(), GotPropertyEvent(), IsActive(), accessibility::AccessibleTextEventQueue::IsEmpty(), maEventQueue, maLastSelection, maParaManager, mnFirstVisibleChild, ESelection::nEndPara, ParagraphsMoved(), accessibility::AccessibleTextEventQueue::PopFront(), SetChildFocus(), SetFocus(), ShutdownEditSource(), UpdateBoundRect(), UpdateSelection(), and UpdateVisibleChildren().
Referenced by Notify().
void accessibility::AccessibleTextHelper_Impl::removeAccessibleEventListener | ( | const uno::Reference< XAccessibleEventListener > & | xListener | ) |
Definition at line 1461 of file AccessibleTextHelper.cxx.
References getNotifierClientId(), mnNotifierClientId, nId, comphelper::AccessibleEventNotifier::removeEventListener(), comphelper::AccessibleEventNotifier::revokeClient(), and snNotifierClientRevoked.
void accessibility::AccessibleTextHelper_Impl::SetAdditionalChildStates | ( | sal_Int64 | nChildStates | ) |
Definition at line 355 of file AccessibleTextHelper.cxx.
References maParaManager.
void accessibility::AccessibleTextHelper_Impl::SetChildFocus | ( | sal_Int32 | nChild, |
bool | bHaveFocus | ||
) |
Definition at line 360 of file AccessibleTextHelper.cxx.
References maParaManager, mbGroupHasFocus, mbThisHasFocus, SAL_INFO, SetShapeFocus(), and UpdateSelection().
Referenced by ProcessQueue(), and SetFocus().
void accessibility::AccessibleTextHelper_Impl::SetEditSource | ( | ::std::unique_ptr< SvxEditSource > && | pEditSource | ) |
Definition at line 711 of file AccessibleTextHelper.cxx.
References GetTextForwarder(), maEditSource, maParaManager, ShutdownEditSource(), SfxListener::StartListening(), and UpdateVisibleChildren().
|
inline |
Definition at line 104 of file AccessibleTextHelper.cxx.
References mxFrontEnd.
void accessibility::AccessibleTextHelper_Impl::SetFocus | ( | bool | bHaveFocus | ) |
Definition at line 441 of file AccessibleTextHelper.cxx.
References GetEditViewForwarder(), GetSelection(), IsActive(), mbGroupHasFocus, ESelection::nEndPara, SAL_INFO, SetChildFocus(), and SetShapeFocus().
Referenced by ProcessQueue().
void accessibility::AccessibleTextHelper_Impl::SetOffset | ( | const Point & | rPoint | ) |
Definition at line 733 of file AccessibleTextHelper.cxx.
References maMutex, maOffset, maParaManager, UpdateBoundRect(), and UpdateVisibleChildren().
void accessibility::AccessibleTextHelper_Impl::SetShapeFocus | ( | bool | bHaveFocus | ) |
Definition at line 396 of file AccessibleTextHelper.cxx.
References FireEvent(), accessibility::AccessibleCell::GetParentTable(), GotPropertyEvent(), mbThisHasFocus, mxFrontEnd, accessibility::AccessibleTableShape::ResetStateDirectly(), SAL_INFO, and accessibility::AccessibleTableShape::SetStateDirectly().
Referenced by ChangeChildFocus(), SetChildFocus(), and SetFocus().
void accessibility::AccessibleTextHelper_Impl::SetStartIndex | ( | sal_Int32 | nOffset | ) |
Definition at line 339 of file AccessibleTextHelper.cxx.
References maParaManager, and mnStartIndex.
|
private |
Definition at line 686 of file AccessibleTextHelper.cxx.
References SfxListener::EndListening(), FireEvent(), maEditSource, maParaManager, and mxFrontEnd.
Referenced by Notify(), ProcessQueue(), and SetEditSource().
void accessibility::AccessibleTextHelper_Impl::UpdateBoundRect | ( | ) |
Definition at line 794 of file AccessibleTextHelper.cxx.
References maParaManager.
Referenced by ProcessQueue(), and SetOffset().
void accessibility::AccessibleTextHelper_Impl::UpdateSelection | ( | ) |
Definition at line 494 of file AccessibleTextHelper.cxx.
References ESelection::Adjust(), ChangeChildFocus(), EE_PARA_NOT_FOUND, GetEditViewForwarder(), GetSelection(), GetTextForwarder(), ESelection::HasRange(), accessibility::makeSortedPair(), maLastSelection, maParaManager, mbGroupHasFocus, mbThisHasFocus, ESelection::nEndPara, ESelection::nEndPos, ESelection::nStartPara, ESelection::nStartPos, and SAL_INFO.
Referenced by ProcessQueue(), and SetChildFocus().
void accessibility::AccessibleTextHelper_Impl::UpdateVisibleChildren | ( | bool | bBroadcastEvents = true | ) |
Definition at line 748 of file AccessibleTextHelper.cxx.
References FireEvent(), first, GetEditSource(), SvxTextForwarder::GetParagraphCount(), GetTextForwarder(), GotPropertyEvent(), maParaManager, mnFirstVisibleChild, mnLastVisibleChild, and mxFrontEnd.
Referenced by ProcessQueue(), SetEditSource(), and SetOffset().
|
mutableprivate |
Definition at line 191 of file AccessibleTextHelper.cxx.
Referenced by Dispose(), GetEditSource(), GetEditViewForwarder(), GetTextForwarder(), GetViewForwarder(), SetEditSource(), and ShutdownEditSource().
|
private |
Definition at line 208 of file AccessibleTextHelper.cxx.
Referenced by Notify(), and ProcessQueue().
|
private |
Definition at line 194 of file AccessibleTextHelper.cxx.
Referenced by ProcessQueue(), and UpdateSelection().
|
mutableprivate |
Definition at line 219 of file AccessibleTextHelper.cxx.
Referenced by FireEvent(), GetOffset(), and SetOffset().
|
private |
our current offset to the containing shape/cell (guarded by maMutex)
Definition at line 222 of file AccessibleTextHelper.cxx.
Referenced by GetOffset(), and SetOffset().
|
private |
Definition at line 205 of file AccessibleTextHelper.cxx.
Referenced by ChangeChildFocus(), Dispose(), getAccessibleChild(), ParagraphsMoved(), ProcessQueue(), SetAdditionalChildStates(), SetChildFocus(), SetEditSource(), SetOffset(), SetStartIndex(), ShutdownEditSource(), UpdateBoundRect(), UpdateSelection(), and UpdateVisibleChildren().
|
private |
Definition at line 214 of file AccessibleTextHelper.cxx.
Referenced by ChangeChildFocus(), SetChildFocus(), SetFocus(), and UpdateSelection().
|
private |
Definition at line 211 of file AccessibleTextHelper.cxx.
Referenced by Notify().
|
private |
Definition at line 217 of file AccessibleTextHelper.cxx.
Referenced by ChangeChildFocus(), HaveFocus(), SetChildFocus(), SetShapeFocus(), and UpdateSelection().
|
private |
Definition at line 197 of file AccessibleTextHelper.cxx.
Referenced by CheckInvariants(), getAccessibleAtPoint(), getAccessibleChild(), getAccessibleChildCount(), ProcessQueue(), and UpdateVisibleChildren().
|
private |
Definition at line 198 of file AccessibleTextHelper.cxx.
Referenced by CheckInvariants(), getAccessibleAtPoint(), getAccessibleChildCount(), and UpdateVisibleChildren().
|
private |
client Id from AccessibleEventNotifier
Definition at line 225 of file AccessibleTextHelper.cxx.
Referenced by AccessibleTextHelper_Impl(), Dispose(), getNotifierClientId(), and removeAccessibleEventListener().
|
private |
Definition at line 202 of file AccessibleTextHelper.cxx.
Referenced by GetStartIndex(), and SetStartIndex().
|
private |
Definition at line 188 of file AccessibleTextHelper.cxx.
Referenced by Dispose(), FireEvent(), getAccessibleAtPoint(), getAccessibleChild(), GetEditSource(), GetEditViewForwarder(), GetTextForwarder(), GetViewForwarder(), IsActive(), SetEventSource(), SetShapeFocus(), ShutdownEditSource(), and UpdateVisibleChildren().
|
staticconstexprprivate |
Definition at line 226 of file AccessibleTextHelper.cxx.
Referenced by addAccessibleEventListener(), Dispose(), FireEvent(), and removeAccessibleEventListener().