31 #ifndef QGSRICHTEXTEDITOR_H 
   32 #define QGSRICHTEXTEDITOR_H 
   36 #include "ui_qgsrichtexteditorbase.h" 
   73     QString toPlainText() 
const;
 
   80     QString toHtml() 
const;
 
   85     QTextDocument *
document() { 
return mTextEdit->document(); }
 
   92     QTextCursor 
textCursor()
 const { 
return mTextEdit->textCursor(); }
 
   99     void setTextCursor( 
const QTextCursor &cursor ) { mTextEdit->setTextCursor( cursor ); }
 
  108     void setText( 
const QString &text );
 
  116     void focusInEvent( QFocusEvent *event ) 
override;
 
  119     void setPlainText( 
const QString &text ) { mTextEdit->setPlainText( text ); }
 
  120     void setHtml( 
const QString &text ) { mTextEdit->setHtml( text ); }
 
  121     void textRemoveFormat();
 
  122     void textRemoveAllFormat();
 
  124     void textUnderline();
 
  125     void textStrikeout();
 
  127     void textSize( 
const QString &p );
 
  128     void textLink( 
bool checked );
 
  129     void textStyle( 
int index );
 
  132     void listBullet( 
bool checked );
 
  133     void listOrdered( 
bool checked );
 
  134     void slotCurrentCharFormatChanged( 
const QTextCharFormat &format );
 
  135     void slotCursorPositionChanged();
 
  136     void slotClipboardDataChanged();
 
  137     void increaseIndentation();
 
  138     void decreaseIndentation();
 
  140     void editSource( 
bool enabled );
 
  143     void mergeFormatOnWordOrSelection( 
const QTextCharFormat &format );
 
  144     void fontChanged( 
const QFont &f );
 
  145     void fgColorChanged( 
const QColor &
c );
 
  146     void bgColorChanged( 
const QColor &
c );
 
  147     void list( 
bool checked, QTextListFormat::Style style );
 
  148     void indent( 
int delta );
 
  150     int mFontSizeH1 = 18;
 
  151     int mFontSizeH2 = 16;
 
  152     int mFontSizeH3 = 14;
 
  153     int mFontSizeH4 = 12;
 
  157       ParagraphStandard = 0,
 
  165     QComboBox *mParagraphStyleCombo = 
nullptr;
 
  166     QComboBox *mFontSizeCombo = 
nullptr;
 
  172     QPointer<QTextList> mLastBlockList;
 
  173     QString mMonospaceFontFamily;
 
A HTML editor based on QScintilla2.
A widget for editing rich text documents, with support for user controlled formatting of text and ins...
QTextCursor textCursor() const
Returns a reference to the text cursor.
QTextDocument * document()
Returns a reference to the QTextDocument shown in the widget.
void setTextCursor(const QTextCursor &cursor)
Sets the current text cursor.
As part of the API refactoring and improvements which landed in the Processing API was substantially reworked from the x version This was done in order to allow much of the underlying Processing framework to be ported into c