kcupsprinterimpl.cpp
56 //******************************************************************************************************
58 KCupsPrinterImpl::KCupsPrinterImpl(TQObject *parent, const char *name, const TQStringList & /*args*/)
79 TQString hoststr = TQString::fromLatin1("%1:%2").arg(CupsInfos::self()->host()).arg(CupsInfos::self()->port());
80 cmd = TQString::fromLatin1("%1 -P %2 -J %4 -H %3").arg(quote(exe)).arg(quote(printer->printerName())).arg(quote(hoststr)).arg(quote(printer->docName()));
102 if (!printer->option("kde-copies").isEmpty()) printer->setOption("copies",printer->option("kde-copies"));
115 printer->setOption("multiple-document-handling",(printer->option("kde-collate") == "Collate" ? "separate-documents-collated-copies" : "separate-documents-uncollated-copies"));
139 TQString pagename = TQString::fromLatin1(pageSizeToPageName((KPrinter::PageSize)value.toInt()));
146 //******************************************************************************************************
const TQMap< TQString, TQString > & options() const
Returns the complete set of print options from the KPrinter object.
Definition: kprinter.cpp:903
void setOption(const TQString &key, const TQString &value)
Adds or modifies an option in the KPrinter object.
Definition: kprinter.cpp:794
const TQString & option(const TQString &key) const
Starts the add printer wizard.
Definition: kprinter.cpp:791
static PageSelectionType pageSelection()
Returns the page selection mode of the current application.
Definition: kprinter.cpp:260
static ApplicationType applicationType()
Returns the application type concerning the print dialog.
Definition: kprinter.cpp:270
This class is the main interface to access the TDE print framework.
Definition: kprinter.h:88
Trinity API Reference