LibreOffice Module vcl (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
AquaSalInfoPrinter Class Reference

#include <salprn.h>

Inheritance diagram for AquaSalInfoPrinter:
[legend]
Collaboration diagram for AquaSalInfoPrinter:
[legend]

Public Member Functions

 AquaSalInfoPrinter (const SalPrinterQueueInfo &pInfo)
 
virtual ~AquaSalInfoPrinter () override
 
void SetupPrinterGraphics (CGContextRef i_xContext) const
 
virtual SalGraphicsAcquireGraphics () override
 
virtual void ReleaseGraphics (SalGraphics *i_pGraphics) override
 
virtual bool Setup (weld::Window *i_pFrame, ImplJobSetup *i_pSetupData) override
 
virtual bool SetPrinterData (ImplJobSetup *pSetupData) override
 
virtual bool SetData (JobSetFlags i_nFlags, ImplJobSetup *i_pSetupData) override
 
virtual void GetPageInfo (const ImplJobSetup *i_pSetupData, long &o_rOutWidth, long &o_rOutHeight, Point &rPageOffset, Size &rPaperSize) override
 
virtual sal_uInt32 GetCapabilities (const ImplJobSetup *i_pSetupData, PrinterCapType i_nType) override
 
virtual sal_uInt16 GetPaperBinCount (const ImplJobSetup *i_pSetupData) override
 
virtual OUString GetPaperBinName (const ImplJobSetup *i_pSetupData, sal_uInt16 i_nPaperBin) override
 
virtual void InitPaperFormats (const ImplJobSetup *i_pSetupData) override
 
virtual int GetLandscapeAngle (const ImplJobSetup *i_pSetupData) override
 
bool StartJob (const OUString *i_pFileName, const OUString &rJobName, const OUString &i_rAppName, ImplJobSetup *i_pSetupData, vcl::PrinterController &i_rController)
 
bool EndJob ()
 
bool AbortJob ()
 
SalGraphicsStartPage (ImplJobSetup *i_pSetupData, bool i_bNewJobData)
 
bool EndPage ()
 
NSPrintInfo * getPrintInfo () const
 
void setStartPageOffset (int nOffsetX, int nOffsetY)
 
sal_Int32 getCurPageRangeStart () const
 
sal_Int32 getCurPageRangeCount () const
 
const PaperInfomatchPaper (long i_nWidth, long i_nHeight, Orientation &o_rOrientation) const
 
void setPaperSize (long i_nWidth, long i_nHeight, Orientation i_eSetOrientation)
 
- Public Member Functions inherited from SalInfoPrinter
 SalInfoPrinter ()
 
virtual ~SalInfoPrinter ()
 

Private Member Functions

 AquaSalInfoPrinter (const AquaSalInfoPrinter &)=delete
 
AquaSalInfoPrinteroperator= (const AquaSalInfoPrinter &)=delete
 

Private Attributes

AquaSalGraphicsmpGraphics
 Printer graphics. More...
 
bool mbGraphics
 is Graphics used More...
 
bool mbJob
 job active ? More...
 
NSPrinter * mpPrinter
 cocoa printer object More...
 
NSPrintInfo * mpPrintInfo
 cocoa print info object More...
 
CGContextRef mrContext
 FIXME: get real printer context for infoprinter if possible fake context for info printer graphics context for Quartz 2D. More...
 
std::unique_ptr< sal_uInt8[]> mpContextMemory
 memory for graphics bitmap context for querying metrics More...
 
Orientation mePageOrientation
 
int mnStartPageOffsetX
 
int mnStartPageOffsetY
 
sal_Int32 mnCurPageRangeStart
 
sal_Int32 mnCurPageRangeCount
 

Additional Inherited Members

- Public Attributes inherited from SalInfoPrinter
std::vector< PaperInfom_aPaperFormats
 
bool m_bPapersInit
 

Detailed Description

Definition at line 31 of file osx/salprn.h.

Constructor & Destructor Documentation

AquaSalInfoPrinter::AquaSalInfoPrinter ( const SalPrinterQueueInfo pInfo)
virtual AquaSalInfoPrinter::~AquaSalInfoPrinter ( )
overridevirtual
AquaSalInfoPrinter::AquaSalInfoPrinter ( const AquaSalInfoPrinter )
privatedelete

Member Function Documentation

bool AquaSalInfoPrinter::AbortJob ( )
virtual SalGraphics* AquaSalInfoPrinter::AcquireGraphics ( )
overridevirtual

Implements SalInfoPrinter.

bool AquaSalInfoPrinter::EndJob ( )
bool AquaSalInfoPrinter::EndPage ( )
virtual sal_uInt32 AquaSalInfoPrinter::GetCapabilities ( const ImplJobSetup i_pSetupData,
PrinterCapType  i_nType 
)
overridevirtual

Implements SalInfoPrinter.

sal_Int32 AquaSalInfoPrinter::getCurPageRangeCount ( ) const
inline

Definition at line 102 of file osx/salprn.h.

References mnCurPageRangeCount.

sal_Int32 AquaSalInfoPrinter::getCurPageRangeStart ( ) const
inline

Definition at line 101 of file osx/salprn.h.

References mnCurPageRangeStart.

virtual int AquaSalInfoPrinter::GetLandscapeAngle ( const ImplJobSetup i_pSetupData)
overridevirtual

Implements SalInfoPrinter.

virtual void AquaSalInfoPrinter::GetPageInfo ( const ImplJobSetup i_pSetupData,
long &  o_rOutWidth,
long &  o_rOutHeight,
Point rPageOffset,
Size rPaperSize 
)
overridevirtual

Implements SalInfoPrinter.

virtual sal_uInt16 AquaSalInfoPrinter::GetPaperBinCount ( const ImplJobSetup i_pSetupData)
overridevirtual

Implements SalInfoPrinter.

virtual OUString AquaSalInfoPrinter::GetPaperBinName ( const ImplJobSetup i_pSetupData,
sal_uInt16  i_nPaperBin 
)
overridevirtual

Implements SalInfoPrinter.

NSPrintInfo* AquaSalInfoPrinter::getPrintInfo ( ) const
inline

Definition at line 99 of file osx/salprn.h.

References mpPrintInfo.

virtual void AquaSalInfoPrinter::InitPaperFormats ( const ImplJobSetup i_pSetupData)
overridevirtual

Implements SalInfoPrinter.

const PaperInfo* AquaSalInfoPrinter::matchPaper ( long  i_nWidth,
long  i_nHeight,
Orientation o_rOrientation 
) const
AquaSalInfoPrinter& AquaSalInfoPrinter::operator= ( const AquaSalInfoPrinter )
privatedelete
virtual void AquaSalInfoPrinter::ReleaseGraphics ( SalGraphics i_pGraphics)
overridevirtual

Implements SalInfoPrinter.

virtual bool AquaSalInfoPrinter::SetData ( JobSetFlags  i_nFlags,
ImplJobSetup i_pSetupData 
)
overridevirtual

Implements SalInfoPrinter.

void AquaSalInfoPrinter::setPaperSize ( long  i_nWidth,
long  i_nHeight,
Orientation  i_eSetOrientation 
)
virtual bool AquaSalInfoPrinter::SetPrinterData ( ImplJobSetup pSetupData)
overridevirtual

Implements SalInfoPrinter.

void AquaSalInfoPrinter::setStartPageOffset ( int  nOffsetX,
int  nOffsetY 
)
inline

Definition at line 100 of file osx/salprn.h.

virtual bool AquaSalInfoPrinter::Setup ( weld::Window i_pFrame,
ImplJobSetup i_pSetupData 
)
overridevirtual

Implements SalInfoPrinter.

void AquaSalInfoPrinter::SetupPrinterGraphics ( CGContextRef  i_xContext) const
bool AquaSalInfoPrinter::StartJob ( const OUString *  i_pFileName,
const OUString &  rJobName,
const OUString &  i_rAppName,
ImplJobSetup i_pSetupData,
vcl::PrinterController i_rController 
)
SalGraphics* AquaSalInfoPrinter::StartPage ( ImplJobSetup i_pSetupData,
bool  i_bNewJobData 
)

Member Data Documentation

bool AquaSalInfoPrinter::mbGraphics
private

is Graphics used

Definition at line 36 of file osx/salprn.h.

bool AquaSalInfoPrinter::mbJob
private

job active ?

Definition at line 38 of file osx/salprn.h.

Orientation AquaSalInfoPrinter::mePageOrientation
private

Definition at line 56 of file osx/salprn.h.

sal_Int32 AquaSalInfoPrinter::mnCurPageRangeCount
private

Definition at line 61 of file osx/salprn.h.

Referenced by getCurPageRangeCount().

sal_Int32 AquaSalInfoPrinter::mnCurPageRangeStart
private

Definition at line 60 of file osx/salprn.h.

Referenced by getCurPageRangeStart().

int AquaSalInfoPrinter::mnStartPageOffsetX
private

Definition at line 58 of file osx/salprn.h.

int AquaSalInfoPrinter::mnStartPageOffsetY
private

Definition at line 59 of file osx/salprn.h.

std::unique_ptr<sal_uInt8[]> AquaSalInfoPrinter::mpContextMemory
private

memory for graphics bitmap context for querying metrics

Definition at line 50 of file osx/salprn.h.

AquaSalGraphics* AquaSalInfoPrinter::mpGraphics
private

Printer graphics.

Definition at line 34 of file osx/salprn.h.

NSPrinter* AquaSalInfoPrinter::mpPrinter
private

cocoa printer object

Definition at line 41 of file osx/salprn.h.

NSPrintInfo* AquaSalInfoPrinter::mpPrintInfo
private

cocoa print info object

Definition at line 43 of file osx/salprn.h.

Referenced by getPrintInfo().

CGContextRef AquaSalInfoPrinter::mrContext
private

FIXME: get real printer context for infoprinter if possible fake context for info printer graphics context for Quartz 2D.

Definition at line 48 of file osx/salprn.h.


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