1 /* 2 * PCL6Entry.cpp 3 * Copyright 1999-2000 Y.Takagi. All Rights Reserved. 4 * Copyright 2003 Michael Pfeiffer. 5 */ 6 7 8 #include "PCL6.h" 9 #include "PCL6Cap.h" 10 #include "PrinterDriver.h" 11 12 13 class PCL6PrinterDriver : public PrinterDriver 14 { 15 public: 16 PCL6PrinterDriver(BNode* printerFolder) 17 : 18 PrinterDriver(printerFolder) 19 {} 20 21 const char* GetSignature() const 22 { 23 return "application/x-vnd.PCL6-compatible"; 24 } 25 26 const char* GetDriverName() const 27 { 28 return "PCL6 compatible"; 29 } 30 31 const char* GetVersion() const 32 { 33 return "0.2"; 34 } 35 36 const char* GetCopyright() const 37 { 38 return "PCL6 driver Copyright © 2003,04 Michael Pfeiffer.\n"; 39 } 40 41 PrinterCap* InstantiatePrinterCap(PrinterData* printerData) 42 { 43 return new PCL6Cap(printerData); 44 } 45 46 GraphicsDriver* InstantiateGraphicsDriver(BMessage* settings, 47 PrinterData* printerData, PrinterCap* printerCap) 48 { 49 return new PCL6Driver(settings, printerData, printerCap); 50 } 51 }; 52 53 54 PrinterDriver* 55 instantiate_printer_driver(BNode* printerFolder) 56 { 57 return new PCL6PrinterDriver(printerFolder); 58 } 59