KPIMTextedit Library
textedit.h
This highlighter highlights spelling mistakes and also highlightes quotes.
Definition emailquotehighlighter.h:45
virtual int quoteLength(const QString &line) const
This is called whenever the editor needs to find out the length of the quote, i.e.
Definition textedit.cpp:332
QString toCleanPlainText(const QString &plainText) const
Definition textedit.cpp:421
bool isEnableImageActions() const
Return true if richtext mode support image.
Definition textedit.cpp:708
virtual void createActions(KActionCollection *actionCollection)
Reimplemented from KMEditor, to support more actions.
Definition textedit.cpp:433
virtual void setSpellCheckingEnabled(bool enable)
Reimplemented from KTextEditSpellInterface.
Definition textedit.cpp:311
virtual void createHighlighter()
Reimplemented to create our own highlighter which does quote and spellcheck highlighting.
Definition textedit.cpp:360
virtual bool shouldBlockBeSpellChecked(const QString &block) const
Reimplemented from KTextEditSpellInterface, to avoid spellchecking quoted text.
Definition textedit.cpp:322
bool isEnableInsertHtmlActions() const
Definition textedit.cpp:728
virtual bool canInsertFromMimeData(const QMimeData *source) const
Reimplemented for inline image support.
Definition textedit.cpp:788
virtual bool isSpellCheckingEnabled() const
Reimplemented from KTextEditSpellInterface.
Definition textedit.cpp:306
virtual void insertFromMimeData(const QMimeData *source)
Reimplemented for inline image support.
Definition textedit.cpp:766
bool isFormattingUsed() const
Checks if rich text formatting is used anywhere.
Definition textedit.cpp:805
void enableEmoticonActions()
Calling this allows createActions() to create the add emoticons actions.
Definition textedit.cpp:713
bool isEnableEmoticonActions() const
Return true if emoticons actions supported.
Definition textedit.cpp:718
void loadImage(const QImage &image, const QString &matchName, const QString &resourceName)
Loads an image into the textedit.
Definition textedit.cpp:505
TextEdit(const QString &text, QWidget *parent=0)
Constructs a TextEdit object.
Definition textedit.cpp:184
virtual bool eventFilter(QObject *o, QEvent *e)
Reimplemented from KRichTextWidget to hide the mouse cursor when there was no mouse movement for some...
Definition textedit.cpp:210
static QByteArray imageNamesToContentIds(const QByteArray &htmlBody, const ImageList &imageList)
For all given embedded images, this function replace the image name in the.
Definition textedit.cpp:743
bool isLineQuoted(const QString &line) const
Convenience method for qouteLength( line ) > 0.
Definition textedit.cpp:327
bool isEnableInsertTableActions() const
Definition textedit.cpp:733
ImageList embeddedImages() const
Get a list with all embedded HTML images.
Definition textedit.cpp:606
void insertImage(const QImage &image, const QFileInfo &info)
Definition textedit.cpp:758
virtual void keyPressEvent(QKeyEvent *e)
Reimplemented to add qoute signs when the user presses enter on a quoted line.
Definition textedit.cpp:246
virtual const QString defaultQuoteSign() const
Returns the prefix that is added to a line that is quoted.
Definition textedit.cpp:355
void enableImageActions()
Calling this allows createActions() to create the add image actions.
Definition textedit.cpp:703
ImageWithNameList imagesWithName() const
Same as embeddedImages(), only that this returns a list of general purpose information,...
Definition textedit.cpp:585
virtual void setHighlighterColors(EMailQuoteHighlighter *highlighter)
This method is called after the highlighter is created.
Definition textedit.cpp:375
QString toWrappedPlainText() const
Returns the text of the editor as plain text, with linebreaks inserted where word-wrapping occurred.
Definition textedit.cpp:380
Copyright (C) 2006 Laurent Montel montel@kde.org Copyright (C) 2008 Thomas McGuire mcguire@kde....
Definition emailquotehighlighter.cpp:25
Holds information about an embedded HTML image that will be useful for mail clients.
Definition textedit.h:51
QString imageName
Name of the image as it is available as a resource in the editor.
Definition textedit.h:54
Holds information about an embedded HTML image that will be generally useful.
Definition textedit.h:64
QString name
The name of the image as it is available as a resource in the editor.
Definition textedit.h:66
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.