LibreOffice Module vcl (master)  1
gtkprn.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 http://mozilla.org/MPL/2.0/.
8  */
9 
10 #ifndef INCLUDED_VCL_INC_UNX_GTK_GTKPRN_HXX
11 #define INCLUDED_VCL_INC_UNX_GTK_GTKPRN_HXX
12 
13 #include <unx/genprn.h>
14 
15 #include <memory>
16 
17 struct GtkSalPrinter_Impl;
18 
20 {
21 public:
22  GtkSalPrinter(SalInfoPrinter* i_pInfoPrinter);
23 
24  ~GtkSalPrinter() override;
25 
27  virtual bool StartJob(
28  const OUString* i_pFileName, const OUString& i_rJobName,
29  const OUString& i_rAppName, ImplJobSetup* io_pSetupData,
30  vcl::PrinterController& io_rController) override;
31  virtual bool EndJob() override;
32 
33 private:
34  bool impl_doJob(
35  const OUString* i_pFileName, const OUString& i_rJobName,
36  const OUString& i_rAppName, ImplJobSetup* io_pSetupData,
37  bool i_bCollate, vcl::PrinterController& io_rController);
38 
39 private:
40  std::unique_ptr<GtkSalPrinter_Impl> m_xImpl;
41 };
42 
44 {
45 public:
46  sal_uInt32 GetCapabilities(const ImplJobSetup* i_pSetupData, PrinterCapType i_nType) override;
47 };
48 
49 #endif // INCLUDED_VCL_INC_UNX_GTK_GTKPRN_HXX
50 
51 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual bool EndJob() override
PrinterCapType
Definition: prntypes.hxx:71
~GtkSalPrinter() override
virtual bool StartJob(const OUString *i_pFileName, const OUString &i_rJobName, const OUString &i_rAppName, ImplJobSetup *io_pSetupData, vcl::PrinterController &io_rController) override
std::unique_ptr< GtkSalPrinter_Impl > m_xImpl
Definition: gtkprn.hxx:40
virtual bool StartJob(const OUString *pFileName, const OUString &rJobName, const OUString &rAppName, sal_uInt32 nCopies, bool bCollate, bool bDirect, ImplJobSetup *pSetupData) override
GtkSalPrinter(SalInfoPrinter *i_pInfoPrinter)
bool impl_doJob(const OUString *i_pFileName, const OUString &i_rJobName, const OUString &i_rAppName, ImplJobSetup *io_pSetupData, bool i_bCollate, vcl::PrinterController &io_rController)
sal_uInt32 GetCapabilities(const ImplJobSetup *i_pSetupData, PrinterCapType i_nType) override