LibreOffice Module vcl (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
psp::PrinterJob Class Reference

#include <printerjob.hxx>

Collaboration diagram for psp::PrinterJob:
[legend]

Public Member Functions

sal_uInt32 GetResolution () const
 
void GetScale (double &rXScale, double &rYScale) const
 
sal_uInt16 GetDepth () const
 
sal_uInt16 GetPostscriptLevel (const JobData *pJobData=nullptr) const
 
bool IsColorPrinter () const
 
osl::File * GetCurrentPageBody ()
 
const OUString & GetPrinterName () const
 
 PrinterJob ()
 
 ~PrinterJob ()
 
bool StartJob (const OUString &rFileName, int nMode, const OUString &rJobName, std::u16string_view rAppName, const JobData &rSetupData, PrinterGfx *pGraphics, bool bIsQuickJob)
 
bool EndJob ()
 
void StartPage (const JobData &rJobSetup)
 
void EndPage ()
 

Private Member Functions

std::unique_ptr< osl::File > CreateSpoolFile (std::u16string_view rName, std::u16string_view rExtension) const
 
void InitPaperSize (const JobData &rJobSetup)
 
bool writeFeatureList (osl::File *pFile, const JobData &, bool bDocumentSetup) const
 
bool writeSetup (osl::File *pFile, const JobData &)
 
bool writePageSetup (osl::File *pFile, const JobData &, bool bWriteFeatures)
 

Static Private Member Functions

static void writeJobPatch (osl::File *File, const JobData &)
 
static void writeProlog (osl::File *pFile, const JobData &)
 

Private Attributes

OUString maSpoolDirName
 
OUString maFileName
 
OUString maJobTitle
 
int mnFileMode
 
std::unique_ptr< osl::File > mpJobHeader
 
std::unique_ptr< osl::File > mpJobTrailer
 
std::vector< std::unique_ptr< osl::File > > maPageVector
 
std::vector< std::unique_ptr< osl::File > > maHeaderVector
 
JobData m_aDocumentJobData
 
JobData m_aLastJobData
 
PrinterGfxm_pGraphics
 
sal_uInt32 mnResolution
 
sal_uInt32 mnWidthPt
 
sal_uInt32 mnHeightPt
 
sal_uInt32 mnMaxWidthPt
 
sal_uInt32 mnMaxHeightPt
 
int mnLandscapes
 
int mnPortraits
 
sal_uInt32 mnLMarginPt
 
sal_uInt32 mnRMarginPt
 
sal_uInt32 mnTMarginPt
 
sal_uInt32 mnBMarginPt
 
double mfXScale
 
double mfYScale
 
bool m_bQuickJob
 

Detailed Description

Definition at line 33 of file printerjob.hxx.

Constructor & Destructor Documentation

◆ PrinterJob()

psp::PrinterJob::PrinterJob ( )

◆ ~PrinterJob()

psp::PrinterJob::~PrinterJob ( )

Member Function Documentation

◆ CreateSpoolFile()

std::unique_ptr< osl::File > psp::PrinterJob::CreateSpoolFile ( std::u16string_view  rName,
std::u16string_view  rExtension 
) const
private

◆ EndJob()

bool psp::PrinterJob::EndJob ( )

◆ EndPage()

void psp::PrinterJob::EndPage ( )

◆ GetCurrentPageBody()

osl::File * psp::PrinterJob::GetCurrentPageBody ( )

◆ GetDepth()

sal_uInt16 psp::PrinterJob::GetDepth ( ) const

◆ GetPostscriptLevel()

sal_uInt16 psp::PrinterJob::GetPostscriptLevel ( const JobData pJobData = nullptr) const

◆ GetPrinterName()

const OUString & psp::PrinterJob::GetPrinterName ( ) const
inline

Definition at line 91 of file printerjob.hxx.

References m_aLastJobData, and psp::JobData::m_aPrinterName.

◆ GetResolution()

sal_uInt32 psp::PrinterJob::GetResolution ( ) const
inline

Definition at line 83 of file printerjob.hxx.

References mnResolution.

◆ GetScale()

void psp::PrinterJob::GetScale ( double &  rXScale,
double &  rYScale 
) const

◆ InitPaperSize()

void psp::PrinterJob::InitPaperSize ( const JobData rJobSetup)
private

◆ IsColorPrinter()

bool psp::PrinterJob::IsColorPrinter ( ) const

◆ StartJob()

bool psp::PrinterJob::StartJob ( const OUString &  rFileName,
int  nMode,
const OUString &  rJobName,
std::u16string_view  rAppName,
const JobData rSetupData,
PrinterGfx pGraphics,
bool  bIsQuickJob 
)

◆ StartPage()

void psp::PrinterJob::StartPage ( const JobData rJobSetup)

◆ writeFeatureList()

bool psp::PrinterJob::writeFeatureList ( osl::File *  pFile,
const JobData ,
bool  bDocumentSetup 
) const
private

◆ writeJobPatch()

static void psp::PrinterJob::writeJobPatch ( osl::File *  File,
const JobData  
)
staticprivate

◆ writePageSetup()

bool psp::PrinterJob::writePageSetup ( osl::File *  pFile,
const JobData ,
bool  bWriteFeatures 
)
private

◆ writeProlog()

static void psp::PrinterJob::writeProlog ( osl::File *  pFile,
const JobData  
)
staticprivate

◆ writeSetup()

bool psp::PrinterJob::writeSetup ( osl::File *  pFile,
const JobData  
)
private

Member Data Documentation

◆ m_aDocumentJobData

JobData psp::PrinterJob::m_aDocumentJobData
private

Definition at line 47 of file printerjob.hxx.

◆ m_aLastJobData

JobData psp::PrinterJob::m_aLastJobData
private

Definition at line 48 of file printerjob.hxx.

Referenced by GetPrinterName().

◆ m_bQuickJob

bool psp::PrinterJob::m_bQuickJob
private

Definition at line 69 of file printerjob.hxx.

◆ m_pGraphics

PrinterGfx* psp::PrinterJob::m_pGraphics
private

Definition at line 49 of file printerjob.hxx.

◆ maFileName

OUString psp::PrinterJob::maFileName
private

Definition at line 37 of file printerjob.hxx.

◆ maHeaderVector

std::vector< std::unique_ptr<osl::File> > psp::PrinterJob::maHeaderVector
private

Definition at line 45 of file printerjob.hxx.

◆ maJobTitle

OUString psp::PrinterJob::maJobTitle
private

Definition at line 38 of file printerjob.hxx.

◆ maPageVector

std::vector< std::unique_ptr<osl::File> > psp::PrinterJob::maPageVector
private

Definition at line 44 of file printerjob.hxx.

◆ maSpoolDirName

OUString psp::PrinterJob::maSpoolDirName
private

Definition at line 36 of file printerjob.hxx.

◆ mfXScale

double psp::PrinterJob::mfXScale
private

Definition at line 66 of file printerjob.hxx.

◆ mfYScale

double psp::PrinterJob::mfYScale
private

Definition at line 67 of file printerjob.hxx.

◆ mnBMarginPt

sal_uInt32 psp::PrinterJob::mnBMarginPt
private

Definition at line 64 of file printerjob.hxx.

◆ mnFileMode

int psp::PrinterJob::mnFileMode
private

Definition at line 39 of file printerjob.hxx.

◆ mnHeightPt

sal_uInt32 psp::PrinterJob::mnHeightPt
private

Definition at line 54 of file printerjob.hxx.

◆ mnLandscapes

int psp::PrinterJob::mnLandscapes
private

Definition at line 58 of file printerjob.hxx.

◆ mnLMarginPt

sal_uInt32 psp::PrinterJob::mnLMarginPt
private

Definition at line 61 of file printerjob.hxx.

◆ mnMaxHeightPt

sal_uInt32 psp::PrinterJob::mnMaxHeightPt
private

Definition at line 56 of file printerjob.hxx.

◆ mnMaxWidthPt

sal_uInt32 psp::PrinterJob::mnMaxWidthPt
private

Definition at line 55 of file printerjob.hxx.

◆ mnPortraits

int psp::PrinterJob::mnPortraits
private

Definition at line 59 of file printerjob.hxx.

◆ mnResolution

sal_uInt32 psp::PrinterJob::mnResolution
private

Definition at line 51 of file printerjob.hxx.

Referenced by GetResolution().

◆ mnRMarginPt

sal_uInt32 psp::PrinterJob::mnRMarginPt
private

Definition at line 62 of file printerjob.hxx.

◆ mnTMarginPt

sal_uInt32 psp::PrinterJob::mnTMarginPt
private

Definition at line 63 of file printerjob.hxx.

◆ mnWidthPt

sal_uInt32 psp::PrinterJob::mnWidthPt
private

Definition at line 53 of file printerjob.hxx.

◆ mpJobHeader

std::unique_ptr<osl::File> psp::PrinterJob::mpJobHeader
private

Definition at line 41 of file printerjob.hxx.

◆ mpJobTrailer

std::unique_ptr<osl::File> psp::PrinterJob::mpJobTrailer
private

Definition at line 42 of file printerjob.hxx.


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