2005-01-12 00:41 Alexander Malmberg <alexander@malmberg.org>

* Printing/GSCUPS/GSCUPSPrinter.h (GSCUPSDummyPrinterName): New
	variable.
	* Printing/GSCUPS/GSCUPSPrinter.m (GSCUPSDummyPrinterName): New
	variable.
	(+printerWithName:): Warn and return a dummy printer when requested.
	* Printing/GSCUPS/GSCUPSPrintInfo.m (defaultPrinter): If there's
	no default CUPS printer set, return a dummy printer.

	Fixes bug #10916.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20542 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2005-01-11 23:39:41 +00:00
parent 442120d4bb
commit 05b4dcfa18
4 changed files with 55 additions and 7 deletions

View file

@ -1,4 +1,4 @@
/*
/*
GSCUPSPrinter.h
Class representing a printer's or printer model's capabilities.
@ -32,6 +32,9 @@
#include <AppKit/NSPrinter.h>
@class NSString;
extern NSString *GSCUPSDummyPrinterName;
@interface GSCUPSPrinter : NSPrinter <NSCoding>
{