20 #ifndef FOOMATIC2LOADER_H
21 #define FOOMATIC2LOADER_H
24 #include <tqvariant.h>
26 #include <tdelibs_export.h>
31 class TDEPRINT_EXPORT Foomatic2Loader
37 bool read( TQIODevice *d );
38 bool readFromBuffer(
const TQString& buffer );
39 bool readFromFile(
const TQString& filename );
40 TQStringVariantMap data()
const;
41 DrMain* buildDriver()
const;
42 DrMain* modifyDriver( DrMain* )
const;
44 static DrMain* loadDriver(
const TQString& filename );
47 TQStringVariantMap m_foodata;
49 friend int tdeprint_foomatic2parse(
void* );
50 DrBase* createValue(
const TQString&,
const TQStringVariantMap& )
const;
51 DrBase* createOption(
const TQStringVariantMap& )
const;
54 inline TQStringVariantMap Foomatic2Loader::data()
const