All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hfg.xml.msofficexml.docx.wordprocessingml.WmlDrawing Maven / Gradle / Ivy

There is a newer version: 20240423
Show newest version
package com.hfg.xml.msofficexml.docx.wordprocessingml;

import com.hfg.xml.msofficexml.docx.Docx;


public class WmlDrawing extends WmlXMLTag
{
   private WmlInline     mInlineTag;

   //---------------------------------------------------------------------------
   public WmlDrawing(Docx inDocx)
   {
      super(WmlXML.DRAWING, inDocx);
   }

   //---------------------------------------------------------------------------
   /**
    * Returns the inline tag if one exists or else instantiates a new one.
    * @return the inline tag for this drawing
    */
   public WmlInline getInline()
   {
      if (null == mInlineTag)
      {
         // Check if it has been added via addSubtag()...
         mInlineTag = getOptionalSubtagByName(WmlXML.INLINE);
         if (null == mInlineTag)
         {
            mInlineTag = new WmlInline(getParentDoc());
            addSubtag(mInlineTag);
         }
      }

      return mInlineTag;
   }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy