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

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

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


import com.hfg.xml.XMLTag;

public class DmlGraphicFrameLocks extends XMLTag
{

   //---------------------------------------------------------------------------
   public DmlGraphicFrameLocks()
   {
      super(DmlXML.GRAPHIC_FRAME_LOCKS);
   }

   //---------------------------------------------------------------------------
   /**
    * Specifies whether or not to disallow shape grouping.
    */
   public DmlGraphicFrameLocks setDisallowShapeGrouping(boolean inValue)
   {
      setAttribute(DmlXML.NO_SHAPE_GROUPING_ATT, inValue ? "1" : "0");
      return this;
   }

   //---------------------------------------------------------------------------
   /**
    * Specifies whether or not to disallow movement of shapes.
    */
   public DmlGraphicFrameLocks setDisallowShapeMovement(boolean inValue)
   {
      setAttribute(DmlXML.NO_MOVE_ATT, inValue ? "1" : "0");
      return this;
   }

   //---------------------------------------------------------------------------
   /**
    * Specifies whether or not to disallow resizing of shapes.
    */
   public DmlGraphicFrameLocks setDisallowShapeResize(boolean inValue)
   {
      setAttribute(DmlXML.NO_RESIZE_ATT, inValue ? "1" : "0");
      return this;
   }

   //---------------------------------------------------------------------------
   /**
    * Specifies whether or not to disallow selection of shapes.
    */
   public DmlGraphicFrameLocks setDisallowShapeSelection(boolean inValue)
   {
      setAttribute(DmlXML.NO_SELECT_ATT, inValue ? "1" : "0");
      return this;
   }

   //---------------------------------------------------------------------------
   /**
    * Specifies whether or not to disallow selection of child shapes.
    */
   public DmlGraphicFrameLocks setDisallowChildShapeSelection(boolean inValue)
   {
      setAttribute(DmlXML.NO_DRILLDOWN_ATT, inValue ? "1" : "0");
      return this;
   }

   //---------------------------------------------------------------------------
   /**
    * Specifies whether or not to disallow aspect ratio change.
    */
   public DmlGraphicFrameLocks setDisallowAspectRatioChange(boolean inValue)
   {
      setAttribute(DmlXML.NO_CHANGE_ASPECT_ATT, inValue ? "1" : "0");
      return this;
   }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy