20#include "kfoomaticprinterimpl.h"
23#include <kstandarddirs.h>
26KFoomaticPrinterImpl::KFoomaticPrinterImpl(TQObject *parent,
const char *name,
const TQStringList & )
27: KPrinterImpl(parent,name)
31KFoomaticPrinterImpl::~KFoomaticPrinterImpl()
36TQString KFoomaticPrinterImpl::executable()
38 TQString exe = TDEStandardDirs::findExe(
"foomatic-printjob");
42bool KFoomaticPrinterImpl::setupCommand(TQString& cmd,
KPrinter *printer)
44 TQString exe = executable();
47 cmd = exe + TQString::fromLatin1(
" -P %1 -# %2").arg(quote(printer->
printerName())).arg(printer->
numCopies());
51 printer->
setErrorMessage(i18n(
"No valid print executable was found in your path. Check your installation."));
This class is the main interface to access the TDE print framework.
void setErrorMessage(const TQString &msg)
Sets the last error message.
TQString printerName() const
See TQPrinter::printerName().
int numCopies() const
See TQPrinter::numCopies().