java.lang.Object
io.qt.QtObject
io.qt.gui.QTextDocumentFragment
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Represents a piece of formatted text from a QTextDocument
Java wrapper for Qt's class QTextDocumentFragment
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQTextDocumentFragment
(QTextCursor range) QTextDocumentFragment
(QTextDocument document) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionclone()
static QTextDocumentFragment
Overloaded function forfromHtml(java.lang.String, io.qt.gui.QTextDocument)
withresourceProvider = null
.static QTextDocumentFragment
fromHtml
(String html, QTextDocument resourceProvider) static QTextDocumentFragment
fromMarkdown
(String markdown) Overloaded function forfromMarkdown(java.lang.String, io.qt.gui.QTextDocument.MarkdownFeatures)
withfeatures = new io.qt.gui.QTextDocument.MarkdownFeatures(20236)
.static QTextDocumentFragment
fromMarkdown
(String markdown, QTextDocument.MarkdownFeature... features) Overloaded function forfromMarkdown(java.lang.String, io.qt.gui.QTextDocument.MarkdownFeatures)
.static QTextDocumentFragment
fromMarkdown
(String markdown, QTextDocument.MarkdownFeatures features) static QTextDocumentFragment
fromPlainText
(String plainText) final boolean
isEmpty()
final String
toHtml()
final String
Overloaded function fortoMarkdown(io.qt.gui.QTextDocument.MarkdownFeatures)
withfeatures = new io.qt.gui.QTextDocument.MarkdownFeatures(20236)
.final String
toMarkdown
(QTextDocument.MarkdownFeature... features) Overloaded function fortoMarkdown(io.qt.gui.QTextDocument.MarkdownFeatures)
.final String
toMarkdown
(QTextDocument.MarkdownFeatures features) final String
final String
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QTextDocumentFragment
public QTextDocumentFragment() -
QTextDocumentFragment
-
QTextDocumentFragment
-
QTextDocumentFragment
-
QTextDocumentFragment
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
isEmpty
-
toHtml
-
toMarkdown
Overloaded function for
toMarkdown(io.qt.gui.QTextDocument.MarkdownFeatures)
. -
toMarkdown
Overloaded function for
toMarkdown(io.qt.gui.QTextDocument.MarkdownFeatures)
withfeatures = new io.qt.gui.QTextDocument.MarkdownFeatures(20236)
. -
toMarkdown
-
toPlainText
-
toRawText
-
fromHtml
Overloaded function for
fromHtml(java.lang.String, io.qt.gui.QTextDocument)
withresourceProvider = null
. -
fromHtml
-
fromMarkdown
public static QTextDocumentFragment fromMarkdown(String markdown, QTextDocument.MarkdownFeature... features) Overloaded function for
fromMarkdown(java.lang.String, io.qt.gui.QTextDocument.MarkdownFeatures)
. -
fromMarkdown
Overloaded function for
fromMarkdown(java.lang.String, io.qt.gui.QTextDocument.MarkdownFeatures)
withfeatures = new io.qt.gui.QTextDocument.MarkdownFeatures(20236)
. -
fromMarkdown
public static QTextDocumentFragment fromMarkdown(String markdown, QTextDocument.MarkdownFeatures features) -
fromPlainText
-
clone
-