
with GNATCOM.Iinterface;

package MSHTMLHST.IDocHostUIHandler_Interface is

   type IDocHostUIHandler_Type is
     new GNATCOM.Iinterface.Interface_Type with null record;

   procedure Initialize (This : in out IDocHostUIHandler_Type);

   function Pointer (This : IDocHostUIHandler_Type)
		     return Pointer_To_IDocHostUIHandler;

   procedure Attach (This    : in out IDocHostUIHandler_Type;
		     Pointer : in     Pointer_To_IDocHostUIHandler);

   function ShowContextMenu(
			     This           : IDocHostUIHandler_Type;
			     dwID           : DWORD;
			     ppt            : access Point_Type;
			     pcmdtReserved  : access IUnknown;
			     pdispReserved  : access IDispatch
			    ) return HRESULT;

   function GetHostInfo(
			 This           : IDocHostUIHandler_Type;
			 pInfo          : access DOCHOSTUIINFO
		       ) return HRESULT;

   function ShowUI(
		    This           : IDocHostUIHandler_Type;
		    dwID           : DWORD;
		    pActiveObject  : access IOleInPlaceActiveObject;
		    pCommandTarget : access IOleCommandTarget;
		    pFrame         : access IOleInPlaceFrame;
		    pDoc           : access IOleInPlaceUIWindow
		  ) return HRESULT;

   function HideUI(
		   This           : IDocHostUIHandler_Type
		  ) return HRESULT;

   function UpdateUI(
		     This           : IDocHostUIHandler_Type
		    ) return HRESULT;

   function EnableModeless(
			    This           : IDocHostUIHandler_Type;
			    fEnable        : System.Win32.BOOL
			  ) return HRESULT;

   function OnDocWindowActivate(
				 This           : IDocHostUIHandler_Type;
				 fActivate      : System.Win32.BOOL
			       ) return HRESULT;

   function OnFrameWindowActivate(
				   This           : IDocHostUIHandler_Type;
				   fActivate      : System.Win32.BOOL
				 ) return HRESULT;

   function ResizeBorder(
			  This           : IDocHostUIHandler_Type;
			  prcBorder      : access GNATOCX.RECT;
			  pUIWindow      : access IOleInPlaceUIWindow;
			  fRameWindow    : System.Win32.BOOL
			) return HRESULT;

   function TranslateAccelerator(
				 This           : IDocHostUIHandler_Type;
				 lpMsg          : access GNATOCX.MSG;
				 pguidCmdGroup  : access GNATCOM.Types.GUID;
				 nCmdID         : DWORD
				) return HRESULT;

   function GetOptionKeyPath(
			      This           : IDocHostUIHandler_Type;
			      pchKey         : access LPWSTR
			    ) return HRESULT;

   function GetDropTarget(
			   This           : IDocHostUIHandler_Type;
			   pDropTarget    : access IDropTarget;
			   ppDropTarget   : access Pointer_To_IDropTarget
			 ) return HRESULT;

   function GetExternal(
			 This           : IDocHostUIHandler_Type;
			 ppDispatch     : access Pointer_To_IDispatch
		       ) return HRESULT;

   function TranslateUrl(
			  This           : IDocHostUIHandler_Type;
			  dwTranslate    : DWORD;
			  pchURLIn       : LPWSTR;
			  ppchURLOut     : access LPWSTR
			) return HRESULT;

   function FilterDataObject(
			      This           : IDocHostUIHandler_Type;
			      pDO            : access IDataObject;
			      ppDORet        : access Pointer_TO_IDataObject
			    ) return HRESULT;

end MSHTMLHST.IDocHostUIHandler_Interface;
