with GNATCOM.Dispinterface;

package MSHTML.IHTMLSelection_Interface is

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

   procedure Initialize (This : in out IHTMLSelection_Type);

   function Pointer (This : IHTMLSelection_Type)
     return Pointer_To_IHTMLSelection;

   procedure Attach (This    : in out IHTMLSelection_Type;
                     Pointer : in     Pointer_To_IHTMLSelection);

   function Get_anchorNode
     (This : IHTMLSelection_Type)
     return Pointer_To_IHTMLDOMNode;

   function Get_anchorOffset
     (This : IHTMLSelection_Type)
     return Interfaces.C.long;

   function Get_focusNode
     (This : IHTMLSelection_Type)
     return Pointer_To_IHTMLDOMNode;

   function Get_focusOffset
     (This : IHTMLSelection_Type)
     return Interfaces.C.long;

   function Get_isCollapsed
     (This : IHTMLSelection_Type)
     return GNATCOM.Types.VARIANT_BOOL;

   procedure collapse
     (This       : IHTMLSelection_Type;
      parentNode : GNATCOM.Types.Pointer_To_IDispatch;
      offfset    : Interfaces.C.long);

   procedure collapseToStart
     (This : IHTMLSelection_Type);

   procedure collapseToEnd
     (This : IHTMLSelection_Type);

   procedure selectAllChildren
     (This       : IHTMLSelection_Type;
      parentNode : GNATCOM.Types.Pointer_To_IDispatch);

   procedure deleteFromDocument
     (This : IHTMLSelection_Type);

   function Get_rangeCount
     (This : IHTMLSelection_Type)
     return Interfaces.C.long;

   function getRangeAt
     (This    : IHTMLSelection_Type;
      index   : Interfaces.C.long)
     return Pointer_To_IHTMLDOMRange;

   procedure addRange
     (This   : IHTMLSelection_Type;
      urange : GNATCOM.Types.Pointer_To_IDispatch);

   procedure removeRange
     (This   : IHTMLSelection_Type;
      urange : GNATCOM.Types.Pointer_To_IDispatch);

   procedure removeAllRanges
     (This : IHTMLSelection_Type);

   function toString
     (This             : IHTMLSelection_Type)
     return GNATCOM.Types.BSTR;

end MSHTML.IHTMLSelection_Interface;

