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

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

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; /** *

See QTextDocumentWriter::QTextDocumentWriter()

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

See QTextDocumentWriter::QTextDocumentWriter(QIODevice*,QByteArray)

* @param device * @param format */ 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)

* @param fileName * @param format */ 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

* @return */ @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

* @return */ @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

* @return */ @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*)

* @param device */ @QtUninvokable public final void setDevice(io.qt.core.@Nullable QIODevice device){ InternalAccess.NativeIdInfo __device__NativeIdInfo = QtJambi_LibraryUtilities.internal.checkedNativeIdInfo(device); setDevice_native_QIODevice_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), __device__NativeIdInfo.nativeId()); if (__device__NativeIdInfo.needsReferenceCounting()) { __rcDevice = device; }else{ __rcDevice = null; } } @QtUninvokable private native void setDevice_native_QIODevice_ptr(long __this__nativeId, long device); /** *

See QTextDocumentWriter::setFileName(QString)

* @param fileName */ @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)

* @param format */ @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)

* @param fragment * @return */ @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*)

* @param document * @return */ @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()

* @return */ 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 - 2025 Weber Informatics LLC | Privacy Policy