~smartboyhw/ubuntu/raring/calligra/2.6.0-0ubuntu1

« back to all changes in this revision

Viewing changes to plugins/textediting/autocorrection/Autocorrect.h

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2012-10-23 21:09:16 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20121023210916-m82w6zxnxhaxz7va
Tags: 1:2.5.90-0ubuntu1
* New upstream alpha release (LP: #1070436)
  - Add libkactivities-dev and libopenimageio-dev to build-depends
  - Add kubuntu_build_calligraactive.diff to build calligraactive by default
  - Add package for calligraauthor and move files that are shared between
    calligrawords and calligraauthor to calligrawords-common
* Document the patches
* Remove numbers from patches so they follow the same naming scheme as
  the rest of our patches.
* calligra-data breaks replaces krita-data (<< 1:2.5.3) (LP: #1071686)

Show diffs side-by-side

added added

removed removed

Lines of Context:
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);
68
68
 
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;
90
90
 
91
91
private slots:
92
92
    void configureAutocorrect();
115
115
    void readConfig();
116
116
    void writeConfig();
117
117
    void readAutocorrectXmlEntry();
 
118
    void writeAutocorrectXmlEntry();
118
119
 
119
120
private:
120
121
    bool m_uppercaseFirstCharOfSentence; // convert first letter of a sentence automaticall to uppercase