//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstring.h>
#include <tqsize.h>
#include <tqprinter.h>

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

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

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

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

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

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QPrinter_creator(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQPrinter*) QtSupport::getQt(env, obj))->creator();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPrinter_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QPrinter_finalize(env, obj);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QPrinter_docName(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQPrinter*) QtSupport::getQt(env, obj))->docName();
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPrinter_margins__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSize(((TQPrinter*) QtSupport::getQt(env, obj))->margins()), "org.trinitydesktop.qt.TQSize", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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);
	((TQPrinter*) 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_trinitydesktop_qt_QPrinter_maxPage(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQPrinter*) QtSupport::getQt(env, obj))->maxPage();
	return xret;
}

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

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

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

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

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

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QPrinter_outputFileName(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQPrinter*) QtSupport::getQt(env, obj))->outputFileName();
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QPrinter_printProgram(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQPrinter*) QtSupport::getQt(env, obj))->printProgram();
	return QtSupport::fromTQString(env, &_qstring);
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QPrinter_printerName(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQPrinter*) QtSupport::getQt(env, obj))->printerName();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QPrinter_printerSelectionOption(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQPrinter*) QtSupport::getQt(env, obj))->printerSelectionOption();
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPrinter_setCreator(JNIEnv* env, jobject obj, jstring arg1)
{
static TQString* _qstring_arg1 = 0;
	((TQPrinter*) QtSupport::getQt(env, obj))->setCreator((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPrinter_setDocName(JNIEnv* env, jobject obj, jstring arg1)
{
static TQString* _qstring_arg1 = 0;
	((TQPrinter*) QtSupport::getQt(env, obj))->setDocName((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return;
}

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPrinter_setOutputFileName(JNIEnv* env, jobject obj, jstring arg1)
{
static TQString* _qstring_arg1 = 0;
	((TQPrinter*) QtSupport::getQt(env, obj))->setOutputFileName((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPrinter_setPrintProgram(JNIEnv* env, jobject obj, jstring arg1)
{
static TQString* _qstring_arg1 = 0;
	((TQPrinter*) QtSupport::getQt(env, obj))->setPrintProgram((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPrinter_setPrinterName(JNIEnv* env, jobject obj, jstring arg1)
{
static TQString* _qstring_arg1 = 0;
	((TQPrinter*) QtSupport::getQt(env, obj))->setPrinterName((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPrinter_setPrinterSelectionOption(JNIEnv* env, jobject obj, jstring arg1)
{
static TQString* _qstring_arg1 = 0;
	((TQPrinter*) QtSupport::getQt(env, obj))->setPrinterSelectionOption((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return;
}

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

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

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

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

