3 * Copyright 1999-2000 Y.Takagi. All Rights Reserved.
10 #include "GPCapabilities.h"
11 #include "GraphicsDriver.h"
12 #include "OutputStream.h"
17 class GPDriver
: public GraphicsDriver
, public OutputStream
20 GPDriver(BMessage
* msg
, PrinterData
* printer_data
,
21 const PrinterCap
* printer_cap
);
23 void Write(const void *buffer
, size_t size
)
24 throw(TransportException
);
28 void SetParameter(BString
& parameter
, PrinterCap::CapID category
,
30 void SetDriverSpecificSettings();
31 void AddDriverSpecificSetting(PrinterCap::CapID category
,
33 void AddDriverSpecificBooleanSetting(PrinterCap::CapID category
,
35 void AddDriverSpecificIntSetting(PrinterCap::CapID category
,
37 void AddDriverSpecificDimensionSetting(PrinterCap::CapID category
,
39 void AddDriverSpecificDoubleSetting(PrinterCap::CapID category
,
41 bool StartPage(int page
);
42 bool NextBand(BBitmap
* bitmap
, BPoint
* offset
);
43 bool EndPage(int page
);
44 bool EndDocument(bool success
);
45 void ShowError(const char* message
);
49 GPJobConfiguration fConfiguration
;