KTextAddons
9#include "autocorrectionsettings.h"
10#include "textautocorrectioncore_export.h"
13namespace TextAutoCorrectionCore
15class AutoCorrectionPrivate;
20class TEXTAUTOCORRECTIONCORE_EXPORT AutoCorrection
29 bool autocorrect(
bool htmlMode,
QTextDocument &document,
int &position);
31 void loadGlobalFileName(
const QString &fname);
33 [[nodiscard]] AutoCorrectionSettings *autoCorrectionSettings()
const;
34 void setAutoCorrectionSettings(AutoCorrectionSettings *newAutoCorrectionSettings);
36 void writeAutoCorrectionXmlFile(
const QString &filename);
39 TEXTAUTOCORRECTIONCORE_NO_EXPORT
void fixTwoUppercaseChars();
40 [[nodiscard]] TEXTAUTOCORRECTIONCORE_NO_EXPORT
bool singleSpaces()
const;
41 TEXTAUTOCORRECTIONCORE_NO_EXPORT
void capitalizeWeekDays();
42 [[nodiscard]] TEXTAUTOCORRECTIONCORE_NO_EXPORT
bool autoFractions()
const;
43 TEXTAUTOCORRECTIONCORE_NO_EXPORT
void uppercaseFirstCharOfSentence();
44 [[nodiscard]] TEXTAUTOCORRECTIONCORE_NO_EXPORT
int advancedAutocorrect();
45 TEXTAUTOCORRECTIONCORE_NO_EXPORT
void replaceTypographicQuotes();
46 TEXTAUTOCORRECTIONCORE_NO_EXPORT
void superscriptAppendix();
47 TEXTAUTOCORRECTIONCORE_NO_EXPORT
void addNonBreakingSpace();
49 TEXTAUTOCORRECTIONCORE_NO_EXPORT
void selectPreviousWord(
QTextCursor &cursor,
int cursorPosition);
50 TEXTAUTOCORRECTIONCORE_NO_EXPORT
void selectStringOnMaximumSearchString(
QTextCursor &cursor,
int cursorPosition);
52 [[nodiscard]] TEXTAUTOCORRECTIONCORE_NO_EXPORT
bool autoFormatURLs();
53 [[nodiscard]] TEXTAUTOCORRECTIONCORE_NO_EXPORT
bool autoBoldUnderline();
55 [[nodiscard]] TEXTAUTOCORRECTIONCORE_NO_EXPORT
QString autoDetectURL(
const QString &_word)
const;
56 [[nodiscard]] TEXTAUTOCORRECTIONCORE_NO_EXPORT
bool excludeToUppercase(
const QString &word)
const;
57 [[nodiscard]] TEXTAUTOCORRECTIONCORE_NO_EXPORT
QColor linkColor();
58 friend class AutoCorrectionPrivate;
59 std::unique_ptr<AutoCorrectionPrivate>
const d;
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:24 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.