Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*
3 : : * Version: MPL 1.1 / GPLv3+ / LGPLv3+
4 : : *
5 : : * The contents of this file are subject to the Mozilla Public License Version
6 : : * 1.1 (the "License"); you may not use this file except in compliance with
7 : : * the License or as specified alternatively below. You may obtain a copy of
8 : : * the License at http://www.mozilla.org/MPL/
9 : : *
10 : : * Software distributed under the License is distributed on an "AS IS" basis,
11 : : * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 : : * for the specific language governing rights and limitations under the
13 : : * License.
14 : : *
15 : : * Major Contributor(s):
16 : : * Copyright (C) 2011 Red Hat, Inc., Caolán McNamara <caolanm@redhat.com>
17 : : * (initial developer)
18 : : * Copyright (C) 2011 Red Hat, Inc., David Tardon <dtardon@redhat.com> ]
19 : : *
20 : : * All Rights Reserved.
21 : : *
22 : : * For minor contributions see the git repository.
23 : : *
24 : : * Alternatively, the contents of this file may be used under the terms of
25 : : * either the GNU General Public License Version 3 or later (the "GPLv3+"), or
26 : : * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
27 : : * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
28 : : * instead of those above.
29 : : */
30 : :
31 : :
32 : : #ifndef UNX_GTK_GTKPRN_HXX_INCLUDED
33 : : #define UNX_GTK_GTKPRN_HXX_INCLUDED
34 : :
35 : : #include "generic/genprn.h"
36 : :
37 : : #include <boost/scoped_ptr.hpp>
38 : :
39 : : struct GtkSalPrinter_Impl;
40 : :
41 : :
42 : 0 : class VCL_DLLPUBLIC GtkSalPrinter : public PspSalPrinter
43 : : {
44 : : public:
45 : : GtkSalPrinter(SalInfoPrinter* i_pInfoPrinter);
46 : :
47 : : using PspSalPrinter::StartJob;
48 : : virtual sal_Bool StartJob(
49 : : const rtl::OUString* i_pFileName, const rtl::OUString& i_rJobName,
50 : : const rtl::OUString& i_rAppName, ImplJobSetup* io_pSetupData,
51 : : vcl::PrinterController& io_rController);
52 : : virtual sal_Bool EndJob();
53 : :
54 : : private:
55 : : bool impl_doJob(
56 : : const rtl::OUString* i_pFileName, const rtl::OUString& i_rJobName,
57 : : const rtl::OUString& i_rAppName, ImplJobSetup* io_pSetupData,
58 : : int i_nCopies, bool i_bCollate, vcl::PrinterController& io_rController);
59 : :
60 : : private:
61 : : boost::scoped_ptr<GtkSalPrinter_Impl> m_pImpl;
62 : : };
63 : :
64 : :
65 : 0 : class VCL_DLLPUBLIC GtkSalInfoPrinter : public PspSalInfoPrinter
66 : : {
67 : : public:
68 : : sal_uLong GetCapabilities(const ImplJobSetup* i_pSetupData, sal_uInt16 i_nType);
69 : : };
70 : :
71 : :
72 : : #endif // UNX_GTK_GTKPRN_HXX_INCLUDED
73 : :
74 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|