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