KDEUI
Go to the documentation of this file.
24#ifndef KRICHTEXTEDIT_H
25#define KRICHTEXTEDIT_H
32class KRichTextEditPrivate;
36#define HAVE_INSERTPLAINTEXT 1
103 void enableRichTextMode();
108 Mode textMode()
const;
114 QString textOrHtml()
const;
123 void setTextOrHtml(
const QString &text);
133 QString currentLinkText()
const;
142 QString currentLinkUrl()
const;
152 void selectLinkText(QTextCursor* cursor)
const;
159 void selectLinkText()
const;
172 void updateLink(
const QString &linkUrl,
const QString &linkText);
179 bool canIndentList()
const;
186 bool canDedentList()
const;
215 void makeRightToLeft();
222 void makeLeftToRight();
230 void setListStyle(
int _styleIndex);
237 void indentListMore();
244 void indentListLess();
251 void setFontFamily(
const QString &fontFamily);
258 void setFontSize(
int size);
265 void setFont(
const QFont &font);
273 void setTextBold(
bool bold);
281 void setTextItalic(
bool italic);
289 void setTextUnderline(
bool underline);
297 void setTextStrikeOut(
bool strikeOut);
304 void setTextForegroundColor(
const QColor &color);
311 void setTextBackgroundColor(
const QColor &color);
316 void insertHorizontalRule();
322 void switchToPlainText();
329 QString toCleanHtml()
const;
337 void setTextSuperScript(
bool superscript);
345 void setTextSubScript(
bool subscript);
352 void insertPlainTextImplementation();
374 virtual void keyPressEvent(QKeyEvent *event);
378 KRichTextEditPrivate *
const d;
379 friend class KRichTextEditPrivate;
The KRichTextEdit class provides a widget to edit and display rich text.
void selectionFinished()
Emitted whenever the user has finished making a selection.
void textModeChanged(KRichTextEdit::Mode mode)
Emitted whenever the text mode is changed.
Mode
The mode the edit widget is in.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by
doxygen 1.9.6 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.