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

io.qt.printsupport.QPrintEngine Maven / Gradle / Ivy

package io.qt.printsupport;

import io.qt.*;


/**
 * 

Defines an interface for how QPrinter interacts with a given printing subsystem

*

Java wrapper for Qt class QPrintEngine

*/ public abstract class QPrintEngine extends QtObject { static { QtJambi_LibraryUtilities.initialize(); } @NativeAccess private static final class ConcreteWrapper extends QPrintEngine { @NativeAccess private ConcreteWrapper(QPrivateConstructor p) { super(p); } @Override @QtUninvokable public boolean abort(){ return abort_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean abort_native(long __this__nativeId); @Override @QtUninvokable public int metric(io.qt.gui.QPaintDevice.@NonNull PaintDeviceMetric arg__1){ return metric_native_QPaintDevice_PaintDeviceMetric_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value()); } @QtUninvokable private native int metric_native_QPaintDevice_PaintDeviceMetric_constfct(long __this__nativeId, int arg__1); @Override @QtUninvokable public boolean newPage(){ return newPage_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean newPage_native(long __this__nativeId); @Override @QtUninvokable public io.qt.printsupport.QPrinter.@NonNull PrinterState printerState(){ return io.qt.printsupport.QPrinter.PrinterState.resolve(printerState_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int printerState_native_constfct(long __this__nativeId); @Override @QtUninvokable public java.lang.Object property(io.qt.printsupport.QPrintEngine.@NonNull PrintEnginePropertyKey key){ return property_native_QPrintEngine_PrintEnginePropertyKey_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), key.value()); } @QtUninvokable private native java.lang.Object property_native_QPrintEngine_PrintEnginePropertyKey_constfct(long __this__nativeId, int key); @Override @QtUninvokable public void setProperty(io.qt.printsupport.QPrintEngine.@NonNull PrintEnginePropertyKey key, java.lang.Object value){ setProperty_native_QPrintEngine_PrintEnginePropertyKey_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), key.value(), value); } @QtUninvokable private native void setProperty_native_QPrintEngine_PrintEnginePropertyKey_cref_QVariant(long __this__nativeId, int key, java.lang.Object value); } /** *

Java wrapper for Qt enum QPrintEngine::PrintEnginePropertyKey

*/ @QtRejectedEntries({"PPK_PaperSize"}) public enum PrintEnginePropertyKey implements QtEnumerator { /** *

Representing QPrintEngine::PPK_CollateCopies

*/ PPK_CollateCopies(0), /** *

Representing QPrintEngine::PPK_ColorMode

*/ PPK_ColorMode(1), /** *

Representing QPrintEngine::PPK_Creator

*/ PPK_Creator(2), /** *

Representing QPrintEngine::PPK_DocumentName

*/ PPK_DocumentName(3), /** *

Representing QPrintEngine::PPK_FullPage

*/ PPK_FullPage(4), /** *

Representing QPrintEngine::PPK_NumberOfCopies

*/ PPK_NumberOfCopies(5), /** *

Representing QPrintEngine::PPK_Orientation

*/ PPK_Orientation(6), /** *

Representing QPrintEngine::PPK_OutputFileName

*/ PPK_OutputFileName(7), /** *

Representing QPrintEngine::PPK_PageOrder

*/ PPK_PageOrder(8), /** *

Representing QPrintEngine::PPK_PageRect

*/ PPK_PageRect(9), /** *

Representing QPrintEngine::PPK_PageSize

*/ PPK_PageSize(10), /** *

Representing QPrintEngine::PPK_PaperRect

*/ PPK_PaperRect(11), /** *

Representing QPrintEngine::PPK_PaperSource

*/ PPK_PaperSource(12), /** *

Representing QPrintEngine::PPK_PrinterName

*/ PPK_PrinterName(13), /** *

Representing QPrintEngine::PPK_PrinterProgram

*/ PPK_PrinterProgram(14), /** *

Representing QPrintEngine::PPK_Resolution

*/ PPK_Resolution(15), /** *

Representing QPrintEngine::PPK_SelectionOption

*/ PPK_SelectionOption(16), /** *

Representing QPrintEngine::PPK_SupportedResolutions

*/ PPK_SupportedResolutions(17), /** *

Representing QPrintEngine::PPK_WindowsPageSize

*/ PPK_WindowsPageSize(18), /** *

Representing QPrintEngine::PPK_FontEmbedding

*/ PPK_FontEmbedding(19), /** *

Representing QPrintEngine::PPK_Duplex

*/ PPK_Duplex(20), /** *

Representing QPrintEngine::PPK_PaperSources

*/ PPK_PaperSources(21), /** *

Representing QPrintEngine::PPK_CustomPaperSize

*/ PPK_CustomPaperSize(22), /** *

Representing QPrintEngine::PPK_PageMargins

*/ PPK_PageMargins(23), /** *

Representing QPrintEngine::PPK_CopyCount

*/ PPK_CopyCount(24), /** *

Representing QPrintEngine::PPK_SupportsMultipleCopies

*/ PPK_SupportsMultipleCopies(25), /** *

Representing QPrintEngine::PPK_PaperName

*/ PPK_PaperName(26), /** *

Representing QPrintEngine::PPK_QPageSize

*/ PPK_QPageSize(27), /** *

Representing QPrintEngine::PPK_QPageMargins

*/ PPK_QPageMargins(28), /** *

Representing QPrintEngine::PPK_QPageLayout

*/ PPK_QPageLayout(29), /** *

Representing QPrintEngine::PPK_PaperSize

*/ PPK_PaperSize(10), /** *

Representing QPrintEngine::PPK_CustomBase

*/ PPK_CustomBase(65280); static { QtJambi_LibraryUtilities.initialize(); } private PrintEnginePropertyKey(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull PrintEnginePropertyKey resolve(int value) { switch (value) { case 0: return PPK_CollateCopies; case 1: return PPK_ColorMode; case 2: return PPK_Creator; case 3: return PPK_DocumentName; case 4: return PPK_FullPage; case 5: return PPK_NumberOfCopies; case 6: return PPK_Orientation; case 7: return PPK_OutputFileName; case 8: return PPK_PageOrder; case 9: return PPK_PageRect; case 10: return PPK_PageSize; case 11: return PPK_PaperRect; case 12: return PPK_PaperSource; case 13: return PPK_PrinterName; case 14: return PPK_PrinterProgram; case 15: return PPK_Resolution; case 16: return PPK_SelectionOption; case 17: return PPK_SupportedResolutions; case 18: return PPK_WindowsPageSize; case 19: return PPK_FontEmbedding; case 20: return PPK_Duplex; case 21: return PPK_PaperSources; case 22: return PPK_CustomPaperSize; case 23: return PPK_PageMargins; case 24: return PPK_CopyCount; case 25: return PPK_SupportsMultipleCopies; case 26: return PPK_PaperName; case 27: return PPK_QPageSize; case 28: return PPK_QPageMargins; case 29: return PPK_QPageLayout; case 65280: return PPK_CustomBase; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QPrintEngine::QPrintEngine()

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

See QPrintEngine::abort()

* @return */ @QtUninvokable public abstract boolean abort(); @QtUninvokable private native boolean abort_native(long __this__nativeId); /** *

See QPrintEngine::metric(QPaintDevice::PaintDeviceMetric)const

* @param arg__1 * @return */ @QtUninvokable public abstract int metric(io.qt.gui.QPaintDevice.@NonNull PaintDeviceMetric arg__1); @QtUninvokable private native int metric_native_QPaintDevice_PaintDeviceMetric_constfct(long __this__nativeId, int arg__1); /** *

See QPrintEngine::newPage()

* @return */ @QtUninvokable public abstract boolean newPage(); @QtUninvokable private native boolean newPage_native(long __this__nativeId); /** *

See QPrintEngine::printerState()const

* @return */ @QtUninvokable public abstract io.qt.printsupport.QPrinter.@NonNull PrinterState printerState(); @QtUninvokable private native int printerState_native_constfct(long __this__nativeId); /** *

See QPrintEngine::property(QPrintEngine::PrintEnginePropertyKey)const

* @param key * @return */ @QtUninvokable public abstract java.lang.Object property(io.qt.printsupport.QPrintEngine.@NonNull PrintEnginePropertyKey key); @QtUninvokable private native java.lang.Object property_native_QPrintEngine_PrintEnginePropertyKey_constfct(long __this__nativeId, int key); /** *

See QPrintEngine::setProperty(QPrintEngine::PrintEnginePropertyKey,QVariant)

* @param key * @param value */ @QtUninvokable public abstract void setProperty(io.qt.printsupport.QPrintEngine.@NonNull PrintEnginePropertyKey key, java.lang.Object value); @QtUninvokable private native void setProperty_native_QPrintEngine_PrintEnginePropertyKey_cref_QVariant(long __this__nativeId, int key, java.lang.Object value); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QPrintEngine(QPrivateConstructor p) { super(p); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy