GetJobData
const JobData* GetJobData(BFile* spoolFile);
const JobData* GetJobData() const;
switch (GetJobData()->GetPaper()) {
width = GetJobData()->GetPaperRect().IntegerWidth();
height = GetJobData()->GetPaperRect().IntegerHeight();
if (JobData::kLandscape == GetJobData()->GetOrientation())
switch (GetJobData()->GetPaperSource()) {
WriteSpoolString("\033[%ldv", GetJobData()->GetCopies());
GetJobData()->GetXres(), compressionMethod, height);
fHalftone = new Halftone(GetJobData()->GetSurfaceType(),
GetJobData()->GetGamma(), GetJobData()->GetInkDensity(),
GetJobData()->GetDitherType());
WriteSpoolString("\033P41;%d;1J\033\\", GetJobData()->GetXres());
WriteSpoolString("\033[?7;%d I", GetJobData()->GetXres());
switch (GetJobData()->GetPaperSource()) {
switch (GetJobData()->GetPaper()) {
if (JobData::kLandscape == GetJobData()->GetOrientation())
WriteSpoolString("\033[%ldv", GetJobData()->GetCopies());
if (GetJobData()->GetPrintStyle() == JobData::kSimplex)
if (GetJobData()->GetPrintStyle() == JobData::kDuplex) {
GetJobData()->GetXres(),
fHalftone = new Halftone(GetJobData()->GetSurfaceType(),
GetJobData()->GetGamma(), GetJobData()->GetInkDensity(),
GetJobData()->GetDitherType());
if (GetJobData()->Settings().HasString(key))
const string& value = GetJobData()->Settings().GetString(key);
if (GetJobData()->Settings().HasBoolean(key))
GetJobData()->Settings().GetBoolean(key);
if (GetJobData()->Settings().HasInt(key))
GetJobData()->Settings().GetInt(key);
if (GetJobData()->Settings().HasInt(key))
GetJobData()->Settings().GetInt(key);
if (GetJobData()->Settings().HasDouble(key))
GetJobData()->Settings().GetDouble(key);
GetJobData()->GetPaper());
GetJobData()->GetResolutionID());
fConfiguration.fXDPI = GetJobData()->GetXres();
fConfiguration.fYDPI = GetJobData()->GetYres();
GetJobData()->GetPaperSource());
GetJobData()->GetColor());
const bool color = GetJobData()->GetColor() == JobData::kColor;
const bool color = GetJobData()->GetColor() == JobData::kColor;
WriteSpoolString("\033*t%dR", GetJobData()->GetXres());
WriteSpoolString("\033&u%dD", GetJobData()->GetXres());
fHalftone = new Halftone(GetJobData()->GetSurfaceType(),
GetJobData()->GetGamma(), GetJobData()->GetInkDensity(),
GetJobData()->GetDitherType());
fWriter->PJLHeader(pc, GetJobData()->GetXres(),
fWriter->BeginSession(GetJobData()->GetXres(), GetJobData()->GetYres(),
if (GetJobData()->GetOrientation() == JobData::kLandscape) {
_MediaSize(GetJobData()->GetPaper());
_MediaSource(GetJobData()->GetPaperSource());
if (GetJobData()->GetPrintStyle() == JobData::kSimplex) {
} else if (GetJobData()->GetPrintStyle() == JobData::kDuplex) {
int x = 142 * GetJobData()->GetXres() / 600;
int y = 100 * GetJobData()->GetYres() / 600;
fWriter->EndPage(GetJobData()->GetCopies());
return GetJobData()->GetColor() != JobData::kColorCompressionDisabled;
&& GetJobData()->GetColor() != JobData::kColorCompressionDisabled;
return GetJobData()->GetColor() != JobData::kMonochrome;
fHalftone = new Halftone(GetJobData()->GetSurfaceType(),
GetJobData()->GetGamma(), GetJobData()->GetInkDensity(),
GetJobData()->GetDitherType());
fHalftone = new Halftone(GetJobData()->GetSurfaceType(),
GetJobData()->GetGamma(), GetJobData()->GetInkDensity(),
GetJobData()->GetDitherType());
const float leftMargin = GetJobData()->GetPrintableRect().left;
const float topMargin = GetJobData()->GetPrintableRect().top;
if (GetJobData()->GetOrientation() == JobData::kPortrait) {
GetJobData()->GetPaperRect().Height()-topMargin);
_WritePSString("72 %d div 72 -%d div scale\n", GetJobData()->GetXres(),
GetJobData()->GetYres());
bool color = GetJobData()->GetColor() == JobData::kColor;
GetJobData()->GetPaperRect().IntegerWidth(),
GetJobData()->GetPaperRect().IntegerHeight());
bool color = GetJobData()->GetColor() == JobData::kColor;
const JobData* jobData = fGraphicsDriver->GetJobData(printJob);