KTextEditor
13#ifndef KATE_SPELLCHECKDIALOG_H
14#define KATE_SPELLCHECKDIALOG_H
32#include "ktexteditor/range.h"
41class KateSpellCheckDialog :
public QObject
45 explicit KateSpellCheckDialog(KTextEditor::ViewPrivate *);
46 ~KateSpellCheckDialog()
override;
48 void createActions(KActionCollection *);
52 void spellcheckFromCursor();
55 void spellcheckSelection();
65 void spellcheck(
const KTextEditor::Cursor from,
const KTextEditor::Cursor to = KTextEditor::Cursor());
67 void misspelling(
const QString &,
int);
68 void corrected(
const QString &,
int,
const QString &);
70 void performSpellCheck(KTextEditor::Range range);
71 void installNextSpellCheckRange();
75 void objectDestroyed(
QObject *
object);
77 void languageChanged(
const QString &language);
80 KTextEditor::Cursor locatePosition(
int pos);
82 KTextEditor::ViewPrivate *m_view;
84 Sonnet::Speller *m_speller;
85 Sonnet::BackgroundChecker *m_backgroundChecker;
87 SpellCheckBar *m_sonnetDialog;
90 KTextEditor::Range m_currentSpellCheckRange;
91 KTextEditor::MovingRange *m_globalSpellCheckRange;
93 QList<QPair<int, int>> m_currentDecToEncOffsetList;
95 QList<QPair<KTextEditor::Range, QString>> m_languagesInSpellCheckRange;
96 QList<QPair<KTextEditor::Range, QString>>::iterator m_currentLanguageRangeIterator;
99 KTextEditor::Cursor m_spellPosCursor;
102 bool m_spellCheckCancelledByUser;
104 QString m_userSpellCheckLanguage, m_previousGivenSpellCheckLanguage;
106 void spellCheckDone();
A range that is bound to a specific Document, and maintains its position.
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:52:52 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.