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

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 > xDesktop
 
css::uno::Reference< css::linguistic2::XLinguServiceManager2 > xLngSvcMgr
 
css::uno::Reference< css::linguistic2::XProofreadingIterator > 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::SwLinguServiceEventListener ( const SwLinguServiceEventListener )
privatedelete
SwLinguServiceEventListener::SwLinguServiceEventListener ( )
SwLinguServiceEventListener::~SwLinguServiceEventListener ( )
overridevirtual

Definition at line 68 of file dlelstnr.cxx.

Member Function Documentation

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

XEventListener.

Definition at line 101 of file dlelstnr.cxx.

References xGCIterator, and xLngSvcMgr.

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

Definition at line 117 of file dlelstnr.cxx.

References xDesktop, xGCIterator, and xLngSvcMgr.

SwLinguServiceEventListener& SwLinguServiceEventListener::operator= ( const SwLinguServiceEventListener )
privatedelete
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 availbale

Definition at line 72 of file dlelstnr.cxx.

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

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

XTerminateListener.

Definition at line 112 of file dlelstnr.cxx.

Member Data Documentation

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

Definition at line 49 of file dlelstnr.hxx.

Referenced by notifyTermination(), and SwLinguServiceEventListener().

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

Definition at line 51 of file dlelstnr.hxx.

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

css::uno::Reference<css::linguistic2::XLinguServiceManager2 > SwLinguServiceEventListener::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: