LibreOffice Module sfx2 (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
LOKDocumentFocusListener Class Reference
Inheritance diagram for LOKDocumentFocusListener:
[legend]
Collaboration diagram for LOKDocumentFocusListener:
[legend]

Public Member Functions

 LOKDocumentFocusListener (const SfxViewShell *pViewShell)
 
void attachRecursive (const uno::Reference< accessibility::XAccessible > &xAccessible)
 
void attachRecursive (const uno::Reference< accessibility::XAccessible > &xAccessible, const uno::Reference< accessibility::XAccessibleContext > &xContext)
 
void attachRecursive (const uno::Reference< accessibility::XAccessible > &xAccessible, const uno::Reference< accessibility::XAccessibleContext > &xContext, const sal_Int64 nStateSet)
 
void detachRecursive (const uno::Reference< accessibility::XAccessible > &xAccessible)
 
void detachRecursive (const uno::Reference< accessibility::XAccessibleContext > &xContext)
 
void detachRecursive (const uno::Reference< accessibility::XAccessibleContext > &xContext, const sal_Int64 nStateSet)
 
virtual void SAL_CALL disposing (const lang::EventObject &Source) override
 
virtual void SAL_CALL notifyEvent (const accessibility::AccessibleEventObject &aEvent) override
 
void notifyFocusedParagraphChanged ()
 
void notifyCaretChanged ()
 
void notifyTextSelectionChanged ()
 
OUString getFocusedParagraph () const
 
int getCaretPosition () const
 

Static Public Member Functions

static uno::Reference< accessibility::XAccessible > getAccessible (const lang::EventObject &aEvent)
 

Private Attributes

const SfxViewShellm_pViewShell
 
std::unordered_set< uno::Reference< uno::XInterface > > m_aRefList
 
OUString m_sFocusedParagraph
 
bool m_bFocusedParagraphNotified
 
sal_Int32 m_nCaretPosition
 
sal_Int32 m_nSelectionStart
 
sal_Int32 m_nSelectionEnd
 
OUString m_sSelectedText
 
bool m_bIsEditingCell
 
OUString m_sSelectedCellAddress
 

Static Private Attributes

static constexpr sal_Int64 MAX_ATTACHABLE_CHILDREN = 30
 

Detailed Description

Definition at line 240 of file viewsh.cxx.

Constructor & Destructor Documentation

◆ LOKDocumentFocusListener()

LOKDocumentFocusListener::LOKDocumentFocusListener ( const SfxViewShell pViewShell)

Definition at line 317 of file viewsh.cxx.

Member Function Documentation

◆ attachRecursive() [1/3]

void LOKDocumentFocusListener::attachRecursive ( const uno::Reference< accessibility::XAccessible > &  xAccessible)
Exceptions
lang::IndexOutOfBoundsException
uno::RuntimeException

Definition at line 755 of file viewsh.cxx.

References attachRecursive(), and SAL_INFO.

Referenced by attachRecursive(), notifyEvent(), and SfxViewShell::SetLOKAccessibilityState().

◆ attachRecursive() [2/3]

void LOKDocumentFocusListener::attachRecursive ( const uno::Reference< accessibility::XAccessible > &  xAccessible,
const uno::Reference< accessibility::XAccessibleContext > &  xContext 
)
Exceptions
lang::IndexOutOfBoundsException
uno::RuntimeException

Definition at line 768 of file viewsh.cxx.

References attachRecursive(), m_bIsEditingCell, SAL_INFO, and sName.

◆ attachRecursive() [3/3]

void LOKDocumentFocusListener::attachRecursive ( const uno::Reference< accessibility::XAccessible > &  xAccessible,
const uno::Reference< accessibility::XAccessibleContext > &  xContext,
const sal_Int64  nStateSet 
)
Exceptions
lang::IndexOutOfBoundsException
uno::RuntimeException

Definition at line 790 of file viewsh.cxx.

References attachRecursive(), m_aRefList, MAX_ATTACHABLE_CHILDREN, n, and SAL_INFO.

◆ detachRecursive() [1/3]

void LOKDocumentFocusListener::detachRecursive ( const uno::Reference< accessibility::XAccessible > &  xAccessible)
Exceptions
lang::IndexOutOfBoundsException
uno::RuntimeException

Definition at line 833 of file viewsh.cxx.

References detachRecursive().

Referenced by detachRecursive(), notifyEvent(), and SfxViewShell::SetLOKAccessibilityState().

◆ detachRecursive() [2/3]

void LOKDocumentFocusListener::detachRecursive ( const uno::Reference< accessibility::XAccessibleContext > &  xContext)
Exceptions
lang::IndexOutOfBoundsException
uno::RuntimeException

Definition at line 844 of file viewsh.cxx.

References detachRecursive(), m_bIsEditingCell, m_nCaretPosition, m_sFocusedParagraph, notifyFocusedParagraphChanged(), SAL_INFO, and sName.

◆ detachRecursive() [3/3]

void LOKDocumentFocusListener::detachRecursive ( const uno::Reference< accessibility::XAccessibleContext > &  xContext,
const sal_Int64  nStateSet 
)
Exceptions
lang::IndexOutOfBoundsException
uno::RuntimeException

Definition at line 870 of file viewsh.cxx.

References detachRecursive(), m_aRefList, MAX_ATTACHABLE_CHILDREN, and n.

◆ disposing()

void LOKDocumentFocusListener::disposing ( const lang::EventObject &  Source)
overridevirtual

Definition at line 402 of file viewsh.cxx.

References aEvent, and m_aRefList.

◆ getAccessible()

uno::Reference< accessibility::XAccessible > LOKDocumentFocusListener::getAccessible ( const lang::EventObject &  aEvent)
static
Exceptions
lang::IndexOutOfBoundsException
uno::RuntimeException

Definition at line 730 of file viewsh.cxx.

References aEvent.

Referenced by notifyEvent().

◆ getCaretPosition()

int LOKDocumentFocusListener::getCaretPosition ( ) const

Definition at line 348 of file viewsh.cxx.

References m_nCaretPosition, and SAL_INFO.

Referenced by SfxViewShell::getA11yCaretPosition().

◆ getFocusedParagraph()

OUString LOKDocumentFocusListener::getFocusedParagraph ( ) const

◆ notifyCaretChanged()

void LOKDocumentFocusListener::notifyCaretChanged ( )

Definition at line 371 of file viewsh.cxx.

References SfxViewShell::libreOfficeKitViewCallback(), m_nCaretPosition, m_pViewShell, and SAL_INFO.

Referenced by notifyEvent().

◆ notifyEvent()

void LOKDocumentFocusListener::notifyEvent ( const accessibility::AccessibleEventObject &  aEvent)
overridevirtual

◆ notifyFocusedParagraphChanged()

void LOKDocumentFocusListener::notifyFocusedParagraphChanged ( )

◆ notifyTextSelectionChanged()

void LOKDocumentFocusListener::notifyTextSelectionChanged ( )

Member Data Documentation

◆ m_aRefList

std::unordered_set< uno::Reference< uno::XInterface > > LOKDocumentFocusListener::m_aRefList
private

Definition at line 246 of file viewsh.cxx.

Referenced by attachRecursive(), detachRecursive(), and disposing().

◆ m_bFocusedParagraphNotified

bool LOKDocumentFocusListener::m_bFocusedParagraphNotified
private

Definition at line 248 of file viewsh.cxx.

Referenced by getFocusedParagraph(), notifyEvent(), and notifyFocusedParagraphChanged().

◆ m_bIsEditingCell

bool LOKDocumentFocusListener::m_bIsEditingCell
private

Definition at line 253 of file viewsh.cxx.

Referenced by attachRecursive(), detachRecursive(), and notifyEvent().

◆ m_nCaretPosition

sal_Int32 LOKDocumentFocusListener::m_nCaretPosition
private

◆ m_nSelectionEnd

sal_Int32 LOKDocumentFocusListener::m_nSelectionEnd
private

Definition at line 251 of file viewsh.cxx.

Referenced by getFocusedParagraph(), notifyEvent(), and notifyTextSelectionChanged().

◆ m_nSelectionStart

sal_Int32 LOKDocumentFocusListener::m_nSelectionStart
private

Definition at line 250 of file viewsh.cxx.

Referenced by getFocusedParagraph(), notifyEvent(), and notifyTextSelectionChanged().

◆ m_pViewShell

const SfxViewShell* LOKDocumentFocusListener::m_pViewShell
private

◆ m_sFocusedParagraph

OUString LOKDocumentFocusListener::m_sFocusedParagraph
private

◆ m_sSelectedCellAddress

OUString LOKDocumentFocusListener::m_sSelectedCellAddress
private

Definition at line 254 of file viewsh.cxx.

Referenced by notifyEvent().

◆ m_sSelectedText

OUString LOKDocumentFocusListener::m_sSelectedText
private

Definition at line 252 of file viewsh.cxx.

Referenced by notifyEvent().

◆ MAX_ATTACHABLE_CHILDREN

constexpr sal_Int64 LOKDocumentFocusListener::MAX_ATTACHABLE_CHILDREN = 30
staticconstexprprivate

Definition at line 243 of file viewsh.cxx.

Referenced by attachRecursive(), and detachRecursive().


The documentation for this class was generated from the following file: