//Auto-generated by kalyptus. DO NOT EDIT.
#include <qstring.h>
#include <qsize.h>
#include <qprinter.h>

#include <qtjava/QtSupport.h>
#include <qtjava/QPrinter.h>

class QPrinterJBridge : public QPrinter
{
public:
	QPrinterJBridge(QPrinter::PrinterMode arg1) : QPrinter(arg1) {};
	QPrinterJBridge() : QPrinter() {};
	int protected_metric(int arg1) {
		return (int) QPrinter::metric(arg1);
	}
	~QPrinterJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPrinter_abort(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QPrinter*) QtSupport::getQt(env, obj))->abort();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPrinter_aborted(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QPrinter*) QtSupport::getQt(env, obj))->aborted();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPrinter_collateCopiesEnabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QPrinter*) QtSupport::getQt(env, obj))->collateCopiesEnabled();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPrinter_collateCopies(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QPrinter*) QtSupport::getQt(env, obj))->collateCopies();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPrinter_colorMode(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QPrinter*) QtSupport::getQt(env, obj))->colorMode();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QPrinter_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QPrinter_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPrinter_fromPage(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QPrinter*) QtSupport::getQt(env, obj))->fromPage();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPrinter_fullPage(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QPrinter*) QtSupport::getQt(env, obj))->fullPage();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPrinter_isOptionEnabled(JNIEnv* env, jobject obj, jint arg1)
{
	jboolean xret = (jboolean) ((QPrinter*) QtSupport::getQt(env, obj))->isOptionEnabled((QPrinter::PrinterOption) arg1);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QPrinter_margins__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSize(((QPrinter*) QtSupport::getQt(env, obj))->margins()), "org.kde.qt.QSize", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPrinter_margins___3I_3I_3I_3I(JNIEnv* env, jobject obj, jintArray top, jintArray left, jintArray bottom, jintArray right)
{
	int* _int_top = QtSupport::toIntPtr(env, top);
	int* _int_left = QtSupport::toIntPtr(env, left);
	int* _int_bottom = QtSupport::toIntPtr(env, bottom);
	int* _int_right = QtSupport::toIntPtr(env, right);
	((QPrinter*) QtSupport::getQt(env, obj))->margins( (uint*) _int_top,  (uint*) _int_left,  (uint*) _int_bottom,  (uint*) _int_right);
	env->SetIntArrayRegion(top, 0, 1, (jint *) _int_top);
	env->SetIntArrayRegion(left, 0, 1, (jint *) _int_left);
	env->SetIntArrayRegion(bottom, 0, 1, (jint *) _int_bottom);
	env->SetIntArrayRegion(right, 0, 1, (jint *) _int_right);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPrinter_maxPage(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QPrinter*) QtSupport::getQt(env, obj))->maxPage();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPrinter_metric(JNIEnv* env, jobject obj, jint arg1)
{
	jint xret = (jint) ((QPrinterJBridge*) QtSupport::getQt(env, obj))->protected_metric((int) arg1);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPrinter_minPage(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QPrinter*) QtSupport::getQt(env, obj))->minPage();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPrinter_newPage(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QPrinter*) QtSupport::getQt(env, obj))->newPage();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPrinter_newQPrinter__(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QPrinterJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPrinter_newQPrinter__I(JNIEnv* env, jobject obj, jint mode)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QPrinterJBridge((QPrinter::PrinterMode) mode));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPrinter_numCopies(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QPrinter*) QtSupport::getQt(env, obj))->numCopies();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPrinter_orientation(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QPrinter*) QtSupport::getQt(env, obj))->orientation();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPrinter_outputToFile(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QPrinter*) QtSupport::getQt(env, obj))->outputToFile();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPrinter_pageOrder(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QPrinter*) QtSupport::getQt(env, obj))->pageOrder();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPrinter_pageSize(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QPrinter*) QtSupport::getQt(env, obj))->pageSize();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPrinter_paperSource(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QPrinter*) QtSupport::getQt(env, obj))->paperSource();
	return xret;
}

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPrinter_printRange(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QPrinter*) QtSupport::getQt(env, obj))->printRange();
	return xret;
}

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

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPrinter_resolution(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QPrinter*) QtSupport::getQt(env, obj))->resolution();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPrinter_setCollateCopiesEnabled(JNIEnv* env, jobject obj, jboolean arg1)
{
	((QPrinter*) QtSupport::getQt(env, obj))->setCollateCopiesEnabled((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPrinter_setCollateCopies(JNIEnv* env, jobject obj, jboolean arg1)
{
	((QPrinter*) QtSupport::getQt(env, obj))->setCollateCopies((bool) arg1);
	return;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QPrinter_setFromTo(JNIEnv* env, jobject obj, jint fromPage, jint toPage)
{
	((QPrinter*) QtSupport::getQt(env, obj))->setFromTo((int) fromPage, (int) toPage);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QPrinter_setMargins(JNIEnv* env, jobject obj, jint top, jint left, jint bottom, jint right)
{
	((QPrinter*) QtSupport::getQt(env, obj))->setMargins((uint) top, (uint) left, (uint) bottom, (uint) right);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPrinter_setMinMax(JNIEnv* env, jobject obj, jint minPage, jint maxPage)
{
	((QPrinter*) QtSupport::getQt(env, obj))->setMinMax((int) minPage, (int) maxPage);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPrinter_setNumCopies(JNIEnv* env, jobject obj, jint arg1)
{
	((QPrinter*) QtSupport::getQt(env, obj))->setNumCopies((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPrinter_setOptionEnabled(JNIEnv* env, jobject obj, jint arg1, jboolean enable)
{
	((QPrinter*) QtSupport::getQt(env, obj))->setOptionEnabled((QPrinter::PrinterOption) arg1, (bool) enable);
	return;
}

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QPrinter_setPaperSource(JNIEnv* env, jobject obj, jint arg1)
{
	((QPrinter*) QtSupport::getQt(env, obj))->setPaperSource((QPrinter::PaperSource) arg1);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QPrinter_setPrintRange(JNIEnv* env, jobject obj, jint range)
{
	((QPrinter*) QtSupport::getQt(env, obj))->setPrintRange((QPrinter::PrintRange) range);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QPrinter_setResolution(JNIEnv* env, jobject obj, jint arg1)
{
	((QPrinter*) QtSupport::getQt(env, obj))->setResolution((int) arg1);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPrinter_setup__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QPrinter*) QtSupport::getQt(env, obj))->setup();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QPrinter_setup__Lorg_kde_qt_QWidget_2(JNIEnv* env, jobject obj, jobject parent)
{
	jboolean xret = (jboolean) ((QPrinter*) QtSupport::getQt(env, obj))->setup((QWidget*) QtSupport::getQt(env, parent));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPrinter_toPage(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QPrinter*) QtSupport::getQt(env, obj))->toPage();
	return xret;
}

