with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.ISVGZoomAndPan_Interface is

   procedure Initialize (This : in out ISVGZoomAndPan_Type) is
   begin
      Set_IID (This, IID_ISVGZoomAndPan);
   end Initialize;

   function Pointer (This : ISVGZoomAndPan_Type)
     return Pointer_To_ISVGZoomAndPan
   is
   begin
      return To_Pointer_To_ISVGZoomAndPan (Address (This));
   end Pointer;

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

   function Get_zoomAndPan
     (This : ISVGZoomAndPan_Type)
     return Interfaces.C.short
   is
       RetVal : aliased Interfaces.C.short;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_zoomAndPan
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_zoomAndPan;

end MSHTML.ISVGZoomAndPan_Interface;

