/***************************************************************************
                            QPrinter.java -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 17:05:56 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

package org.kde.qt;

import java.util.*;
import java.lang.Error;

public class QPrinter extends QPaintDevice  {
	protected QPrinter(Class dummy){super((Class) null);}

	private native void newQPrinter( int mode);
	public QPrinter( int mode) {
		super((Class) null);
		newQPrinter( mode);
	}
	private native void newQPrinter();
	public QPrinter() {
		super((Class) null);
		newQPrinter();
	}

	protected native void finalize() throws InternalError;
	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 short winPageSize();
	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 QSize margins();
	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 boolean newPage();
	public native boolean abort();
	public native boolean aborted();
	public native boolean setup( QWidget parent);
	public native boolean setup();
	public native int paperSource();
	public native void setPaperSource( int arg1);
//	protected native boolean cmd( int arg1, QPainter arg2, QPDevCmdParam arg3);
	protected native int metric( int arg1);
//	protected native void setActive();
//	protected native void setIdle();
	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;
}
