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 "ControlDialog_impl.h"
27 /** A controller for Spellchecker dialogs.
29 class ControlSpellchecker : public ControlDialogBD {
32 ControlSpellchecker(LyXView &, Dialogs &);
34 /// replace word with replacement
35 void replace(string const &);
37 /// replace all occurances of word
38 void replaceAll(string const &);
40 /// insert word in personal dictionary
43 /// ignore all occurances of word
49 /// check text until next misspelled/unknown word
53 string getSuggestion();
58 /// returns progress value
63 /// returns exit message
70 /// set the params before show or update
76 virtual void apply() {}
81 /// current word being checked
84 /// values for progress
95 /// set to true to stop checking
98 /// The actual spellchecker object
103 #endif // CONTROLSPELLCHECKER_H