23 #include <tqvaluestack.h>
25 #include <tqstringlist.h>
26 #include <tqvariant.h>
29 #include <tdelibs_export.h>
36 class TDEPRINT_EXPORT PPDLoader
42 DrMain* readFromFile(
const TQString& filename );
44 bool openUi(
const TQString& name,
const TQString& desc,
const TQString& type );
45 bool endUi(
const TQString& name );
46 bool openGroup(
const TQString& name,
const TQString& desc );
47 bool endGroup(
const TQString& name );
48 bool putStatement(
const TQString& keyword,
const TQString& name,
const TQString& desc,
const TQStringList& values );
49 bool putStatement2(
const TQString& keyword,
const TQString& value );
50 bool putDefault(
const TQString& keyword,
const TQString& value );
51 bool putConstraint(
const TQString& opt1,
const TQString& opt2,
const TQString& ch1,
const TQString& ch2 );
52 bool putFooData(
const TQString& data );
53 bool putFooProcessedData(
const TQVariant& var );
54 bool putPaperDimension(
const TQString& name,
const TQString& s );
55 bool putImageableArea(
const TQString& name,
const TQString& s );
57 void setErrorMsg(
const TQString& msg );
58 TQString errorMsg()
const;
60 static DrMain* loadDriver(
const TQString& filename, TQString* msg = NULL );
63 TQValueStack<DrGroup*> m_groups;
65 TQDict<PS_private> m_ps;
69 friend int tdeprint_ppdparse(
void*);
70 DrGroup* findOrCreateGroupForOption(
const TQString& );
71 void processPageSizes( DrMain* );