KPimTextEdit
richtextcomposer.cpp
39 q->connect(externalComposer, &RichTextExternalComposer::externalEditorClosed, qq, &RichTextComposer::externalEditorClosed);
40 q->connect(externalComposer, &RichTextExternalComposer::externalEditorStarted, qq, &RichTextComposer::externalEditorStarted);
76 if (!d->blockClearUndoHtmlVersion && d->undoHtmlVersion.isValid() && (d->mode == RichTextComposer::Plain)) {
121 auto hlighter = qobject_cast<KPIMTextEdit::RichTextComposerEmailQuoteHighlighter *>(highlighter());
140void RichTextComposer::setHighlighterColors(KPIMTextEdit::RichTextComposerEmailQuoteHighlighter *highlighter)
212 if (cursorBasePosition >= line.textStart() && cursorBasePosition < line.textStart() + line.textLength()) {
357 while ((leadingWhiteSpaceCount < newLine.length()) && newLine[leadingWhiteSpaceCount].isSpace()) {
386 && (textCursor().blockFormat().headingLevel() != textCursor().block().previous().blockFormat().headingLevel()))
388 && (textCursor().blockFormat().headingLevel() != textCursor().block().next().blockFormat().headingLevel()))) {
406 if ((event->key() == Qt::Key_Return) && (textCursor().blockFormat().headingLevel() > 0) && (textCursor().atBlockEnd())) {
421 if (d->externalComposer->useExternalEditor() && (e->key() != Qt::Key_Shift) && (e->key() != Qt::Key_Control) && (e->key() != Qt::Key_Meta)
422 && (e->key() != Qt::Key_CapsLock) && (e->key() != Qt::Key_NumLock) && (e->key() != Qt::Key_ScrollLock) && (e->key() != Qt::Key_Alt)
430 if (e->key() == Qt::Key_Up && e->modifiers() != Qt::ShiftModifier && textCursor().block().position() == 0
431 && textCursor().block().layout()->lineForTextPosition(textCursor().position()).lineNumber() == 0) {
556 if (sourceText.startsWith("http://"_L1) || sourceText.startsWith("https://"_L1) || sourceText.startsWith("ftps://"_L1)
557 || sourceText.startsWith("ftp://"_L1) || sourceText.startsWith("mailto:"_L1) || sourceText.startsWith("smb://"_L1)
558 || sourceText.startsWith("file://"_L1) || sourceText.startsWith("webdavs://"_L1) || sourceText.startsWith("imaps://"_L1)
559 || sourceText.startsWith("sftp://"_L1) || sourceText.startsWith("fish://"_L1) || sourceText.startsWith("tel:"_L1)) {
Instructs a builder object to create markup output.
Definition markupdirector.h:76
The RichTextComposerActions class.
Definition richtextcomposeractions.h:23
The RichTextComposerControler class.
Definition richtextcomposercontroler.h:23
The RichTextComposerEmailQuoteDecorator class.
Definition richtextcomposeremailquotedecorator.h:20
void textModeChanged(KPIMTextEdit::RichTextComposer::Mode mode)
Emitted whenever the text mode is changed.
int columnNumber() const
Definition richtextcomposer.cpp:231
void focusUp()
Emitted when the user uses the up arrow in the first line.
int linePosition() const
Definition richtextcomposer.cpp:182
The RichTextExternalComposer class.
Definition richtextexternalcomposer.h:22
bool isValid(QStringView ifopt)
KGuiItem clear()
const QList< QKeySequence > & next()
virtual bool event(QEvent *event) override
virtual void keyPressEvent(QKeyEvent *e) override
virtual void mouseReleaseEvent(QMouseEvent *e) override
QChar fromLatin1(char c)
int key() const const
Qt::KeyboardModifiers modifiers() const const
bool hasHtml() const const
bool hasImage() const const
bool hasText() const const
QVariant imageData() const const
QString text() const const
Q_EMITQ_EMIT
bool disconnect(const QMetaObject::Connection &connection)
T qobject_cast(QObject *object)
void clear()
bool isEmpty() const const
QString left(qsizetype n) const const
qsizetype length() const const
QString & replace(QChar before, QChar after, Qt::CaseSensitivity cs)
bool startsWith(QChar c, Qt::CaseSensitivity cs) const const
bool mightBeRichText(const QString &text)
Key_Return
ShiftModifier
bool isValid() const const
QTextLayout * layout() const const
int lineCount() const const
QTextBlock next() const const
int position() const const
KeepAnchor
StartOfBlock
void clearSelection()
void endEditBlock()
void joinPreviousEditBlock()
QTextBlock begin() const const
FixedColumnWidth
void setAcceptRichText(bool accept)
virtual bool canInsertFromMimeData(const QMimeData *source) const const
void cursorPositionChanged()
document
void setHtml(const QString &text)
virtual void insertFromMimeData(const QMimeData *source)
void insertHtml(const QString &text)
void insertPlainText(const QString &text)
void setLineWrapColumnOrWidth(int w)
void setLineWrapMode(LineWrapMode mode)
void setOverwriteMode(bool overwrite)
plainText
void setPlainText(const QString &text)
void setTextCursor(const QTextCursor &cursor)
QTextCursor textCursor() const const
QString toPlainText() const const
void setWordWrapMode(QTextOption::WrapMode policy)
int textLength() const const
int textStart() const const
WordWrap
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
cursor
QLayout * layout() const const
pos
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.