KPimTextEdit
9#include "kpimtextedit_export.h"
11#include <TextCustomEditor/RichTextEditor>
19class RichTextComposerEmailQuoteHighlighter;
29 ~RichTextComposer()
override;
39 [[nodiscard]] Mode textMode()
const;
46 void enableWordWrap(
int wrapColumn);
53 void disableWordWrap();
59 [[nodiscard]]
int linePosition()
const;
64 [[nodiscard]]
int columnNumber()
const;
66 void forcePlainTextMarkup(
bool force);
68 void activateRichText();
69 void switchToPlainText();
71 void setTextOrHtml(
const QString &text);
72 [[nodiscard]]
QString textOrHtml()
const;
74 virtual void setHighlighterColors(KPIMTextEdit::RichTextComposerEmailQuoteHighlighter *highlighter);
76 void setUseExternalEditor(
bool use);
77 void setExternalEditorPath(
const QString &path);
78 [[nodiscard]]
bool checkExternalEditorFinished();
79 void killExternalEditor();
84 void setQuotePrefixName(
const QString "ePrefix);
85 [[nodiscard]]
QString quotePrefixName()
const;
87 void setCursorPositionFromStart(
unsigned int pos);
88 [[nodiscard]]
int quoteLength(
const QString &line,
bool oneQuote =
false)
const;
89 [[nodiscard]]
bool isLineQuoted(
const QString &line)
const;
90 const QString defaultQuoteSign()
const;
94 void setEnableActions(
bool state);
99 void createHighlighter()
override;
100 [[nodiscard]]
virtual bool processModifyText(
QKeyEvent *event);
103 void insertPlainTextImplementation();
104 void slotChangeInsertMode();
107 void insertModeChanged();
120 void externalEditorStarted();
121 void externalEditorClosed();
122 void insertEmoticon(
const QString &str);
127 void insertFromMimeData(
const QMimeData *source)
override;
128 bool canInsertFromMimeData(
const QMimeData *source)
const override;
130 void clearDecorator()
override;
131 void updateHighLighter()
override;
136 KPIMTEXTEDIT_NO_EXPORT
void evaluateListSupport(
QKeyEvent *
event);
137 KPIMTEXTEDIT_NO_EXPORT
void evaluateReturnKeySupport(
QKeyEvent *
event);
138 class RichTextComposerPrivate;
139 std::unique_ptr<RichTextComposerPrivate>
const d;
The RichTextComposerActions class.
The RichTextComposerControler class.
void textModeChanged(KPIMTextEdit::RichTextComposer::Mode mode)
Emitted whenever the text mode is changed.
void focusUp()
Emitted when the user uses the up arrow in the first line.
The RichTextExternalComposer class.
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:57:12 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.