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"
25 /** A controller for Spellchecker dialogs.
27 class ControlSpellchecker : public ControlDialogBD {
30 ControlSpellchecker(LyXView &, Dialogs &);
32 /// replace word with replacement
33 void replace(string const &);
35 /// replace all occurances of word
36 void replaceAll(string const &);
38 /// insert word in personal dictionary
41 /// ignore all occurances of word
47 /// 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
85 /// values for progress
96 /// set to true to stop checking
99 /// spellchecker status
100 enum SpellBase::spellStatus result_;
102 /// The actual spellchecker object
103 SpellBase * speller_;
107 #endif // CONTROLSPELLCHECKER_H