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