[Mono-devel-list] Implementation of namespace System.Drawing.Printing

Hervé Poussineau poussine at freesurf.fr
Wed Sep 17 04:57:41 EDT 2003


Hello,

I have implemented some classes in the System.Drawing.Printing namespace.
Printing doesn't completly work now, but each page is saved in a jpg file
(see StandardPrintController.cs)

I didn't try to compile with mcs and execute with mono, because of a
System.TypeInitializationException in DateTime.ctor(bool, long) on my
Windows system...

Also, you have to delete some files in
mcs\class\System.Drawing\System.Drawing.Printing:
- PaperSourceCollection.cs: subclass of PrinterSettings
- PaperUnitConvert.cs: not found in .NET documentation

Excuse me, but I didn't success to produce .patch files, because of
different end lines between Windows and Linux. So, I have to send you all my
stuff. Sorry...

Details:
--------
Implemented/modified files:
- Margins.cs
- MarginsConverter.cs
- PageSettings.cs
- PaperSize.cs
- PaperSource.cs
- PreviewPageInfo.cs
- PrintController.cs
- PrintDocument.cs
- PrinterSettings.cs
- PrinterUnitConvert.cs
- PrintEventArgs.cs
- PrintEventHandler.cs
- PrintingPermission.cs
- PrintingPermissionAttribute.cs
- PrintPageEventArgs.cs
- QueryPageSettingsEventHandler.cs
- StandardPrintController.cs

Things left to do:
- PrintingPermission.FromXml/ToXml:
  Deal with System.Security.SecurityElement and I didn't want to know how it
works
- StandardPrintController:
  Actually, "print" == "save each page in a different file"
- PrinterSettings:
  Get capabilities and default values: intern call?
  GetHdev*/SetHdev* : deal with Win32 API
- PageSettings:
  SetHdevmode/CopyToHdevmode : deal with Win32 API

Hervé
-------------- next part --------------
A non-text attachment was scrubbed...
Name: System.Drawing.Printing.zip
Type: application/octet-stream
Size: 12480 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030917/a37147ff/attachment.obj 


More information about the Mono-devel-list mailing list