NAME
Qt::Gui::QTextDocument
PUBLIC METHODS
- QTextDocument(QObject * parent)
- QTextDocument(QObject * parent = 0)
- QTextDocument(const QString & text, QObject * parent)
- QTextDocument(const QString & text, QObject * parent = 0)
- ~QTextDocument()
- void addResource(int type, const QUrl & name, const QVariant & resource)
- void adjustSize()
- void appendUndoItem(QAbstractUndoItem * arg0)
- int availableRedoSteps()
- int availableUndoSteps()
- QTextBlock begin()
- int blockCount()
- QChar characterAt(int pos)
- int characterCount()
- void clear()
- void clearUndoRedoStacks(QTextDocument::Stacks historyToClear)
- void clearUndoRedoStacks(QTextDocument::Stacks historyToClear = QTextDocument::UndoAndRedoStacks)
- QTextDocument * clone(QObject * parent)
- QTextDocument * clone(QObject * parent = 0)
- QFont defaultFont()
- QString defaultStyleSheet()
- QTextOption defaultTextOption()
- QTextDocumentPrivate * docHandle()
- QAbstractTextDocumentLayout * documentLayout()
- qreal documentMargin()
- void drawContents(QPainter * painter, const QRectF & rect)
- void drawContents(QPainter * painter, const QRectF & rect = QRectF())
- QTextBlock end()
- QTextCursor find(const QString & subString, int from, QFlags<QTextDocument::FindFlag> options)
- QTextCursor find(const QString & subString, int from, QFlags<QTextDocument::FindFlag> options = 0)
- QTextCursor find(const QString & subString, int from = 0, QFlags<QTextDocument::FindFlag> options = 0)
- QTextCursor find(const QString & subString, const QTextCursor & from, QFlags<QTextDocument::FindFlag> options)
- QTextCursor find(const QString & subString, const QTextCursor & from, QFlags<QTextDocument::FindFlag> options = 0)
- QTextCursor find(const QRegExp & expr, int from, QFlags<QTextDocument::FindFlag> options)
- QTextCursor find(const QRegExp & expr, int from, QFlags<QTextDocument::FindFlag> options = 0)
- QTextCursor find(const QRegExp & expr, int from = 0, QFlags<QTextDocument::FindFlag> options = 0)
- QTextCursor find(const QRegExp & expr, const QTextCursor & from, QFlags<QTextDocument::FindFlag> options)
- QTextCursor find(const QRegExp & expr, const QTextCursor & from, QFlags<QTextDocument::FindFlag> options = 0)
- QTextBlock findBlock(int pos)
- QTextBlock findBlockByLineNumber(int blockNumber)
- QTextBlock findBlockByNumber(int blockNumber)
- QTextBlock firstBlock()
- QTextFrame * frameAt(int pos)
- qreal idealWidth()
- qreal indentWidth()
- bool isEmpty()
- bool isModified()
- bool isRedoAvailable()
- bool isUndoAvailable()
- bool isUndoRedoEnabled()
- QTextBlock lastBlock()
- int lineCount()
- void markContentsDirty(int from, int length)
- int maximumBlockCount()
- QString metaInformation(QTextDocument::MetaInformation info)
- QTextObject * object(int objectIndex)
- QTextObject * objectForFormat(const QTextFormat & arg0)
- int pageCount()
- QSizeF pageSize()
- void print(QPrinter * printer)
- void redo()
- void redo(QTextCursor * cursor)
- QVariant resource(int type, const QUrl & name)
- int revision()
- QTextFrame * rootFrame()
- void setDefaultFont(const QFont & font)
- void setDefaultStyleSheet(const QString & sheet)
- void setDefaultTextOption(const QTextOption & option)
- void setDocumentLayout(QAbstractTextDocumentLayout * layout)
- void setDocumentMargin(qreal margin)
- void setHtml(const QString & html)
- void setIndentWidth(qreal width)
- void setMaximumBlockCount(int maximum)
- void setMetaInformation(QTextDocument::MetaInformation info, const QString & arg1)
- void setModified(bool m)
- void setModified(bool m = true)
- void setPageSize(const QSizeF & size)
- void setPlainText(const QString & text)
- void setTextWidth(qreal width)
- void setUndoRedoEnabled(bool enable)
- void setUseDesignMetrics(bool b)
- QSizeF size()
- qreal textWidth()
- QString toHtml(const QByteArray & encoding)
- QString toHtml(const QByteArray & encoding = QByteArray())
- QString toPlainText()
- void undo()
- void undo(QTextCursor * cursor)
- bool useDesignMetrics()
ENUM VALUES
- DocumentTitle
- DocumentUrl
- FindBackward
- FindCaseSensitively
- FindWholeWords
- HtmlResource
- ImageResource
- StyleSheetResource
- UserResource
- UndoStack
- RedoStack
- UndoAndRedoStacks
EXPORT
None by default.
AUTHOR
Dongxu Ma <dongxu@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2011 - 2012 by Dongxu Ma
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.