/***************************************************************************
                            KPrinter.cpp -  description
                             -------------------
    begin                : Sun Jan 27 16:22:17 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Jan 27 16:22:17 2002, 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.                                   *
 *                                                                         *
***************************************************************************/

#define _BOOL_H_
#include <kprinter.h>
#include <qstring.h>
#include <qcstring.h>

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KPrinter.h>

class KPrinterJBridge : public KPrinter
{
public:
	KPrinterJBridge(bool restore, QPrinter::PrinterMode m) : KPrinter(restore, m) {}
	~KPrinterJBridge() {QtSupport::qtKeyDeleted(this);}
	 bool  protected_cmd(int arg1, QPainter* arg2, QPDevCmdParam* arg3) {
		return ( bool ) KPrinter::cmd(arg1, arg2, arg3);
	}
	 int  protected_metric(int arg1) {
		return ( int ) KPrinter::metric(arg1);
	}
	void protected_translateQtOptions() {
		KPrinter::translateQtOptions();
		return;
	}
	void protected_loadSettings() {
		KPrinter::loadSettings();
		return;
	}
	void protected_saveSettings() {
		KPrinter::saveSettings();
		return;
	}
	void protected_preparePrinting() {
		KPrinter::preparePrinting();
		return;
	}
	void protected_finishPrinting() {
		KPrinter::finishPrinting();
		return;
	}
	void protected_reload() {
		KPrinter::reload();
		return;
	}
	void protected_init(bool restore, QPrinter::PrinterMode m) {
		KPrinter::init(restore, m);
		return;
	}
};


JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_newKPrinter__ZI(JNIEnv *env, jobject obj, jboolean restore, jint m)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KPrinterJBridge((bool) restore, (QPrinter::PrinterMode) m));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_newKPrinter__(JNIEnv *env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KPrinterJBridge(true, QPrinter::ScreenResolution));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_finalize(JNIEnv *env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (KPrinter*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_dispose(JNIEnv *env, jobject obj)
{
	Java_org_kde_koala_KPrinter_finalize(env, obj);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPrinter_isDisposed(JNIEnv *env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPrinter_newPage(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KPrinter*) QtSupport::getQt(env, obj))->newPage();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPrinter_abort(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KPrinter*) QtSupport::getQt(env, obj))->abort();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPrinter_aborted(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KPrinter*) QtSupport::getQt(env, obj))->aborted();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPrinter_outputToFile(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KPrinter*) QtSupport::getQt(env, obj))->outputToFile();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_setOutputToFile(JNIEnv *env, jobject obj, jboolean arg1)
{
	((KPrinter*) QtSupport::getQt(env, obj))->setOutputToFile((bool) arg1);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KPrinter_outputFileName(JNIEnv *env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KPrinter*) QtSupport::getQt(env, obj))->outputFileName();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_setOutputFileName(JNIEnv *env, jobject obj, jstring arg1)
{
static QString * _qstring_arg1 = 0;
	((KPrinter*) QtSupport::getQt(env, obj))->setOutputFileName((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KPrinter_docName(JNIEnv *env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KPrinter*) QtSupport::getQt(env, obj))->docName();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_setDocName(JNIEnv *env, jobject obj, jstring arg1)
{
static QString * _qstring_arg1 = 0;
	((KPrinter*) QtSupport::getQt(env, obj))->setDocName((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KPrinter_creator(JNIEnv *env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KPrinter*) QtSupport::getQt(env, obj))->creator();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_setCreator(JNIEnv *env, jobject obj, jstring arg1)
{
static QString * _qstring_arg1 = 0;
	((KPrinter*) QtSupport::getQt(env, obj))->setCreator((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPrinter_fullPage(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KPrinter*) QtSupport::getQt(env, obj))->fullPage();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_setFullPage(JNIEnv *env, jobject obj, jboolean arg1)
{
	((KPrinter*) QtSupport::getQt(env, obj))->setFullPage((bool) arg1);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KPrinter_colorMode(JNIEnv *env, jobject obj)
{
	return (jint) ((KPrinter*) QtSupport::getQt(env, obj))->colorMode();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_setColorMode(JNIEnv *env, jobject obj, jint arg1)
{
	((KPrinter*) QtSupport::getQt(env, obj))->setColorMode((KPrinter::ColorMode) arg1);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KPrinter_numCopies(JNIEnv *env, jobject obj)
{
	return (jint) ((KPrinter*) QtSupport::getQt(env, obj))->numCopies();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_setNumCopies(JNIEnv *env, jobject obj, jint n)
{
	((KPrinter*) QtSupport::getQt(env, obj))->setNumCopies((int) n);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KPrinter_orientation(JNIEnv *env, jobject obj)
{
	return (jint) ((KPrinter*) QtSupport::getQt(env, obj))->orientation();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_setOrientation(JNIEnv *env, jobject obj, jint arg1)
{
	((KPrinter*) QtSupport::getQt(env, obj))->setOrientation((KPrinter::Orientation) arg1);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KPrinter_pageOrder(JNIEnv *env, jobject obj)
{
	return (jint) ((KPrinter*) QtSupport::getQt(env, obj))->pageOrder();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_setPageOrder(JNIEnv *env, jobject obj, jint arg1)
{
	((KPrinter*) QtSupport::getQt(env, obj))->setPageOrder((KPrinter::PageOrder) arg1);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KPrinter_collate(JNIEnv *env, jobject obj)
{
	return (jint) ((KPrinter*) QtSupport::getQt(env, obj))->collate();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_setCollate(JNIEnv *env, jobject obj, jint type)
{
	((KPrinter*) QtSupport::getQt(env, obj))->setCollate((KPrinter::CollateType) type);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KPrinter_minPage(JNIEnv *env, jobject obj)
{
	return (jint) ((KPrinter*) QtSupport::getQt(env, obj))->minPage();
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KPrinter_maxPage(JNIEnv *env, jobject obj)
{
	return (jint) ((KPrinter*) QtSupport::getQt(env, obj))->maxPage();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_setMinMax(JNIEnv *env, jobject obj, jint arg1, jint arg2)
{
	((KPrinter*) QtSupport::getQt(env, obj))->setMinMax((int) arg1, (int) arg2);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KPrinter_fromPage(JNIEnv *env, jobject obj)
{
	return (jint) ((KPrinter*) QtSupport::getQt(env, obj))->fromPage();
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KPrinter_toPage(JNIEnv *env, jobject obj)
{
	return (jint) ((KPrinter*) QtSupport::getQt(env, obj))->toPage();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_setFromTo(JNIEnv *env, jobject obj, jint arg1, jint arg2)
{
	((KPrinter*) QtSupport::getQt(env, obj))->setFromTo((int) arg1, (int) arg2);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KPrinter_pageSize(JNIEnv *env, jobject obj)
{
	return (jint) ((KPrinter*) QtSupport::getQt(env, obj))->pageSize();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_setPageSize(JNIEnv *env, jobject obj, jint arg1)
{
	((KPrinter*) QtSupport::getQt(env, obj))->setPageSize((KPrinter::PageSize) arg1);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KPrinter_printerName(JNIEnv *env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KPrinter*) QtSupport::getQt(env, obj))->printerName();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_setPrinterName(JNIEnv *env, jobject obj, jstring arg1)
{
static QString * _qstring_arg1 = 0;
	((KPrinter*) QtSupport::getQt(env, obj))->setPrinterName((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KPrinter_printProgram(JNIEnv *env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KPrinter*) QtSupport::getQt(env, obj))->printProgram();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_setPrintProgram(JNIEnv *env, jobject obj, jstring cmd)
{
static QString * _qstring_cmd = 0;
	((KPrinter*) QtSupport::getQt(env, obj))->setPrintProgram((QString&) * (QString *) QtSupport::toQString(env, cmd, &_qstring_cmd));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KPrinter_printerSelectionOption(JNIEnv *env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KPrinter*) QtSupport::getQt(env, obj))->printerSelectionOption();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_setPrinterSelectionOption(JNIEnv *env, jobject obj, jstring arg1)
{
static QString * _qstring_arg1 = 0;
	((KPrinter*) QtSupport::getQt(env, obj))->setPrinterSelectionOption((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KPrinter_currentPage(JNIEnv *env, jobject obj)
{
	return (jint) ((KPrinter*) QtSupport::getQt(env, obj))->currentPage();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_setCurrentPage__I(JNIEnv *env, jobject obj, jint p)
{
	((KPrinter*) QtSupport::getQt(env, obj))->setCurrentPage((int) p);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_setCurrentPage__(JNIEnv *env, jobject obj)
{
	((KPrinter*) QtSupport::getQt(env, obj))->setCurrentPage(0);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KPrinter_pageSet(JNIEnv *env, jobject obj)
{
	return (jint) ((KPrinter*) QtSupport::getQt(env, obj))->pageSet();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPrinter_setup__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Z(JNIEnv *env, jobject obj, jobject parent, jstring caption, jboolean forceExpand)
{
static QString * _qstring_caption = 0;
	return (jboolean) ((KPrinter*) QtSupport::getQt(env, obj))->setup((QWidget*) QtSupport::getQt(env, parent), (QString&) * (QString *) QtSupport::toQString(env, caption, &_qstring_caption), (bool) forceExpand);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPrinter_setup__(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KPrinter*) QtSupport::getQt(env, obj))->setup(0, QString::null, false);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPrinter_margins(JNIEnv *env, jobject obj)
{
	QSize _s= ((KPrinter*) QtSupport::getQt(env, obj))->margins();
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QSize(_s.width(),_s.height()), "org.kde.qt.QSize", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_setMargins(JNIEnv *env, jobject obj, jobject m)
{
	((KPrinter*) QtSupport::getQt(env, obj))->setMargins((QSize) *(QSize *) QtSupport::getQt(env, m));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPrinter_realPageSize(JNIEnv *env, jobject obj)
{
	QSize _s= ((KPrinter*) QtSupport::getQt(env, obj))->realPageSize();
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QSize(_s.width(),_s.height()), "org.kde.qt.QSize", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_setRealPageSize(JNIEnv *env, jobject obj, jobject p)
{
	((KPrinter*) QtSupport::getQt(env, obj))->setRealPageSize((QSize) *(QSize *) QtSupport::getQt(env, p));
	return;
}

JNIEXPORT jintArray JNICALL
Java_org_kde_koala_KPrinter_pageList(JNIEnv *env, jobject obj)
{
	QValueList<int> _qintArray;
	_qintArray = ((KPrinter*) QtSupport::getQt(env, obj))->pageList();
	return QtSupport::fromQIntValueList(env, &_qintArray);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_setPreviewOnly(JNIEnv *env, jobject obj, jboolean on)
{
	((KPrinter*) QtSupport::getQt(env, obj))->setPreviewOnly((bool) on);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPrinter_previewOnly(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KPrinter*) QtSupport::getQt(env, obj))->previewOnly();
}

//JNIEXPORT  JNICALL
//Java_org_kde_koala_KPrinter_implementation(JNIEnv *env, jobject obj)
//{
//	return () ((KPrinter*) QtSupport::getQt(env, obj))->implementation();
//}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPrinter_printFiles___3Ljava_lang_String_2Z(JNIEnv *env, jobject obj, jobjectArray files, jboolean removeafter)
{
static QStringList * _qlist_files = 0;
	return (jboolean) ((KPrinter*) QtSupport::getQt(env, obj))->printFiles((QStringList&) * (QStringList *) QtSupport::toQStringList(env, files, &_qlist_files), (bool) removeafter);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPrinter_printFiles___3Ljava_lang_String_2(JNIEnv *env, jobject obj, jobjectArray files)
{
static QStringList * _qlist_files = 0;
	return (jboolean) ((KPrinter*) QtSupport::getQt(env, obj))->printFiles((QStringList&) * (QStringList *) QtSupport::toQStringList(env, files, &_qlist_files), false);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KPrinter_option(JNIEnv *env, jobject obj, jstring key)
{
	QString  _qstring;
static QString * _qstring_key = 0;
	_qstring = ((KPrinter*) QtSupport::getQt(env, obj))->option((QString&) * (QString *) QtSupport::toQString(env, key, &_qstring_key));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_setOption(JNIEnv *env, jobject obj, jstring key, jstring value)
{
static QString * _qstring_value = 0;
static QString * _qstring_key = 0;
	((KPrinter*) QtSupport::getQt(env, obj))->setOption((QString&) * (QString *) QtSupport::toQString(env, key, &_qstring_key), (QString&) * (QString *) QtSupport::toQString(env, value, &_qstring_value));
	return;
}

//JNIEXPORT jstring JNICALL
//Java_org_kde_koala_KPrinter_options(JNIEnv *env, jobject obj)
//{
//	QString  _qstring;
//	_qcstring = (const char *)((KPrinter*) QtSupport::getQt(env, obj))->options();
//	return QtSupport::fromCharString(env, (char *) _qcstring);
//}

//JNIEXPORT void JNICALL
//Java_org_kde_koala_KPrinter_setOptions(JNIEnv *env, jobject obj, jstring arg1, jstring opts)
//{
//	((KPrinter*) QtSupport::getQt(env, obj))->setOptions((QMap<QString) arg1, (QString>) opts);
//	return;
//}

//JNIEXPORT void JNICALL
//Java_org_kde_koala_KPrinter_initOptions(JNIEnv *env, jobject obj, jstring arg1, jstring opts)
//{
//	((KPrinter*) QtSupport::getQt(env, obj))->initOptions((QMap<QString) arg1, (QString>) opts);
//	return;
//}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KPrinter_searchName(JNIEnv *env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KPrinter*) QtSupport::getQt(env, obj))->searchName();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_setSearchName(JNIEnv *env, jobject obj, jstring n)
{
static QString * _qstring_n = 0;
	((KPrinter*) QtSupport::getQt(env, obj))->setSearchName((QString&) * (QString *) QtSupport::toQString(env, n, &_qstring_n));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KPrinter_errorMessage(JNIEnv *env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KPrinter*) QtSupport::getQt(env, obj))->errorMessage();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_setErrorMessage(JNIEnv *env, jobject obj, jstring msg)
{
static QString * _qstring_msg = 0;
	((KPrinter*) QtSupport::getQt(env, obj))->setErrorMessage((QString&) * (QString *) QtSupport::toQString(env, msg, &_qstring_msg));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPrinter_autoConfigure__Ljava_lang_String_2Lorg_kde_qt_QWidget_2(JNIEnv *env, jobject obj, jstring prname, jobject parent)
{
static QString * _qstring_prname = 0;
	return (jboolean) ((KPrinter*) QtSupport::getQt(env, obj))->autoConfigure((QString&) * (QString *) QtSupport::toQString(env, prname, &_qstring_prname), (QWidget*) QtSupport::getQt(env, parent));
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPrinter_autoConfigure__(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KPrinter*) QtSupport::getQt(env, obj))->autoConfigure(QString::null, 0);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_setDocFileName(JNIEnv *env, jobject obj, jstring filename)
{
static QString * _qstring_filename = 0;
	((KPrinter*) QtSupport::getQt(env, obj))->setDocFileName((QString&) * (QString *) QtSupport::toQString(env, filename, &_qstring_filename));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KPrinter_docFileName(JNIEnv *env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KPrinter*) QtSupport::getQt(env, obj))->docFileName();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_addDialogPage(JNIEnv *env, jclass obj, jobject arg1)
{
	KPrinterJBridge::addDialogPage((KPrintDialogPage*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_setPageSelection(JNIEnv *env, jclass obj, jint arg1)
{
	KPrinterJBridge::setPageSelection((KPrinter::PageSelectionType) arg1);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KPrinter_pageSelection(JNIEnv *env, jclass obj)
{
	return (jint) KPrinterJBridge::pageSelection();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_setApplicationType(JNIEnv *env, jclass obj, jint type)
{
	KPrinterJBridge::setApplicationType((KPrinter::ApplicationType) type);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KPrinter_applicationType(JNIEnv *env, jclass obj)
{
	return (jint) KPrinterJBridge::applicationType();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_addStandardPage(JNIEnv *env, jclass obj, jint p)
{
	KPrinterJBridge::addStandardPage((int) p);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_removeStandardPage(JNIEnv *env, jclass obj, jint p)
{
	KPrinterJBridge::removeStandardPage((int) p);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPrinter_cmd(JNIEnv *env, jobject obj, jint arg1, jobject arg2, jobject arg3)
{
	return (jboolean) ((KPrinterJBridge*) QtSupport::getQt(env, obj))->protected_cmd((int) arg1, (QPainter*) QtSupport::getQt(env, arg2), (QPDevCmdParam*) QtSupport::getQt(env, arg3));
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KPrinter_metric(JNIEnv *env, jobject obj, jint arg1)
{
	return (jint) ((KPrinterJBridge*) QtSupport::getQt(env, obj))->protected_metric((int) arg1);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_translateQtOptions(JNIEnv *env, jobject obj)
{
	((KPrinterJBridge*) QtSupport::getQt(env, obj))->protected_translateQtOptions();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_loadSettings(JNIEnv *env, jobject obj)
{
	((KPrinterJBridge*) QtSupport::getQt(env, obj))->protected_loadSettings();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_saveSettings(JNIEnv *env, jobject obj)
{
	((KPrinterJBridge*) QtSupport::getQt(env, obj))->protected_saveSettings();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_preparePrinting(JNIEnv *env, jobject obj)
{
	((KPrinterJBridge*) QtSupport::getQt(env, obj))->protected_preparePrinting();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_finishPrinting(JNIEnv *env, jobject obj)
{
	((KPrinterJBridge*) QtSupport::getQt(env, obj))->protected_finishPrinting();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_reload(JNIEnv *env, jobject obj)
{
	((KPrinterJBridge*) QtSupport::getQt(env, obj))->protected_reload();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_init__ZI(JNIEnv *env, jobject obj, jboolean restore, jint m)
{
	((KPrinterJBridge*) QtSupport::getQt(env, obj))->protected_init((bool) restore, (QPrinter::PrinterMode) m);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KPrinter_init__(JNIEnv *env, jobject obj)
{
	((KPrinterJBridge*) QtSupport::getQt(env, obj))->protected_init(true, QPrinter::ScreenResolution);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KPrinter_devType(JNIEnv *env, jobject obj)
{
	return (jint) ((KPrinterJBridge*) QtSupport::getQt(env, obj))->devType();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPrinter_isExtDev(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KPrinterJBridge*) QtSupport::getQt(env, obj))->isExtDev();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KPrinter_paintingActive(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KPrinterJBridge*) QtSupport::getQt(env, obj))->paintingActive();
}


