Author: joncham
Date: 2006-01-09 23:46:55 -0500 (Mon, 09 Jan 2006)
New Revision: 55283
Added:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PrintPreviewControl.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PrintPreviewDialog.cs
Modified:
trunk/mcs/class/Managed.Windows.Forms/ChangeLog
Log:
2006-1-10 Jonathan Chambers <[EMAIL PROTECTED]>
* System.Windows.Forms.dll.sources: Add PrintPreviewDialog and
PrintPreviewControl
Modified: trunk/mcs/class/Managed.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/ChangeLog 2006-01-10 04:18:52 UTC
(rev 55282)
+++ trunk/mcs/class/Managed.Windows.Forms/ChangeLog 2006-01-10 04:46:55 UTC
(rev 55283)
@@ -1,5 +1,9 @@
2006-1-10 Jonathan Chambers <[EMAIL PROTECTED]>
+ * System.Windows.Forms.dll.sources: Add PrintPreviewDialog and
PrintPreviewControl
+
+2006-1-10 Jonathan Chambers <[EMAIL PROTECTED]>
+
* System.Windows.Forms.dll.sources: Add PrintControllerWithStatusDialog
2005-12-13 Jackson Harper <[EMAIL PROTECTED]>
Added:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PrintPreviewControl.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PrintPreviewControl.cs
2006-01-10 04:18:52 UTC (rev 55282)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PrintPreviewControl.cs
2006-01-10 04:46:55 UTC (rev 55283)
@@ -0,0 +1,135 @@
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// Copyright (c) 2006 Novell, Inc.
+//
+// Authors:
+// Jonathan Chambers ([EMAIL PROTECTED])
+//
+
+using System;
+using System.ComponentModel;
+using System.ComponentModel.Design;
+using System.ComponentModel.Design.Serialization;
+using System.Collections;
+using System.Diagnostics;
+using System.Drawing;
+using System.Drawing.Printing;
+using System.Reflection;
+
+namespace System.Windows.Forms {
+
+ public class PrintPreviewControl : Control {
+ #region Local variables
+ private bool autozoom;
+ private int columns;
+ private PrintDocument document;
+ private int rows;
+ private int startPage;
+ private bool useAntiAlias;
+ private double zoom;
+ #endregion // Local variables
+
+ #region Public Constructors
+ public PrintPreviewControl() {
+ autozoom = true;
+ columns = 1;
+ rows = 0;
+ startPage = 0;
+ }
+ #endregion // Public Constructors
+
+
+ #region Public Instance Properties
+ public bool AutoZoom {
+ get { return autozoom; }
+ set { autozoom = value; }
+ }
+ public int Columns {
+ get { return columns; }
+ set { columns = value; }
+ }
+ public PrintDocument Document {
+ get { return document; }
+ set { document = value; }
+ }
+ public int Rows {
+ get { return rows; }
+ set { rows = value; }
+ }
+ public int StartPage {
+ get { return startPage; }
+ set { startPage = value; }
+ }
+ public bool UseAntiAlias {
+ get { return useAntiAlias; }
+ set { useAntiAlias = value; }
+ }
+ public double Zoom {
+ get { return zoom; }
+ set { zoom = value; }
+ }
+ #endregion // Public Instance Properties
+
+
+ #region Public Instance Methods
+ public void InvalidatePreview() {
+ }
+ public override void ResetBackColor() {
+ base.ResetBackColor();
+ }
+
+ public override void ResetForeColor() {
+ base.ResetForeColor ();
+ }
+ #endregion // Public Instance Methods
+
+ #region Protected Instance Properties
+ protected override CreateParams CreateParams {
+ get {
+ return base.CreateParams;
+ }
+ }
+
+ #endregion // Protected Instance Methods
+
+ #region Protected Instance Properties
+
+ protected override void OnPaint(PaintEventArgs e) {
+ base.OnPaint (e);
+ }
+
+ protected override void OnResize(EventArgs e) {
+ base.OnResize (e);
+ }
+
+ protected virtual void OnStartPageChanged(EventArgs e) {
+ if (StartPageChanged != null)
+ StartPageChanged(this, e);
+ }
+
+ protected override void WndProc(ref Message m) {
+ base.WndProc (ref m);
+ }
+
+ #endregion // Protected Instance Methods
+
+ public event EventHandler StartPageChanged;
+ }
+}
\ No newline at end of file
Property changes on:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PrintPreviewControl.cs
___________________________________________________________________
Name: svn:executable
+ *
Added:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PrintPreviewDialog.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PrintPreviewDialog.cs
2006-01-10 04:18:52 UTC (rev 55282)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PrintPreviewDialog.cs
2006-01-10 04:46:55 UTC (rev 55283)
@@ -0,0 +1,76 @@
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// Copyright (c) 2006 Novell, Inc.
+//
+// Authors:
+// Jonathan Chambers ([EMAIL PROTECTED])
+//
+
+using System;
+using System.ComponentModel;
+using System.ComponentModel.Design;
+using System.ComponentModel.Design.Serialization;
+using System.Collections;
+using System.Diagnostics;
+using System.Drawing;
+using System.Drawing.Printing;
+using System.Reflection;
+
+namespace System.Windows.Forms {
+
+ public class PrintPreviewDialog : Form {
+ #region Local variables
+ PrintPreviewControl printPreview;
+ #endregion // Local variables
+
+ #region Public Constructors
+ public PrintPreviewDialog() {
+ }
+ #endregion // Public Constructors
+
+ #region Public Instance Properties
+ public PrintDocument Document {
+ get { return printPreview.Document; }
+ set { printPreview.Document = value; }
+ }
+ public override ISite Site {
+ get {
+ return base.Site;
+ }
+ set {
+ base.Site = value;
+ }
+ }
+ public bool UseAntiAlias {
+ get { return printPreview.UseAntiAlias; }
+ set { printPreview.UseAntiAlias = value; }
+ }
+
+ #endregion // Public Instance Properties
+
+ #region Protected Instance Properties
+ protected override void CreateHandle() {
+ base.CreateHandle ();
+ }
+
+
+ #endregion // Protected Instance Methods
+ }
+}
\ No newline at end of file
Property changes on:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PrintPreviewDialog.cs
___________________________________________________________________
Name: svn:executable
+ *
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches