This modifies the Postscript printer to be able to insert a pipe in between the Postscript generation

and the transport addon. The actual command use as pipe is retrieved from the PPD that can be selected
at printer creation time.

Currently PPD selection is not shown (as the PPD directory is not available) and therefore the pipe
will not be inserted.

This still needs a bit of TLC, so hope to commit the last changes to fully support this later this week.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36173 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ithamar R. Adema
2010-04-11 22:01:13 +00:00
parent 954af58694
commit f7b0c08cae
16 changed files with 807 additions and 81 deletions
+4 -5
View File
@@ -20,9 +20,9 @@ class BNode;
class PrinterData {
public:
PrinterData(BNode *node = NULL);
~PrinterData();
void load();
void save();
virtual ~PrinterData();
virtual void load();
virtual void save();
const string &getDriverName() const;
const string &getPrinterName() const;
@@ -40,14 +40,13 @@ protected:
PrinterData(const PrinterData &printer_data);
PrinterData &operator = (const PrinterData &printer_data);
BNode *fNode;
private:
string fDriverName;
string fPrinterName;
string fComments;
string fTransport;
int fProtocolClass;
BNode *fNode;
};
inline const string &PrinterData::getDriverName() const
@@ -26,6 +26,7 @@ public:
virtual const char* GetCopyright() const = 0;
virtual PrinterCap* InstantiatePrinterCap(PrinterData* printerData) = 0;
virtual PrinterData* InstantiatePrinterData(BNode* node);
virtual GraphicsDriver* InstantiateGraphicsDriver(BMessage* settings, PrinterData* printerData, PrinterCap* printerCap) = 0;
void InitPrinterDataAndCap();