Line data Source code
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 "generic/genprn.h"
14 :
15 : #include <boost/scoped_ptr.hpp>
16 :
17 : struct GtkSalPrinter_Impl;
18 :
19 0 : class VCL_DLLPUBLIC GtkSalPrinter : public PspSalPrinter
20 : {
21 : public:
22 : GtkSalPrinter(SalInfoPrinter* i_pInfoPrinter);
23 :
24 : using PspSalPrinter::StartJob;
25 : virtual bool StartJob(
26 : const OUString* i_pFileName, const OUString& i_rJobName,
27 : const OUString& i_rAppName, ImplJobSetup* io_pSetupData,
28 : vcl::PrinterController& io_rController) SAL_OVERRIDE;
29 : virtual bool EndJob() SAL_OVERRIDE;
30 :
31 : private:
32 : bool impl_doJob(
33 : const OUString* i_pFileName, const OUString& i_rJobName,
34 : const OUString& i_rAppName, ImplJobSetup* io_pSetupData,
35 : int i_nCopies, bool i_bCollate, vcl::PrinterController& io_rController);
36 :
37 : private:
38 : boost::scoped_ptr<GtkSalPrinter_Impl> m_pImpl;
39 : };
40 :
41 0 : class VCL_DLLPUBLIC GtkSalInfoPrinter : public PspSalInfoPrinter
42 : {
43 : public:
44 : sal_uLong GetCapabilities(const ImplJobSetup* i_pSetupData, sal_uInt16 i_nType) SAL_OVERRIDE;
45 : };
46 :
47 : #endif // INCLUDED_VCL_INC_UNX_GTK_GTKPRN_HXX
48 :
49 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|