QTextDocumentFragment Class Reference

QTextDocumentFragment Class Reference

#include <qtextdocumentfragment.h>

Class Description

Definition at line 58 of file qtextdocumentfragment.h.

Public Member Functions

 QTextDocumentFragment ()
 
 QTextDocumentFragment (const QTextDocument *document)
 
 QTextDocumentFragment (const QTextCursor &range)
 
 QTextDocumentFragment (const QTextDocumentFragment &rhs)
 
QTextDocumentFragmentoperator= (const QTextDocumentFragment &rhs)
 
 ~QTextDocumentFragment ()
 
bool isEmpty () const
 
QString toPlainText () const
 
QString toHtml () const
 
QString toHtml (const QByteArray &encoding) const
 

Static Public Member Functions

static QTextDocumentFragment fromPlainText (const QString &plainText)
 
static QTextDocumentFragment fromHtml (const QString &html)
 
static QTextDocumentFragment fromHtml (const QString &html, const QTextDocument *resourceProvider)
 

Friends

class QTextCursor
 
class QTextDocumentWriter
 

Constructor & Destructor Documentation

QTextDocumentFragment ( const QTextDocument document)
explicit
QTextDocumentFragment ( const QTextCursor range)
explicit

Member Function Documentation

QTextDocumentFragment& operator= ( const QTextDocumentFragment rhs)
bool isEmpty ( ) const
QString toPlainText ( ) const
QString toHtml ( ) const
QString toHtml ( const QByteArray encoding) const
static QTextDocumentFragment fromPlainText ( const QString plainText)
static
static QTextDocumentFragment fromHtml ( const QString html)
static
static QTextDocumentFragment fromHtml ( const QString html,
const QTextDocument resourceProvider 
)
static

Friends And Related Function Documentation

friend class QTextCursor
friend

Definition at line 84 of file qtextdocumentfragment.h.

friend class QTextDocumentWriter
friend

Definition at line 85 of file qtextdocumentfragment.h.


The documentation for this class was generated from the following file: