with GNATCOM.Dispinterface;

package MSHTML.IHTMLTxtRange_Object is

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

   function Get_htmlText
     (This : IHTMLTxtRange_Type)
     return GNATCOM.Types.VARIANT;

   procedure Put_text
     (This : IHTMLTxtRange_Type;
      P1   : GNATCOM.Types.VARIANT;
      Free : Boolean := True);

   function Get_text
     (This : IHTMLTxtRange_Type)
     return GNATCOM.Types.VARIANT;

   function parentElement
     (This : IHTMLTxtRange_Type)
     return GNATCOM.Types.VARIANT;

   function duplicate
     (This : IHTMLTxtRange_Type)
     return GNATCOM.Types.VARIANT;

   function inRange
     (This   : IHTMLTxtRange_Type;
      urange : GNATCOM.Types.VARIANT;
      Free   : Boolean := True)
     return GNATCOM.Types.VARIANT;

   function isEqual
     (This   : IHTMLTxtRange_Type;
      urange : GNATCOM.Types.VARIANT;
      Free   : Boolean := True)
     return GNATCOM.Types.VARIANT;

   procedure scrollIntoView
     (This   : IHTMLTxtRange_Type;
      fStart : GNATCOM.Types.VARIANT
        := GNATCOM.Types.VARIANT_MISSING;
      Free   : Boolean := True);

   procedure collapse
     (This  : IHTMLTxtRange_Type;
      start : GNATCOM.Types.VARIANT
        := GNATCOM.Types.VARIANT_MISSING;
      Free  : Boolean := True);

   function expand
     (This : IHTMLTxtRange_Type;
      Unit : GNATCOM.Types.VARIANT;
      Free : Boolean := True)
     return GNATCOM.Types.VARIANT;

   function move
     (This  : IHTMLTxtRange_Type;
      Unit  : GNATCOM.Types.VARIANT;
      Count : GNATCOM.Types.VARIANT
        := GNATCOM.Types.VARIANT_MISSING;
      Free  : Boolean := True)
     return GNATCOM.Types.VARIANT;

   function moveStart
     (This  : IHTMLTxtRange_Type;
      Unit  : GNATCOM.Types.VARIANT;
      Count : GNATCOM.Types.VARIANT
        := GNATCOM.Types.VARIANT_MISSING;
      Free  : Boolean := True)
     return GNATCOM.Types.VARIANT;

   function moveEnd
     (This  : IHTMLTxtRange_Type;
      Unit  : GNATCOM.Types.VARIANT;
      Count : GNATCOM.Types.VARIANT
        := GNATCOM.Types.VARIANT_MISSING;
      Free  : Boolean := True)
     return GNATCOM.Types.VARIANT;

   procedure uselect
     (This : IHTMLTxtRange_Type);

   procedure pasteHTML
     (This : IHTMLTxtRange_Type;
      html : GNATCOM.Types.VARIANT;
      Free : Boolean := True);

   procedure moveToElementText
     (This    : IHTMLTxtRange_Type;
      element : GNATCOM.Types.VARIANT;
      Free    : Boolean := True);

   procedure setEndPoint
     (This        : IHTMLTxtRange_Type;
      how         : GNATCOM.Types.VARIANT;
      sourceRange : GNATCOM.Types.VARIANT;
      Free        : Boolean := True);

   function compareEndPoints
     (This        : IHTMLTxtRange_Type;
      how         : GNATCOM.Types.VARIANT;
      sourceRange : GNATCOM.Types.VARIANT;
      Free        : Boolean := True)
     return GNATCOM.Types.VARIANT;

   function findText
     (This   : IHTMLTxtRange_Type;
      String : GNATCOM.Types.VARIANT;
      Count  : GNATCOM.Types.VARIANT
        := GNATCOM.Types.VARIANT_MISSING;
      flags  : GNATCOM.Types.VARIANT
        := GNATCOM.Types.VARIANT_MISSING;
      Free   : Boolean := True)
     return GNATCOM.Types.VARIANT;

   procedure moveToPoint
     (This : IHTMLTxtRange_Type;
      x    : GNATCOM.Types.VARIANT;
      y    : GNATCOM.Types.VARIANT;
      Free : Boolean := True);

   function getBookmark
     (This : IHTMLTxtRange_Type)
     return GNATCOM.Types.VARIANT;

   function moveToBookmark
     (This     : IHTMLTxtRange_Type;
      Bookmark : GNATCOM.Types.VARIANT;
      Free     : Boolean := True)
     return GNATCOM.Types.VARIANT;

   function queryCommandSupported
     (This  : IHTMLTxtRange_Type;
      cmdID : GNATCOM.Types.VARIANT;
      Free  : Boolean := True)
     return GNATCOM.Types.VARIANT;

   function queryCommandEnabled
     (This  : IHTMLTxtRange_Type;
      cmdID : GNATCOM.Types.VARIANT;
      Free  : Boolean := True)
     return GNATCOM.Types.VARIANT;

   function queryCommandState
     (This  : IHTMLTxtRange_Type;
      cmdID : GNATCOM.Types.VARIANT;
      Free  : Boolean := True)
     return GNATCOM.Types.VARIANT;

   function queryCommandIndeterm
     (This  : IHTMLTxtRange_Type;
      cmdID : GNATCOM.Types.VARIANT;
      Free  : Boolean := True)
     return GNATCOM.Types.VARIANT;

   function queryCommandText
     (This  : IHTMLTxtRange_Type;
      cmdID : GNATCOM.Types.VARIANT;
      Free  : Boolean := True)
     return GNATCOM.Types.VARIANT;

   function queryCommandValue
     (This  : IHTMLTxtRange_Type;
      cmdID : GNATCOM.Types.VARIANT;
      Free  : Boolean := True)
     return GNATCOM.Types.VARIANT;

   function execCommand
     (This   : IHTMLTxtRange_Type;
      cmdID  : GNATCOM.Types.VARIANT;
      showUI : GNATCOM.Types.VARIANT
        := GNATCOM.Types.VARIANT_MISSING;
      value  : GNATCOM.Types.VARIANT
        := GNATCOM.Types.VARIANT_MISSING;
      Free   : Boolean := True)
     return GNATCOM.Types.VARIANT;

   function execCommandShowHelp
     (This  : IHTMLTxtRange_Type;
      cmdID : GNATCOM.Types.VARIANT;
      Free  : Boolean := True)
     return GNATCOM.Types.VARIANT;

end MSHTML.IHTMLTxtRange_Object;

