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
NestedListHelpernestedListHelper () 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 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_ENUM (...)
 Q_ENUM_NS (...)
 Q_ENUMS (...)
 Q_FLAG (...)
 Q_FLAG_NS (...)
 Q_FLAGS (...)
qobject_cast (const QObject *object)
qobject_cast (QObject *object)
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

Protected Member Functions

bool event (QEvent *ev) override
- 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)

Additional Inherited Members

- Properties inherited from QObject
- 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

Detailed Description

The RichTextComposerControler class.

Laurent Montel

Definition at line 22 of file richtextcomposercontroler.h.

Constructor & Destructor Documentation

◆ RichTextComposerControler()

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

Definition at line 141 of file richtextcomposercontroler.cpp.

Member Function Documentation

◆ addCheckbox

void RichTextComposerControler::addCheckbox ( bool add = true)

Definition at line 159 of file richtextcomposercontroler.cpp.

◆ addQuotes()

void RichTextComposerControler::addQuotes ( const QString & defaultQuote)

Definition at line 796 of file richtextcomposercontroler.cpp.

◆ alignCenter

void RichTextComposerControler::alignCenter ( )

Definition at line 242 of file richtextcomposercontroler.cpp.

◆ alignJustify

void RichTextComposerControler::alignJustify ( )

Definition at line 256 of file richtextcomposercontroler.cpp.

◆ alignLeft

void RichTextComposerControler::alignLeft ( )

Definition at line 235 of file richtextcomposercontroler.cpp.

◆ alignRight

void RichTextComposerControler::alignRight ( )

Definition at line 249 of file richtextcomposercontroler.cpp.

◆ canDedentList()

bool RichTextComposerControler::canDedentList ( ) const

Definition at line 589 of file richtextcomposercontroler.cpp.

◆ canIndentList()

bool RichTextComposerControler::canIndentList ( ) const

Definition at line 584 of file richtextcomposercontroler.cpp.

◆ composerImages()

RichTextComposerImages * RichTextComposerControler::composerImages ( ) const

Definition at line 201 of file richtextcomposercontroler.cpp.

◆ currentLinkText()

QString RichTextComposerControler::currentLinkText ( ) const

Definition at line 460 of file richtextcomposercontroler.cpp.

◆ currentLinkUrl()

QString RichTextComposerControler::currentLinkUrl ( ) const

Definition at line 455 of file richtextcomposercontroler.cpp.

◆ disablePainter()

void RichTextComposerControler::disablePainter ( )

Definition at line 189 of file richtextcomposercontroler.cpp.

◆ ensureCursorVisible()

void RichTextComposerControler::ensureCursorVisible ( )

Definition at line 657 of file richtextcomposercontroler.cpp.

◆ ensureCursorVisibleDelayed

void RichTextComposerControler::ensureCursorVisibleDelayed ( )

Definition at line 211 of file richtextcomposercontroler.cpp.

◆ event()

bool RichTextComposerControler::event ( QEvent * ev)

Reimplemented from QObject.

Definition at line 897 of file richtextcomposercontroler.cpp.

◆ indentListLess

void RichTextComposerControler::indentListLess ( )

Definition at line 600 of file richtextcomposercontroler.cpp.

◆ indentListMore

void RichTextComposerControler::indentListMore ( )

Definition at line 594 of file richtextcomposercontroler.cpp.

◆ insertHorizontalRule

void RichTextComposerControler::insertHorizontalRule ( )

Definition at line 221 of file richtextcomposercontroler.cpp.

◆ insertLink()

void RichTextComposerControler::insertLink ( const QString & url)

Definition at line 612 of file richtextcomposercontroler.cpp.

◆ isFormattingUsed()

bool RichTextComposerControler::isFormattingUsed ( ) const

Definition at line 682 of file richtextcomposercontroler.cpp.

◆ makeLeftToRight

void RichTextComposerControler::makeLeftToRight ( )

Definition at line 274 of file richtextcomposercontroler.cpp.

◆ makeRightToLeft

void RichTextComposerControler::makeRightToLeft ( )

Definition at line 263 of file richtextcomposercontroler.cpp.

◆ manageLink

void RichTextComposerControler::manageLink ( )

Definition at line 474 of file richtextcomposercontroler.cpp.

◆ nestedListHelper()

NestedListHelper * RichTextComposerControler::nestedListHelper ( ) const

Definition at line 206 of file richtextcomposercontroler.cpp.

◆ painterActive()

bool RichTextComposerControler::painterActive ( ) const

Definition at line 154 of file richtextcomposercontroler.cpp.

◆ richTextComposer()

RichTextComposer * RichTextComposerControler::richTextComposer ( ) const

Definition at line 216 of file richtextcomposercontroler.cpp.

◆ selectLinkText()

void RichTextComposerControler::selectLinkText ( ) const

Definition at line 467 of file richtextcomposercontroler.cpp.

◆ setChangeTextBackgroundColor

void RichTextComposerControler::setChangeTextBackgroundColor ( )

