7 #ifndef ASPELLPLUGINIMPL_H
8 #define ASPELLPLUGINIMPL_H
16 #include <QStringList>
19 #include "ui_aspellpluginbase.h"
37 static const char* kDEF_CONTEXT;
39 static const QString kDEF_ASPELL_ENTRY;
75 Changes(uint nwords=0, uint ntot=0, uint nframes=0) :
76 fnwords(nwords), fntot(ntot), fnframes(nframes) {}
83 QHash<QString, QString> rememberedWords;
87 QStringList fwordlist;
91 QString m_errorMessage;
117 const QString& jargon,
119 const QString& entry=kDEF_ASPELL_ENTRY);
244 void languageChange();
247 #endif // #ifndef ASPELLPLUGINIMPL_H
void on_fcloseBtn_clicked()
Slot: Called when the "Close" button is clicked. Makes any pending replacements, and closes spell-che...
Definition: aspellpluginimpl.cpp:285
Implementation of plugin. GUI part is derived from AspellPluginBase class, as aspellpluginbase.{cpp,h} get overwritten by uic. Interface to aspell uses Speller::Aspell::Suggest.
Definition: aspellpluginimpl.h:32
AspellPluginImpl(ScribusDoc *doc, QWidget *parent=NULL)
Constructor for spell-checking plugin implementation.
Definition: aspellpluginimpl.cpp:31
void getPreferences()
Retrieve saved user preferences: language, jargon, encoding.
Definition: aspellpluginimpl.cpp:474
static const char * kDEF_ENCODING
Default character encoding for words.
Definition: suggest.h:117
void on_flistReplacements_itemActivated()
Slot: Called when an item in the list of aspell suggestions is highlighted. Changes the current word ...
Definition: aspellpluginimpl.cpp:420
void parseSelection()
Spell-check selected frames in the page.
Definition: aspellpluginimpl.cpp:516
void setPreferences(const QString &lang, const QString &jargon, const QString &encoding=Speller::Aspell::Suggest::kDEF_ENCODING, const QString &entry=kDEF_ASPELL_ENTRY)
Save user preferences.
Definition: aspellpluginimpl.cpp:487
the Document Class
Definition: scribusdoc.h:90
void spellCheckDone()
Called when spell-checking is completed. Pops up an information dialog.
Definition: aspellpluginimpl.cpp:263
void activateSpellGUI(bool active)
Activates spell-checking GUI elements in spell-checking tab, i.e., everything except combo box at top...
Definition: aspellpluginimpl.cpp:146
void nextWord()
Skips to the beginning of the next word in 'fcontent', the text being spell-checked.
Definition: aspellpluginimpl.cpp:164
Class for interfacing with aspell. Should work with any aspell version from 0.60 onwards.
Definition: suggest.h:31
bool handleSpellConfig(const QString &dictFullName)
Sets the dict configuration based on given dictFullName or in the constructor. See on_flistDicts_acti...
Definition: aspellpluginimpl.cpp:428
void on_fchangeAllBtn_clicked()
Slot: Called when the "Change All" button is clicked. Replaces all occurrences of the word being chec...
Definition: aspellpluginimpl.cpp:328
void on_fskipBtn_clicked()
Slot: Called when the "Skip" button is clicked. Skips the word currently being spell-checked.
Definition: aspellpluginimpl.cpp:365
QString errorMessage()
Returns a error message for caller. It should disable the plugin then.
Definition: aspellpluginimpl.h:183
void on_fskipAllBtn_clicked()
Slot: Called when the "Skip All" button is clicked. Skips all occurences of the word currently being ...
Definition: aspellpluginimpl.cpp:374
void parseItem()
Base method to spell-check text in current frame.
Definition: aspellpluginimpl.cpp:505
Definition: prefscontext.h:40
void on_fchangeBtn_clicked()
Slot: Called when the "Change" button is clicked. Replaces the word being checked with the currently ...
Definition: aspellpluginimpl.cpp:293
~AspellPluginImpl()
Destructor for spell-checking plugin implementation.
Definition: aspellpluginimpl.cpp:127
void on_faddWordBtn_clicked()
Slot: Called when the "Add word" button is clicked. Adds current suggestion to user's personal direct...
Definition: aspellpluginimpl.cpp:401
Definition: pageitem.h:92
void checkText()
Initializes the position in the current text, sets the current word, and starts spell-checking.
Definition: aspellpluginimpl.cpp:199
void on_flistDicts_activated()
Slot: Called when an item in the list of available aspell dictionaries is selected. Resets aspell dictionary to selected one.
Definition: aspellpluginimpl.cpp:448