InvalidPrinterException with differentiated messages.
* PrintingServices.cs: Declares IsPrinterValid to enable easy checking
if printer name is a valid printer
* PrintingServicesWin32.cs: Implements IsPrinterValid, caches
last assigned printer name and if it is valid to speed up next calls.
* PrintingServicesUnix.cs: Implements IsPrinterValid, caches
last assigned printer name and if it is valid to speed up next calls.
* PageSettings.cs:
- throw InvalidPrinterException in the properties,
according to the docs: Color, Landscape, PaperSize, PaperSource,
PrinterResolution
- change the private fields above to internal, so that in the
constructor we can access them without triggering the exceptions
if there are no printers installed
* PrinterSettings.cs: Implement IsValid to call IsPrinterValid
implemented above
* PreviewPrintController.cs: throw InvalidPrinterException on
StartPrint() if there's no valid printer configured
* InvalidPrinterException.cs: New private GetMessage() to customize
printer error message, used by constructor
2006-11-14 Andreia Gaita <[email protected]>
svn path=/trunk/mcs/; revision=67880
simplifies GetPaperSizeName and loads paper source and size defaults
2006-09-27 Jordi Mas i Hernandez <[email protected]>
svn path=/trunk/mcs/; revision=65976
* PrintingServices.cs: Add LoadPrinterPaperSources member
* PrintingServicesWin32.cs: Implements LoadPrinterPaperSources and
reads the default paper source and size.
* PrintingServicesUnix.cs: Add stub LoadPrinterPaperSources member
* PrinterSettings.cs: Implements PaperSourceCollection property and
makes default paper source and size from the system.
svn path=/trunk/mcs/; revision=65968
* PreviewPrintController.cs: scale the Graphics context we pass
back from OnStartPage such that the preview looks the way the
printed output will.
svn path=/trunk/mcs/; revision=63258
* PrintDocument.cs: When null is passed to PrinterSettings,
it should be set to a new PrinterSettings instance, and should never
be null.
* PrinterSettings.cs: Default value for Copies should be 1. Also
add a space in the ToString method, to correctly show the printer
info.
svn path=/trunk/mcs/; revision=63110
* PrinterSettings.cs: expose PrintFileName in the 1.1 case as an
internal property, so we can get at it from MWF.
* PrintingServicesUnix.cs: handle print to file, and also remove
the temp file after sending the data to the printer. fix some
dllimports to match the rest of system.drawing.
* PreviewPrintController.cs: implement this (warning, it'll eat
all your memory until we get a real Metafile implementation, as
we're storing bitmaps).
* PrintDocument.cs: shift the graphics context stuff around a bit
in Print(), so that the events after OnStartPrint are passed the
graphics context the controller created there, and we use the
return value of OnStartPage to do all drawing.
svn path=/trunk/mcs/; revision=63020
* PrintingServicesUnix.cs: cupsGetPrinters(char***) requires to free
each individual string and (finally) the list. Note that this call is
deprecated.
svn path=/trunk/mcs/; revision=58270
* ColorPalette.cs, EncoderParameters.cs, EncoderParameter.cs,
ImageAttributes.cs: 64bit cleanup and some simplifications
2006-02-09 Peter Dennis Bartok <[email protected]>
* PrintingServicesWin32.cs: Simplyfied the code, removing the need
for pointer calculations (part of 64bit cleanup)
2006-02-09 Peter Dennis Bartok <[email protected]>
* Image.cs, Bitmap.cs: Removed unneeded casts
* Icon.cs: Fixed code to be 64bit safe
svn path=/trunk/mcs/; revision=56738
* PrintingServicesWin32.cs: Ensure Marshal.FreeHGlobal is called for
all unmanaged memory allocated with AllocHGlobal.
svn path=/trunk/mcs/; revision=56181
* InvalidPrinterException.cs: Removed NotImplementedException (not
required) and added a demand for SerializationFormatter on the
GetObjectData method.
* PrintingPermission.cs: Throw ArgumentException if the class or
version attributes are missing in the supplied XML (only in 1.x).
svn path=/trunk/mcs/; revision=50149
* PrintingPermission.cs: Applied the new permission template.
Implemented missing To|FromXml. Fixed set operations, ...
* PrintingPermissionAttribute.cs: Added enum validation for Level and
creation of unrestricted permissions.
* PrintingPermissionLevel.cs: Added [Serializable] for NET_2_0.
svn path=/trunk/mcs/; revision=33640