Author: andreia
Date: 2007-04-27 14:31:21 -0400 (Fri, 27 Apr 2007)
New Revision: 76399
Added:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/HtmlDocument.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowser.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowserBase.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowserSiteBase.cs
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.dll.sources
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
Log:
* WebBrowser.cs,
WebBrowserBase.cs,
WebBrowserSiteBase.cs,
HtmlDocument.cs: Stubbed out classes, no real implementations
yet.
2007-04-27 Andreia Gaita <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-04-27 18:27:46 UTC (rev 76398)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-04-27 18:31:21 UTC (rev 76399)
@@ -1,3 +1,11 @@
+2007-04-27 Andreia Gaita <[EMAIL PROTECTED]>
+
+ * WebBrowser.cs,
+ WebBrowserBase.cs,
+ WebBrowserSiteBase.cs,
+ HtmlDocument.cs: Added stubbed out classes, no real implementations
+ yet.
+
2007-04-27 Everaldo Canuto <[EMAIL PROTECTED]>
* MainMenu.cs: In draw method without parameters call draw method with
Added:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/HtmlDocument.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/HtmlDocument.cs
2007-04-27 18:27:46 UTC (rev 76398)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/HtmlDocument.cs
2007-04-27 18:31:21 UTC (rev 76399)
@@ -0,0 +1,39 @@
+// 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) 2007 Novell, Inc.
+//
+// Authors:
+// Andreia Gaita <[EMAIL PROTECTED]>
+
+#if NET_2_0
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace System.Windows.Forms
+{
+ [MonoTODO ("Needs Implementation")]
+ public sealed class HtmlDocument
+ {
+ }
+}
+
+#endif
\ No newline at end of file
Added: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowser.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowser.cs
2007-04-27 18:27:46 UTC (rev 76398)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowser.cs
2007-04-27 18:31:21 UTC (rev 76399)
@@ -0,0 +1,474 @@
+// 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) 2007 Novell, Inc.
+//
+// Authors:
+// Andreia Gaita <[EMAIL PROTECTED]>
+
+#if NET_2_0
+
+using System;
+using System.ComponentModel;
+using System.Runtime.InteropServices;
+using System.Windows.Forms;
+using System.IO;
+
+namespace System.Windows.Forms
+{
+ [MonoTODO ("Needs Implementation")]
+ [ClassInterface (ClassInterfaceType.AutoDispatch)]
+ [ComVisible(true)]
+ [Designer("System.Windows.Forms.Design.WebBrowserBaseDesigner, " +
Consts.AssemblySystem_Design,
+ "System.ComponentModel.Design.IDesigner")]
+ public class WebBrowser : WebBrowserBase
+ {
+ private bool allowNavigation;
+ private bool allowWebBrowserDrop;
+ private bool canGoBack;
+ private bool canGoForward;
+ private bool isWebBrowserContextMenuEnabled;
+ private object objectForScripting;
+ private bool scriptErrorsSuppressed;
+ private bool scrollBarsEnabled;
+ private string statusText;
+ private bool webBrowserShortcutsEnabled;
+
+ #region Public Properties
+
+ [DefaultValue(true)]
+ public bool AllowNavigation {
+ get { return allowNavigation; }
+ set { allowNavigation = value; }
+ }
+
+ [DefaultValue (true)]
+ public bool AllowWebBrowserDrop {
+ get { return allowWebBrowserDrop; }
+ set { allowWebBrowserDrop = value; }
+ }
+
+ [DefaultValue (true)]
+ public bool CanGoBack {
+ get { return canGoBack; }
+ }
+
+ [DefaultValue (true)]
+ public bool CanGoForward {
+ get { return canGoForward; }
+ }
+
+ public HtmlDocument Document {
+ get { throw new NotImplementedException (); }
+ }
+
+ public Stream DocumentStream {
+ get { return null; }
+ set { throw new NotSupportedException (); }
+ }
+
+ public string DocumentText {
+ get { return String.Empty; }
+ set { throw new NotSupportedException (); }
+ }
+
+ public string DocumentTitle {
+ get { return String.Empty; }
+ set { throw new NotSupportedException (); }
+ }
+
+ public string DocumentType {
+ get { return String.Empty; }
+ set { throw new NotSupportedException (); }
+ }
+
+ public WebBrowserEncryptionLevel EncryptionLevel {
+ get { return WebBrowserEncryptionLevel.Unknown; }
+ }
+
+ public override bool Focused {
+ get { return base.Focused; }
+ }
+
+ public bool IsBusy {
+ get { return false; }
+ }
+
+ public bool IsOffline {
+ get { return true; }
+ }
+
+ public bool IsWebBrowserContextMenuEnabled {
+ get { return isWebBrowserContextMenuEnabled; }
+ set { isWebBrowserContextMenuEnabled = value; }
+ }
+
+ public object ObjectForScripting {
+ get { return objectForScripting; }
+ set { objectForScripting = value; }
+ }
+
+ public WebBrowserReadyState ReadyState {
+ get { return WebBrowserReadyState.Uninitialized; }
+ }
+
+ public bool ScriptErrorsSuppressed {
+ get { return scriptErrorsSuppressed; }
+ set { scriptErrorsSuppressed = value; }
+ }
+
+ public bool ScrollBarsEnabled {
+ get { return scrollBarsEnabled; }
+ set { scrollBarsEnabled = value; }
+ }
+
+ public virtual string StatusText {
+ get { return statusText; }
+ set { statusText = value; }
+ }
+
+ [BindableAttribute(true)]
+ public Uri Url {
+ get { return null; }
+ set { throw new NotSupportedException (); }
+ }
+
+ public Version Version {
+ get { return null; }
+ }
+
+ public bool WebBrowserShortcutsEnabled {
+ get { return webBrowserShortcutsEnabled; }
+ set { webBrowserShortcutsEnabled = value; }
+ }
+
+ #endregion
+
+ public WebBrowser ()
+ {
+ }
+
+ #region Public Methods
+
+ public bool GoBack ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ public bool GoForward ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void GoHome ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void GoSearch ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void Navigate (string urlString)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void Navigate (Uri url)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void Navigate (string urlString, bool newWindow)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void Navigate (string urlString, string targetFrameName)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void Navigate (Uri url, bool newWindow)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void Navigate (Uri url, string targetFrameName)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void Navigate (string urlString, string targetFrameName,
byte[] postData, string additionalHeaders)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void Navigate (Uri url, string targetFrameName, byte[]
postData, string additionalHeaders)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void Print ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ public override void Refresh ()
+ {
+ base.Refresh ();
+ }
+
+ public void Refresh (WebBrowserRefreshOption opt)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void ShowPageSetupDialog()
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void ShowPrintDialog()
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void ShowPrintPreviewDialog()
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void ShowPropertiesDialog()
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void ShowSaveAsDialog()
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void Stop()
+ {
+ throw new NotImplementedException ();
+ }
+
+ #endregion
+
+
+ #region Protected Overridden Methods
+ protected override void AttachInterfaces (object
nativeActiveXObject)
+ {
+ base.AttachInterfaces (nativeActiveXObject);
+ }
+
+ protected override void CreateSink ()
+ {
+ base.CreateSink ();
+ }
+
+ protected override WebBrowserSiteBase CreateWebBrowserSiteBase
()
+ {
+ return base.CreateWebBrowserSiteBase ();
+ }
+
+ protected override void DetachInterfaces ()
+ {
+ base.DetachInterfaces ();
+ }
+
+ protected override void DetachSink ()
+ {
+ base.DetachSink ();
+ }
+
+ protected override void Dispose (bool disposing)
+ {
+ base.Dispose (disposing);
+ }
+
+ protected override void WndProc (ref Message m)
+ {
+ base.WndProc (ref m);
+ }
+ #endregion
+
+ #region OnXXX methods
+ protected virtual void OnCanGoBackChanged(EventArgs e)
+ {
+ EventHandler eh = (EventHandler)(Events
[CanGoBackChangedEvent]);
+ if (eh != null)
+ eh (this, e);
+ }
+
+ protected virtual void OnCanGoForwardChanged(EventArgs e)
+ {
+ EventHandler eh = (EventHandler)(Events
[CanGoForwardChangedEvent]);
+ if (eh != null)
+ eh (this, e);
+ }
+
+ protected virtual void
OnDocumentCompleted(WebBrowserDocumentCompletedEventArgs e)
+ {
+ WebBrowserDocumentCompletedEventHandler eh =
(WebBrowserDocumentCompletedEventHandler)(Events [DocumentCompletedEvent]);
+ if (eh != null)
+ eh (this, e);
+ }
+
+ protected virtual void OnDocumentTitleChanged(EventArgs e)
+ {
+ EventHandler eh = (EventHandler)(Events
[DocumentTitleChangedEvent]);
+ if (eh != null)
+ eh (this, e);
+ }
+
+ protected virtual void OnEncryptionLevelChanged(EventArgs e)
+ {
+ EventHandler eh = (EventHandler)(Events
[EncryptionLevelChangedEvent]);
+ if (eh != null)
+ eh (this, e);
+ }
+
+ protected virtual void OnFileDownload(EventArgs e)
+ {
+ EventHandler eh = (EventHandler)(Events
[FileDownloadEvent]);
+ if (eh != null)
+ eh (this, e);
+ }
+
+ protected virtual void OnNavigated(WebBrowserNavigatedEventArgs
e)
+ {
+ WebBrowserNavigatedEventHandler eh =
(WebBrowserNavigatedEventHandler)(Events [NavigatedEvent]);
+ if (eh != null)
+ eh (this, e);
+ }
+
+ protected virtual void
OnNavigating(WebBrowserNavigatingEventArgs e)
+ {
+ WebBrowserNavigatingEventHandler eh =
(WebBrowserNavigatingEventHandler)(Events [NavigatingEvent]);
+ if (eh != null)
+ eh (this, e);
+ }
+
+ protected virtual void OnNewWindow(CancelEventArgs e)
+ {
+ CancelEventHandler eh = (CancelEventHandler)(Events
[NewWindowEvent]);
+ if (eh != null)
+ eh (this, e);
+ }
+
+ protected virtual void
OnProgressChanged(WebBrowserProgressChangedEventArgs e)
+ {
+ WebBrowserProgressChangedEventHandler eh =
(WebBrowserProgressChangedEventHandler)(Events [ProgressChangedEvent]);
+ if (eh != null)
+ eh (this, e);
+ }
+
+ protected virtual void OnStatusTextChanged(EventArgs e)
+ {
+ EventHandler eh = (EventHandler)(Events
[StatusTextChangedEvent]);
+ if (eh != null)
+ eh (this, e);
+ }
+ #endregion
+
+ #region Events
+ static object CanGoBackChangedEvent = new object ();
+ static object CanGoForwardChangedEvent = new object ();
+ static object DocumentCompletedEvent = new object ();
+ static object DocumentTitleChangedEvent = new object ();
+ static object EncryptionLevelChangedEvent = new object ();
+ static object FileDownloadEvent = new object ();
+ static object NavigatedEvent = new object ();
+ static object NavigatingEvent = new object ();
+ static object NewWindowEvent = new object ();
+ static object ProgressChangedEvent = new object ();
+ static object StatusTextChangedEvent = new object ();
+
+ public event EventHandler CanGoBackChanged {
+ add { Events.AddHandler (CanGoBackChangedEvent, value);
}
+ remove { Events.RemoveHandler (CanGoBackChangedEvent,
value); }
+ }
+
+ public event EventHandler CanGoForwardChanged {
+ add { Events.AddHandler (CanGoForwardChangedEvent,
value); }
+ remove { Events.RemoveHandler
(CanGoForwardChangedEvent, value); }
+ }
+
+ public event WebBrowserDocumentCompletedEventHandler
DocumentCompleted {
+ add { Events.AddHandler (DocumentCompletedEvent,
value); }
+ remove { Events.RemoveHandler (DocumentCompletedEvent,
value); }
+ }
+
+ public event EventHandler DocumentTitleChanged {
+ add { Events.AddHandler (DocumentTitleChangedEvent,
value); }
+ remove { Events.RemoveHandler
(DocumentTitleChangedEvent, value); }
+ }
+
+ public event EventHandler EncryptionLevelChanged {
+ add { Events.AddHandler (EncryptionLevelChangedEvent,
value); }
+ remove { Events.RemoveHandler
(EncryptionLevelChangedEvent, value); }
+ }
+
+ public event EventHandler FileDownload {
+ add { Events.AddHandler (FileDownloadEvent, value); }
+ remove { Events.RemoveHandler (FileDownloadEvent,
value); }
+ }
+
+ public event WebBrowserNavigatedEventHandler Navigated {
+ add { Events.AddHandler (NavigatedEvent, value); }
+ remove { Events.RemoveHandler (NavigatedEvent, value); }
+ }
+
+ public event WebBrowserNavigatingEventHandler Navigating {
+ add { Events.AddHandler (NavigatingEvent, value); }
+ remove { Events.RemoveHandler (NavigatingEvent, value);
}
+ }
+
+ public event CancelEventHandler NewWindow {
+ add { Events.AddHandler (NewWindowEvent, value); }
+ remove { Events.RemoveHandler (NewWindowEvent, value); }
+ }
+
+ public event WebBrowserProgressChangedEventHandler
ProgressChanged {
+ add { Events.AddHandler (ProgressChangedEvent, value); }
+ remove { Events.RemoveHandler (ProgressChangedEvent,
value); }
+ }
+
+ public event EventHandler StatusTextChanged {
+ add { Events.AddHandler (StatusTextChangedEvent,
value); }
+ remove { Events.RemoveHandler (StatusTextChangedEvent,
value); }
+ }
+ #endregion
+
+
+ protected class WebBrowserSite : WebBrowserSiteBase
+ {
+ public WebBrowserSite (WebBrowser host)
+ : base ()
+ {
+ }
+
+ }
+ }
+}
+
+#endif
\ No newline at end of file
Added:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowserBase.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowserBase.cs
2007-04-27 18:27:46 UTC (rev 76398)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowserBase.cs
2007-04-27 18:31:21 UTC (rev 76399)
@@ -0,0 +1,259 @@
+// 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) 2007 Novell, Inc.
+//
+// Authors:
+// Andreia Gaita <[EMAIL PROTECTED]>
+
+#if NET_2_0
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Drawing;
+using System.Runtime.InteropServices;
+using System.Windows.Forms;
+
+namespace System.Windows.Forms
+{
+ [MonoTODO ("Needs Implementation")]
+ [ClassInterface(ClassInterfaceType.AutoDispatch)]
+ [ComVisible(true)]
+ public abstract class WebBrowserBase : Control
+ {
+ #region Public Properties
+ [Browsable (false)]
+ [DesignerSerializationVisibility
(DesignerSerializationVisibility.Hidden)]
+ public Object ActiveXInstance {
+ get { throw new NotImplementedException (); }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ public override bool AllowDrop {
+ get { return false; }
+ set { throw new NotSupportedException (); }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ [DesignerSerializationVisibility
(DesignerSerializationVisibility.Hidden)]
+ public override Color BackColor {
+ get { return base.BackColor; }
+ set { base.BackColor = value; }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ [DesignerSerializationVisibility
(DesignerSerializationVisibility.Hidden)]
+ public override Image BackgroundImage {
+ get { return base.BackgroundImage; }
+ set { base.BackgroundImage = value; }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ [DesignerSerializationVisibility
(DesignerSerializationVisibility.Hidden)]
+ public override ImageLayout BackgroundImageLayout {
+ get { return base.BackgroundImageLayout; }
+ set { base.BackgroundImageLayout = value; }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ public override Cursor Cursor {
+ get { return null; }
+ set { throw new NotSupportedException (); }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ public new bool Enabled {
+ get { return true; }
+ set { throw new NotSupportedException (); }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ public override Font Font {
+ get { return base.Font; }
+ set { base.Font = value; }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ public override Color ForeColor {
+ get { return base.ForeColor; }
+ set { base.ForeColor = value; }
+ }
+
+ [Browsable (false)]
+ [DesignerSerializationVisibility
(DesignerSerializationVisibility.Hidden)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ public ImeMode ImeMode {
+ get { return base.ImeMode; }
+ set { base.ImeMode = value; }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ [Localizable (true)]
+ public new virtual RightToLeft RightToLeft {
+ get { return base.RightToLeft; }
+ set { base.RightToLeft = value; }
+ }
+
+ public override ISite Site {
+ set { throw new NotSupportedException (); }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ public override string Text {
+ get { return String.Empty; }
+ set { throw new NotSupportedException (); }
+ }
+
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ public bool UseWaitCursor {
+ get { return false; }
+ set { throw new NotSupportedException (); }
+ }
+
+ #endregion
+
+ #region Protected Properties
+ protected override Size DefaultSize {
+ get { return new Size (100, 100); }
+ }
+ #endregion
+
+ #region Public Methods
+ public void DrawToBitmap (Bitmap bitmap, Rectangle
targetBounds)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public new Control GetChildAtPoint (Point point)
+ {
+ return base.GetChildAtPoint (point);
+ }
+
+ public override bool PreProcessMessage(ref Message msg)
+ {
+ return base.PreProcessMessage(ref msg);
+ }
+
+ #endregion
+
+ #region Protected Virtual Methods
+ protected virtual void AttachInterfaces (object
nativeActiveXObject)
+ {
+ throw new NotImplementedException ();
+ }
+
+ protected virtual void CreateSink ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ protected virtual WebBrowserSiteBase CreateWebBrowserSiteBase ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ protected virtual void DetachInterfaces ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ protected virtual void DetachSink ()
+ {
+ throw new NotImplementedException ();
+ }
+ #endregion
+
+ #region Protected Overriden Methods
+ protected override void Dispose (bool disposing)
+ {
+ base.Dispose (disposing);
+ }
+
+ protected override bool IsInputChar (char charCode)
+ {
+ return base.IsInputChar (charCode);
+ }
+
+ protected override void OnBackColorChanged (EventArgs e)
+ {
+ base.OnBackColorChanged (e);
+ }
+
+ protected override void OnFontChanged (EventArgs e)
+ {
+ base.OnFontChanged (e);
+ }
+
+ protected override void OnForeColorChanged (EventArgs e)
+ {
+ base.OnForeColorChanged (e);
+ }
+
+ protected override void OnGotFocus (EventArgs e)
+ {
+ base.OnGotFocus (e);
+ }
+
+ protected override void OnHandleCreated (EventArgs e)
+ {
+ base.OnHandleCreated (e);
+ }
+
+ protected override void OnLostFocus (EventArgs e)
+ {
+ base.OnLostFocus (e);
+ }
+
+ protected override void OnParentChanged (EventArgs e)
+ {
+ base.OnParentChanged (e);
+ }
+
+ protected override void OnRightToLeftChanged (EventArgs e)
+ {
+ base.OnRightToLeftChanged (e);
+ }
+
+ protected override void OnVisibleChanged (EventArgs e)
+ {
+ base.OnVisibleChanged (e);
+ }
+
+ protected override bool ProcessMnemonic (char charCode)
+ {
+ return base.ProcessMnemonic (charCode);
+ }
+
+ #endregion
+ }
+}
+
+#endif
\ No newline at end of file
Added:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowserSiteBase.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowserSiteBase.cs
2007-04-27 18:27:46 UTC (rev 76398)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowserSiteBase.cs
2007-04-27 18:31:21 UTC (rev 76399)
@@ -0,0 +1,53 @@
+// 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) 2007 Novell, Inc.
+//
+// Authors:
+// Andreia Gaita <[EMAIL PROTECTED]>
+
+#if NET_2_0
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Drawing;
+using System.Runtime.InteropServices;
+using System.Windows.Forms;
+
+namespace System.Windows.Forms
+{
+ [MonoTODO ("Needs Implementation")]
+ [ClassInterface(ClassInterfaceType.AutoDispatch)]
+ [ComVisible(true)]
+ public class WebBrowserSiteBase : IDisposable
+ {
+
+ #region Methods
+ public void Dispose ()
+ {
+ }
+
+ protected virtual void Dispose (bool disposing)
+ {
+ }
+ #endregion
+ }
+}
+#endif
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.dll.sources
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.dll.sources
2007-04-27 18:27:46 UTC (rev 76398)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.dll.sources
2007-04-27 18:31:21 UTC (rev 76399)
@@ -346,6 +346,7 @@
System.Windows.Forms/HelpProvider.cs
System.Windows.Forms/HorizontalAlignment.cs
System.Windows.Forms/HScrollProperties.cs
+System.Windows.Forms/HtmlDocument.cs
System.Windows.Forms/HtmlElementInsertionOrientation.cs
System.Windows.Forms/Hwnd.cs
System.Windows.Forms/IButtonControl.cs
@@ -745,6 +746,8 @@
System.Windows.Forms/ValidationConstraints.cs
System.Windows.Forms/View.cs
System.Windows.Forms/VScrollProperties.cs
+System.Windows.Forms/WebBrowser.cs
+System.Windows.Forms/WebBrowserBase.cs
System.Windows.Forms/WebBrowserDocumentCompletedEventArgs.cs
System.Windows.Forms/WebBrowserDocumentCompletedEventHandler.cs
System.Windows.Forms/WebBrowserEncryptionLevel.cs
@@ -756,6 +759,7 @@
System.Windows.Forms/WebBrowserProgressChangedEventHandler.cs
System.Windows.Forms/WebBrowserReadyState.cs
System.Windows.Forms/WebBrowserRefreshOption.cs
+System.Windows.Forms/WebBrowserSiteBase.cs
System.Windows.Forms/Win32DnD.cs
System.Windows.Forms/X11DesktopColors.cs
System.Windows.Forms/X11Dnd.cs
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches