All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.gui.QTextDocumentWriter Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.gui;

import io.qt.*;


/**
 * 

Format-independent interface for writing a QTextDocument to files or other devices

*

Java wrapper for Qt class QTextDocumentWriter

*/ public class QTextDocumentWriter extends QtObject { static { QtJambi_LibraryUtilities.initialize(); } @QtPropertyMember(enabled=false) private Object __rcDevice = null; /** *

See QTextDocumentWriter::QTextDocumentWriter()

*/ public QTextDocumentWriter(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QTextDocumentWriter instance); /** *

See QTextDocumentWriter::QTextDocumentWriter(QIODevice*,QByteArray)

*/ public QTextDocumentWriter(io.qt.core.@Nullable QIODevice device, io.qt.core.@NonNull QByteArray format){ super((QPrivateConstructor)null); initialize_native(this, device, format); } private native static void initialize_native(QTextDocumentWriter instance, io.qt.core.QIODevice device, io.qt.core.QByteArray format); /** *

See QTextDocumentWriter::QTextDocumentWriter(QString,QByteArray)

*/ public QTextDocumentWriter(java.lang.@NonNull String fileName, io.qt.core.@NonNull QByteArray format){ super((QPrivateConstructor)null); initialize_native(this, fileName, format); } private native static void initialize_native(QTextDocumentWriter instance, java.lang.String fileName, io.qt.core.QByteArray format); /** *

See QTextDocumentWriter::device()const

*/ @QtUninvokable public final io.qt.core.@Nullable QIODevice device(){ return device_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QIODevice device_native_constfct(long __this__nativeId); /** *

See QTextDocumentWriter::fileName()const

*/ @QtUninvokable public final java.lang.@NonNull String fileName(){ return fileName_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String fileName_native_constfct(long __this__nativeId); /** *

See QTextDocumentWriter::format()const

*/ @QtUninvokable public final io.qt.core.@NonNull QByteArray format(){ return format_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QByteArray format_native_constfct(long __this__nativeId); /** *

See QTextDocumentWriter::setDevice(QIODevice*)

*/ @QtUninvokable public final void setDevice(io.qt.core.@Nullable QIODevice device){ setDevice_native_QIODevice_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(device)); __rcDevice = device; } @QtUninvokable private native void setDevice_native_QIODevice_ptr(long __this__nativeId, long device); /** *

See QTextDocumentWriter::setFileName(QString)

*/ @QtUninvokable public final void setFileName(java.lang.@NonNull String fileName){ setFileName_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), fileName); } @QtUninvokable private native void setFileName_native_cref_QString(long __this__nativeId, java.lang.String fileName); /** *

See QTextDocumentWriter::setFormat(QByteArray)

*/ @QtUninvokable public final void setFormat(io.qt.core.@NonNull QByteArray format){ setFormat_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(format)); } @QtUninvokable private native void setFormat_native_cref_QByteArray(long __this__nativeId, long format); /** *

See QTextDocumentWriter::write(QTextDocumentFragment)

*/ @QtUninvokable public final boolean write(io.qt.gui.@NonNull QTextDocumentFragment fragment){ return write_native_cref_QTextDocumentFragment(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(fragment)); } @QtUninvokable private native boolean write_native_cref_QTextDocumentFragment(long __this__nativeId, long fragment); /** *

See QTextDocumentWriter::write(const QTextDocument*)

*/ @QtUninvokable public final boolean write(io.qt.gui.@Nullable QTextDocument document){ return write_native_const_QTextDocument_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(document)); } @QtUninvokable private native boolean write_native_const_QTextDocument_ptr(long __this__nativeId, long document); /** *

See QTextDocumentWriter::supportedDocumentFormats()

*/ public native static io.qt.core.@NonNull QList supportedDocumentFormats(); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QTextDocumentWriter(QPrivateConstructor p) { super(p); } /** *

Overloaded constructor for {@link #QTextDocumentWriter(io.qt.core.QIODevice, io.qt.core.QByteArray)}.

*/ public QTextDocumentWriter(io.qt.core.@Nullable QIODevice device, byte @NonNull[] format) { this(device, new io.qt.core.QByteArray(format)); } /** *

Overloaded constructor for {@link #QTextDocumentWriter(java.lang.String, io.qt.core.QByteArray)} * with format = new io.qt.core.QByteArray().

*/ public QTextDocumentWriter(java.lang.@NonNull String fileName) { this(fileName, new io.qt.core.QByteArray()); } /** *

Overloaded constructor for {@link #QTextDocumentWriter(java.lang.String, io.qt.core.QByteArray)}.

*/ public QTextDocumentWriter(java.lang.@NonNull String fileName, byte @NonNull[] format) { this(fileName, new io.qt.core.QByteArray(format)); } /** *

Overloaded function for {@link #setFormat(io.qt.core.QByteArray)}.

*/ @QtUninvokable public final void setFormat(byte @NonNull[] format) { setFormat(new io.qt.core.QByteArray(format)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy