LibreOffice Module sw (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwLinguServiceEventListener Class Referencefinal

EventListener that triggers spellchecking and hyphenation. More...

#include <dlelstnr.hxx>

Inheritance diagram for SwLinguServiceEventListener:
[legend]
Collaboration diagram for SwLinguServiceEventListener:
[legend]

Public Member Functions

 SwLinguServiceEventListener ()
 
virtual ~SwLinguServiceEventListener () override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &rEventObj) override
 XEventListener. More...
 
virtual void SAL_CALL processLinguServiceEvent (const css::linguistic2::LinguServiceEvent &rLngSvcEvent) override
 XLinguServiceEventListener. More...
 
virtual void SAL_CALL queryTermination (const css::lang::EventObject &rEventObj) override
 XTerminateListener. More...
 
virtual void SAL_CALL notifyTermination (const css::lang::EventObject &rEventObj) override
 

Private Member Functions

 SwLinguServiceEventListener (const SwLinguServiceEventListener &)=delete
 
SwLinguServiceEventListeneroperator= (const SwLinguServiceEventListener &)=delete
 

Private Attributes

css::uno::Reference< css::frame::XDesktop2 > m_xDesktop
 
css::uno::Reference< css::linguistic2::XLinguServiceManager2 > m_xLngSvcMgr
 
css::uno::Reference< css::linguistic2::XProofreadingIterator > m_xGCIterator
 

Detailed Description

EventListener that triggers spellchecking and hyphenation.

Happens when relevant changes (to the dictionaries of the dictionary list, or properties) were made.

Definition at line 42 of file dlelstnr.hxx.

Constructor & Destructor Documentation

◆ SwLinguServiceEventListener() [1/2]

SwLinguServiceEventListener::SwLinguServiceEventListener ( const SwLinguServiceEventListener )
privatedelete

◆ SwLinguServiceEventListener() [2/2]

SwLinguServiceEventListener::SwLinguServiceEventListener ( )

◆ ~SwLinguServiceEventListener()

SwLinguServiceEventListener::~SwLinguServiceEventListener ( )
overridevirtual

Definition at line 70 of file dlelstnr.cxx.

Member Function Documentation

◆ disposing()

void SAL_CALL SwLinguServiceEventListener::disposing ( const css::lang::EventObject &  rEventObj)
overridevirtual

XEventListener.

Definition at line 103 of file dlelstnr.cxx.

References m_xGCIterator, and m_xLngSvcMgr.

◆ notifyTermination()

void SAL_CALL SwLinguServiceEventListener::notifyTermination ( const css::lang::EventObject &  rEventObj)
overridevirtual

Definition at line 119 of file dlelstnr.cxx.

References m_xDesktop, m_xGCIterator, and m_xLngSvcMgr.

◆ operator=()

SwLinguServiceEventListener & SwLinguServiceEventListener::operator= ( const SwLinguServiceEventListener )
privatedelete

◆ processLinguServiceEvent()

void SAL_CALL SwLinguServiceEventListener::processLinguServiceEvent ( const css::linguistic2::LinguServiceEvent &  rLngSvcEvent)
overridevirtual

XLinguServiceEventListener.

! since this function may be called within the ctor of ! SwView (during formatting) where the WrtShell is not yet ! created, we have to check for the WrtShellPtr to see ! if it is already available

Definition at line 74 of file dlelstnr.cxx.

References SwModule::CheckSpellChanges(), SwViewShell::ChgHyphenation(), SwModule::GetFirstView(), SwModule::GetNextView(), SwView::GetWrtShell(), and SwView::GetWrtShellPtr().

◆ queryTermination()

void SAL_CALL SwLinguServiceEventListener::queryTermination ( const css::lang::EventObject &  rEventObj)
overridevirtual

XTerminateListener.

Definition at line 114 of file dlelstnr.cxx.

Member Data Documentation

◆ m_xDesktop

css::uno::Reference<css::frame::XDesktop2 > SwLinguServiceEventListener::m_xDesktop
private

Definition at line 49 of file dlelstnr.hxx.

Referenced by notifyTermination(), and SwLinguServiceEventListener().

◆ m_xGCIterator

css::uno::Reference<css::linguistic2::XProofreadingIterator > SwLinguServiceEventListener::m_xGCIterator
private

Definition at line 51 of file dlelstnr.hxx.

Referenced by disposing(), notifyTermination(), and SwLinguServiceEventListener().

◆ m_xLngSvcMgr

css::uno::Reference<css::linguistic2::XLinguServiceManager2 > SwLinguServiceEventListener::m_xLngSvcMgr
private

Definition at line 50 of file dlelstnr.hxx.

Referenced by disposing(), notifyTermination(), and SwLinguServiceEventListener().


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