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

com.hfg.xml.msofficexml.docx.drawingml.DmlStretch Maven / Gradle / Ivy

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


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

public class DmlStretch extends OfficeOpenXMLTag
{
   private XMLTag mFillRectTag;

   //---------------------------------------------------------------------------
   public DmlStretch(Docx inDocx)
   {
      super(DmlXML.STRETCH, inDocx);
   }

   //---------------------------------------------------------------------------
   // TODO: Add offset support to the fillRect tag
   public DmlStretch fillRect()
   {
      if (null == mFillRectTag)
      {
         // Check it it has been added via addSubtag()...
         mFillRectTag = getOptionalSubtagByName(DmlXML.FILL_RECT);
         if (null == mFillRectTag)
         {
            mFillRectTag = new XMLTag(DmlXML.FILL_RECT);
            addSubtag(mFillRectTag);
         }
      }

      return this;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy