Qt 4.8
|
#include <qcups_p.h>
Public Functions | |
const cups_dest_t * | availablePrinters () const |
int | availablePrintersCount () const |
const ppd_file_t * | currentPPD () const |
int | currentPrinterIndex () const |
int | markOption (const char *name, const char *value) |
QStringList | options () const |
QRect | pageRect (const char *choice) const |
const ppd_option_t * | pageSizes () const |
QRect | paperRect (const char *choice) const |
const ppd_option_t * | ppdOption (const char *key) const |
const cups_option_t * | printerOption (const QString &key) const |
int | printFile (const char *printerName, const char *filename, const char *title, int num_options, cups_option_t *options) |
QCUPSSupport () | |
void | saveOptions (QList< const ppd_option_t *> options, QList< const char *> markedOptions) |
const ppd_file_t * | setCurrentPrinter (int index) |
QPair< int, QString > | tempFd () |
QString | unicodeString (const char *s) |
~QCUPSSupport () | |
Static Public Functions | |
static int | cupsVersion () |
static bool | isAvailable () |
static bool | printerHasPPD (const char *printerName) |
Private Functions | |
void | collectMarkedOptions (QStringList &list, const ppd_group_t *group=0) const |
void | collectMarkedOptionsHelper (QStringList &list, const ppd_group_t *group) const |
Properties | |
QTextCodec * | codec |
ppd_file_t * | currPPD |
int | currPrinterIndex |
const ppd_option_t * | page_sizes |
cups_dest_t * | printers |
int | prnCount |
QCUPSSupport::QCUPSSupport | ( | ) |
Definition at line 121 of file qcups.cpp.
const cups_dest_t * QCUPSSupport::availablePrinters | ( | ) | const |
Definition at line 168 of file qcups.cpp.
Referenced by cupsVersion(), QPdfBaseEngine::QPdfBaseEngine(), qt_getLprPrinters(), and QUnixPrintWidgetPrivate::QUnixPrintWidgetPrivate().
int QCUPSSupport::availablePrintersCount | ( | ) | const |
Definition at line 163 of file qcups.cpp.
Referenced by cupsVersion(), QPdfBaseEngine::QPdfBaseEngine(), qt_getLprPrinters(), and QUnixPrintWidgetPrivate::QUnixPrintWidgetPrivate().
|
private |
Definition at line 361 of file qcups.cpp.
Referenced by cupsVersion(), and options().
|
private |
Definition at line 376 of file qcups.cpp.
Referenced by collectMarkedOptions(), and cupsVersion().
|
inlinestatic |
Definition at line 75 of file qcups_p.h.
Referenced by QPdfBaseEnginePrivate::closePrintDevice(), QPrinter::init(), and QPrinter::setPrinterName().
const ppd_file_t * QCUPSSupport::currentPPD | ( | ) | const |
Definition at line 173 of file qcups.cpp.
Referenced by QUnixPrintWidgetPrivate::_q_printerChanged(), cupsVersion(), QPPDOptionsModel::parseItems(), QUnixPrintWidgetPrivate::QUnixPrintWidgetPrivate(), and QPageSetupWidget::setupPrinter().
int QCUPSSupport::currentPrinterIndex | ( | ) | const |
Definition at line 211 of file qcups.cpp.
Referenced by cupsVersion(), and QUnixPrintWidgetPrivate::QUnixPrintWidgetPrivate().
|
static |
Definition at line 216 of file qcups.cpp.
Referenced by QUnixPrintWidgetPrivate::_q_printerChanged(), cupsVersion(), QPageSetupDialogPrivate::init(), QPdfBaseEnginePrivate::openPrintDevice(), QPdfBaseEnginePrivate::pageRect(), QPdfBaseEnginePrivate::paperRect(), printerHasPPD(), QPdfBaseEngine::property(), QCUPSSupport(), QPdfBaseEngine::QPdfBaseEngine(), qt_getLprPrinters(), QUnixPrintWidgetPrivate::QUnixPrintWidgetPrivate(), QPageSetupWidget::selectPrinter(), QPrintPropertiesDialog::selectPrinter(), QUnixPrintWidgetPrivate::setCupsProperties(), and QPageSetupWidget::setupPrinter().
int QCUPSSupport::markOption | ( | const char * | name, |
const char * | value | ||
) |
Definition at line 264 of file qcups.cpp.
Referenced by cupsVersion(), and QPPDOptionsEditor::setModelData().
QStringList QCUPSSupport::options | ( | ) | const |
Definition at line 335 of file qcups.cpp.
Referenced by cupsVersion(), printerOption(), QUnixPrintWidgetPrivate::setCupsProperties(), setCurrentPrinter(), and QPageSetupWidget::setupPrinter().
QRect QCUPSSupport::pageRect | ( | const char * | choice | ) | const |
Definition at line 321 of file qcups.cpp.
Referenced by cupsVersion(), QPageSetupWidget::selectPrinter(), QUnixPrintWidgetPrivate::setCupsProperties(), and QPageSetupWidget::setupPrinter().
const ppd_option_t * QCUPSSupport::pageSizes | ( | ) | const |
Definition at line 259 of file qcups.cpp.
Referenced by cupsVersion(), qt_getLprPrinters(), QPageSetupWidget::selectPrinter(), and QUnixPrintWidgetPrivate::setCupsProperties().
QRect QCUPSSupport::paperRect | ( | const char * | choice | ) | const |
Definition at line 310 of file qcups.cpp.
Referenced by QPageSetupWidget::_q_paperSizeChanged(), cupsVersion(), QPageSetupWidget::selectPrinter(), QUnixPrintWidgetPrivate::setCupsProperties(), and QPageSetupWidget::setupPrinter().
const ppd_option_t * QCUPSSupport::ppdOption | ( | const char * | key | ) | const |
Definition at line 237 of file qcups.cpp.
Referenced by cupsVersion(), QPrintDialogPrivate::selectPrinter(), and setCurrentPrinter().
|
static |
Definition at line 342 of file qcups.cpp.
Referenced by cupsVersion(), and QPrinter::setPrinterName().
const cups_option_t * QCUPSSupport::printerOption | ( | const QString & | key | ) | const |
Definition at line 250 of file qcups.cpp.
Referenced by QUnixPrintWidgetPrivate::_q_printerChanged(), and cupsVersion().
int QCUPSSupport::printFile | ( | const char * | printerName, |
const char * | filename, | ||
const char * | title, | ||
int | num_options, | ||
cups_option_t * | options | ||
) |
Definition at line 394 of file qcups.cpp.
Referenced by QPdfBaseEnginePrivate::closePrintDevice(), and cupsVersion().
void QCUPSSupport::saveOptions | ( | QList< const ppd_option_t *> | options, |
QList< const char *> | markedOptions | ||
) |
Definition at line 269 of file qcups.cpp.
Referenced by cupsVersion(), and QPrintPropertiesDialog::setupPrinter().
const ppd_file_t * QCUPSSupport::setCurrentPrinter | ( | int | index | ) |
Definition at line 178 of file qcups.cpp.
Referenced by QUnixPrintWidgetPrivate::_q_printerChanged(), cupsVersion(), QCUPSSupport(), and qt_getLprPrinters().
Definition at line 386 of file qcups.cpp.
Referenced by cupsVersion(), and QPdfBaseEnginePrivate::openPrintDevice().
QString QCUPSSupport::unicodeString | ( | const char * | s | ) |
Definition at line 352 of file qcups.cpp.
Referenced by cupsVersion(), and QPPDOptionsModel::data().
|
private |
Definition at line 113 of file qcups_p.h.
Referenced by QCUPSSupport(), and unicodeString().
|
private |
Definition at line 111 of file qcups_p.h.
Referenced by collectMarkedOptions(), currentPPD(), markOption(), pageRect(), paperRect(), ppdOption(), setCurrentPrinter(), and ~QCUPSSupport().
|
private |
Definition at line 110 of file qcups_p.h.
Referenced by currentPrinterIndex(), printerOption(), QCUPSSupport(), saveOptions(), and setCurrentPrinter().
|
private |
Definition at line 109 of file qcups_p.h.
Referenced by pageSizes(), and setCurrentPrinter().
|
private |
Definition at line 108 of file qcups_p.h.
Referenced by availablePrinters(), printerOption(), QCUPSSupport(), saveOptions(), setCurrentPrinter(), and ~QCUPSSupport().
|
private |
Definition at line 107 of file qcups_p.h.
Referenced by availablePrintersCount(), QCUPSSupport(), saveOptions(), setCurrentPrinter(), and ~QCUPSSupport().