with GNATCOM.Dispinterface;

package MSHTML.IHTMLTxtRange_Interface is

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

   procedure Initialize (This : in out IHTMLTxtRange_Type);

   function Pointer (This : IHTMLTxtRange_Type)
     return Pointer_To_IHTMLTxtRange;

   procedure Attach (This    : in out IHTMLTxtRange_Type;
                     Pointer : in     Pointer_To_IHTMLTxtRange);

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

   procedure Put_text
     (This : IHTMLTxtRange_Type;
      p    : GNATCOM.Types.BSTR;
      Free : Boolean := True);

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

   function parentElement
     (This   : IHTMLTxtRange_Type)
     return Pointer_To_IHTMLElement;

   function duplicate
     (This      : IHTMLTxtRange_Type)
     return Pointer_To_IHTMLTxtRange;

   function inRange
     (This    : IHTMLTxtRange_Type;
      urange  : Pointer_To_IHTMLTxtRange)
     return GNATCOM.Types.VARIANT_BOOL;

   function isEqual
     (This    : IHTMLTxtRange_Type;
      urange  : Pointer_To_IHTMLTxtRange)
     return GNATCOM.Types.VARIANT_BOOL;

   procedure scrollIntoView
     (This   : IHTMLTxtRange_Type;
      fStart : GNATCOM.Types.VARIANT_BOOL);

   procedure collapse
     (This  : IHTMLTxtRange_Type;
      start : GNATCOM.Types.VARIANT_BOOL);

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

   function move
     (This        : IHTMLTxtRange_Type;
      Unit        : GNATCOM.Types.BSTR;
      Count       : Interfaces.C.long;
      Free        : Boolean := True)
     return Interfaces.C.long;

   function moveStart
     (This        : IHTMLTxtRange_Type;
      Unit        : GNATCOM.Types.BSTR;
      Count       : Interfaces.C.long;
      Free        : Boolean := True)
     return Interfaces.C.long;

   function moveEnd
     (This        : IHTMLTxtRange_Type;
      Unit        : GNATCOM.Types.BSTR;
      Count       : Interfaces.C.long;
      Free        : Boolean := True)
     return Interfaces.C.long;

   procedure uselect
     (This : IHTMLTxtRange_Type);

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

   procedure moveToElementText
     (This    : IHTMLTxtRange_Type;
      element : Pointer_To_IHTMLElement);

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

   function compareEndPoints
     (This        : IHTMLTxtRange_Type;
      how         : GNATCOM.Types.BSTR;
      sourceRange : Pointer_To_IHTMLTxtRange;
      Free        : Boolean := True)
     return Interfaces.C.long;

   function findText
     (This    : IHTMLTxtRange_Type;
      String  : GNATCOM.Types.BSTR;
      Count   : Interfaces.C.long;
      flags   : Interfaces.C.long;
      Free    : Boolean := True)
     return GNATCOM.Types.VARIANT_BOOL;

   procedure moveToPoint
     (This : IHTMLTxtRange_Type;
      x    : Interfaces.C.long;
      y    : Interfaces.C.long);

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

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

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

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

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

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

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

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

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

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

end MSHTML.IHTMLTxtRange_Interface;

