bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GNUstep Printing Backend Patch and such


From: Chad Hardin
Subject: GNUstep Printing Backend Patch and such
Date: Fri, 2 Jul 2004 11:05:02 -1000

I'm done with the first part of turning GNUstep printing parts into a "backend" type system.

Basically, what happens now is that every-time an allocWithZone: is done on a NSPageLayout, NSPrinter, NSPrintInfo, GSPrintOperation (not a type) , or NSPrintPanel, that class instead calls a new class, GSPrinting, which loads up a Bundle located in Bundles/GSPrinting, and uses that Bundle's principle class to get the real Class (GSLPRPrinter, for example), allocates that and return it instead.

My tests have shown that printing works the exact same as before, no better or worse, which was my goal. The only bundle that exists right now is GSLPR, which is basically all the code that used to exist in the NSPrint* and NSPageLayout classes. Next will come the GSCUPS bundle , which will be a real stress test and will probably result in a bit more tweaking of both the NSPrint* and GSLPR* classes.

Anyhow, here is the patch and the additional files I added for everything to work. It was suggested I share this with everyone before doing anything with cvs. :-) The Printing.tar.gz contains all the Printing backend budles, it contains the Printing directory and goes in the gui directory.

Chad

Attachment: gui-printing.patch.gz
Description: GNU Zip compressed data




Attachment: Printing.tar.gz
Description: GNU Zip compressed data



Attachment: GSEPSPrintOperation.h
Description: Text document

Attachment: GSPDFPrintOperation.h
Description: Text document

Attachment: GSPrinting.h
Description: Text document

Attachment: GSPrintOperation.h
Description: Text document

Attachment: GSEPSPrintOperation.m
Description: Binary data

Attachment: GSPDFPrintOperation.m
Description: Binary data

Attachment: GSPrinting.m
Description: Binary data

Attachment: GSPrintOperation.m
Description: Binary data



reply via email to

[Prev in Thread] Current Thread [Next in Thread]