with GNATCOM.Errors;

package body MSHTML.IViewObjectPrint_Interface is

   procedure Initialize (This : in out IViewObjectPrint_Type) is
   begin
      Set_IID (This, IID_IViewObjectPrint);
   end Initialize;

   function Pointer (This : IViewObjectPrint_Type)
     return Pointer_To_IViewObjectPrint
   is
   begin
      return To_Pointer_To_IViewObjectPrint (Address (This));
   end Pointer;

   procedure Attach (This    : in out IViewObjectPrint_Type;
                     Pointer : in     Pointer_To_IViewObjectPrint)
   is
   begin
      Attach (This, GNATCOM.IInterface.To_Pointer_To_IUnknown
              (Pointer.all'Address));
   end Attach;

   function GetPrintBitmap
     (This          : IViewObjectPrint_Type)
     return GNATCOM.Types.Pointer_To_IUnknown
   is
       RetVal : aliased GNATCOM.Types.Pointer_To_IUnknown;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.GetPrintBitmap
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end GetPrintBitmap;

end MSHTML.IViewObjectPrint_Interface;

