* 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
* PrintControllerWithStatusDialog.cs: don't .Close() the status
dialog, as this causes X errors later on, since we actually
destroy the window. Instead, .Hide() it.
svn path=/trunk/mcs/; revision=63504
* ThemeWin32Classic.cs: add print preview rendering. I'm not
satisfied with this solution. If the bitmaps are small, we should
just cache them in the PrintPreviewDialog and draw them here.
Also, the layout is broken for the 2-up and 3-up cases.
* Theme.cs: add PrintPReviewControlPaint.
* PrintPreviewDialog.cs: first pass implementation.
* PrintPreviewControl.cs: first pass implementation. No
scrollbars yet.
* PrintDialog.cs: only validate fields if that particular portion
of the UI is enabled. Also, set the document's controller to a
PrintControllerWithStatusDialog wrapping the document's print
controller.
* PrintControllerWithStatusDialog.cs: if we're printing to a file,
bring up a SaveFileDialog (i hope we don't want to match the
behavior of the crappy windows file entry) and set the
PrinterSettings.PrintFileName accordingly.
svn path=/trunk/mcs/; revision=63022