with GNATCOM.Dispinterface;

package MSHTML.IHTMLElement2_Interface is

   type IHTMLElement2_Type is
     new GNATCOM.Dispinterface.Dispinterface_Type with null record;

   procedure Initialize (This : in out IHTMLElement2_Type);

   function Pointer (This : IHTMLElement2_Type)
     return Pointer_To_IHTMLElement2;

   procedure Attach (This    : in out IHTMLElement2_Type;
                     Pointer : in     Pointer_To_IHTMLElement2);

   function Get_scopeName
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.BSTR;

   procedure setCapture
     (This             : IHTMLElement2_Type;
      containerCapture : GNATCOM.Types.VARIANT_BOOL);

   procedure releaseCapture
     (This : IHTMLElement2_Type);

   procedure Put_onlosecapture
     (This : IHTMLElement2_Type;
      p    : GNATCOM.Types.VARIANT;
      Free : Boolean := True);

   function Get_onlosecapture
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.VARIANT;

   function componentFromPoint
     (This      : IHTMLElement2_Type;
      x         : Interfaces.C.long;
      y         : Interfaces.C.long)
     return GNATCOM.Types.BSTR;

   procedure doScroll
     (This      : IHTMLElement2_Type;
      component : GNATCOM.Types.VARIANT  := GNATCOM.Types.VARIANT_MISSING;
      Free      : Boolean := True);

   procedure Put_onscroll
     (This : IHTMLElement2_Type;
      p    : GNATCOM.Types.VARIANT;
      Free : Boolean := True);

   function Get_onscroll
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.VARIANT;

   procedure Put_ondrag
     (This : IHTMLElement2_Type;
      p    : GNATCOM.Types.VARIANT;
      Free : Boolean := True);

   function Get_ondrag
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.VARIANT;

   procedure Put_ondragend
     (This : IHTMLElement2_Type;
      p    : GNATCOM.Types.VARIANT;
      Free : Boolean := True);

   function Get_ondragend
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.VARIANT;

   procedure Put_ondragenter
     (This : IHTMLElement2_Type;
      p    : GNATCOM.Types.VARIANT;
      Free : Boolean := True);

   function Get_ondragenter
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.VARIANT;

   procedure Put_ondragover
     (This : IHTMLElement2_Type;
      p    : GNATCOM.Types.VARIANT;
      Free : Boolean := True);

   function Get_ondragover
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.VARIANT;

   procedure Put_ondragleave
     (This : IHTMLElement2_Type;
      p    : GNATCOM.Types.VARIANT;
      Free : Boolean := True);

   function Get_ondragleave
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.VARIANT;

   procedure Put_ondrop
     (This : IHTMLElement2_Type;
      p    : GNATCOM.Types.VARIANT;
      Free : Boolean := True);

   function Get_ondrop
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.VARIANT;

   procedure Put_onbeforecut
     (This : IHTMLElement2_Type;
      p    : GNATCOM.Types.VARIANT;
      Free : Boolean := True);

   function Get_onbeforecut
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.VARIANT;

   procedure Put_oncut
     (This : IHTMLElement2_Type;
      p    : GNATCOM.Types.VARIANT;
      Free : Boolean := True);

   function Get_oncut
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.VARIANT;

   procedure Put_onbeforecopy
     (This : IHTMLElement2_Type;
      p    : GNATCOM.Types.VARIANT;
      Free : Boolean := True);

   function Get_onbeforecopy
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.VARIANT;

   procedure Put_oncopy
     (This : IHTMLElement2_Type;
      p    : GNATCOM.Types.VARIANT;
      Free : Boolean := True);

   function Get_oncopy
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.VARIANT;

   procedure Put_onbeforepaste
     (This : IHTMLElement2_Type;
      p    : GNATCOM.Types.VARIANT;
      Free : Boolean := True);

   function Get_onbeforepaste
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.VARIANT;

   procedure Put_onpaste
     (This : IHTMLElement2_Type;
      p    : GNATCOM.Types.VARIANT;
      Free : Boolean := True);

   function Get_onpaste
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.VARIANT;

   function Get_currentStyle
     (This : IHTMLElement2_Type)
     return Pointer_To_IHTMLCurrentStyle;

   procedure Put_onpropertychange
     (This : IHTMLElement2_Type;
      p    : GNATCOM.Types.VARIANT;
      Free : Boolean := True);

   function Get_onpropertychange
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.VARIANT;

   function getClientRects
     (This     : IHTMLElement2_Type)
     return Pointer_To_IHTMLRectCollection;

   function getBoundingClientRect
     (This  : IHTMLElement2_Type)
     return Pointer_To_IHTMLRect;

   procedure setExpression
     (This       : IHTMLElement2_Type;
      propname   : GNATCOM.Types.BSTR;
      expression : GNATCOM.Types.BSTR;
      language   : GNATCOM.Types.BSTR;
      Free       : Boolean := True);

   function getExpression
     (This       : IHTMLElement2_Type;
      propname   : GNATCOM.Types.BSTR;
      Free       : Boolean := True)
     return GNATCOM.Types.VARIANT;

   function removeExpression
     (This      : IHTMLElement2_Type;
      propname  : GNATCOM.Types.BSTR;
      Free      : Boolean := True)
     return GNATCOM.Types.VARIANT_BOOL;

   procedure Put_tabIndex
     (This : IHTMLElement2_Type;
      p    : Interfaces.C.short);

   function Get_tabIndex
     (This : IHTMLElement2_Type)
     return Interfaces.C.short;

   procedure focus
     (This : IHTMLElement2_Type);

   procedure Put_accessKey
     (This : IHTMLElement2_Type;
      p    : GNATCOM.Types.BSTR;
      Free : Boolean := True);

   function Get_accessKey
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.BSTR;

   procedure Put_onblur
     (This : IHTMLElement2_Type;
      p    : GNATCOM.Types.VARIANT;
      Free : Boolean := True);

   function Get_onblur
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.VARIANT;

   procedure Put_onfocus
     (This : IHTMLElement2_Type;
      p    : GNATCOM.Types.VARIANT;
      Free : Boolean := True);

   function Get_onfocus
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.VARIANT;

   procedure Put_onresize
     (This : IHTMLElement2_Type;
      p    : GNATCOM.Types.VARIANT;
      Free : Boolean := True);

   function Get_onresize
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.VARIANT;

   procedure blur
     (This : IHTMLElement2_Type);

   procedure addFilter
     (This : IHTMLElement2_Type;
      pUnk : GNATCOM.Types.Pointer_To_IUnknown);

   procedure removeFilter
     (This : IHTMLElement2_Type;
      pUnk : GNATCOM.Types.Pointer_To_IUnknown);

   function Get_clientHeight
     (This : IHTMLElement2_Type)
     return Interfaces.C.long;

   function Get_clientWidth
     (This : IHTMLElement2_Type)
     return Interfaces.C.long;

   function Get_clientTop
     (This : IHTMLElement2_Type)
     return Interfaces.C.long;

   function Get_clientLeft
     (This : IHTMLElement2_Type)
     return Interfaces.C.long;

   function attachEvent
     (This     : IHTMLElement2_Type;
      event    : GNATCOM.Types.BSTR;
      pdisp    : GNATCOM.Types.Pointer_To_IDispatch;
      Free     : Boolean := True)
     return GNATCOM.Types.VARIANT_BOOL;

   procedure detachEvent
     (This  : IHTMLElement2_Type;
      event : GNATCOM.Types.BSTR;
      pdisp : GNATCOM.Types.Pointer_To_IDispatch;
      Free  : Boolean := True);

   function Get_readyState
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.VARIANT;

   procedure Put_onreadystatechange
     (This : IHTMLElement2_Type;
      p    : GNATCOM.Types.VARIANT;
      Free : Boolean := True);

   function Get_onreadystatechange
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.VARIANT;

   procedure Put_onrowsdelete
     (This : IHTMLElement2_Type;
      p    : GNATCOM.Types.VARIANT;
      Free : Boolean := True);

   function Get_onrowsdelete
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.VARIANT;

   procedure Put_onrowsinserted
     (This : IHTMLElement2_Type;
      p    : GNATCOM.Types.VARIANT;
      Free : Boolean := True);

   function Get_onrowsinserted
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.VARIANT;

   procedure Put_oncellchange
     (This : IHTMLElement2_Type;
      p    : GNATCOM.Types.VARIANT;
      Free : Boolean := True);

   function Get_oncellchange
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.VARIANT;

   procedure Put_dir
     (This : IHTMLElement2_Type;
      p    : GNATCOM.Types.BSTR;
      Free : Boolean := True);

   function Get_dir
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.BSTR;

   function createControlRange
     (This   : IHTMLElement2_Type)
     return GNATCOM.Types.Pointer_To_IDispatch;

   function Get_scrollHeight
     (This : IHTMLElement2_Type)
     return Interfaces.C.long;

   function Get_scrollWidth
     (This : IHTMLElement2_Type)
     return Interfaces.C.long;

   procedure Put_scrollTop
     (This : IHTMLElement2_Type;
      p    : Interfaces.C.long);

   function Get_scrollTop
     (This : IHTMLElement2_Type)
     return Interfaces.C.long;

   procedure Put_scrollLeft
     (This : IHTMLElement2_Type;
      p    : Interfaces.C.long);

   function Get_scrollLeft
     (This : IHTMLElement2_Type)
     return Interfaces.C.long;

   procedure clearAttributes
     (This : IHTMLElement2_Type);

   procedure mergeAttributes
     (This      : IHTMLElement2_Type;
      mergeThis : Pointer_To_IHTMLElement);

   procedure Put_oncontextmenu
     (This : IHTMLElement2_Type;
      p    : GNATCOM.Types.VARIANT;
      Free : Boolean := True);

   function Get_oncontextmenu
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.VARIANT;

   function insertAdjacentElement
     (This            : IHTMLElement2_Type;
      where           : GNATCOM.Types.BSTR;
      insertedElement : Pointer_To_IHTMLElement;
      Free            : Boolean := True)
     return Pointer_To_IHTMLElement;

   function applyElement
     (This    : IHTMLElement2_Type;
      apply   : Pointer_To_IHTMLElement;
      where   : GNATCOM.Types.BSTR;
      Free    : Boolean := True)
     return Pointer_To_IHTMLElement;

   function getAdjacentText
     (This  : IHTMLElement2_Type;
      where : GNATCOM.Types.BSTR;
      Free  : Boolean := True)
     return GNATCOM.Types.BSTR;

   function replaceAdjacentText
     (This    : IHTMLElement2_Type;
      where   : GNATCOM.Types.BSTR;
      newText : GNATCOM.Types.BSTR;
      Free    : Boolean := True)
     return GNATCOM.Types.BSTR;

   function Get_canHaveChildren
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.VARIANT_BOOL;

   function addBehavior
     (This        : IHTMLElement2_Type;
      bstrURL     : GNATCOM.Types.BSTR;
      pvarFactory : access GNATCOM.Types.VARIANT :=
        GNATCOM.Types.PVARIANT_MISSING;
      Free        : Boolean := True)
     return Interfaces.C.long;

   function removeBehavior
     (This     : IHTMLElement2_Type;
      cookie   : Interfaces.C.long)
     return GNATCOM.Types.VARIANT_BOOL;

   function Get_runtimeStyle
     (This : IHTMLElement2_Type)
     return Pointer_To_IHTMLStyle;

   function Get_behaviorUrns
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.Pointer_To_IDispatch;

   procedure Put_tagUrn
     (This : IHTMLElement2_Type;
      p    : GNATCOM.Types.BSTR;
      Free : Boolean := True);

   function Get_tagUrn
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.BSTR;

   procedure Put_onbeforeeditfocus
     (This : IHTMLElement2_Type;
      p    : GNATCOM.Types.VARIANT;
      Free : Boolean := True);

   function Get_onbeforeeditfocus
     (This : IHTMLElement2_Type)
     return GNATCOM.Types.VARIANT;

   function Get_readyStateValue
     (This : IHTMLElement2_Type)
     return Interfaces.C.long;

   function getElementsByTagName
     (This    : IHTMLElement2_Type;
      v       : GNATCOM.Types.BSTR;
      Free    : Boolean := True)
     return Pointer_To_IHTMLElementCollection;

end MSHTML.IHTMLElement2_Interface;

