KPIMTextedit Library
22 #ifndef KPIMTEXTEDIT_TEXTEDIT_H
23 #define KPIMTEXTEDIT_TEXTEDIT_H
25 #include "kpimtextedit_export.h"
27 #include <kpimidentities/signature.h>
29 #include <KDE/KRichTextWidget>
30 #include <KActionCollection>
32 #include <QtCore/QSharedPointer>
36 #define FIX_KMAIL_INSERT_IMAGE 1
41 namespace KPIMTextEdit {
43 class TextEditPrivate;
44 class EMailQuoteHighlighter;
84 class KPIMTEXTEDIT_EXPORT
TextEdit :
public KRichTextWidget,
86 protected KTextEditSpellInterface
123 void enableImageActions();
130 void enableEmoticonActions();
132 void enableInsertHtmlActions();
134 void enableInsertTableActions();
150 virtual void createActions( KActionCollection *actionCollection );
158 void addImage(
const KUrl &url );
170 void addImage(
const KUrl &url,
int width,
int height );
191 void deleteCurrentLine();
214 QString toWrappedPlainText()
const;
231 QString toCleanPlainText()
const;
249 bool isLineQuoted(
const QString &line )
const;
261 virtual int quoteLength(
const QString &line )
const;
267 virtual const QString defaultQuoteSign()
const;
297 bool isFormattingUsed()
const;
308 bool isEnableImageActions()
const;
313 bool isEnableEmoticonActions()
const;
325 bool isEnableInsertHtmlActions()
const;
330 bool isEnableInsertTableActions()
const;
337 virtual bool canInsertFromMimeData(
const QMimeData *source )
const;
342 virtual void insertFromMimeData(
const QMimeData *source );
354 virtual void keyPressEvent (
QKeyEvent *e );
362 virtual bool isSpellCheckingEnabled()
const;
367 virtual void setSpellCheckingEnabled(
bool enable );
373 virtual bool shouldBlockBeSpellChecked(
const QString &block )
const;
379 virtual void createHighlighter();
382 void addImageHelper(
const KUrl &url,
int width = -1,
int height = -1 );
383 std::auto_ptr<TextEditPrivate>
const d;
384 friend class TextEditPrivate;
385 Q_PRIVATE_SLOT( d,
void _k_slotAddImage() )
386 Q_PRIVATE_SLOT( d,
void _k_slotDeleteLine() )
387 Q_PRIVATE_SLOT( d,
void _k_slotAddEmoticon(
const QString & ) )
388 Q_PRIVATE_SLOT( d,
void _k_slotInsertHtml() )
389 Q_PRIVATE_SLOT( d,
void _k_slotFormatReset() )
390 Q_PRIVATE_SLOT( d,
void _k_slotTextModeChanged( KRichTextEdit::Mode ) )
Holds information about an embedded HTML image that will be useful for mail clients.
QString name
The name of the image as it is available as a resource in the editor.
This highlighter highlights spelling mistakes and also highlightes quotes.
QString contentID
The content id of the embedded image.
Special textedit that provides additional features which are useful for PIM applications like mail cl...
Holds information about an embedded HTML image that will be generally useful.
QString imageName
Name of the image as it is available as a resource in the editor.
QByteArray image
The image, encoded as PNG with base64 encoding.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:23 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.