23 #if !defined( _TDEPRINT_COMPILE ) && defined( __GNUC__ )
24 #warning internal header, do not use except if you are a TDEPrint developer
45 LprHandler(
const TQString& name, KMManager *mgr = 0);
46 virtual ~LprHandler();
48 virtual bool validate(PrintcapEntry*);
49 virtual KMPrinter* createPrinter(PrintcapEntry*);
50 virtual bool completePrinter(KMPrinter*, PrintcapEntry*,
bool shortmode =
true);
51 virtual DrMain* loadDriver(KMPrinter*, PrintcapEntry*,
bool =
false);
52 virtual DrMain* loadDbDriver(
const TQString&);
53 virtual bool savePrinterDriver(KMPrinter*, PrintcapEntry*, DrMain*,
bool* = 0);
54 virtual PrintcapEntry* createEntry(KMPrinter*);
55 virtual bool removePrinter(KMPrinter*, PrintcapEntry*);
56 virtual TQString printOptions(
KPrinter*);
59 TQString name()
const;
60 KMManager* manager()
const;
61 TQString driverDirectory();
64 DrMain* loadToolDriver(
const TQString&);
65 TQString locateDir(
const TQString& dirname,
const TQString& paths);
66 TQString cachedDriverDir()
const;
67 void setCachedDriverDir(
const TQString&);
68 virtual TQString driverDirInternal();
73 TQString m_cacheddriverdir;
76 inline TQString LprHandler::name()
const
79 inline KMManager* LprHandler::manager()
const
82 inline TQString LprHandler::cachedDriverDir()
const
83 {
return m_cacheddriverdir; }
85 inline void LprHandler::setCachedDriverDir(
const TQString& s)
86 { m_cacheddriverdir = s; }
This class is the main interface to access the TDE print framework.