21 #ifndef KPRINTERIMPL_H
22 #define KPRINTERIMPL_H
25 #include <tqstringlist.h>
27 #include <tqptrlist.h>
29 #include <tdelibs_export.h>
34 class TDEPRINT_EXPORT KPrinterImpl :
public TQObject
38 KPrinterImpl(TQObject *parent = 0,
const char *name = 0);
39 virtual ~KPrinterImpl();
41 virtual bool setupCommand(TQString& cmd,
KPrinter*);
42 virtual void preparePrinting(
KPrinter*);
43 virtual void broadcastOption(
const TQString& key,
const TQString& value);
45 bool printFiles(
KPrinter*,
const TQStringList&,
bool removeflag =
false);
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; }
55 TQString quote(
const TQString&);
56 void statusMessage(
const TQString&,
KPrinter* = 0);
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();
67 TQMap<TQString,TQString> m_options;
This class is the main interface to access the TDE print framework.