java.lang.Object
io.qt.QtObject
io.qt.gui.QTextDocumentWriter
- All Implemented Interfaces:
QtObjectInterface
Format-independent interface for writing a QTextDocument to files or other devices
Java wrapper for Qt class QTextDocumentWriter
-
Constructor Summary
ConstructorDescriptionQTextDocumentWriter
(QIODevice device, byte [] format) Overloaded constructor forQTextDocumentWriter(io.qt.core.QIODevice, io.qt.core.QByteArray)
.QTextDocumentWriter
(QIODevice device, QByteArray format) QTextDocumentWriter
(String fileName) Overloaded constructor forQTextDocumentWriter(java.lang.String, io.qt.core.QByteArray)
withformat = new io.qt.core.QByteArray()
.QTextDocumentWriter
(String fileName, byte [] format) Overloaded constructor forQTextDocumentWriter(java.lang.String, io.qt.core.QByteArray)
.QTextDocumentWriter
(String fileName, QByteArray format) -
Method Summary
Modifier and TypeMethodDescriptionfinal QIODevice
device()
final String
fileName()
final QByteArray
format()
final void
final void
setFileName
(String fileName) final void
setFormat
(byte [] format) Overloaded function forsetFormat(io.qt.core.QByteArray)
.final void
setFormat
(QByteArray format) static QList<QByteArray>
final boolean
write
(QTextDocumentFragment fragment) final boolean
write
(QTextDocument document) Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QTextDocumentWriter
public QTextDocumentWriter() -
QTextDocumentWriter
- Parameters:
device
-format
-
-
QTextDocumentWriter
- Parameters:
fileName
-format
-
-
QTextDocumentWriter
Overloaded constructor for
QTextDocumentWriter(io.qt.core.QIODevice, io.qt.core.QByteArray)
. -
QTextDocumentWriter
Overloaded constructor for
QTextDocumentWriter(java.lang.String, io.qt.core.QByteArray)
withformat = new io.qt.core.QByteArray()
. -
QTextDocumentWriter
Overloaded constructor for
QTextDocumentWriter(java.lang.String, io.qt.core.QByteArray)
.
-
-
Method Details
-
device
- Returns:
-
fileName
- Returns:
-
format
- Returns:
-
setDevice
- Parameters:
device
-
-
setFileName
- Parameters:
fileName
-
-
setFormat
- Parameters:
format
-
-
write
- Parameters:
fragment
-- Returns:
-
write
- Parameters:
document
-- Returns:
-
supportedDocumentFormats
- Returns:
-
setFormat
Overloaded function for
setFormat(io.qt.core.QByteArray)
.
-