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 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
 

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

- Public Types inherited from QObject
typedef  QObjectList
 
- 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)
 

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 141 of file richtextcomposercontroler.cpp.

Member Function Documentation

◆ addCheckbox

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

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 ( )
slot

Definition at line 242 of file richtextcomposercontroler.cpp.

◆ alignJustify

void RichTextComposerControler::alignJustify ( )
slot

Definition at line 256 of file richtextcomposercontroler.cpp.

◆ alignLeft

void RichTextComposerControler::alignLeft ( )
slot

Definition at line 235 of file richtextcomposercontroler.cpp.

◆ alignRight

void RichTextComposerControler::alignRight ( )
slot

Definition at line 249 of file richtextcomposercontroler.cpp.

◆ canDedentList()

bool RichTextComposerControler::canDedentList ( ) const
nodiscard

Definition at line 589 of file richtextcomposercontroler.cpp.

◆ canIndentList()

bool RichTextComposerControler::canIndentList ( ) const
nodiscard

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
nodiscard

Definition at line 460 of file richtextcomposercontroler.cpp.

◆ currentLinkUrl()

QString RichTextComposerControler::currentLinkUrl ( ) const
nodiscard

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 ( )
slot

Definition at line 211 of file richtextcomposercontroler.cpp.

◆ event()

bool RichTextComposerControler::event ( QEvent * ev)
overrideprotectedvirtual

Reimplemented from QObject.

Definition at line 897 of file richtextcomposercontroler.cpp.

◆ indentListLess

void RichTextComposerControler::indentListLess ( )
slot

Definition at line 600 of file richtextcomposercontroler.cpp.

◆ indentListMore

void RichTextComposerControler::indentListMore ( )
slot

Definition at line 594 of file richtextcomposercontroler.cpp.

◆ insertHorizontalRule

void RichTextComposerControler::insertHorizontalRule ( )
slot

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
nodiscard

Definition at line 682 of file richtextcomposercontroler.cpp.

◆ makeLeftToRight

void RichTextComposerControler::makeLeftToRight ( )
slot

Definition at line 274 of file richtextcomposercontroler.cpp.

◆ makeRightToLeft

void RichTextComposerControler::makeRightToLeft ( )
slot

Definition at line 263 of file richtextcomposercontroler.cpp.

◆ manageLink

void RichTextComposerControler::manageLink ( )
slot

Definition at line 474 of file richtextcomposercontroler.cpp.

◆ nestedListHelper()

NestedListHelper * RichTextComposerControler::nestedListHelper ( ) const
nodiscard

Definition at line 206 of file richtextcomposercontroler.cpp.

◆ painterActive()

bool RichTextComposerControler::painterActive ( ) const
nodiscard

Definition at line 154 of file richtextcomposercontroler.cpp.

◆ richTextComposer()

RichTextComposer * RichTextComposerControler::richTextComposer ( ) const
nodiscard

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 ( )
slot

Definition at line 440 of file richtextcomposercontroler.cpp.

◆ setChangeTextForegroundColor

void RichTextComposerControler::setChangeTextForegroundColor ( )
slot

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)
slot

Definition at line 357 of file richtextcomposercontroler.cpp.

◆ setFontFamily

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

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)
slot

Definition at line 348 of file richtextcomposercontroler.cpp.

◆ setHeadingLevel

void RichTextComposerControler::setHeadingLevel ( int level)
slot

Definition at line 384 of file richtextcomposercontroler.cpp.

◆ setListStyle

void RichTextComposerControler::setListStyle ( int styleIndex)
slot

Definition at line 605 of file richtextcomposercontroler.cpp.

◆ setTextBackgroundColor

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

Definition at line 330 of file richtextcomposercontroler.cpp.

◆ setTextBold

void RichTextComposerControler::setTextBold ( bool bold)
slot

Definition at line 285 of file richtextcomposercontroler.cpp.

◆ setTextForegroundColor

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

Definition at line 321 of file richtextcomposercontroler.cpp.

◆ setTextItalic

void RichTextComposerControler::setTextItalic ( bool italic)
slot

Definition at line 294 of file richtextcomposercontroler.cpp.

◆ setTextStrikeOut

void RichTextComposerControler::setTextStrikeOut ( bool strikeOut)
slot

Definition at line 312 of file richtextcomposercontroler.cpp.

◆ setTextSubScript

void RichTextComposerControler::setTextSubScript ( bool subscript)
slot

Definition at line 375 of file richtextcomposercontroler.cpp.

◆ setTextSuperScript

void RichTextComposerControler::setTextSuperScript ( bool superscript)
slot

Definition at line 366 of file richtextcomposercontroler.cpp.

◆ setTextUnderline

void RichTextComposerControler::setTextUnderline ( bool underline)
slot

Definition at line 303 of file richtextcomposercontroler.cpp.

◆ slotAddEmoticon

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

Definition at line 691 of file richtextcomposercontroler.cpp.

◆ slotAddImage

void RichTextComposerControler::slotAddImage ( )
slot

Definition at line 716 of file richtextcomposercontroler.cpp.

◆ slotAddQuotes

void RichTextComposerControler::slotAddQuotes ( )
slot

Definition at line 791 of file richtextcomposercontroler.cpp.

◆ slotFormatPainter

void RichTextComposerControler::slotFormatPainter ( bool active)
slot

Definition at line 832 of file richtextcomposercontroler.cpp.

◆ slotFormatReset

void RichTextComposerControler::slotFormatReset ( )
slot

Definition at line 736 of file richtextcomposercontroler.cpp.

◆ slotInsertHtml

void RichTextComposerControler::slotInsertHtml ( )
slot

Definition at line 697 of file richtextcomposercontroler.cpp.

◆ slotPasteAsQuotation

void RichTextComposerControler::slotPasteAsQuotation ( )
slot

Definition at line 743 of file richtextcomposercontroler.cpp.

◆ slotPasteWithoutFormatting

void RichTextComposerControler::slotPasteWithoutFormatting ( )
slot

Definition at line 755 of file richtextcomposercontroler.cpp.

◆ slotRemoveQuotes

void RichTextComposerControler::slotRemoveQuotes ( )
slot

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
nodiscard

Definition at line 545 of file richtextcomposercontroler.cpp.

◆ toCleanPlainText()

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

Definition at line 852 of file richtextcomposercontroler.cpp.

◆ toWrappedPlainText() [1/2]

QString RichTextComposerControler::toWrappedPlainText ( ) const
nodiscard

Definition at line 859 of file richtextcomposercontroler.cpp.

◆ toWrappedPlainText() [2/2]

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

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 Oct 4 2024 12:05:34 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.