001package com.hfg.xml.msofficexml.docx.drawingml;
002
003
004import com.hfg.xml.XMLTag;
005
006public class DmlGraphicFrameLocks extends XMLTag
007{
008
009   //---------------------------------------------------------------------------
010   public DmlGraphicFrameLocks()
011   {
012      super(DmlXML.GRAPHIC_FRAME_LOCKS);
013   }
014
015   //---------------------------------------------------------------------------
016   /**
017    * Specifies whether or not to disallow shape grouping.
018    */
019   public DmlGraphicFrameLocks setDisallowShapeGrouping(boolean inValue)
020   {
021      setAttribute(DmlXML.NO_SHAPE_GROUPING_ATT, inValue ? "1" : "0");
022      return this;
023   }
024
025   //---------------------------------------------------------------------------
026   /**
027    * Specifies whether or not to disallow movement of shapes.
028    */
029   public DmlGraphicFrameLocks setDisallowShapeMovement(boolean inValue)
030   {
031      setAttribute(DmlXML.NO_MOVE_ATT, inValue ? "1" : "0");
032      return this;
033   }
034
035   //---------------------------------------------------------------------------
036   /**
037    * Specifies whether or not to disallow resizing of shapes.
038    */
039   public DmlGraphicFrameLocks setDisallowShapeResize(boolean inValue)
040   {
041      setAttribute(DmlXML.NO_RESIZE_ATT, inValue ? "1" : "0");
042      return this;
043   }
044
045   //---------------------------------------------------------------------------
046   /**
047    * Specifies whether or not to disallow selection of shapes.
048    */
049   public DmlGraphicFrameLocks setDisallowShapeSelection(boolean inValue)
050   {
051      setAttribute(DmlXML.NO_SELECT_ATT, inValue ? "1" : "0");
052      return this;
053   }
054
055   //---------------------------------------------------------------------------
056   /**
057    * Specifies whether or not to disallow selection of child shapes.
058    */
059   public DmlGraphicFrameLocks setDisallowChildShapeSelection(boolean inValue)
060   {
061      setAttribute(DmlXML.NO_DRILLDOWN_ATT, inValue ? "1" : "0");
062      return this;
063   }
064
065   //---------------------------------------------------------------------------
066   /**
067    * Specifies whether or not to disallow aspect ratio change.
068    */
069   public DmlGraphicFrameLocks setDisallowAspectRatioChange(boolean inValue)
070   {
071      setAttribute(DmlXML.NO_CHANGE_ASPECT_ATT, inValue ? "1" : "0");
072      return this;
073   }
074
075}