LibreOffice Module vcl (master) 1
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at .
18 */
23#include <jobdata.hxx>
24#include <unx/printergfx.hxx>
25#include <unx/printerjob.hxx>
26#include <salprn.hxx>
28class GenPspGraphics;
32 std::unique_ptr<GenPspGraphics> m_pGraphics;
37 virtual ~PspSalInfoPrinter() override;
39 // override all pure virtual methods
40 virtual SalGraphics* AcquireGraphics() override;
41 virtual void ReleaseGraphics( SalGraphics* pGraphics ) override;
42 virtual bool Setup( weld::Window* pFrame, ImplJobSetup* pSetupData ) override;
43 virtual bool SetPrinterData( ImplJobSetup* pSetupData ) override;
44 virtual bool SetData( JobSetFlags nFlags, ImplJobSetup* pSetupData ) override;
45 virtual void GetPageInfo( const ImplJobSetup* pSetupData,
46 tools::Long& rOutWidth, tools::Long& rOutHeight,
47 Point& rPageOffset,
48 Size& rPaperSize ) override;
49 virtual sal_uInt32 GetCapabilities( const ImplJobSetup* pSetupData, PrinterCapType nType ) override;
50 virtual sal_uInt16 GetPaperBinCount( const ImplJobSetup* pSetupData ) override;
51 virtual OUString GetPaperBinName( const ImplJobSetup* pSetupData, sal_uInt16 nPaperBin ) override;
52 virtual void InitPaperFormats( const ImplJobSetup* pSetupData ) override;
53 virtual int GetLandscapeAngle( const ImplJobSetup* pSetupData ) override;
59 OUString m_aFileName;
60 OUString m_aTmpFile;
62 std::unique_ptr<GenPspGraphics> m_xGraphics;
66 sal_uInt32 m_nCopies;
68 bool m_bPdf;
72 virtual ~PspSalPrinter() override;
74 // override all pure virtual methods
75 virtual bool StartJob( const OUString* pFileName,
76 const OUString& rJobName,
77 const OUString& rAppName,
78 sal_uInt32 nCopies,
79 bool bCollate,
80 bool bDirect,
81 ImplJobSetup* pSetupData ) override;
82 virtual bool StartJob( const OUString*,
83 const OUString&,
84 const OUString&,
86 vcl::PrinterController& i_rController ) override;
87 virtual bool EndJob() override;
88 virtual SalGraphics* StartPage( ImplJobSetup* pSetupData, bool bNewJobData ) override;
89 virtual void EndPage() override;
94/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void InitPaperFormats(const ImplJobSetup *pSetupData) override
std::unique_ptr< GenPspGraphics > m_pGraphics
Definition: genprn.h:32
virtual int GetLandscapeAngle(const ImplJobSetup *pSetupData) override
psp::JobData m_aJobData
Definition: genprn.h:33
virtual bool SetPrinterData(ImplJobSetup *pSetupData) override
virtual void ReleaseGraphics(SalGraphics *pGraphics) override
virtual sal_uInt32 GetCapabilities(const ImplJobSetup *pSetupData, PrinterCapType nType) override
virtual sal_uInt16 GetPaperBinCount(const ImplJobSetup *pSetupData) override
virtual ~PspSalInfoPrinter() override
virtual OUString GetPaperBinName(const ImplJobSetup *pSetupData, sal_uInt16 nPaperBin) override
virtual void GetPageInfo(const ImplJobSetup *pSetupData, tools::Long &rOutWidth, tools::Long &rOutHeight, Point &rPageOffset, Size &rPaperSize) override
virtual bool SetData(JobSetFlags nFlags, ImplJobSetup *pSetupData) override
virtual bool Setup(weld::Window *pFrame, ImplJobSetup *pSetupData) override
virtual SalGraphics * AcquireGraphics() override
psp::PrinterGfx m_aPrinterGfx
Definition: genprn.h:34
OUString m_aFileName
Definition: genprn.h:59
virtual bool StartJob(const OUString *, const OUString &, const OUString &, ImplJobSetup *, vcl::PrinterController &i_rController) override
virtual SalGraphics * StartPage(ImplJobSetup *pSetupData, bool bNewJobData) override
SalInfoPrinter * m_pInfoPrinter
Definition: genprn.h:61
psp::PrinterGfx m_aPrinterGfx
Definition: genprn.h:65
psp::JobData m_aJobData
Definition: genprn.h:64
virtual ~PspSalPrinter() override
virtual bool EndJob() override
PspSalPrinter(SalInfoPrinter *pPrinter)
bool m_bCollate
Definition: genprn.h:67
OUString m_aTmpFile
Definition: genprn.h:60
std::unique_ptr< GenPspGraphics > m_xGraphics
Definition: genprn.h:62
virtual bool StartJob(const OUString *pFileName, const OUString &rJobName, const OUString &rAppName, sal_uInt32 nCopies, bool bCollate, bool bDirect, ImplJobSetup *pSetupData) override
psp::PrinterJob m_aPrintJob
Definition: genprn.h:63
sal_uInt32 m_nCopies
Definition: genprn.h:66
bool m_bIsPDFWriterJob
Definition: genprn.h:69
bool m_bPdf
Definition: genprn.h:68
virtual void EndPage() override
Definition: dllapi.h:29
long Long
Definition: prntypes.hxx:72
Definition: salptype.hxx:27