com.hfg.xml.msofficexml.docx.drawingml.DmlGraphicFrameLocks Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com_hfg Show documentation
Show all versions of com_hfg Show documentation
com.hfg xml, html, svg, and bioinformatics utility library
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;
}
}