Messagelib
richtextcomposerng.cpp
32 richTextComposerSignatures = new MessageComposer::RichTextComposerSignatures(richtextComposer, richtextComposer);
68 TextAutoCorrection::AutoCorrectionSettings *settings = d->autoCorrection->autoCorrectionSettings();
76 return charFormat.isFrameFormat() || charFormat.isImageFormat() || charFormat.isListFormat() || charFormat.isTableFormat()
82 if (d->autoCorrection && d->autoCorrection->autoCorrectionSettings()->isEnabledAutoCorrection()) {
83 if ((e->key() == Qt::Key_Space) || (e->key() == Qt::Key_Enter) || (e->key() == Qt::Key_Return)) {
128 static const QRegularExpression styleRegex(QStringLiteral("<span style=\".*?font-size:(.*?)pt;.*?</span>"));
140 cleanHtml.replace(rmatch.capturedStart(1), capLen + 2 /* QLatin1String("pt").size() */, replacement + QLatin1String("em"));
151 MessageComposer::PluginEditorConvertTextInterface::ConvertTextStatus RichTextComposerNg::convertPlainText(MessageComposer::TextPart *textPart)
159 const bool wasConverted = convertPlainText(textPart) == MessageComposer::PluginEditorConvertTextInterface::ConvertTextStatus::Converted;
195 QStringLiteral("<html>\n<head>\n<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\n</head>\n<body>%1</body>\n</html>")
224 static const QString EMPTYLINEREGEX = QStringLiteral("<p style=\"-qt-paragraph-type:empty;(?:.*?)</p>");
226 static const QString OLLISTPATTERNQT = QStringLiteral("<ol style=\"margin-top: 0px; margin-bottom: 0px; margin-left: 0px;");
228 static const QString ULLISTPATTERNQT = QStringLiteral("<ul style=\"margin-top: 0px; margin-bottom: 0px; margin-left: 0px;");
230 static const QString ORDEREDLISTHTML = QStringLiteral("<ol style=\"margin-top: 0px; margin-bottom: 0px;");
232 static const QString UNORDEREDLISTHTML = QStringLiteral("<ul style=\"margin-top: 0px; margin-bottom: 0px;");
237 // if you have three or more empty lines. It's best to replace empty <p> elements with <p> </p>.
373 const QVector<KIdentityManagement::Signature::EmbeddedImagePtr> embeddedImages = signature.embeddedImages();
QString toPlainText() const const
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
Definition: attachmentcontrollerbase.h:25
QString number(int n, int base)
QTextCursor textCursor() const const
void insertHtml(const QString &text)
int size() const const
int selectionStart() const const
void insertPlainText(const QString &text)
QString text() const const
void setTextCursor(const QTextCursor &cursor)
QTextBlock block() const const
The RichTextComposerSignatures class.
Definition: richtextcomposersignatures.h:24
document
bool isInlinedHtml() const
KCALUTILS_EXPORT QString errorMessage(const KCalendarCore::Exception &exception)
KeepAnchor
bool atBlockEnd() const const
AddNewLines
bool isEmpty() const const
int length() const const
bool isImageFormat() const const
bool isListFormat() const const
bool atEnd() const const
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const const
Key_Space
int selectionEnd() const const
double toDouble(bool *ok) const const
void error(QWidget *parent, const QString &text, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
QString & replace(int position, int n, QChar after)
bool isTableFormat() const const
void setPosition(int pos, QTextCursor::MoveMode m)
void beginEditBlock()
QString withSeparator(bool *ok=nullptr, QString *errorMessage=nullptr) const
int key() const const
QString arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const const
int capturedEnd(int nth) const const
void insertText(const QString &text)
NextCharacter
AddSeparator
KGuiItem ok()
bool hasSelection() const const
Type type() const
void endEditBlock()
bool movePosition(QTextCursor::MoveOperation operation, QTextCursor::MoveMode mode, int n)
bool isFrameFormat() const const
bool isTableCellFormat() const const
QString rawText(bool *ok=nullptr, QString *errorMessage=nullptr) const
int position() const const
QString captured(int nth) const const
int capturedLength(int nth) const const
int capturedStart(int nth) const const
void ensureCursorVisible()
FixedColumnWidth
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Mar 22 2023 04:07:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Mar 22 2023 04:07:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.