2004-04-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mcs / class / System.Windows.Forms / System.Windows.Forms / PrintPreviewDialog.cs
index f5e96c4222006c256631d4c5b2930ebddb7fab41..935a7d1ce7a6b6bb26bfb8df387908c971df16b8 100644 (file)
-//\r
-// System.Windows.Forms.PrintPreviewDialog\r
-//\r
-// Author:\r
-//   stubbed out by Jaak Simm (jaaksimm@firm.ee)\r
-//   Dennis Hayes (dennish@Raytek.com)\r
-//\r
-// (C) Ximian, Inc., 2002\r
-//\r
-\r
-using System.Drawing;\r
-using System.Drawing.Printing;\r
-using System.ComponentModel;\r
-\r
-namespace System.Windows.Forms {\r
-\r
-       /// <summary>\r
-       /// Represents a dialog box form that contains a PrintPreviewControl.\r
-       ///\r
-       /// ToDo note:\r
-       ///  - nothing is implemented\r
-       /// </summary>\r
-\r
-       [MonoTODO]\r
-       public class PrintPreviewDialog : Form {\r
-\r
-               #region Fields\r
-               IButtonControl acceptButton;\r
-               string accessibleDescription;\r
-               string accessibleName;\r
-               AccessibleRole accessibleRole;\r
-               bool autoScale;\r
-               Size autoScrollMargin;\r
-               Size autoScrollMinSize;\r
-               bool causesValidation;\r
-               bool controlBox;\r
-               ControlBindingsCollection dataBindings;\r
-               PrintDocument document;\r
-               bool enabled;\r
-               FormBorderStyle formBorderStyle;\r
-               bool helpButton;\r
-               Icon icon;\r
-               ImeMode imeMode;\r
-               bool isMdiContainer;\r
-               bool keyPreview;\r
-               Point location;\r
-               bool maximizeBox;\r
-               Size maximumSize;\r
-               MainMenu menu;\r
-               bool minimizeBox;\r
-               Size minimumSize;\r
-               PrintPreviewControl printPreviewControl;\r
-               bool showInTaskbar;\r
-               Size size;\r
-               FormStartPosition startPosition;\r
-               bool tabStop;\r
-               object tag;\r
-               bool topMost;\r
-               Color transparencyKey;\r
-               bool useAntiAlias;\r
-               bool visible;\r
-               FormWindowState windowState;\r
-               #endregion\r
-\r
-\r
-\r
-\r
-               #region Constructor\r
-               [MonoTODO]\r
-               public PrintPreviewDialog() \r
-               {\r
-                       document=null;\r
-                       \r
-                       accessibleDescription=null;\r
-                       accessibleName=null;\r
-                       accessibleRole=AccessibleRole.Default;\r
-                       autoScale=true;\r
-                       controlBox=true;\r
-                       enabled=true;\r
-                       helpButton=false;\r
-                       imeMode=ImeMode.Inherit;\r
-                       isMdiContainer=false;\r
-                       keyPreview=false;\r
-                       maximizeBox=true;\r
-                       minimizeBox=true;\r
-                       showInTaskbar=true;\r
-                       tabStop=true;\r
-                       tag=null;\r
-                       topMost=false;\r
-                       visible=true;\r
-                       windowState=FormWindowState.Normal;\r
-                       \r
-                       throw new NotImplementedException ();\r
-               }\r
-               #endregion\r
-\r
-\r
-\r
-\r
-               #region Properties\r
-               public new IButtonControl AcceptButton {\r
-                       get { return acceptButton; }\r
-                       set { acceptButton=value; }\r
-               }\r
-               \r
-               public new string AccessibleDescription {\r
-                       get { return accessibleDescription; }\r
-                       set { accessibleDescription=value; }\r
-               }\r
-               \r
-               public new string AccessibleName {\r
-                       get { return accessibleName; }\r
-                       set { accessibleName=value; }\r
-               }\r
-               \r
-               public new AccessibleRole AccessibleRole {\r
-                       get { return accessibleRole; }\r
-                       set { accessibleRole=value; }\r
-               }\r
-               \r
-               [MonoTODO]\r
-               public override bool AllowDrop {\r
-                       get { throw new NotImplementedException (); }\r
-                       set { throw new NotImplementedException (); }\r
-               }\r
-               \r
-               [MonoTODO]\r
-               public override AnchorStyles Anchor {\r
-                       get { throw new NotImplementedException (); }\r
-                       set { throw new NotImplementedException (); }\r
-               }\r
-               \r
-               public new bool AutoScale {\r
-                       get { return autoScale; }\r
-                       set { autoScale=value; }\r
-               }\r
-               \r
-               [MonoTODO]\r
-               public override Size AutoScaleBaseSize {\r
-                       get { throw new NotImplementedException (); }\r
-                       set { throw new NotImplementedException (); }\r
-               }\r
-               \r
-               [MonoTODO]\r
-               public override bool AutoScroll {\r
-                       get { throw new NotImplementedException (); }\r
-                       set { throw new NotImplementedException (); }\r
-               }\r
-               \r
-               public new Size AutoScrollMargin {\r
-                       get { return autoScrollMargin; }\r
-                       set { autoScrollMargin=value; }\r
-               }\r
-               \r
-               public new Size AutoScrollMinSize {\r
-                       get { return autoScrollMinSize; }\r
-                       set { autoScrollMinSize=value; }\r
-               }\r
-               \r
-               [MonoTODO]\r
-               public override Color BackColor {\r
-                       get { throw new NotImplementedException (); }\r
-                       set { throw new NotImplementedException (); }\r
-               }\r
-               \r
-               [MonoTODO]\r
-               public override Image BackgroundImage {\r
-                       get { throw new NotImplementedException (); }\r
-                       set { throw new NotImplementedException (); }\r
-               }\r
-               \r
-               /// This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.\r
-               /// public new IButtonControl CancelButton {get; set;}\r
-               \r
-               public new bool CausesValidation {\r
-                       get { return causesValidation; }\r
-                       set { causesValidation=value; }\r
-               }\r
-               \r
-               [MonoTODO]\r
-               public override ContextMenu ContextMenu {\r
-                       get { throw new NotImplementedException (); }\r
-                       set { throw new NotImplementedException (); }\r
-               }\r
-               \r
-               public new bool ControlBox {\r
-                       get { return controlBox; }\r
-                       set { controlBox=value; }\r
-               }\r
-               \r
-               [MonoTODO]\r
-               public override Cursor Cursor {\r
-                       get { throw new NotImplementedException (); }\r
-                       set { throw new NotImplementedException (); }\r
-               }\r
-               \r
-               public new ControlBindingsCollection DataBindings {\r
-                       get { return dataBindings; }\r
-                       set { dataBindings=value; }\r
-               }\r
-               \r
-               [MonoTODO]\r
-               public override DockStyle Dock {\r
-                       get { throw new NotImplementedException (); }\r
-                       set { throw new NotImplementedException (); }\r
-               }\r
-               \r
-               /// This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.\r
-               /// public new ScrollableControl.DockPaddingEdges DockPadding {get;}\r
-               \r
-               public PrintDocument Document {\r
-                       get { return document; }\r
-                       set { document=value; }\r
-               }\r
-               \r
-               public new bool Enabled {\r
-                       get { return enabled; }\r
-                       set { enabled=value; }\r
-               }\r
-               \r
-               [MonoTODO]\r
-               public override Font Font {\r
-                       get { throw new NotImplementedException (); }\r
-                       set { throw new NotImplementedException (); }\r
-               }\r
-               \r
-               [MonoTODO]\r
-               public override Color ForeColor  {\r
-                       get { throw new NotImplementedException (); }\r
-                       set { throw new NotImplementedException (); }\r
-               }\r
-               \r
-               public new FormBorderStyle FormBorderStyle {\r
-                       get { return formBorderStyle; }\r
-                       set { formBorderStyle=value; }\r
-               }\r
-               \r
-               public new bool HelpButton {\r
-                       get { return helpButton; }\r
-                       set { helpButton=value; }\r
-               }\r
-               \r
-               public Icon Icon {\r
-                       get { return icon; }\r
-                       set { icon=value; }\r
-               }\r
-               \r
-               public new ImeMode ImeMode {\r
-                       get { return imeMode; }\r
-                       set { imeMode=value; }\r
-               }\r
-               \r
-               public bool IsMdiContainer {\r
-                       get { return isMdiContainer; }\r
-                       set { isMdiContainer=value; }\r
-               }\r
-               \r
-               public new bool KeyPreview {\r
-                       get { return keyPreview; }\r
-                       set { keyPreview=value; }\r
-               }\r
-               \r
-               public new Point Location {\r
-                       get { return location; }\r
-                       set { location=value; }\r
-               }\r
-               \r
-               public new bool MaximizeBox {\r
-                       get { return maximizeBox; }\r
-                       set { maximizeBox=value; }\r
-               }\r
-               \r
-               public new Size MaximumSize {\r
-                       get { return maximumSize; }\r
-                       set { maximumSize=value; }\r
-               }\r
-               \r
-               public MainMenu Menu {\r
-                       get { return menu; }\r
-                       set { menu=value; }\r
-               }\r
-               \r
-               public new bool MinimizeBox {\r
-                       get { return minimizeBox; }\r
-                       set { minimizeBox=value; }\r
-               }\r
-               \r
-               public new Size MinimumSize {\r
-                       get { return minimumSize; }\r
-                       set { minimumSize=value; }\r
-               }\r
-               \r
-               /// This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.\r
-               /// public new double Opacity {get; set;}\r
-               \r
-               public PrintPreviewControl PrintPreviewControl {\r
-                       get { return printPreviewControl; }\r
-                       set { printPreviewControl=value; }\r
-               }\r
-               \r
-               [MonoTODO]\r
-               public override RightToLeft RightToLeft {\r
-                       get { throw new NotImplementedException (); }\r
-                       set { throw new NotImplementedException (); }\r
-               }\r
-               \r
-               public new bool ShowInTaskbar {\r
-                       get { return showInTaskbar; }\r
-                       set { showInTaskbar=value; }\r
-               }\r
-               \r
-               public new Size Size {\r
-                       get { return size; }\r
-                       set { size=value; }\r
-               }\r
-               \r
-               /// This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.\r
-               /// public new SizeGripStyle SizeGripStyle {get; set;}\r
-               \r
-               public new FormStartPosition StartPosition {\r
-                       get { return startPosition; }\r
-                       set { startPosition=value; }\r
-               }\r
-               \r
-               public new bool TabStop {\r
-                       get { return tabStop; }\r
-                       set { tabStop=value; }\r
-               }\r
-               \r
-               public new object Tag {\r
-                       get { return tag; }\r
-                       set { tag=value; }\r
-               }\r
-               \r
-               [MonoTODO]\r
-               public override string Text {\r
-                       get { throw new NotImplementedException (); }\r
-                       set { throw new NotImplementedException (); }\r
-               }\r
-               \r
-               public new bool TopMost {\r
-                       get { return topMost; }\r
-                       set { topMost=value; }\r
-               }\r
-               \r
-               public new Color TransparencyKey {\r
-                       get { return transparencyKey; }\r
-                       set { transparencyKey=value; }\r
-               }\r
-               \r
-               public bool UseAntiAlias {\r
-                       get { return useAntiAlias; }\r
-                       set { useAntiAlias=value; }\r
-               }\r
-               \r
-               public new bool Visible {\r
-                       get { return visible; }\r
-                       set { visible=value; }\r
-               }\r
-               \r
-               public new FormWindowState WindowState {\r
-                       get { return windowState; }\r
-                       set { windowState=value; }\r
-               }\r
-               #endregion\r
-\r
-\r
-\r
-\r
-               #region Methods\r
-               [MonoTODO]\r
-               protected override void CreateHandle() \r
-               {\r
-                       throw new NotImplementedException ();\r
-               }\r
-               \r
-               [MonoTODO]\r
-               protected override void OnClosing(CancelEventArgs e) \r
-               {\r
-                       throw new NotImplementedException ();\r
-               }\r
-               #endregion\r
-       }\r
-}\r
+//
+// System.Windows.Forms.PrintPreviewDialog
+//
+// Author:
+//   stubbed out by Jaak Simm (jaaksimm@firm.ee)
+//   Dennis Hayes (dennish@Raytek.com)
+//
+// (C) Ximian, Inc., 2002
+//
+
+using System.Drawing;
+using System.Drawing.Printing;
+using System.ComponentModel;
+
+namespace System.Windows.Forms {
+
+       /// <summary>
+       /// Represents a dialog box form that contains a PrintPreviewControl.
+       ///
+       /// </summary>
+
+       [MonoTODO]
+       public class PrintPreviewDialog : Form {
+
+               #region Fields
+               IButtonControl acceptButton;
+               string accessibleDescription;
+               string accessibleName;
+               AccessibleRole accessibleRole;
+               bool autoScale;
+               Size autoScrollMargin;
+               Size autoScrollMinSize;
+               bool causesValidation;
+               bool controlBox;
+               ControlBindingsCollection dataBindings;
+               PrintDocument document;
+               bool enabled;
+               FormBorderStyle formBorderStyle;
+               bool helpButton;
+               Icon icon;
+               ImeMode imeMode;
+               bool isMdiContainer;
+               bool keyPreview;
+               Point location;
+               bool maximizeBox;
+               Size maximumSize;
+               MainMenu menu;
+               bool minimizeBox;
+               Size minimumSize;
+               PrintPreviewControl printPreviewControl;
+               bool showInTaskbar;
+               Size size;
+               FormStartPosition startPosition;
+               bool tabStop;
+               object tag;
+               bool topMost;
+               Color transparencyKey;
+               bool useAntiAlias;
+               bool visible;
+               FormWindowState windowState;
+               #endregion
+
+               #region Constructor
+               [MonoTODO]
+               public PrintPreviewDialog() 
+               {
+                       document=null;
+                       
+                       accessibleDescription=null;
+                       accessibleName=null;
+                       accessibleRole=AccessibleRole.Default;
+                       autoScale=true;
+                       controlBox=true;
+                       enabled=true;
+                       helpButton=false;
+                       imeMode=ImeMode.Inherit;
+                       isMdiContainer=false;
+                       keyPreview=false;
+                       maximizeBox=true;
+                       minimizeBox=true;
+                       showInTaskbar=true;
+                       tabStop=true;
+                       tag=null;
+                       topMost=false;
+                       visible=true;
+                       windowState=FormWindowState.Normal;
+
+               }
+               #endregion
+
+               #region Properties
+               public new IButtonControl AcceptButton {
+                       get { return acceptButton; }
+                       set { acceptButton=value; }
+               }
+               
+               public new string AccessibleDescription {
+                       get { return accessibleDescription; }
+                       set { accessibleDescription=value; }
+               }
+               
+               public new string AccessibleName {
+                       get { return accessibleName; }
+                       set { accessibleName=value; }
+               }
+               
+               public new AccessibleRole AccessibleRole {
+                       get { return accessibleRole; }
+                       set { accessibleRole=value; }
+               }
+               
+               [MonoTODO]
+               public override bool AllowDrop {
+                       get { throw new NotImplementedException (); }
+                       set { throw new NotImplementedException (); }
+               }
+               
+               [MonoTODO]
+               public override AnchorStyles Anchor {
+                       get { throw new NotImplementedException (); }
+                       set { throw new NotImplementedException (); }
+               }
+               
+               public new bool AutoScale {
+                       get { return autoScale; }
+                       set { autoScale=value; }
+               }
+               
+               [MonoTODO]
+               public override Size AutoScaleBaseSize {
+                       get { throw new NotImplementedException (); }
+                       set { throw new NotImplementedException (); }
+               }
+               
+               [MonoTODO]
+               public override bool AutoScroll {
+                       get { throw new NotImplementedException (); }
+                       set { throw new NotImplementedException (); }
+               }
+               
+               public new Size AutoScrollMargin {
+                       get { return autoScrollMargin; }
+                       set { autoScrollMargin=value; }
+               }
+               
+               public new Size AutoScrollMinSize {
+                       get { return autoScrollMinSize; }
+                       set { autoScrollMinSize=value; }
+               }
+               
+               [MonoTODO]
+               public override Color BackColor {
+                       get { throw new NotImplementedException (); }
+                       set { throw new NotImplementedException (); }
+               }
+               
+               [MonoTODO]
+               public override Image BackgroundImage {
+                       get { throw new NotImplementedException (); }
+                       set { throw new NotImplementedException (); }
+               }
+               
+               /// This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
+               /// public new IButtonControl CancelButton {get; set;}
+               
+               public new bool CausesValidation {
+                       get { return causesValidation; }
+                       set { causesValidation=value; }
+               }
+               
+               [MonoTODO]
+               public override ContextMenu ContextMenu {
+                       get { throw new NotImplementedException (); }
+                       set { throw new NotImplementedException (); }
+               }
+               
+               public new bool ControlBox {
+                       get { return controlBox; }
+                       set { controlBox=value; }
+               }
+               
+               [MonoTODO]
+               public override Cursor Cursor {
+                       get { throw new NotImplementedException (); }
+                       set { throw new NotImplementedException (); }
+               }
+               
+               public new ControlBindingsCollection DataBindings {
+                       get { return dataBindings; }
+                       set { dataBindings=value; }
+               }
+               
+               [MonoTODO]
+               public override DockStyle Dock {
+                       get { throw new NotImplementedException (); }
+                       set { throw new NotImplementedException (); }
+               }
+               
+               /// This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
+               /// public new ScrollableControl.DockPaddingEdges DockPadding {get;}
+               
+               public PrintDocument Document {
+                       get { return document; }
+                       set { document=value; }
+               }
+               
+               public new bool Enabled {
+                       get { return enabled; }
+                       set { enabled=value; }
+               }
+               
+               [MonoTODO]
+               public override Font Font {
+                       get { throw new NotImplementedException (); }
+                       set { throw new NotImplementedException (); }
+               }
+               
+               [MonoTODO]
+               public override Color ForeColor  {
+                       get { throw new NotImplementedException (); }
+                       set { throw new NotImplementedException (); }
+               }
+               
+               public new FormBorderStyle FormBorderStyle {
+                       get { return formBorderStyle; }
+                       set { formBorderStyle=value; }
+               }
+               
+               public new bool HelpButton {
+                       get { return helpButton; }
+                       set { helpButton=value; }
+               }
+               
+               public new Icon Icon {
+                       get { return icon; }
+                       set { icon=value; }
+               }
+               
+               public new ImeMode ImeMode {
+                       get { return imeMode; }
+                       set { imeMode=value; }
+               }
+               
+               public bool IsMdiContainer {
+                       get { return isMdiContainer; }
+                       set { isMdiContainer=value; }
+               }
+               
+               public new bool KeyPreview {
+                       get { return keyPreview; }
+                       set { keyPreview=value; }
+               }
+               
+               public new Point Location {
+                       get { return location; }
+                       set { location=value; }
+               }
+               
+               public new bool MaximizeBox {
+                       get { return maximizeBox; }
+                       set { maximizeBox=value; }
+               }
+               
+               public new Size MaximumSize {
+                       get { return maximumSize; }
+                       set { maximumSize=value; }
+               }
+               
+               public new MainMenu Menu {
+                       get { return menu; }
+                       set { menu=value; }
+               }
+               
+               public new bool MinimizeBox {
+                       get { return minimizeBox; }
+                       set { minimizeBox=value; }
+               }
+               
+               public new Size MinimumSize {
+                       get { return minimumSize; }
+                       set { minimumSize=value; }
+               }
+               
+               /// This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
+               /// public new double Opacity {get; set;}
+               
+               public PrintPreviewControl PrintPreviewControl {
+                       get { return printPreviewControl; }
+                       set { printPreviewControl=value; }
+               }
+               
+               [MonoTODO]
+               public override RightToLeft RightToLeft {
+                       get { throw new NotImplementedException (); }
+                       set { throw new NotImplementedException (); }
+               }
+               
+               public new bool ShowInTaskbar {
+                       get { return showInTaskbar; }
+                       set { showInTaskbar=value; }
+               }
+               
+               public new Size Size {
+                       get { return size; }
+                       set { size=value; }
+               }
+               
+               /// This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
+               /// public new SizeGripStyle SizeGripStyle {get; set;}
+               
+               public new FormStartPosition StartPosition {
+                       get { return startPosition; }
+                       set { startPosition=value; }
+               }
+               
+               public new bool TabStop {
+                       get { return tabStop; }
+                       set { tabStop=value; }
+               }
+               
+               public new object Tag {
+                       get { return tag; }
+                       set { tag=value; }
+               }
+               
+               [MonoTODO]
+               public override string Text {
+                       get { throw new NotImplementedException (); }
+                       set { throw new NotImplementedException (); }
+               }
+               
+               public new bool TopMost {
+                       get { return topMost; }
+                       set { topMost=value; }
+               }
+               
+               public new Color TransparencyKey {
+                       get { return transparencyKey; }
+                       set { transparencyKey=value; }
+               }
+               
+               public bool UseAntiAlias {
+                       get { return useAntiAlias; }
+                       set { useAntiAlias=value; }
+               }
+               
+               public new bool Visible {
+                       get { return visible; }
+                       set { visible=value; }
+               }
+               
+               public new FormWindowState WindowState {
+                       get { return windowState; }
+                       set { windowState=value; }
+               }
+               #endregion
+
+               #region Methods
+               [MonoTODO]
+               protected override void CreateHandle() 
+               {
+                       base.CreateHandle();
+               }
+               
+               [MonoTODO]
+               protected override void OnClosing(CancelEventArgs e) 
+               {
+                       throw new NotImplementedException ();
+               }
+               #endregion
+       }
+}