KPIMTextEdit::RichTextComposerControler

Search for usage in LXR

KPIMTextEdit::RichTextComposerControler Class Reference

#include <richtextcomposercontroler.h>

Inheritance diagram for KPIMTextEdit::RichTextComposerControler:

Public Slots

void addCheckbox (bool add=true)
 
void alignCenter ()
 
void alignJustify ()
 
void alignLeft ()
 
void alignRight ()
 
void ensureCursorVisibleDelayed ()
 
void indentListLess ()
 
void indentListMore ()
 
void insertHorizontalRule ()
 
void makeLeftToRight ()
 
void makeRightToLeft ()
 
void manageLink ()
 
void setChangeTextBackgroundColor ()
 
void setChangeTextForegroundColor ()
 
void setFont (const QFont &font)
 
void setFontFamily (const QString &fontFamily)
 
void setFontSize (int size)
 
void setHeadingLevel (int level)
 
void setListStyle (int styleIndex)
 
void setTextBackgroundColor (const QColor &color)
 
void setTextBold (bool bold)
 
void setTextForegroundColor (const QColor &color)
 
void setTextItalic (bool italic)
 
void setTextStrikeOut (bool strikeOut)
 
void setTextSubScript (bool subscript)
 
void setTextSuperScript (bool superscript)
 
void setTextUnderline (bool underline)
 
void slotAddEmoticon (const QString &text)
 
void slotAddImage ()
 
void slotAddQuotes ()
 
void slotFormatPainter (bool active)
 
void slotFormatReset ()
 
void slotInsertHtml ()
 
void slotPasteAsQuotation ()
 
void slotPasteWithoutFormatting ()
 
void slotRemoveQuotes ()
 

Public Member Functions

 RichTextComposerControler (RichTextComposer *richtextComposer, QObject *parent=nullptr)
 
void addQuotes (const QString &defaultQuote)
 
bool canDedentList () const
 
bool canIndentList () const
 
RichTextComposerImages * composerImages () const
 
QString currentLinkText () const
 
QString currentLinkUrl () const
 
void disablePainter ()
 
void ensureCursorVisible ()
 
void insertLink (const QString &url)
 
bool isFormattingUsed () const
 
NestedListHelper * nestedListHelper () const
 
bool painterActive () const
 
RichTextComposerrichTextComposer () const
 
void selectLinkText () const
 
void setCursorPositionFromStart (unsigned int pos)
 
void setFontForWholeText (const QFont &font)
 
void textModeChanged (KPIMTextEdit::RichTextComposer::Mode mode)
 
QString toCleanHtml () const
 
QString toCleanPlainText (const QString &plainText=QString()) const
 
QString toWrappedPlainText () const
 
QString toWrappedPlainText (QTextDocument *doc) const
 
void updateLink (const QString &linkUrl, const QString &linkText)
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
QBindable< QStringbindableObjectName ()
 
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo () const const
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isQuickItemType () const const
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_GADGET_EXPORT (EXPORT_MACRO)
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qobject_cast (const QObject *object)
 
