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"
24 #include "WordLangTuple.h"
28 /** A controller for Spellchecker dialogs.
30 class ControlSpellchecker : public ControlDialogBD {
33 ControlSpellchecker(LyXView &, Dialogs &);
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
50 /// check text until next misspelled/unknown word
54 string getSuggestion();
59 /// returns progress value
64 /// returns exit message
71 /// set the params before show or update
77 virtual void apply() {}
82 /// current word being checked and lang code
85 /// values for progress
96 /// set to true to stop checking
99 /// The actual spellchecker object
100 SpellBase * speller_;
104 #endif // CONTROLSPELLCHECKER_H