* PrintingServicesWin32.cs: fix another dumb typo -
[mono.git] / mcs / class / System.Drawing / System.Drawing.Printing / ChangeLog
1 2006-11-17  Andreia Gaita <avidigal@novell.com>
2
3         * PrintingServicesWin32.cs: fix another dumb typo - 
4         check proper return value from printer validity call
5
6 2006-11-16  Chris Toshok  <toshok@ximian.com>
7
8         * PreviewPrintController.cs: fix typo - don't throw
9         InvalidPrinterException when it wasn't supposed to be.
10
11 2006-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12
13         * PrintDocument.cs: Use QueryPageSettingsEventArgs.PageSettings
14         in PrintPageEventArgs, instead of using the default one (mimic
15         .Net behaviour).
16
17         * PageSettings.cs: Implement Clone the right way (intead of using
18         the default page settings).
19
20 2006-11-14 Andreia Gaita <avidigal@novell.com>
21         Fixes #79835, implements PrinterSettings.IsValid, throws proper
22         InvalidPrinterException with differentiated messages.
23         
24         * PrintingServices.cs: Declares IsPrinterValid to enable easy checking
25         if printer name is a valid printer
26         
27         * PrintingServicesWin32.cs: Implements IsPrinterValid, caches 
28         last assigned printer name and if it is valid to speed up next calls.
29         
30         * PrintingServicesUnix.cs: Implements IsPrinterValid, caches 
31         last assigned printer name and if it is valid to speed up next calls.
32         
33         * PageSettings.cs: 
34                 - throw InvalidPrinterException in the properties,
35                 according to the docs: Color, Landscape, PaperSize, PaperSource, 
36                 PrinterResolution
37                 - change the private fields above to internal, so that in the
38                 constructor we can access them without triggering the exceptions
39                 if there are no printers installed
40                 
41         * PrinterSettings.cs: Implement IsValid to call IsPrinterValid
42         implemented above
43         
44         * PreviewPrintController.cs: throw InvalidPrinterException on 
45         StartPrint() if there's no valid printer configured
46         
47         * InvalidPrinterException.cs: New private GetMessage() to customize
48         printer error message, used by constructor
49
50 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
51
52         * PrintingServicesUnix.cs: Implements LoadPrinterPaperSources member,
53         simplifies GetPaperSizeName and loads paper source and size defaults
54
55 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
56
57         * PrintingServices.cs: Add LoadPrinterPaperSources member
58         
59         * PrintingServicesWin32.cs: Implements LoadPrinterPaperSources and
60         reads the default paper source and size.
61         
62         * PrintingServicesUnix.cs: Add stub LoadPrinterPaperSources member
63         
64         * PrinterSettings.cs: Implements PaperSourceCollection property and
65         makes default paper source and size from the system.
66
67 2006-08-02  Chris Toshok  <toshok@ximian.com>
68
69         * PreviewPrintController.cs: scale the Graphics context we pass
70         back from OnStartPage such that the preview looks the way the
71         printed output will.
72
73 2006-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
74
75         * PrintDocument.cs: When null is passed to PrinterSettings,
76         it should be set to a new PrinterSettings instance, and should never
77         be null.
78
79         * PrinterSettings.cs: Default value for Copies should be 1. Also
80         add a space in the ToString method, to correctly show the printer
81         info.
82
83 2006-07-26  Chris Toshok  <toshok@ximian.com>
84
85         * PrinterSettings.cs: expose PrintFileName in the 1.1 case as an
86         internal property, so we can get at it from MWF.
87
88         * PrintingServicesUnix.cs: handle print to file, and also remove
89         the temp file after sending the data to the printer.  fix some
90         dllimports to match the rest of system.drawing.
91
92         * PreviewPrintController.cs: implement this (warning, it'll eat
93         all your memory until we get a real Metafile implementation, as
94         we're storing bitmaps).
95
96         * PrintDocument.cs: shift the graphics context stuff around a bit
97         in Print(), so that the events after OnStartPrint are passed the
98         graphics context the controller created there, and we use the
99         return value of OnStartPage to do all drawing.
100
101 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
102
103         * PrintingServices.cs: GetPrintDialogInfo definition
104         * PrintingServicesWin32.cs GetPrintDialogInfo implementation
105         * PrintingServicesUnix.cs: GetPrintDialogInfo stub
106
107 2006-04-14 Jordi Mas i Hernandez <jordimash@gmail.com>
108
109         * PrintingServicesUnix.cs: Replace cupsGetPrinters deprecated API call
110
111 2006-04-13 Jordi Mas i Hernandez <jordimash@gmail.com>
112
113         * PrintingServicesUnix.cs: Checks if cups is installed
114         * PrinterSettings.cs: PrintToFile property and ToString method
115
116 2006-04-28  Sebastien Pouliot  <sebastien@ximian.com>
117
118         * PrintController.cs: corcompare fix. No public ctor in 2.0.
119         * PrinterSettings.cs: corcompare fix. Clone method isn't virtual.
120
121 2006-03-21  Sebastien Pouliot  <sebastien@ximian.com>
122
123         * PrintingServicesUnix.cs: cupsGetPrinters(char***) requires to free 
124         each individual string and (finally) the list. Note that this call is
125         deprecated.
126
127 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
128
129         * PrintingServicesUnix.cs: Handle not having a printer
130
131 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
132
133         * PrintingServicesWin32.cs: Simplyfied the code, removing the need
134           for pointer calculations (part of 64bit cleanup)
135
136 2006-01-27  Sebastien Pouliot  <sebastien@ximian.com>
137
138         * PrintingServicesWin32.cs: Ensure Marshal.FreeHGlobal is called for 
139         all unmanaged memory allocated with AllocHGlobal.
140
141 2006-01-15 Jordi Mas i Hernandez <jordimash@gmail.com>
142
143         * PrintingServicesUnix.cs: Allow setting the dpy's for the surface
144
145 2005-12-22 Jordi Mas i Hernandez <jordimash@gmail.com>
146
147         * PrintingServices.cs: Printing services abstration class
148         * PrintingServicesWin32.cs: Win32 printer driver
149         * PrintingServicesUnix.cs: Unix printer driver
150         * Margins.cs: Fixes exceptions error messages
151         * PrinterResolution.cs: Fixes
152         * PrintEventArgs.cs: New internal method
153         * PrintPageEventArgs.cs: New internal method
154         * StandardPrintController.cs: Fixes
155         * PrinterUnitConvert.cs: Fixes conversion errors
156         * PrintDocument.cs: Fixes to make it print
157         * PageSettings.cs: Take margains into account
158         * PrintController.cs: Fixes
159         * PaperSize.cs: Method to set paper Kind
160         * PrinterSettings.cs: Implements settings and fixes
161         *       
162
163 2005-12-07 Jordi Mas i Hernandez <jordimash@gmail.com>
164         
165         * PrinterResolutionKind.cs: Fixes signature for .Net 2.0
166         * PaperKind.cs: Fixes signature for .Net 2.0
167         * PaperSource.cs: Fixes signature for .Net 2.0
168         * Margins.cs: Fixes signature for .Net 2.0
169         * PrinterResolution.cs: Fixes signature for .Net 2.0
170         * PrintEventArgs.cs: Fixes signature for .Net 2.0
171         * PrintAction.cs: New enum in .Net 2.0
172         * PageSettings.cs:  Fixes signature for .Net 2.0
173         * PaperSourceKind.cs:  Fixes signature for .Net 2.0
174         * PrintController.cs: Fixes signature for .Net 2.0
175         * Duplex.cs: Fixes signature for .Net 2.0
176         * PaperSize.cs: Fixes signature for .Net 2.0
177         * PreviewPrintController.cs: Fixes signature for .Net 2.0
178         * PrinterSettings.cs: Fixes signature for .Net 2.0
179         * PrintRange.cs: Fixes signature for .Net 2.0
180           
181 2005-09-16  Sebastien Pouliot  <sebastien@ximian.com>
182
183         * InvalidPrinterException.cs: Removed NotImplementedException (not
184         required) and added a demand for SerializationFormatter on the 
185         GetObjectData method.
186         * PrintingPermission.cs: Throw ArgumentException if the class or 
187         version attributes are missing in the supplied XML (only in 1.x).
188
189 2005-03-23 Jordi Mas i Hernandez <jordi@ximian.com>
190         * PaperKind.cs: fixes wrong enum values
191
192 2005-01-27  Lluis Sanchez Gual  <lluis@novell.com>
193
194         * MarginsConverter.cs: Implemented support for InstanceDescriptor.