1 #ifndef GPDEVICENSUPPORT_H
2 #define GPDEVICENSUPPORT_H
3 
4 #include <gutenprint/gutenprint.h>
5 #include "gp_cppsupport/gprintersettings.h"
6 #include "imagesource/devicencolorant.h"
7 #include "imagesource/imagesource_devicen_preview.h"
8 
9 // List header subclass - not strictly necessary,
10 // but avoids the need for untidy casts elsewhere.
11 class GPColorantList : public DeviceNColorantList
12 {
13 	public:
14 	GPColorantList(stp_vars_t *vars);
15 	GPColorantList(GPrinterSettings *gp);
16 	virtual ~GPColorantList();
17 	// Virtual so we can override with a version which provides greys for dropsize calibration
18 	virtual void BuildList(stp_vars_t *vars=NULL);
19 	protected:
20 	void BuildList_Raw(stp_vars_t *vars=NULL);
21 	stp_vars_t *cachedvars;
22 };
23 
24 
25 int GetPrinterColorantCount(stp_vars_t *vars);
26 
27 #endif
28 
29