io.qt.gui.QTextDocumentWriter Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
/**
* Format-independent interface for writing a QTextDocument to files or other devices
* Java wrapper for Qt class QTextDocumentWriter
*/
public class QTextDocumentWriter extends io.qt.QtObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
@io.qt.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.QIODevice device, io.qt.core.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);
/**
* Overloaded constructor for {@link #QTextDocumentWriter(java.lang.String, io.qt.core.QByteArray)}
* with format = new io.qt.core.QByteArray()
.
*/
public QTextDocumentWriter(java.lang.String fileName) {
this(fileName, new io.qt.core.QByteArray());
}
/**
* See QTextDocumentWriter::QTextDocumentWriter(QString,QByteArray)
*/
public QTextDocumentWriter(java.lang.String fileName, io.qt.core.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
*/
@io.qt.QtUninvokable
public final io.qt.core.QIODevice device(){
return device_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QIODevice device_native_constfct(long __this__nativeId);
/**
* See QTextDocumentWriter::fileName()const
*/
@io.qt.QtUninvokable
public final java.lang.String fileName(){
return fileName_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String fileName_native_constfct(long __this__nativeId);
/**
* See QTextDocumentWriter::format()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QByteArray format(){
return format_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QByteArray format_native_constfct(long __this__nativeId);
/**
* See QTextDocumentWriter::setDevice(QIODevice*)
*/
@io.qt.QtUninvokable
public final void setDevice(io.qt.core.QIODevice device){
setDevice_native_QIODevice_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(device));
__rcDevice = device;
}
@io.qt.QtUninvokable
private native void setDevice_native_QIODevice_ptr(long __this__nativeId, long device);
/**
* See QTextDocumentWriter::setFileName(QString)
*/
@io.qt.QtUninvokable
public final void setFileName(java.lang.String fileName){
setFileName_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), fileName);
}
@io.qt.QtUninvokable
private native void setFileName_native_cref_QString(long __this__nativeId, java.lang.String fileName);
/**
* See QTextDocumentWriter::setFormat(QByteArray)
*/
@io.qt.QtUninvokable
public final void setFormat(io.qt.core.QByteArray format){
setFormat_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(format));
}
@io.qt.QtUninvokable
private native void setFormat_native_cref_QByteArray(long __this__nativeId, long format);
@io.qt.QtUninvokable
public final boolean write(io.qt.gui.QTextDocument document){
return write_native_const_QTextDocument_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(document));
}
@io.qt.QtUninvokable
private native boolean write_native_const_QTextDocument_ptr(long __this__nativeId, long document);
/**
* See QTextDocumentWriter::write(QTextDocumentFragment)
*/
@io.qt.QtUninvokable
public final boolean write(io.qt.gui.QTextDocumentFragment fragment){
return write_native_cref_QTextDocumentFragment(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(fragment));
}
@io.qt.QtUninvokable
private native boolean write_native_cref_QTextDocumentFragment(long __this__nativeId, long fragment);
/**
* See QTextDocumentWriter::supportedDocumentFormats()
*/
public native static io.qt.core.QList supportedDocumentFormats();
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QTextDocumentWriter(QPrivateConstructor p) { super(p); }
}