![]() |
Scribus
Open source desktop publishing at your fingertips
|
#include <hyphenator.h>
Public Slots | |
void | slotNewSettings (int Wordlen, bool Autom, bool ACheck, int Num) |
Writes actual hyphen configuration into doc object. More... | |
void | slotHyphenateWord (PageItem *it, const QString &text, int firstC) |
Make hyphenation when user edits text in text frame manually. If is everything set correctly and textframe selected language fits the dictionary language. At first removes any old hyphens then sets new one. More... | |
void | slotHyphenate (PageItem *it) |
Make hyphenation as described in. More... | |
void | slotDeHyphenate (PageItem *it) |
Removes hyphenation either for the whole text frame or the selected text if there is a selection. More... | |
Public Member Functions | |
Hyphenator (QWidget *parent, ScribusDoc *dok) | |
Constructor reads user configuration and sets hyphenator properties. More... | |
~Hyphenator () | |
Safely cleans hyphen. More... | |
Public Attributes | |
int | MinWordLen |
int | HyCount |
QString | Language |
bool | Automatic |
bool | AutoCheck |
QHash< QString, QString > | rememberedWords |
QHash< QString, QString > | specialWords |
QSet< QString > | ignoredWords |
This class is the core of the Scribus hyphenation system.
Hyphenator::Hyphenator | ( | QWidget * | parent, |
ScribusDoc * | dok | ||
) |
Constructor reads user configuration and sets hyphenator properties.
parent | unused |
dok | ScribusDoc reference. It's used for preferences accessing. |
Hyphenator::~Hyphenator | ( | ) |
Safely cleans hyphen.
|
slot |
Removes hyphenation either for the whole text frame or the selected text if there is a selection.
it | references |
|
slot |
Make hyphenation as described in.
it | references |
|
slot |
Make hyphenation when user edits text in text frame manually. If is everything set correctly and textframe selected language fits the dictionary language. At first removes any old hyphens then sets new one.
it | references |
text | is a word to hyphenate. |
firstC | is the first character of the word in it item. |
|
slot |
Writes actual hyphen configuration into doc object.
Wordlen | lenght of the word. |
Autom | is automatic flag. |
ACheck | AutoCheck flag. |
Num | HyCount |
bool Hyphenator::AutoCheck |
Flag - obsolete?
bool Hyphenator::Automatic |
Flag - if user set auto hyphen processing.
int Hyphenator::HyCount |
Maximum number of hyphenations allowed following each other
QString Hyphenator::Language |
Language in use
int Hyphenator::MinWordLen |
There are languages having rule not to hyphen word shorter than MinWordLen