20#include "klprprinterimpl.h" 
   22#include "kmlprmanager.h" 
   24#include <tdestandarddirs.h> 
   28KLprPrinterImpl::KLprPrinterImpl(TQObject *parent, 
const char *name, 
const TQStringList & )
 
   29: KPrinterImpl(parent,name)
 
   31    m_exepath = TDEStandardDirs::findExe(
"lpr");
 
   34KLprPrinterImpl::~KLprPrinterImpl()
 
   38bool KLprPrinterImpl::setupCommand(TQString& cmd, 
KPrinter *printer)
 
   41    if (!printer || m_exepath.isEmpty())
 
   44    cmd = TQString::fromLatin1(
"%1 -P %1 '-#%1'").arg(m_exepath).arg(quote(printer->
printerName())).arg( printer->
numCopies() );
 
   45    TQString    opts = 
static_cast<KMLprManager*
>(KMManager::self())->printOptions(printer);
 
   51void KLprPrinterImpl::broadcastOption(
const TQString& key, 
const TQString& value)
 
   53    KPrinterImpl::broadcastOption(key,value);
 
   54    if (key == 
"kde-pagesize")
 
   56        TQString    pagename = TQString::fromLatin1(pageSizeToPageName((
KPrinter::PageSize)value.toInt()));
 
   57        KPrinterImpl::broadcastOption(
"PageSize",pagename);
 
This class is the main interface to access the TDE print framework.
 
PageSize
Defines the paper size to use.
 
TQString printerName() const
See TQPrinter::printerName().
 
int numCopies() const
See TQPrinter::numCopies().