class AquaSalInfoPrinter : public SalInfoPrinter
{ /// Printer graphics
AquaSalGraphics* mpGraphics; /// is Graphics used bool mbGraphicsAcquired; /// job active ? bool mbJob;
/// FIXME: get real printer context for infoprinter if possible /// fake context for info printer /// graphics context for Quartz 2D
CGContextRef mrContext; /// memory for graphics bitmap context for querying metrics
std::unique_ptr<sal_uInt8[]> mpContextMemory;
// since changes to NSPrintInfo during a job are ignored // we have to care for some settings ourselves // currently we do this for orientation; // really needed however is a solution for paper formats
Orientation mePageOrientation;
int mnStartPageOffsetX; int mnStartPageOffsetY;
sal_Int32 mnCurPageRangeStart;
sal_Int32 mnCurPageRangeCount;
// the artificial separation between InfoPrinter and Printer // is not really useful for us // so let's make AquaSalPrinter just a forwarder to AquaSalInfoPrinter // and concentrate the real work in one class // implement pull model print system bool StartJob( const OUString* i_pFileName, const OUString& rJobName,
ImplJobSetup* i_pSetupData,
vcl::PrinterController& i_rController ); bool EndJob(); bool AbortJob();
SalGraphics* StartPage( ImplJobSetup* i_pSetupData, bool i_bNewJobData ); bool EndPage();
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.