Definition at line 440 of file richtextcomposercontroler.cpp.

◆ setChangeTextForegroundColor

void RichTextComposerControler::setChangeTextForegroundColor ( )

Definition at line 426 of file richtextcomposercontroler.cpp.

◆ setCursorPositionFromStart()

void RichTextComposerControler::setCursorPositionFromStart ( unsigned int pos)

Definition at line 646 of file richtextcomposercontroler.cpp.

◆ setFont

void RichTextComposerControler::setFont ( const QFont & font)

Definition at line 357 of file richtextcomposercontroler.cpp.

◆ setFontFamily

void RichTextComposerControler::setFontFamily ( const QString & fontFamily)

Definition at line 339 of file richtextcomposercontroler.cpp.

◆ setFontForWholeText()

void RichTextComposerControler::setFontForWholeText ( const QFont & font)

Definition at line 179 of file richtextcomposercontroler.cpp.

◆ setFontSize

void RichTextComposerControler::setFontSize ( int size)

Definition at line 348 of file richtextcomposercontroler.cpp.

◆ setHeadingLevel

void RichTextComposerControler::setHeadingLevel ( int level)

Definition at line 384 of file richtextcomposercontroler.cpp.

◆ setListStyle

void RichTextComposerControler::setListStyle ( int styleIndex)

Definition at line 605 of file richtextcomposercontroler.cpp.

◆ setTextBackgroundColor

void RichTextComposerControler::setTextBackgroundColor ( const QColor & color)

Definition at line 330 of file richtextcomposercontroler.cpp.

◆ setTextBold

void RichTextComposerControler::setTextBold ( bool bold)

Definition at line 285 of file richtextcomposercontroler.cpp.

◆ setTextForegroundColor

void RichTextComposerControler::setTextForegroundColor ( const QColor & color)

Definition at line 321 of file richtextcomposercontroler.cpp.

◆ setTextItalic

void RichTextComposerControler::setTextItalic ( bool italic)

Definition at line 294 of file richtextcomposercontroler.cpp.

◆ setTextStrikeOut

void RichTextComposerControler::setTextStrikeOut ( bool strikeOut)

Definition at line 312 of file richtextcomposercontroler.cpp.

◆ setTextSubScript

void RichTextComposerControler::setTextSubScript ( bool subscript)

Definition at line 375 of file richtextcomposercontroler.cpp.

◆ setTextSuperScript

void RichTextComposerControler::setTextSuperScript ( bool superscript)

Definition at line 366 of file richtextcomposercontroler.cpp.

◆ setTextUnderline

void RichTextComposerControler::setTextUnderline ( bool underline)

Definition at line 303 of file richtextcomposercontroler.cpp.

◆ slotAddEmoticon

void RichTextComposerControler::slotAddEmoticon ( const QString & text)

Definition at line 691 of file richtextcomposercontroler.cpp.

◆ slotAddImage

void RichTextComposerControler::slotAddImage ( )

Definition at line 716 of file richtextcomposercontroler.cpp.

◆ slotAddQuotes

void RichTextComposerControler::slotAddQuotes ( )

Definition at line 791 of file richtextcomposercontroler.cpp.

◆ slotFormatPainter

void RichTextComposerControler::slotFormatPainter ( bool active)

Definition at line 832 of file richtextcomposercontroler.cpp.

◆ slotFormatReset

void RichTextComposerControler::slotFormatReset ( )

Definition at line 736 of file richtextcomposercontroler.cpp.

◆ slotInsertHtml

void RichTextComposerControler::slotInsertHtml ( )

Definition at line 697 of file richtextcomposercontroler.cpp.

◆ slotPasteAsQuotation

void RichTextComposerControler::slotPasteAsQuotation ( )

Definition at line 743 of file richtextcomposercontroler.cpp.

◆ slotPasteWithoutFormatting

void RichTextComposerControler::slotPasteWithoutFormatting ( )

Definition at line 755 of file richtextcomposercontroler.cpp.

◆ slotRemoveQuotes

void RichTextComposerControler::slotRemoveQuotes ( )

Definition at line 767 of file richtextcomposercontroler.cpp.

◆ textModeChanged()

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

Definition at line 845 of file richtextcomposercontroler.cpp.

◆ toCleanHtml()

QString RichTextComposerControler::toCleanHtml ( ) const

Definition at line 545 of file richtextcomposercontroler.cpp.

◆ toCleanPlainText()

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

Definition at line 852 of file richtextcomposercontroler.cpp.

◆ toWrappedPlainText() [1/2]

QString RichTextComposerControler::toWrappedPlainText ( ) const

Definition at line 859 of file richtextcomposercontroler.cpp.

◆ toWrappedPlainText() [2/2]

QString RichTextComposerControler::toWrappedPlainText ( QTextDocument * doc) const

Definition at line 865 of file richtextcomposercontroler.cpp.

◆ updateLink()

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

Definition at line 488 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-2024 The KDE developers.
Generated on Fri Jun 21 2024 12:04:31 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.