qobject_cast (QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setObjectName (QAnyStringView name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool setProperty (const char *name, QVariant &&value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType)
 
QThreadthread () const const
 

Additional Inherited Members

- Properties inherited from QObject
 objectName
 
- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
- Public Attributes inherited from QObject
typedef QObjectList
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 

Detailed Description

The RichTextComposerControler class.

Author
Laurent Montel monte.nosp@m.l@kd.nosp@m.e.org

Definition at line 22 of file richtextcomposercontroler.h.

Constructor & Destructor Documentation

◆ RichTextComposerControler()

RichTextComposerControler::RichTextComposerControler ( RichTextComposer * richtextComposer,
QObject * parent = nullptr )
explicit

Definition at line 130 of file richtextcomposercontroler.cpp.

Member Function Documentation

◆ addCheckbox

void RichTextComposerControler::addCheckbox ( bool add = true)
slot

Definition at line 143 of file richtextcomposercontroler.cpp.

◆ addQuotes()

void RichTextComposerControler::addQuotes ( const QString & defaultQuote)

Definition at line 780 of file richtextcomposercontroler.cpp.

◆ alignCenter

void RichTextComposerControler::alignCenter ( )
slot

Definition at line 226 of file richtextcomposercontroler.cpp.

◆ alignJustify

void RichTextComposerControler::alignJustify ( )
slot

Definition at line 240 of file richtextcomposercontroler.cpp.

◆ alignLeft

void RichTextComposerControler::alignLeft ( )
slot

Definition at line 219 of file richtextcomposercontroler.cpp.

◆ alignRight

void RichTextComposerControler::alignRight ( )
slot

Definition at line 233 of file richtextcomposercontroler.cpp.

◆ canDedentList()

bool RichTextComposerControler::canDedentList ( ) const
nodiscard

Definition at line 573 of file richtextcomposercontroler.cpp.

◆ canIndentList()

bool RichTextComposerControler::canIndentList ( ) const
nodiscard

Definition at line 568 of file richtextcomposercontroler.cpp.

◆ composerImages()

RichTextComposerImages * RichTextComposerControler::composerImages ( ) const

Definition at line 185 of file richtextcomposercontroler.cpp.

◆ currentLinkText()

QString RichTextComposerControler::currentLinkText ( ) const
nodiscard

Definition at line 444 of file richtextcomposercontroler.cpp.

◆ currentLinkUrl()

QString RichTextComposerControler::currentLinkUrl ( ) const
nodiscard

Definition at line 439 of file richtextcomposercontroler.cpp.

◆ disablePainter()

void RichTextComposerControler::disablePainter ( )

Definition at line 173 of file richtextcomposercontroler.cpp.

◆ ensureCursorVisible()

void RichTextComposerControler::ensureCursorVisible ( )

Definition at line 641 of file richtextcomposercontroler.cpp.

◆ ensureCursorVisibleDelayed

void RichTextComposerControler::ensureCursorVisibleDelayed ( )
slot

Definition at line 195 of file richtextcomposercontroler.cpp.

◆ indentListLess

void RichTextComposerControler::indentListLess ( )
slot

Definition at line 584 of file richtextcomposercontroler.cpp.

◆ indentListMore

void RichTextComposerControler::indentListMore ( )
slot

Definition at line 578 of file richtextcomposercontroler.cpp.

◆ insertHorizontalRule

void RichTextComposerControler::insertHorizontalRule ( )
slot

Definition at line 205 of file richtextcomposercontroler.cpp.

◆ insertLink()

void RichTextComposerControler::insertLink ( const QString & url)

Definition at line 596 of file richtextcomposercontroler.cpp.

◆ isFormattingUsed()

bool RichTextComposerControler::isFormattingUsed ( ) const
nodiscard

Definition at line 666 of file richtextcomposercontroler.cpp.

◆ makeLeftToRight

void RichTextComposerControler::makeLeftToRight ( )
slot

Definition at line 258 of file richtextcomposercontroler.cpp.

◆ makeRightToLeft

void RichTextComposerControler::makeRightToLeft ( )
slot

Definition at line 247 of file richtextcomposercontroler.cpp.

◆ manageLink

void RichTextComposerControler::manageLink ( )
slot

Definition at line 458 of file richtextcomposercontroler.cpp.

◆ nestedListHelper()

NestedListHelper * RichTextComposerControler::nestedListHelper ( ) const
nodiscard

Definition at line 190 of file richtextcomposercontroler.cpp.

◆ painterActive()

bool RichTextComposerControler::painterActive ( ) const
nodiscard

Definition at line 138 of file richtextcomposercontroler.cpp.

◆ richTextComposer()

RichTextComposer * RichTextComposerControler::richTextComposer ( ) const
nodiscard

Definition at line 200 of file richtextcomposercontroler.cpp.

◆ selectLinkText()

void RichTextComposerControler::selectLinkText ( ) const

Definition at line 451 of file richtextcomposercontroler.cpp.

◆ setChangeTextBackgroundColor

void RichTextComposerControler::setChangeTextBackgroundColor ( )
slot

Definition at line 424 of file richtextcomposercontroler.cpp.

◆ setChangeTextForegroundColor

void RichTextComposerControler::setChangeTextForegroundColor ( )
slot

Definition at line 410 of file richtextcomposercontroler.cpp.

◆ setCursorPositionFromStart()

void RichTextComposerControler::setCursorPositionFromStart ( unsigned int pos)

Definition at line 630 of file richtextcomposercontroler.cpp.

◆ setFont

void RichTextComposerControler::setFont ( const QFont & font)
slot

Definition at line 341 of file richtextcomposercontroler.cpp.

◆ setFontFamily

void RichTextComposerControler::setFontFamily ( const QString & fontFamily)
slot

Definition at line 323 of file richtextcomposercontroler.cpp.

◆ setFontForWholeText()

void RichTextComposerControler::setFontForWholeText ( const QFont & font)

Definition at line 163 of file richtextcomposercontroler.cpp.

◆ setFontSize

void RichTextComposerControler::setFontSize ( int size)
slot

Definition at line 332 of file richtextcomposercontroler.cpp.

◆ setHeadingLevel

void RichTextComposerControler::setHeadingLevel ( int level)
slot

Definition at line 368 of file richtextcomposercontroler.cpp.

◆ setListStyle

void RichTextComposerControler::setListStyle ( int styleIndex)
slot

Definition at line 589 of file richtextcomposercontroler.cpp.

◆ setTextBackgroundColor

void RichTextComposerControler::setTextBackgroundColor ( const QColor & color)
slot

Definition at line 314 of file richtextcomposercontroler.cpp.

◆ setTextBold

void RichTextComposerControler::setTextBold ( bool bold)
slot

Definition at line 269 of file richtextcomposercontroler.cpp.

◆ setTextForegroundColor

void RichTextComposerControler::setTextForegroundColor ( const QColor & color)
slot

Definition at line 305 of file richtextcomposercontroler.cpp.

◆ setTextItalic

void RichTextComposerControler::setTextItalic ( bool italic)
slot

Definition at line 278 of file richtextcomposercontroler.cpp.

◆ setTextStrikeOut

void RichTextComposerControler::setTextStrikeOut ( bool strikeOut)
slot

Definition at line 296 of file richtextcomposercontroler.cpp.

◆ setTextSubScript

void RichTextComposerControler::setTextSubScript ( bool subscript)
slot

Definition at line 359 of file richtextcomposercontroler.cpp.

◆ setTextSuperScript

void RichTextComposerControler::setTextSuperScript ( bool superscript)
slot

Definition at line 350 of file richtextcomposercontroler.cpp.

◆ setTextUnderline

void RichTextComposerControler::setTextUnderline ( bool underline)
slot

Definition at line 287 of file richtextcomposercontroler.cpp.

◆ slotAddEmoticon

void RichTextComposerControler::slotAddEmoticon ( const QString & text)
slot

Definition at line 675 of file richtextcomposercontroler.cpp.

◆ slotAddImage

void RichTextComposerControler::slotAddImage ( )
slot

Definition at line 700 of file richtextcomposercontroler.cpp.

◆ slotAddQuotes

void RichTextComposerControler::slotAddQuotes ( )
slot

Definition at line 775 of file richtextcomposercontroler.cpp.

◆ slotFormatPainter

void RichTextComposerControler::slotFormatPainter ( bool active)
slot

Definition at line 816 of file richtextcomposercontroler.cpp.

◆ slotFormatReset

void RichTextComposerControler::slotFormatReset ( )
slot

Definition at line 720 of file richtextcomposercontroler.cpp.

◆ slotInsertHtml

void RichTextComposerControler::slotInsertHtml ( )
slot

Definition at line 681 of file richtextcomposercontroler.cpp.

◆ slotPasteAsQuotation

void RichTextComposerControler::slotPasteAsQuotation ( )
slot

Definition at line 727 of file richtextcomposercontroler.cpp.

◆ slotPasteWithoutFormatting

void RichTextComposerControler::slotPasteWithoutFormatting ( )
slot

Definition at line 739 of file richtextcomposercontroler.cpp.

◆ slotRemoveQuotes

void RichTextComposerControler::slotRemoveQuotes ( )
slot

Definition at line 751 of file richtextcomposercontroler.cpp.

◆ textModeChanged()

void RichTextComposerControler::textModeChanged ( KPIMTextEdit::RichTextComposer::Mode mode)

Definition at line 829 of file richtextcomposercontroler.cpp.

◆ toCleanHtml()

QString RichTextComposerControler::toCleanHtml ( ) const
nodiscard

Definition at line 529 of file richtextcomposercontroler.cpp.

◆ toCleanPlainText()

QString RichTextComposerControler::toCleanPlainText ( const QString & plainText = QString()) const
nodiscard

Definition at line 836 of file richtextcomposercontroler.cpp.

◆ toWrappedPlainText() [1/2]

QString RichTextComposerControler::toWrappedPlainText ( ) const
nodiscard

Definition at line 843 of file richtextcomposercontroler.cpp.

◆ toWrappedPlainText() [2/2]

QString RichTextComposerControler::toWrappedPlainText ( QTextDocument * doc) const
nodiscard

Definition at line 849 of file richtextcomposercontroler.cpp.

◆ updateLink()

void RichTextComposerControler::updateLink ( const QString & linkUrl,
const QString & linkText )

Definition at line 472 of file richtextcomposercontroler.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri May 2 2025 12:04:57 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.