2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2001 The LyX Team.
9 * ======================================================
11 * \file ControlSpellchecker.h
12 * \author Edwin Leuven <leuven@fee.uva.nl>
15 #ifndef CONTROLSPELLCHECKER_H
16 #define CONTROLSPELLCHECKER_H
22 #include "ControlDialogs.h"
25 /** A controller for Spellchecker dialogs.
27 class ControlSpellchecker : public ControlDialog<ControlConnectBD> {
30 ControlSpellchecker(LyXView &, Dialogs &);
33 ~ControlSpellchecker();
35 /// replace word with replacement
36 void replace(string const &);
38 /// replace all occurances of word
39 void replaceAll(string const &);
41 /// insert word in personal dictionary
44 /// ignore all occurances of word
53 /// check text until next misspelled/unknown word
60 string getSuggestion();
65 /// returns progress value
70 /// returns exit message
77 /// set the params before show or update
84 virtual void apply() {}
89 /// current word being checked
92 /// values for progress
103 /// set to true to stop checking
106 /// spellchecker status
107 enum SpellBase::spellStatus result_;
109 /// The actual spellchecker object
110 SpellBase * speller_;
114 #endif // CONTROLSPELLCHECKER_H