LibreOffice Module sw (master)  1
Public Member Functions | List of all members
IGrammarContact Class Referenceabstract

Organizer of the contact between SwTextNodes and grammar checker. More...

#include <IGrammarContact.hxx>

Inheritance diagram for IGrammarContact:
[legend]

Public Member Functions

virtual void updateCursorPosition (const SwPosition &rNewPos)=0
 Update cursor position reacts to a change of the current input cursor As long as the cursor in inside a paragraph, the grammar checking does not show new grammar faults. More...
 
virtual SwGrammarMarkUpgetGrammarCheck (SwTextNode &rTextNode, bool bCreate)=0
 getGrammarCheck checks if the given text node is blocked by the current cursor if not, the normal markup list is returned if blocked, it will return a markup list "proxy" More...
 
virtual void finishGrammarCheck (SwTextNode &rTextNode)=0
 finishGrammarCheck() has to be called if a grammar checking has been completed for a text node. More...
 
virtual ~IGrammarContact ()
 

Detailed Description

Organizer of the contact between SwTextNodes and grammar checker.

Definition at line 29 of file IGrammarContact.hxx.

Constructor & Destructor Documentation

virtual IGrammarContact::~IGrammarContact ( )
inlinevirtual

Definition at line 57 of file IGrammarContact.hxx.

Member Function Documentation

virtual void IGrammarContact::finishGrammarCheck ( SwTextNode rTextNode)
pure virtual

finishGrammarCheck() has to be called if a grammar checking has been completed for a text node.

If this text node has not been hidden by the current proxy list it will be repainted. Otherwise the proxy list replaces the old list and the repaint will be triggered by a timer

Returns
void

Implemented in SwGrammarContact.

Referenced by finishGrammarCheck().

virtual SwGrammarMarkUp* IGrammarContact::getGrammarCheck ( SwTextNode rTextNode,
bool  bCreate 
)
pure virtual

getGrammarCheck checks if the given text node is blocked by the current cursor if not, the normal markup list is returned if blocked, it will return a markup list "proxy"

Returns
a markup list (grammar) for the given SwTextNode

Implemented in SwGrammarContact.

Referenced by SwXTextMarkup::commitMultiTextMarkup(), SwXTextMarkup::commitStringMarkup(), and lcl_SetWrong().

virtual void IGrammarContact::updateCursorPosition ( const SwPosition rNewPos)
pure virtual

Update cursor position reacts to a change of the current input cursor As long as the cursor in inside a paragraph, the grammar checking does not show new grammar faults.

When the cursor leaves the paragraph, these faults are shown.

Returns
void

Implemented in SwGrammarContact.

Referenced by SwCursorShell::UpdateCursorPos().


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