9#include "kpimtextedit_export.h"
11#include <TextCustomEditor/RichTextEditor>
16class RichTextComposerControler;
17class RichTextComposerActions;
18class RichTextExternalComposer;
19class RichTextComposerEmailQuoteHighlighter;
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);
125 void keyPressEvent(
QKeyEvent *event)
override;
127 void insertFromMimeData(
const QMimeData *source)
override;
128 bool canInsertFromMimeData(
const QMimeData *source)
const override;
129 void mouseReleaseEvent(
QMouseEvent *event)
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.
The RichTextComposer 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.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:19:16 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.