16 Commits
Author SHA1 Message Date
Frederik Carlier 831381caa9 Use CoreFX sources for System.Printing (#5041) 2017-06-16 00:57:02 +02:00
Marek Safar 47a6f56439 [bcl] Clean up some warnings 2016-11-29 19:16:02 +01:00
Zoltan Varga 0985d4aa4b [bcl] Remove NET_2_0 defines from the class libs. This has been done using: unifdef -t -DNET_2_0 -o <filename> <filename>. 2015-01-13 15:29:38 -05:00
Marek Safar b2d5552461 Warnings cleanup
svn path=/trunk/mcs/; revision=111848
2008-08-28 17:45:48 +00:00
Andreia Gaita 7dda136e2b 2007-02-16 Andreia Gaita <[email protected]>
Redesign how and when cups gets called to minimize
p/invokes, implements caching of printers and printer
settings as per calberto's patch - #79822, plotter detection, 
duplex, fixes for image disposing, code modularization, 
misc. fixes.

svn path=/trunk/mcs/; revision=73048
2007-02-16 23:10:35 +00:00
Andreia Gaita a5f86022b8 2006-11-28 Andreia Gaita <[email protected]>
* Form.cs: Removed call to UpdateBounds on Form
constructor, it was causing a call to CreateHandle
before it was supposed to.
* PrintControllerWithStatusDialog: Applied patch
by Chris Toshok to hide controller when there are
no printers available.
PrintDialog.cs: initialize printer settings to 
null - correct DefaultValues test #5
* PrintPreviewControl.cs: Move PrintController
initialization to GeneratePreview
* PrintPreviewDialog.cs: 
- Remove Preview generation	from Document_set(). It is 
called on OnPaint
- Throw InvalidPrinterException on CreateHandle if
a Document is set but there are no printers or 
printer is not valid.
* ThemeWin32Classic: don't paint PrintPreviewControl
if there is nothing to paint

* PageSettings.cs: 
- internal member name changes to help
out with intelisense. 
- Use internal members directly instead of using
corresponding properties so that exceptions are not thrown
* PrintingServicesWin32:
- Only return DefaultPrinter if it is actually valid. This
is because Win32GetDefaultPrinter returns a printer name
even if PrintSpooler is stopped (which should  behave the
same way as if there are no printers installed)
- Do not try to allocate if EnumPrinters returns 0

svn path=/trunk/mcs/; revision=68635
2006-11-29 03:13:04 +00:00
Carlos Alberto Cortez 85696e7b1e 2006-11-16 Carlos Alberto Cortez <[email protected]>
* PrintDocument.cs: Use QueryPageSettingsEventArgs.PageSettings
	in PrintPageEventArgs, instead of using the default one (mimic
	.Net behaviour).

	* PageSettings.cs: Implement Clone the right way (intead of using
	the default page settings).


svn path=/trunk/mcs/; revision=68030
2006-11-16 19:07:00 +00:00
Andreia Gaita 360de1202f Fixes #79835, implements PrinterSettings.IsValid, throws proper
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
2006-11-14 23:03:43 +00:00
Jordi Mas i Hernandez 08351b8c0d 2005-12-22 Jordi Mas i Hernandez <[email protected]>
* PrintingServices.cs: Printing services abstration class
	* PrintingServicesWin32.cs: Win32 printer driver
	* PrintingServicesUnix.cs: Unix printer driver
	* Margins.cs: Fixes exceptions error messages
	* PrinterResolution.cs: Fixes
	* PrintEventArgs.cs: New internal method
	* PrintPageEventArgs.cs: New internal method
	* StandardPrintController.cs: Fixes
	* PrinterUnitConvert.cs: Fixes conversion errors
	* PrintDocument.cs: Fixes to make it print
	* PageSettings.cs: Take margains into account
	* PrintController.cs: Fixes
	* PaperSize.cs: Method to set paper Kind
	* PrinterSettings.cs: Implements settings and fixes
	* 	


svn path=/trunk/mcs/; revision=54735
2005-12-22 17:06:00 +00:00
Jordi Mas i Hernandez e07caa2bbe In System.Drawing.Printing:
2005-12-07 Jordi Mas i Hernandez <[email protected]>
	
	* PrinterResolutionKind.cs: Fixes signature for .Net 2.0
	* PaperKind.cs: Fixes signature for .Net 2.0
	* PaperSource.cs: Fixes signature for .Net 2.0
	* Margins.cs: Fixes signature for .Net 2.0
	* PrinterResolution.cs: Fixes signature for .Net 2.0
	* PrintEventArgs.cs: Fixes signature for .Net 2.0
	* PrintAction.cs: New enum in .Net 2.0
	* PageSettings.cs:  Fixes signature for .Net 2.0
	* PaperSourceKind.cs:  Fixes signature for .Net 2.0
	* PrintController.cs: Fixes signature for .Net 2.0
	* Duplex.cs: Fixes signature for .Net 2.0
	* PaperSize.cs: Fixes signature for .Net 2.0
	* PreviewPrintController.cs: Fixes signature for .Net 2.0
	* PrinterSettings.cs: Fixes signature for .Net 2.0
	* PrintRange.cs: Fixes signature for .Net 2.0
	  
In System.Drawing:
2005-12-07 Jordi Mas i Hernandez <[email protected]>

	* BufferedGraphicsManager.cs: Fixes signature


svn path=/trunk/mcs/; revision=54028
2005-12-07 12:19:45 +00:00
Sachin Kumar 15a49e8b92 Add license and copyright to all source files in System.Drawing
svn path=/trunk/mcs/; revision=29667
2004-06-16 06:32:39 +00:00
Andreas N ccad7900c6 2004-02-07 Andreas Nahr <[email protected]>
* Margins.cs: Restyled, implemented missing members
	* PageSettings.cs: Added missing attributes, stubbed,
	  fixed a few small issues
	* PreviewPrintController.cs: Stubbed, small issues fixed
	* PrintController.cs: Marked unfinished, restyled
	* PrintDocument.cs: Added attributes
	* PrinterResolution.cs: Added missing method
	* PrinterSettings.cs: Mono-stylyzed, fixed signatures,
	  removed commented out values
	* PrinterUnitConvert.cs: Added private constructor
	* StandardPrintController.cs: Little restyling
	* PaperKind.cs: Added missing enum values

svn path=/trunk/mcs/; revision=22874
2004-02-08 07:59:06 +00:00
Alexandre Pigolkine bad618a4c0 checkin for Herv Poussineau <[email protected]>.
svn path=/trunk/mcs/; revision=18235
2003-09-21 02:13:45 +00:00
Alexandre Pigolkine 659f69739d switch to Unix line terminators
svn path=/trunk/mcs/; revision=18233
2003-09-21 01:55:41 +00:00
Dennis Hayes 276270710a 2002-9-13 DennisHayes <[email protected]>
* PageSettings.cs 
* PaperSize.cs 
* PaperSource.cs 
* PrintControler.cs 
* PrintDocument.cs 
* PrintingPermission.cs 
* PrintPageEventHandler.cs 
* QueryPageSettingEventArgs.cs 
* QueryPageSettingsEventHandler.cs 
* added todos back
* minor bug fixes

svn path=/trunk/mcs/; revision=7436
2002-09-13 17:43:58 +00:00
Dennis Hayes cda70e3aea 2002-9-2 DennisHayes <[email protected]>
* Duplex.cs
	* InvalidPrinterExecption.cs
	* Margins.cs
	* MarginsConverter.cs
	* PageSettings.cs
	* PaperKind.cs
	* PaperSize.cs
	* PaperSource.cs
	* PaperSourceCollection.cs
	* PaperSourceKind.cs
	* PaperUnitConvert.cs
	* PreviewPageInfo.cs
	* PreviewPrintControler.cs
	* PrintControler.cs
	* PrintDocument.cs
	* PrinterResolution.cs
	* PrinterResolutionKind.cs
	* PrinterSettings.cs
	* PrinterUnit.cs
	* PrintEventArgs.cs
	* PrintEventHandler.cs
	* PrintingPermission.cs
	* PrintingPermissionAttribute.cs
	* PrintingPermissionLevel.cs
	* PrintPageEventArgs.cs
	* PrintPageEventHandler.cs
	* PrintRange.cs
	* QueryPageSettingEventArgs.cs
	* QueryPageSettingsEventHandler.cs
	* StandardPrintController.cs
	* Added null classes for most/all classes, Many stubs, and some implmentation

svn path=/trunk/mcs/; revision=7410
2002-09-12 18:47:50 +00:00