60
60
void setReplaceDoubleQuotes(bool b) { m_replaceDoubleQuotes = b; }
61
61
void setReplaceSingleQuotes(bool b) { m_replaceSingleQuotes = b; }
62
62
void setAdvancedAutocorrect(bool b) { m_advancedAutocorrect = b; }
63
void setTypographicSingleQuotes(TypographicQuotes singleQuote) { m_typographicSingleQuotes = singleQuote; }
64
void setTypographicDoubleQuotes(TypographicQuotes doubleQuote) { m_typographicDoubleQuotes = doubleQuote; }
65
void setUpperCaseExceptions(QSet<QString> exceptions);
66
void setTwoUpperLetterExceptions(QSet<QString> exceptions);
67
void setAutocorrectEntries(QHash<QString, QString> entries);
63
void setTypographicSingleQuotes(const TypographicQuotes& singleQuote) { m_typographicSingleQuotes = singleQuote; }
64
void setTypographicDoubleQuotes(const TypographicQuotes& doubleQuote) { m_typographicDoubleQuotes = doubleQuote; }
65
void setUpperCaseExceptions(const QSet<QString>& exceptions);
66
void setTwoUpperLetterExceptions(const QSet<QString>& exceptions);
67
void setAutocorrectEntries(const QHash<QString, QString>& entries);
69
bool getUppercaseFirstCharOfSentence() { return m_uppercaseFirstCharOfSentence; }
70
bool getFixTwoUppercaseChars() { return m_fixTwoUppercaseChars; }
71
bool getAutoFormatURLs() { return m_autoFormatURLs; }
72
bool getSingleSpaces() { return m_singleSpaces; }
73
bool getTrimParagraphs() { return m_trimParagraphs; }
74
bool getAutoBoldUnderline() { return m_autoBoldUnderline; }
75
bool getAutoFractions() { return m_autoFractions; }
76
bool getAutoNumbering() { return m_autoNumbering; }
77
bool getSuperscriptAppendix() { return m_superscriptAppendix; }
78
bool getCapitalizeWeekDays() { return m_capitalizeWeekDays; }
79
bool getAutoFormatBulletList() { return m_autoFormatBulletList; }
80
bool getReplaceDoubleQuotes() { return m_replaceDoubleQuotes; }
81
bool getReplaceSingleQuotes() { return m_replaceSingleQuotes; }
82
bool getAdvancedAutocorrect() { return m_advancedAutocorrect; }
83
TypographicQuotes getTypographicSingleQuotes() { return m_typographicSingleQuotes; }
84
TypographicQuotes getTypographicDoubleQuotes() { return m_typographicDoubleQuotes; }
85
TypographicQuotes getTypographicDefaultSingleQuotes();
86
TypographicQuotes getTypographicDefaultDoubleQuotes();
87
QSet<QString> getUpperCaseExceptions();
88
QSet<QString> getTwoUpperLetterExceptions();
89
QHash<QString, QString> getAutocorrectEntries();
69
bool getUppercaseFirstCharOfSentence() const { return m_uppercaseFirstCharOfSentence; }
70
bool getFixTwoUppercaseChars()const { return m_fixTwoUppercaseChars; }
71
bool getAutoFormatURLs() const { return m_autoFormatURLs; }
72
bool getSingleSpaces() const { return m_singleSpaces; }
73
bool getTrimParagraphs() const { return m_trimParagraphs; }
74
bool getAutoBoldUnderline() const { return m_autoBoldUnderline; }
75
bool getAutoFractions() const { return m_autoFractions; }
76
bool getAutoNumbering() const { return m_autoNumbering; }
77
bool getSuperscriptAppendix() const { return m_superscriptAppendix; }
78
bool getCapitalizeWeekDays() const { return m_capitalizeWeekDays; }
79
bool getAutoFormatBulletList() const { return m_autoFormatBulletList; }
80
bool getReplaceDoubleQuotes() const { return m_replaceDoubleQuotes; }
81
bool getReplaceSingleQuotes() const { return m_replaceSingleQuotes; }
82
bool getAdvancedAutocorrect() const { return m_advancedAutocorrect; }
83
TypographicQuotes getTypographicSingleQuotes() const { return m_typographicSingleQuotes; }
84
TypographicQuotes getTypographicDoubleQuotes() const { return m_typographicDoubleQuotes; }
85
TypographicQuotes getTypographicDefaultSingleQuotes() const;
86
TypographicQuotes getTypographicDefaultDoubleQuotes() const;
87
QSet<QString> getUpperCaseExceptions() const;
88
QSet<QString> getTwoUpperLetterExceptions() const;
89
QHash<QString, QString> getAutocorrectEntries() const;
92
92
void configureAutocorrect();