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, const OUString &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 (const OUString &rName, const OUString &rExtension)
 
void InitPaperSize (const JobData &rJobSetup)
 
bool writeFeatureList (osl::File *pFile, const JobData &, bool bDocumentSetup)
 
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 32 of file printerjob.hxx.

Constructor & Destructor Documentation

psp::PrinterJob::PrinterJob ( )
psp::PrinterJob::~PrinterJob ( )

Member Function Documentation

std::unique_ptr<osl::File> psp::PrinterJob::CreateSpoolFile ( const OUString &  rName,
const OUString &  rExtension 
)
private
bool psp::PrinterJob::EndJob ( )
void psp::PrinterJob::EndPage ( )
osl::File* psp::PrinterJob::GetCurrentPageBody ( )
sal_uInt16 psp::PrinterJob::GetDepth ( ) const
sal_uInt16 psp::PrinterJob::GetPostscriptLevel ( const JobData pJobData = nullptr) const
const OUString& psp::PrinterJob::GetPrinterName ( ) const
inline

Definition at line 90 of file printerjob.hxx.

References psp::JobData::m_aPrinterName.

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

Definition at line 82 of file printerjob.hxx.

References mnResolution.

void psp::PrinterJob::GetScale ( double &  rXScale,
double &  rYScale 
) const
void psp::PrinterJob::InitPaperSize ( const JobData rJobSetup)
private
bool psp::PrinterJob::IsColorPrinter ( ) const
bool psp::PrinterJob::StartJob ( const OUString &  rFileName,
int  nMode,
const OUString &  rJobName,
const OUString &  rAppName,
const JobData rSetupData,
PrinterGfx pGraphics,
bool  bIsQuickJob 
)
void psp::PrinterJob::StartPage ( const JobData rJobSetup)
bool psp::PrinterJob::writeFeatureList ( osl::File *  pFile,
const JobData ,
bool  bDocumentSetup 
)
private
static void psp::PrinterJob::writeJobPatch ( osl::File *  File,
const JobData  
)
staticprivate
bool psp::PrinterJob::writePageSetup ( osl::File *  pFile,
const JobData ,
bool  bWriteFeatures 
)
private
static void psp::PrinterJob::writeProlog ( osl::File *  pFile,
const JobData  
)
staticprivate
bool psp::PrinterJob::writeSetup ( osl::File *  pFile,
const JobData  
)
private

Member Data Documentation

JobData psp::PrinterJob::m_aDocumentJobData
private

Definition at line 46 of file printerjob.hxx.

JobData psp::PrinterJob::m_aLastJobData
private

Definition at line 47 of file printerjob.hxx.

bool psp::PrinterJob::m_bQuickJob
private

Definition at line 68 of file printerjob.hxx.

PrinterGfx* psp::PrinterJob::m_pGraphics
private

Definition at line 48 of file printerjob.hxx.

OUString psp::PrinterJob::maFileName
private

Definition at line 36 of file printerjob.hxx.

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

Definition at line 44 of file printerjob.hxx.

OUString psp::PrinterJob::maJobTitle
private

Definition at line 37 of file printerjob.hxx.

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

Definition at line 43 of file printerjob.hxx.

OUString psp::PrinterJob::maSpoolDirName
private

Definition at line 35 of file printerjob.hxx.

double psp::PrinterJob::mfXScale
private

Definition at line 65 of file printerjob.hxx.

double psp::PrinterJob::mfYScale
private

Definition at line 66 of file printerjob.hxx.

sal_uInt32 psp::PrinterJob::mnBMarginPt
private

Definition at line 63 of file printerjob.hxx.

int psp::PrinterJob::mnFileMode
private

Definition at line 38 of file printerjob.hxx.

sal_uInt32 psp::PrinterJob::mnHeightPt
private

Definition at line 53 of file printerjob.hxx.

int psp::PrinterJob::mnLandscapes
private

Definition at line 57 of file printerjob.hxx.

sal_uInt32 psp::PrinterJob::mnLMarginPt
private

Definition at line 60 of file printerjob.hxx.

sal_uInt32 psp::PrinterJob::mnMaxHeightPt
private

Definition at line 55 of file printerjob.hxx.

sal_uInt32 psp::PrinterJob::mnMaxWidthPt
private

Definition at line 54 of file printerjob.hxx.

int psp::PrinterJob::mnPortraits
private

Definition at line 58 of file printerjob.hxx.

sal_uInt32 psp::PrinterJob::mnResolution
private

Definition at line 50 of file printerjob.hxx.

Referenced by GetResolution().

sal_uInt32 psp::PrinterJob::mnRMarginPt
private

Definition at line 61 of file printerjob.hxx.

sal_uInt32 psp::PrinterJob::mnTMarginPt
private

Definition at line 62 of file printerjob.hxx.

sal_uInt32 psp::PrinterJob::mnWidthPt
private

Definition at line 52 of file printerjob.hxx.

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

Definition at line 40 of file printerjob.hxx.

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

Definition at line 41 of file printerjob.hxx.


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