• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeprint
 

tdeprint

  • tdeprint
kprinterimpl.h
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (c) 2001 Michael Goffioul <tdeprint@swing.be>
4  *
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License version 2 as published by the Free Software Foundation.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public License
16  * along with this library; see the file COPYING.LIB. If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  **/
20 
21 #ifndef KPRINTERIMPL_H
22 #define KPRINTERIMPL_H
23 
24 #include <tqobject.h>
25 #include <tqstringlist.h>
26 #include <tqmap.h>
27 #include <tqptrlist.h>
28 
29 #include <tdelibs_export.h>
30 
31 class KPrinter;
32 class KMPrinter;
33 
34 class TDEPRINT_EXPORT KPrinterImpl : public TQObject
35 {
36  TQ_OBJECT
37 public:
38  KPrinterImpl(TQObject *parent = 0, const char *name = 0);
39  virtual ~KPrinterImpl();
40 
41  virtual bool setupCommand(TQString& cmd, KPrinter*);
42  virtual void preparePrinting(KPrinter*);
43  virtual void broadcastOption(const TQString& key, const TQString& value);
44 
45  bool printFiles(KPrinter*, const TQStringList&, bool removeflag = false);
46  // result:
47  // -1 -> error
48  // 0 -> nothing happened
49  // 1 -> files filterd
50  int filterFiles(KPrinter*, TQStringList&, bool removeflag = false);
51  int autoConvertFiles(KPrinter*, TQStringList&, bool removeflag = false);
52  void saveOptions(const TQMap<TQString,TQString>& opts);
53  const TQMap<TQString,TQString>& loadOptions() const { return m_options; }
54  TQString tempFile();
55  TQString quote(const TQString&);
56  void statusMessage(const TQString&, KPrinter* = 0);
57 
58 protected:
59  bool startPrinting(const TQString& cmd, KPrinter *printer, const TQStringList& files, bool removeflag = false);
60  int dcopPrint(const TQString& cmd, const TQStringList& files, bool removeflag = false);
61  bool setupSpecialCommand(TQString&, KPrinter*, const TQStringList&);
62  int doFilterFiles(KPrinter* pr, TQStringList& files, const TQStringList& flist, const TQMap<TQString,TQString>& opts, bool removeflag = false);
63  void loadAppOptions();
64  void saveAppOptions();
65 
66 protected:
67  TQMap<TQString,TQString> m_options; // use to save current options
68 };
69 
70 #endif
KPrinter
This class is the main interface to access the TDE print framework.
Definition: kprinter.h:89

tdeprint

Skip menu "tdeprint"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

tdeprint

Skip menu "tdeprint"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeprint by doxygen 1.9.1
This website is maintained by Timothy Pearson.