with GNATCOM.Errors;

package body MSHTML.IElementBehaviorLayout2_Interface is

   procedure Initialize (This : in out IElementBehaviorLayout2_Type) is
   begin
      Set_IID (This, IID_IElementBehaviorLayout2);
   end Initialize;

   function Pointer (This : IElementBehaviorLayout2_Type)
     return Pointer_To_IElementBehaviorLayout2
   is
   begin
      return To_Pointer_To_IElementBehaviorLayout2 (Address (This));
   end Pointer;

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

   procedure GetTextDescent
     (This      : IElementBehaviorLayout2_Type;
      plDescent : GNATCOM.Types.Pointer_To_long)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.GetTextDescent
         (Pointer (This),
          plDescent));

   end GetTextDescent;

end MSHTML.IElementBehaviorLayout2_Interface;

