Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QCUPSSupport Class Reference

#include <qcups_p.h>

+ Collaboration diagram for QCUPSSupport:

Classes

struct  JobHoldUntilWithTime
 
struct  JobSheets
 

Public Types

enum  JobHoldUntil {
  NoHold = 0 , Indefinite , DayTime , Night ,
  SecondShift , ThirdShift , Weekend , SpecificTime
}
 
enum  BannerPage {
  NoBanner = 0 , Standard , Unclassified , Confidential ,
  Classified , Secret , TopSecret
}
 
enum  PageSet { AllPages = 0 , OddPages , EvenPages }
 
enum  PagesPerSheet {
  OnePagePerSheet = 0 , TwoPagesPerSheet , FourPagesPerSheet , SixPagesPerSheet ,
  NinePagesPerSheet , SixteenPagesPerSheet
}
 
enum  PagesPerSheetLayout {
  LeftToRightTopToBottom = 0 , LeftToRightBottomToTop , RightToLeftTopToBottom , RightToLeftBottomToTop ,
  BottomToTopLeftToRight , BottomToTopRightToLeft , TopToBottomLeftToRight , TopToBottomRightToLeft
}
 

Static Public Member Functions

static void setCupsOption (QPrinter *printer, const QString &option, const QString &value)
 
static void clearCupsOption (QPrinter *printer, const QString &option)
 
static void clearCupsOptions (QPrinter *printer)
 
static void setJobHold (QPrinter *printer, const JobHoldUntil jobHold=NoHold, QTime holdUntilTime=QTime())
 
static void setJobBilling (QPrinter *printer, const QString &jobBilling=QString())
 
static void setJobPriority (QPrinter *printer, int priority=50)
 
static void setBannerPages (QPrinter *printer, const BannerPage startBannerPage, const BannerPage endBannerPage)
 
static void setPageSet (QPrinter *printer, const PageSet pageSet)
 
static void setPagesPerSheetLayout (QPrinter *printer, const PagesPerSheet pagesPerSheet, const PagesPerSheetLayout pagesPerSheetLayout)
 
static void setPageRange (QPrinter *printer, int pageFrom, int pageTo)
 
static void setPageRange (QPrinter *printer, const QString &pageRange)
 
static JobSheets parseJobSheets (const QString &jobSheets)
 
static JobHoldUntilWithTime parseJobHoldUntil (const QString &jobHoldUntil)
 
static ppd_option_t * findPpdOption (const char *optionName, QPrintDevice *printDevice)
 

Detailed Description

Definition at line 45 of file qcups_p.h.

Member Enumeration Documentation

◆ BannerPage

Enumerator
NoBanner 
Standard 
Unclassified 
Confidential 
Classified 
Secret 
TopSecret 

Definition at line 61 of file qcups_p.h.

◆ JobHoldUntil

Enumerator
NoHold 
Indefinite 
DayTime 
Night 
SecondShift 
ThirdShift 
Weekend 
SpecificTime 

Definition at line 49 of file qcups_p.h.

◆ PageSet

Enumerator
AllPages 
OddPages 
EvenPages 

Definition at line 72 of file qcups_p.h.

◆ PagesPerSheet

Enumerator
OnePagePerSheet 
TwoPagesPerSheet 
FourPagesPerSheet 
SixPagesPerSheet 
NinePagesPerSheet 
SixteenPagesPerSheet 

Definition at line 79 of file qcups_p.h.

◆ PagesPerSheetLayout

Enumerator
LeftToRightTopToBottom 
LeftToRightBottomToTop 
RightToLeftTopToBottom 
RightToLeftBottomToTop 
BottomToTopLeftToRight 
BottomToTopRightToLeft 
TopToBottomLeftToRight 
TopToBottomRightToLeft 

Definition at line 89 of file qcups_p.h.

Member Function Documentation

◆ clearCupsOption()

void QCUPSSupport::clearCupsOption ( QPrinter * printer,
const QString & option )
static

Definition at line 45 of file qcups.cpp.

References it, and Q_ASSERT.

Referenced by setJobHold().

+ Here is the caller graph for this function:

◆ clearCupsOptions()

void QCUPSSupport::clearCupsOptions ( QPrinter * printer)
static

Definition at line 57 of file qcups.cpp.

Referenced by QPrintPropertiesDialog::setupPrinter().

+ Here is the caller graph for this function:

◆ findPpdOption()

ppd_option_t * QCUPSSupport::findPpdOption ( const char * optionName,
QPrintDevice * printDevice )
static

Definition at line 125 of file qcups.cpp.

References i, PDPK_PpdFile, and qstrcmp().

Referenced by QPageSetupWidget::setPrinter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseJobHoldUntil()

QCUPSSupport::JobHoldUntilWithTime QCUPSSupport::parseJobHoldUntil ( const QString & jobHoldUntil)
static

Definition at line 95 of file qcups.cpp.

References QDateTime::currentDateTimeUtc(), DayTime, Indefinite, Night, NoHold, SecondShift, SpecificTime, ThirdShift, and Weekend.

+ Here is the call graph for this function:

◆ parseJobSheets()

QCUPSSupport::JobSheets QCUPSSupport::parseJobSheets ( const QString & jobSheets)
static

Definition at line 194 of file qcups.cpp.

References stringToBannerPage().

+ Here is the call graph for this function:

◆ setBannerPages()

void QCUPSSupport::setBannerPages ( QPrinter * printer,
const BannerPage startBannerPage,
const BannerPage endBannerPage )
static

Definition at line 207 of file qcups.cpp.

References bannerPageToString(), QStringLiteral, and setCupsOption().

Referenced by QCupsJobWidget::setupPrinter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setCupsOption()

static void QCUPSSupport::setCupsOption ( QPrinter * printer,
const QString & option,
const QString & value )
static

Referenced by setBannerPages(), setJobBilling(), setJobHold(), setJobPriority(), setPageRange(), setPageSet(), and setPagesPerSheetLayout().

+ Here is the caller graph for this function:

◆ setJobBilling()

void QCUPSSupport::setJobBilling ( QPrinter * printer,
const QString & jobBilling = QString() )
static

Definition at line 157 of file qcups.cpp.

References QStringLiteral, and setCupsOption().

Referenced by QCupsJobWidget::setupPrinter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setJobHold()

void QCUPSSupport::setJobHold ( QPrinter * printer,
const JobHoldUntil jobHold = NoHold,
QTime holdUntilTime = QTime() )
static

Definition at line 145 of file qcups.cpp.

References clearCupsOption(), jobHoldToString(), QStringLiteral, and setCupsOption().

Referenced by QCupsJobWidget::setupPrinter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setJobPriority()

void QCUPSSupport::setJobPriority ( QPrinter * printer,
int priority = 50 )
static

Definition at line 162 of file qcups.cpp.

References QString::number(), QStringLiteral, and setCupsOption().

Referenced by QCupsJobWidget::setupPrinter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setPageRange() [1/2]

void QCUPSSupport::setPageRange ( QPrinter * printer,
const QString & pageRange )
static

Definition at line 251 of file qcups.cpp.

References QStringLiteral, and setCupsOption().

+ Here is the call graph for this function:

◆ setPageRange() [2/2]

void QCUPSSupport::setPageRange ( QPrinter * printer,
int pageFrom,
int pageTo )
static

Definition at line 246 of file qcups.cpp.

References arg, QStringLiteral, and setPageRange().

Referenced by setPageRange(), and QPrintDialogPrivate::setupPrinter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setPageSet()

void QCUPSSupport::setPageSet ( QPrinter * printer,
const PageSet pageSet )
static

Definition at line 215 of file qcups.cpp.

References AllPages, EvenPages, OddPages, QStringLiteral, and setCupsOption().

Referenced by QPrintDialogPrivate::setupPrinter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setPagesPerSheetLayout()

void QCUPSSupport::setPagesPerSheetLayout ( QPrinter * printer,
const PagesPerSheet pagesPerSheet,
const PagesPerSheetLayout pagesPerSheetLayout )
static

Definition at line 234 of file qcups.cpp.

References QStringLiteral, and setCupsOption().

Referenced by QPageSetupWidget::setupPrinter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: