13bfe34e2SMichael Pfeiffer /* 23bfe34e2SMichael Pfeiffer * PCL6Entry.cpp 33bfe34e2SMichael Pfeiffer * Copyright 1999-2000 Y.Takagi. All Rights Reserved. 43bfe34e2SMichael Pfeiffer * Copyright 2003 Michael Pfeiffer. 53bfe34e2SMichael Pfeiffer */ 63bfe34e2SMichael Pfeiffer 7*568716beSWim van der Meer 83bfe34e2SMichael Pfeiffer #include "PCL6.h" 93bfe34e2SMichael Pfeiffer #include "PCL6Cap.h" 1053045bc6SMichael Pfeiffer #include "PrinterDriver.h" 113bfe34e2SMichael Pfeiffer 12*568716beSWim van der Meer 1353045bc6SMichael Pfeiffer class PCL6PrinterDriver : public PrinterDriver 143bfe34e2SMichael Pfeiffer { 1553045bc6SMichael Pfeiffer public: PCL6PrinterDriver(BNode * printerFolder)16*568716beSWim van der Meer PCL6PrinterDriver(BNode* printerFolder) 17*568716beSWim van der Meer : 18*568716beSWim van der Meer PrinterDriver(printerFolder) 19*568716beSWim van der Meer {} 2053045bc6SMichael Pfeiffer GetSignature() const2153045bc6SMichael Pfeiffer const char* GetSignature() const 2253045bc6SMichael Pfeiffer { 2353045bc6SMichael Pfeiffer return "application/x-vnd.PCL6-compatible"; 243bfe34e2SMichael Pfeiffer } 253bfe34e2SMichael Pfeiffer GetDriverName() const2653045bc6SMichael Pfeiffer const char* GetDriverName() const 273bfe34e2SMichael Pfeiffer { 2826556405SStephan Aßmus return "PCL6 compatible"; 293bfe34e2SMichael Pfeiffer } 303bfe34e2SMichael Pfeiffer GetVersion() const3153045bc6SMichael Pfeiffer const char* GetVersion() const 323bfe34e2SMichael Pfeiffer { 3353045bc6SMichael Pfeiffer return "0.2"; 343bfe34e2SMichael Pfeiffer } 353bfe34e2SMichael Pfeiffer GetCopyright() const3653045bc6SMichael Pfeiffer const char* GetCopyright() const 373bfe34e2SMichael Pfeiffer { 3853045bc6SMichael Pfeiffer return "PCL6 driver Copyright © 2003,04 Michael Pfeiffer.\n"; 393bfe34e2SMichael Pfeiffer } 403bfe34e2SMichael Pfeiffer InstantiatePrinterCap(PrinterData * printerData)4153045bc6SMichael Pfeiffer PrinterCap* InstantiatePrinterCap(PrinterData* printerData) 423bfe34e2SMichael Pfeiffer { 4353045bc6SMichael Pfeiffer return new PCL6Cap(printerData); 4453045bc6SMichael Pfeiffer } 4553045bc6SMichael Pfeiffer InstantiateGraphicsDriver(BMessage * settings,PrinterData * printerData,PrinterCap * printerCap)46*568716beSWim van der Meer GraphicsDriver* InstantiateGraphicsDriver(BMessage* settings, 47*568716beSWim van der Meer PrinterData* printerData, PrinterCap* printerCap) 4853045bc6SMichael Pfeiffer { 4953045bc6SMichael Pfeiffer return new PCL6Driver(settings, printerData, printerCap); 5053045bc6SMichael Pfeiffer } 5153045bc6SMichael Pfeiffer }; 5253045bc6SMichael Pfeiffer 53*568716beSWim van der Meer 54*568716beSWim van der Meer PrinterDriver* instantiate_printer_driver(BNode * printerFolder)55*568716beSWim van der Meerinstantiate_printer_driver(BNode* printerFolder) 5653045bc6SMichael Pfeiffer { 5753045bc6SMichael Pfeiffer return new PCL6PrinterDriver(printerFolder); 583bfe34e2SMichael Pfeiffer } 59