/***************************************************************************
                            kde_KPrinter.cpp -  description
                             -------------------
    begin                : Wed Feb  6 15:12:26 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Feb  6 15:12:26 2002, using kalyptus 0.9.
 ***************************************************************************/

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

extern "C" {
#include "kde_KPrinter.h"
}

#include <kprinter.h>

class KPrinterBridge : public KPrinter
{
public:
	KPrinterBridge(bool restore, QPrinter::PrinterMode m) : KPrinter(restore, m) {}
	~KPrinterBridge() {}
	 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;
	}
};

kde_KPrinter * kde_new_KPrinter(int restore, int m){
	return (kde_KPrinter *) new KPrinterBridge((bool)restore, (QPrinter::PrinterMode)m);
}
void kde_del_KPrinter( kde_KPrinter* p ){
	delete (KPrinterBridge*) p;
}
int kde_KPrinter_newPage( kde_KPrinter* instPointer){
	return (int) ((KPrinterBridge*)instPointer)->newPage();
}
int kde_KPrinter_abort( kde_KPrinter* instPointer){
	return (int) ((KPrinterBridge*)instPointer)->abort();
}
int kde_KPrinter_aborted( kde_KPrinter* instPointer){
	return (int) ((KPrinterBridge*)instPointer)->aborted();
}
int kde_KPrinter_outputToFile( kde_KPrinter* instPointer){
	return (int) ((KPrinterBridge*)instPointer)->outputToFile();
}
void kde_KPrinter_setOutputToFile( kde_KPrinter* instPointer,int arg1){
	((KPrinterBridge*)instPointer)->setOutputToFile((bool)arg1);
	return;
}
qt_QString * kde_KPrinter_outputFileName( kde_KPrinter* instPointer){
	return (qt_QString *)new QString(((KPrinterBridge*)instPointer)->outputFileName());
}
void kde_KPrinter_setOutputFileName( kde_KPrinter* instPointer,qt_QString * arg1){
	((KPrinterBridge*)instPointer)->setOutputFileName((QString&)* (QString*)arg1);
	return;
}
qt_QString * kde_KPrinter_docName( kde_KPrinter* instPointer){
	return (qt_QString *)new QString(((KPrinterBridge*)instPointer)->docName());
}
void kde_KPrinter_setDocName( kde_KPrinter* instPointer,qt_QString * arg1){
	((KPrinterBridge*)instPointer)->setDocName((QString&)* (QString*)arg1);
	return;
}
qt_QString * kde_KPrinter_creator( kde_KPrinter* instPointer){
	return (qt_QString *)new QString(((KPrinterBridge*)instPointer)->creator());
}
void kde_KPrinter_setCreator( kde_KPrinter* instPointer,qt_QString * arg1){
	((KPrinterBridge*)instPointer)->setCreator((QString&)* (QString*)arg1);
	return;
}
int kde_KPrinter_fullPage( kde_KPrinter* instPointer){
	return (int) ((KPrinterBridge*)instPointer)->fullPage();
}
void kde_KPrinter_setFullPage( kde_KPrinter* instPointer,int arg1){
	((KPrinterBridge*)instPointer)->setFullPage((bool)arg1);
	return;
}
int kde_KPrinter_colorMode( kde_KPrinter* instPointer){
	return (int) ((KPrinterBridge*)instPointer)->colorMode();
}
void kde_KPrinter_setColorMode( kde_KPrinter* instPointer,int arg1){
	((KPrinterBridge*)instPointer)->setColorMode((KPrinter::ColorMode)arg1);
	return;
}
int kde_KPrinter_numCopies( kde_KPrinter* instPointer){
	return (int) ((KPrinterBridge*)instPointer)->numCopies();
}
void kde_KPrinter_setNumCopies( kde_KPrinter* instPointer,int n){
	((KPrinterBridge*)instPointer)->setNumCopies((int)n);
	return;
}
int kde_KPrinter_orientation( kde_KPrinter* instPointer){
	return (int) ((KPrinterBridge*)instPointer)->orientation();
}
void kde_KPrinter_setOrientation( kde_KPrinter* instPointer,int arg1){
	((KPrinterBridge*)instPointer)->setOrientation((KPrinter::Orientation)arg1);
	return;
}
int kde_KPrinter_pageOrder( kde_KPrinter* instPointer){
	return (int) ((KPrinterBridge*)instPointer)->pageOrder();
}
void kde_KPrinter_setPageOrder( kde_KPrinter* instPointer,int arg1){
	((KPrinterBridge*)instPointer)->setPageOrder((KPrinter::PageOrder)arg1);
	return;
}
int kde_KPrinter_collate( kde_KPrinter* instPointer){
	return (int) ((KPrinterBridge*)instPointer)->collate();
}
void kde_KPrinter_setCollate( kde_KPrinter* instPointer,int type){
	((KPrinterBridge*)instPointer)->setCollate((KPrinter::CollateType)type);
	return;
}
int kde_KPrinter_minPage( kde_KPrinter* instPointer){
	return (int) ((KPrinterBridge*)instPointer)->minPage();
}
int kde_KPrinter_maxPage( kde_KPrinter* instPointer){
	return (int) ((KPrinterBridge*)instPointer)->maxPage();
}
void kde_KPrinter_setMinMax( kde_KPrinter* instPointer,int arg1, int arg2){
	((KPrinterBridge*)instPointer)->setMinMax((int)arg1, (int)arg2);
	return;
}
int kde_KPrinter_fromPage( kde_KPrinter* instPointer){
	return (int) ((KPrinterBridge*)instPointer)->fromPage();
}
int kde_KPrinter_toPage( kde_KPrinter* instPointer){
	return (int) ((KPrinterBridge*)instPointer)->toPage();
}
void kde_KPrinter_setFromTo( kde_KPrinter* instPointer,int arg1, int arg2){
	((KPrinterBridge*)instPointer)->setFromTo((int)arg1, (int)arg2);
	return;
}
int kde_KPrinter_pageSize( kde_KPrinter* instPointer){
	return (int) ((KPrinterBridge*)instPointer)->pageSize();
}
void kde_KPrinter_setPageSize( kde_KPrinter* instPointer,int arg1){
	((KPrinterBridge*)instPointer)->setPageSize((KPrinter::PageSize)arg1);
	return;
}
qt_QString * kde_KPrinter_printerName( kde_KPrinter* instPointer){
	return (qt_QString *)new QString(((KPrinterBridge*)instPointer)->printerName());
}
void kde_KPrinter_setPrinterName( kde_KPrinter* instPointer,qt_QString * arg1){
	((KPrinterBridge*)instPointer)->setPrinterName((QString&)* (QString*)arg1);
	return;
}
qt_QString * kde_KPrinter_printProgram( kde_KPrinter* instPointer){
	return (qt_QString *)new QString(((KPrinterBridge*)instPointer)->printProgram());
}
void kde_KPrinter_setPrintProgram( kde_KPrinter* instPointer,qt_QString * cmd){
	((KPrinterBridge*)instPointer)->setPrintProgram((QString&)* (QString*)cmd);
	return;
}
qt_QString * kde_KPrinter_printerSelectionOption( kde_KPrinter* instPointer){
	return (qt_QString *)new QString(((KPrinterBridge*)instPointer)->printerSelectionOption());
}
void kde_KPrinter_setPrinterSelectionOption( kde_KPrinter* instPointer,qt_QString * arg1){
	((KPrinterBridge*)instPointer)->setPrinterSelectionOption((QString&)* (QString*)arg1);
	return;
}
int kde_KPrinter_currentPage( kde_KPrinter* instPointer){
	return (int) ((KPrinterBridge*)instPointer)->currentPage();
}
void kde_KPrinter_setCurrentPage( kde_KPrinter* instPointer,int p){
	((KPrinterBridge*)instPointer)->setCurrentPage((int)p);
	return;
}
int kde_KPrinter_pageSet( kde_KPrinter* instPointer){
	return (int) ((KPrinterBridge*)instPointer)->pageSet();
}
int kde_KPrinter_setup( kde_KPrinter* instPointer,qt_QWidget * parent, qt_QString * caption, int forceExpand){
	return (int) ((KPrinterBridge*)instPointer)->setup((QWidget*)parent, (QString&)* (QString*)caption, (bool)forceExpand);
}
qt_QSize * kde_KPrinter_margins( kde_KPrinter* instPointer){
	QSize _s= ((KPrinterBridge*)instPointer)->margins();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
void kde_KPrinter_setMargins( kde_KPrinter* instPointer,qt_QSize * m){
	((KPrinterBridge*)instPointer)->setMargins((QSize)* (QSize*)m);
	return;
}
qt_QSize * kde_KPrinter_realPageSize( kde_KPrinter* instPointer){
	QSize _s= ((KPrinterBridge*)instPointer)->realPageSize();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
void kde_KPrinter_setRealPageSize( kde_KPrinter* instPointer,qt_QSize * p){
	((KPrinterBridge*)instPointer)->setRealPageSize((QSize)* (QSize*)p);
	return;
}
void kde_KPrinter_setPreviewOnly( kde_KPrinter* instPointer,int on){
	((KPrinterBridge*)instPointer)->setPreviewOnly((bool)on);
	return;
}
int kde_KPrinter_previewOnly( kde_KPrinter* instPointer){
	return (int) ((KPrinterBridge*)instPointer)->previewOnly();
}
KPrinterImpl* kde_KPrinter_implementation( kde_KPrinter* instPointer){
	return (KPrinterImpl*) ((KPrinterBridge*)instPointer)->implementation();
}
int kde_KPrinter_printFiles( kde_KPrinter* instPointer,qt_QStringList* files, int removeafter){
	return (int) ((KPrinterBridge*)instPointer)->printFiles((QStringList&)* (QStringList*)files, (bool)removeafter);
}
qt_QString * kde_KPrinter_option( kde_KPrinter* instPointer,qt_QString * key){
	return (qt_QString *) (const QString *)&((KPrinterBridge*)instPointer)->option((QString&)* (QString*)key);
}
void kde_KPrinter_setOption( kde_KPrinter* instPointer,qt_QString * key, qt_QString * value){
	((KPrinterBridge*)instPointer)->setOption((QString&)* (QString*)key, (QString&)* (QString*)value);
	return;
}
qt_QString * kde_KPrinter_searchName( kde_KPrinter* instPointer){
	return (qt_QString *)new QString(((KPrinterBridge*)instPointer)->searchName());
}
void kde_KPrinter_setSearchName( kde_KPrinter* instPointer,qt_QString * n){
	((KPrinterBridge*)instPointer)->setSearchName((QString&)* (QString*)n);
	return;
}
qt_QString * kde_KPrinter_errorMessage( kde_KPrinter* instPointer){
	return (qt_QString *)new QString(((KPrinterBridge*)instPointer)->errorMessage());
}
void kde_KPrinter_setErrorMessage( kde_KPrinter* instPointer,qt_QString * msg){
	((KPrinterBridge*)instPointer)->setErrorMessage((QString&)* (QString*)msg);
	return;
}
int kde_KPrinter_autoConfigure( kde_KPrinter* instPointer,qt_QString * prname, qt_QWidget * parent){
	return (int) ((KPrinterBridge*)instPointer)->autoConfigure((QString&)* (QString*)prname, (QWidget*)parent);
}
void kde_KPrinter_setDocFileName( kde_KPrinter* instPointer,qt_QString * filename){
	((KPrinterBridge*)instPointer)->setDocFileName((QString&)* (QString*)filename);
	return;
}
qt_QString * kde_KPrinter_docFileName( kde_KPrinter* instPointer){
	return (qt_QString *)new QString(((KPrinterBridge*)instPointer)->docFileName());
}
//void kde_KPrinter_addDialogPage( kde_KPrintDialogPage* arg1){
//	KPrinterBridge::addDialogPage((KPrintDialogPage*)arg1);
//	return;
//}
void kde_KPrinter_setPageSelection( int arg1){
	KPrinterBridge::setPageSelection((KPrinter::PageSelectionType)arg1);
	return;
}
int kde_KPrinter_pageSelection( ){
	return (int) KPrinterBridge::pageSelection();
}
void kde_KPrinter_setApplicationType( int type){
	KPrinterBridge::setApplicationType((KPrinter::ApplicationType)type);
	return;
}
int kde_KPrinter_applicationType( ){
	return (int) KPrinterBridge::applicationType();
}
void kde_KPrinter_addStandardPage( int p){
	KPrinterBridge::addStandardPage((int)p);
	return;
}
void kde_KPrinter_removeStandardPage( int p){
	KPrinterBridge::removeStandardPage((int)p);
	return;
}
int kde_KPrinter_cmd( kde_KPrinter* instPointer,int arg1, qt_QPainter * arg2, qt_QPDevCmdParam* arg3){
	return (int) ((KPrinterBridge*)instPointer)->protected_cmd((int)arg1, (QPainter*)arg2, (QPDevCmdParam*)arg3);
}
int kde_KPrinter_metric( kde_KPrinter* instPointer,int arg1){
	return (int) ((KPrinterBridge*)instPointer)->protected_metric((int)arg1);
}
void kde_KPrinter_translateQtOptions( kde_KPrinter* instPointer){
	((KPrinterBridge*)instPointer)->protected_translateQtOptions();
	return;
}
void kde_KPrinter_loadSettings( kde_KPrinter* instPointer){
	((KPrinterBridge*)instPointer)->protected_loadSettings();
	return;
}
void kde_KPrinter_saveSettings( kde_KPrinter* instPointer){
	((KPrinterBridge*)instPointer)->protected_saveSettings();
	return;
}
void kde_KPrinter_preparePrinting( kde_KPrinter* instPointer){
	((KPrinterBridge*)instPointer)->protected_preparePrinting();
	return;
}
void kde_KPrinter_finishPrinting( kde_KPrinter* instPointer){
	((KPrinterBridge*)instPointer)->protected_finishPrinting();
	return;
}
void kde_KPrinter_reload( kde_KPrinter* instPointer){
	((KPrinterBridge*)instPointer)->protected_reload();
	return;
}
void kde_KPrinter_init( kde_KPrinter* instPointer,int restore, int m){
	((KPrinterBridge*)instPointer)->protected_init((bool)restore, (QPrinter::PrinterMode)m);
	return;
}
//kde_KPReloadObject* kde_KPrinter_KPReloadObject(kde_KPrinter* instPointer){
//	return (kde_KPReloadObject*) (KPReloadObject *) (KPrinter *) instPointer;
//}
qt_QPaintDevice * kde_KPrinter_QPaintDevice(kde_KPrinter* instPointer){
	return (qt_QPaintDevice *) (QPaintDevice *) (KPrinter *) instPointer;
}
