21 #ifndef TDESPELL_HIGHLIGHTER_H
22 #define TDESPELL_HIGHLIGHTER_H
26 #include <tqsyntaxhighlighter.h>
32 class Highlighter :
public TQSyntaxHighlighter
35 Highlighter( TQTextEdit *textEdit,
36 const TQString& configFile = TQString::null,
37 Filter *filter = Filter::defaultFilter() );
40 virtual int highlightParagraph(
const TQString& text,
41 int endStateOfLastPara );
43 Filter *currentFilter()
const;
44 void setCurrentFilter( Filter *filter );
46 TQString currentLanguage()
const;
47 void setCurrentLanguage(
const TQString& lang );
50 virtual void setMisspelled(
int start,
int count );
51 virtual void unsetMisspelled(
int start,
int count );