summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/trinitydesktop/qt/TQPrinter.java
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/org/trinitydesktop/qt/TQPrinter.java')
-rw-r--r--qtjava/javalib/org/trinitydesktop/qt/TQPrinter.java147
1 files changed, 147 insertions, 0 deletions
diff --git a/qtjava/javalib/org/trinitydesktop/qt/TQPrinter.java b/qtjava/javalib/org/trinitydesktop/qt/TQPrinter.java
new file mode 100644
index 00000000..93e8eee5
--- /dev/null
+++ b/qtjava/javalib/org/trinitydesktop/qt/TQPrinter.java
@@ -0,0 +1,147 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.trinitydesktop.qt;
+
+import org.trinitydesktop.qt.Qt;
+
+public class TQPrinter extends TQPaintDevice {
+ protected TQPrinter(Class dummy){super((Class) null);}
+ public static final int ScreenResolution = 0;
+ public static final int PrinterResolution = 1;
+ public static final int HighResolution = 2;
+ public static final int Compatible = 3;
+
+ public static final int Portrait = 0;
+ public static final int Landscape = 1;
+
+ public static final int A4 = 0;
+ public static final int B5 = 1;
+ public static final int Letter = 2;
+ public static final int Legal = 3;
+ public static final int Executive = 4;
+ public static final int A0 = 5;
+ public static final int A1 = 6;
+ public static final int A2 = 7;
+ public static final int A3 = 8;
+ public static final int A5 = 9;
+ public static final int A6 = 10;
+ public static final int A7 = 11;
+ public static final int A8 = 12;
+ public static final int A9 = 13;
+ public static final int B0 = 14;
+ public static final int B1 = 15;
+ public static final int B10 = 16;
+ public static final int B2 = 17;
+ public static final int B3 = 18;
+ public static final int B4 = 19;
+ public static final int B6 = 20;
+ public static final int B7 = 21;
+ public static final int B8 = 22;
+ public static final int B9 = 23;
+ public static final int C5E = 24;
+ public static final int Comm10E = 25;
+ public static final int DLE = 26;
+ public static final int Folio = 27;
+ public static final int Ledger = 28;
+ public static final int Tabloid = 29;
+ public static final int Custom = 30;
+ public static final int NPageSize = Custom;
+
+ public static final int FirstPageFirst = 0;
+ public static final int LastPageFirst = 1;
+
+ public static final int GrayScale = 0;
+ public static final int Color = 1;
+
+ public static final int OnlyOne = 0;
+ public static final int Lower = 1;
+ public static final int Middle = 2;
+ public static final int Manual = 3;
+ public static final int Envelope = 4;
+ public static final int EnvelopeManual = 5;
+ public static final int Auto = 6;
+ public static final int Tractor = 7;
+ public static final int SmallFormat = 8;
+ public static final int LargeFormat = 9;
+ public static final int LargeCapacity = 10;
+ public static final int Cassette = 11;
+ public static final int FormSource = 12;
+
+ public static final int AllPages = 0;
+ public static final int Selection = 1;
+ public static final int PageRange = 2;
+
+ public static final int PrintToFile = 0;
+ public static final int PrintSelection = 1;
+ public static final int PrintPageRange = 2;
+
+ public TQPrinter(int mode) {
+ super((Class) null);
+ newTQPrinter(mode);
+ }
+ private native void newTQPrinter(int mode);
+ public TQPrinter() {
+ super((Class) null);
+ newTQPrinter();
+ }
+ private native void newTQPrinter();
+ public native String printerName();
+ public native void setPrinterName(String arg1);
+ public native boolean outputToFile();
+ public native void setOutputToFile(boolean arg1);
+ public native String outputFileName();
+ public native void setOutputFileName(String arg1);
+ public native String printProgram();
+ public native void setPrintProgram(String arg1);
+ public native String printerSelectionOption();
+ public native void setPrinterSelectionOption(String arg1);
+ public native String docName();
+ public native void setDocName(String arg1);
+ public native String creator();
+ public native void setCreator(String arg1);
+ public native int orientation();
+ public native void setOrientation(int arg1);
+ public native int pageSize();
+ public native void setPageSize(int arg1);
+ public native void setPageOrder(int arg1);
+ public native int pageOrder();
+ public native void setResolution(int arg1);
+ public native int resolution();
+ public native void setColorMode(int arg1);
+ public native int colorMode();
+ public native void setFullPage(boolean arg1);
+ public native boolean fullPage();
+ public native TQSize margins();
+ public native void setMargins(int top, int left, int bottom, int right);
+ public native void margins(int[] top, int[] left, int[] bottom, int[] right);
+ public native int fromPage();
+ public native int toPage();
+ public native void setFromTo(int fromPage, int toPage);
+ public native int minPage();
+ public native int maxPage();
+ public native void setMinMax(int minPage, int maxPage);
+ public native int numCopies();
+ public native void setNumCopies(int arg1);
+ public native boolean collateCopiesEnabled();
+ public native void setCollateCopiesEnabled(boolean arg1);
+ public native boolean collateCopies();
+ public native void setCollateCopies(boolean arg1);
+ public native int printRange();
+ public native void setPrintRange(int range);
+ public native boolean newPage();
+ public native boolean abort();
+ public native boolean aborted();
+ public native boolean setup(TQWidget parent);
+ public native boolean setup();
+ public native int paperSource();
+ public native void setPaperSource(int arg1);
+ public native void setOptionEnabled(int arg1, boolean enable);
+ public native boolean isOptionEnabled(int arg1);
+ // bool cmd(int arg1,TQPainter* arg2,TQPDevCmdParam* arg3); >>>> NOT CONVERTED
+ protected native int metric(int arg1);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}