Okular
fileprinter.cpp
31 FilePrinter::printFile(QPrinter &printer, const QString &file, QPrinter::Orientation documentOrientation, FileDeletePolicy fileDeletePolicy, PageSelectPolicy pageSelectPolicy, const QString &pageRange, ScaleMode scaleMode)
34 return fp.doPrintFiles(printer, QStringList(file), fileDeletePolicy, pageSelectPolicy, pageRange, documentOrientation, scaleMode);
54 FilePrinter::doPrintFiles(QPrinter &printer, const QStringList &fileList, FileDeletePolicy fileDeletePolicy, PageSelectPolicy pageSelectPolicy, const QString &pageRange, QPrinter::Orientation documentOrientation, ScaleMode scaleMode)
101 } else if (inputFileInfo.suffix() == QLatin1String("ps") && printer.outputFormat() == QPrinter::PdfFormat && ps2pdfAvailable()) {
106 } else if (inputFileInfo.suffix() == QLatin1String("pdf") && printer.outputFormat() == QPrinter::NativeFormat && pdf2psAvailable()) {
138 argList = printArguments(printer, fileDeletePolicy, pageSelectPolicy, useCupsOptions, pageRange, exe, documentOrientation, scaleMode) << fileList;
147 QList<int> FilePrinter::pageList(QPrinter &printer, int lastPage, const QList<int> &selectedPageList)
152 QList<int> FilePrinter::pageList(QPrinter &printer, int lastPage, int currentPage, const QList<int> &selectedPageList)
179 QString FilePrinter::pageRange(QPrinter &printer, int lastPage, const QList<int> &selectedPageList)
379 QStringList FilePrinter::deleteFile(QPrinter &, FileDeletePolicy fileDeletePolicy, const QString &version)
381 if (fileDeletePolicy == FilePrinter::SystemDeletesFiles && version.startsWith(QLatin1String("lpr"))) {
388 QStringList FilePrinter::pages(QPrinter &printer, PageSelectPolicy pageSelectPolicy, const QString &pageRange, bool useCupsOptions, const QString &version)
403 return QStringList(QStringLiteral("-P")) << QStringLiteral("%1-%2").arg(printer.fromPage()).arg(printer.toPage());
407 return QStringList(QStringLiteral("-o")) << QStringLiteral("page-ranges=%1-%2").arg(printer.fromPage()).arg(printer.toPage());
415 QStringList FilePrinter::cupsOptions(QPrinter &printer, QPrinter::Orientation documentOrientation, ScaleMode scaleMode)
451 return QStringList(QStringLiteral("-o")) << QStringLiteral("media=%1,%2").arg(mediaPageSize(printer), mediaPaperSource(printer));
455 return QStringList(QStringLiteral("-o")) << QStringLiteral("media=%1").arg(mediaPageSize(printer));
459 return QStringList(QStringLiteral("-o")) << QStringLiteral("media=%1").arg(mediaPaperSource(printer));
572 QStringList FilePrinter::optionOrientation(QPrinter &printer, QPrinter::Orientation documentOrientation)
632 marginOptions << (QStringLiteral("-o")) << QStringLiteral("page-left=%1").arg(l) << QStringLiteral("-o") << QStringLiteral("page-top=%1").arg(t) << QStringLiteral("-o") << QStringLiteral("page-right=%1").arg(r)
644 QStringList dialogOptions = printer.printEngine()->property(QPrintEngine::PrintEnginePropertyKey(0xfe00)).toStringList();
651 cupsOptions << QStringLiteral("-o") << dialogOptions[i] + QLatin1Char('=') + dialogOptions[i + 1];
virtual void connectToHost(const QString &hostName, quint16 port, QIODevice::OpenMode openMode, QAbstractSocket::NetworkLayerProtocol protocol)
bool isNull() const const
int fromPage() const const
int numCopies() const const
int heightMM() const const
QString fromUtf8(const char *str, int size)
DuplexNone
bool remove()
bool copy(const QString &newName)
int count(const T &value) const const
bool rename(const QString &newName)
QString printerName() const const
QPrinter::PrintRange printRange() const const
QList::const_iterator constBegin() const const
QSize sizePoints() const const
KIOFILEWIDGETS_EXPORT QStringList list(const QString &fileClass)
QString suffix() const const
bool collateCopies() const const
bool exists() const const
QString findExecutable(const QString &executableName, const QStringList &paths)
void setNumCopies(int numCopies)
int size() const const
Aborted
QPrinter::PageOrder pageOrder() const const
int toPage() const const
int widthMM() const const
QPrintEngine * printEngine() const const
Selection
bool isEmpty() const const
QByteArray toUtf8() const const
QPrinter::PaperSource paperSource() const const
PPK_PageMargins
bool fullPage() const const
bool isValid() const const
QPrinter::Orientation orientation() const const
QPrinter::OutputFormat outputFormat() const const
Point
QString outputFileName() const const
QAction * deleteFile(const QObject *recvr, const char *slot, QObject *parent)
void abort()
typedef ConstIterator
QPrinter::DuplexMode duplex() const const
Auto
void transpose()
int actualNumCopies() const const
QByteArray left(int len) const const
LastPageFirst
QList::const_iterator constEnd() const const
KDB_EXPORT KDbVersionInfo version()
virtual QVariant property(QPrintEngine::PrintEnginePropertyKey key) const const=0
QPageLayout pageLayout() const const
virtual bool waitForConnected(int msecs)
void getPageMargins(qreal *left, qreal *top, qreal *right, qreal *bottom, QPrinter::Unit unit) const const
QPagedPaintDevice::PageSize pageSize() const const
PdfFormat
QPageSize pageSize() const const
QStringList toStringList() const const
QAction * lastPage(const QObject *recvr, const char *slot, QObject *parent)
int execute(int msecs=-1)
QPrinter::PrinterState printerState() const const
QString docName() const const
Orientation
QString & append(QChar ch)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Mar 23 2023 04:04:24 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Mar 23 2023 04:04:24 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.