1 2006-11-28 Andreia Gaita <avidigal@novell.com>
4 - internal member name changes to help
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
15 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
17 * PrintingServicesUnix.cs: Implements GetPrintDialogInfo
19 2006-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21 Initial support for PageSettings (color, copies, collate,
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).
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.
39 * PrintDocument.cs: Clone PrinterSettings.PageSettings
40 instead of creating a new one (this avoid creating an additional
41 PrinterSettings instance).
43 2006-11-17 Andreia Gaita <avidigal@novell.com>
45 * PrintingServicesWin32.cs: fix another dumb typo -
46 check proper return value from printer validity call
48 2006-11-16 Chris Toshok <toshok@ximian.com>
50 * PreviewPrintController.cs: fix typo - don't throw
51 InvalidPrinterException when it wasn't supposed to be.
53 2006-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
55 * PrintDocument.cs: Use QueryPageSettingsEventArgs.PageSettings
56 in PrintPageEventArgs, instead of using the default one (mimic
59 * PageSettings.cs: Implement Clone the right way (intead of using
60 the default page settings).
62 2006-11-14 Andreia Gaita <avidigal@novell.com>
63 Fixes #79835, implements PrinterSettings.IsValid, throws proper
64 InvalidPrinterException with differentiated messages.
66 * PrintingServices.cs: Declares IsPrinterValid to enable easy checking
67 if printer name is a valid printer
69 * PrintingServicesWin32.cs: Implements IsPrinterValid, caches
70 last assigned printer name and if it is valid to speed up next calls.
72 * PrintingServicesUnix.cs: Implements IsPrinterValid, caches
73 last assigned printer name and if it is valid to speed up next calls.
76 - throw InvalidPrinterException in the properties,
77 according to the docs: Color, Landscape, PaperSize, PaperSource,
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
83 * PrinterSettings.cs: Implement IsValid to call IsPrinterValid
86 * PreviewPrintController.cs: throw InvalidPrinterException on
87 StartPrint() if there's no valid printer configured
89 * InvalidPrinterException.cs: New private GetMessage() to customize
90 printer error message, used by constructor
92 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
94 * PrintingServicesUnix.cs: Implements LoadPrinterPaperSources member,
95 simplifies GetPaperSizeName and loads paper source and size defaults
97 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
99 * PrintingServices.cs: Add LoadPrinterPaperSources member
101 * PrintingServicesWin32.cs: Implements LoadPrinterPaperSources and
102 reads the default paper source and size.
104 * PrintingServicesUnix.cs: Add stub LoadPrinterPaperSources member
106 * PrinterSettings.cs: Implements PaperSourceCollection property and
107 makes default paper source and size from the system.
109 2006-08-02 Chris Toshok <toshok@ximian.com>
111 * PreviewPrintController.cs: scale the Graphics context we pass
112 back from OnStartPage such that the preview looks the way the
115 2006-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
117 * PrintDocument.cs: When null is passed to PrinterSettings,
118 it should be set to a new PrinterSettings instance, and should never
121 * PrinterSettings.cs: Default value for Copies should be 1. Also
122 add a space in the ToString method, to correctly show the printer
125 2006-07-26 Chris Toshok <toshok@ximian.com>
127 * PrinterSettings.cs: expose PrintFileName in the 1.1 case as an
128 internal property, so we can get at it from MWF.
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.
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).
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.
143 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
145 * PrintingServices.cs: GetPrintDialogInfo definition
146 * PrintingServicesWin32.cs GetPrintDialogInfo implementation
147 * PrintingServicesUnix.cs: GetPrintDialogInfo stub
149 2006-04-14 Jordi Mas i Hernandez <jordimash@gmail.com>
151 * PrintingServicesUnix.cs: Replace cupsGetPrinters deprecated API call
153 2006-04-13 Jordi Mas i Hernandez <jordimash@gmail.com>
155 * PrintingServicesUnix.cs: Checks if cups is installed
156 * PrinterSettings.cs: PrintToFile property and ToString method
158 2006-04-28 Sebastien Pouliot <sebastien@ximian.com>
160 * PrintController.cs: corcompare fix. No public ctor in 2.0.
161 * PrinterSettings.cs: corcompare fix. Clone method isn't virtual.
163 2006-03-21 Sebastien Pouliot <sebastien@ximian.com>
165 * PrintingServicesUnix.cs: cupsGetPrinters(char***) requires to free
166 each individual string and (finally) the list. Note that this call is
169 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
171 * PrintingServicesUnix.cs: Handle not having a printer
173 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
175 * PrintingServicesWin32.cs: Simplyfied the code, removing the need
176 for pointer calculations (part of 64bit cleanup)
178 2006-01-27 Sebastien Pouliot <sebastien@ximian.com>
180 * PrintingServicesWin32.cs: Ensure Marshal.FreeHGlobal is called for
181 all unmanaged memory allocated with AllocHGlobal.
183 2006-01-15 Jordi Mas i Hernandez <jordimash@gmail.com>
185 * PrintingServicesUnix.cs: Allow setting the dpy's for the surface
187 2005-12-22 Jordi Mas i Hernandez <jordimash@gmail.com>
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
205 2005-12-07 Jordi Mas i Hernandez <jordimash@gmail.com>
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
223 2005-09-16 Sebastien Pouliot <sebastien@ximian.com>
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).
231 2005-03-23 Jordi Mas i Hernandez <jordi@ximian.com>
232 * PaperKind.cs: fixes wrong enum values
234 2005-01-27 Lluis Sanchez Gual <lluis@novell.com>
236 * MarginsConverter.cs: Implemented support for InstanceDescriptor.