Files
mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowserBase.cs
T
Andreia Gaita 9fa78e58b6 * WebBrowser.cs,
WebBrowserBase.cs,
  WebBrowserSiteBase.cs,
  HtmlDocument.cs: Stubbed out classes, no real implementations 
  yet.

2007-04-27  Andreia Gaita  <[email protected]>

svn path=/trunk/mcs/; revision=76399
2007-04-27 18:31:21 +00:00

259 lines
6.8 KiB
C#

// 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