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