kopete/kopete
Go to the documentation of this file.
22 #ifndef KOPETERICHTEXTWIDGET_H
23 #define KOPETERICHTEXTWIDGET_H
25 #include "kopeteprotocol.h"
27 #include <krichtextwidget.h>
28 #include <kopete_export.h>
51 void setTextOrHtml(
const QString &text);
54 virtual void createActions(KActionCollection *actionCollection);
56 void setDefaultPlainCharFormat(
const QTextCharFormat& format);
57 void setDefaultRichCharFormat(
const QTextCharFormat& format);
58 void setCurrentRichCharFormat(
const QTextCharFormat & format);
60 QTextCharFormat defaultPlainFormat()
const;
61 QTextCharFormat defaultRichFormat()
const;
62 QTextCharFormat currentRichFormat()
const;
64 bool isRichTextEnabled()
const;
71 void setRichTextEnabled(
bool enable);
73 void setFontFamily(QString family);
74 void setFontSize(
int size);
75 void setTextBold(
bool bold);
76 void setTextItalic(
bool italic);
77 void setTextUnderline(
bool underline);
78 void setTextStrikeOut(
bool strikeout);
79 void setSendKeySequenceList(
const QList<QKeySequence>& keySequenceList);
81 void slotResetFontAndColor();
82 void slotCheckSpellingChanged(
bool b);
83 void slotDocumentSizeUpdated();
84 void slotEnableAutoResize(
bool enable);
86 void richTextSupportChanged();
87 void documentSizeUpdated(
int difference);
90 virtual void insertFromMimeData(
const QMimeData * source);
91 virtual bool event(QEvent *event);
94 void updateTextFormat();
95 void updateCharFormat(
const QTextCharFormat &);
96 void slotTextModeChanged(KRichTextEdit::Mode mode);
99 void setCurrentPlainCharFormat(
const QTextCharFormat & format);
102 void setCurrentCharFormat(
const QTextCharFormat & format);
104 KopeteRichTextWidget::RichTextSupport getProtocolRichTextSupport()
const;
109 friend class Private;
A KopeteRichTextWidget with overridden behaviors.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:41 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.