001package com.hfg.xml.msofficexml.docx.drawingml; 002 003 004import com.hfg.xml.XMLTag; 005 006public class DmlPictureLocks extends XMLTag 007{ 008 009 //--------------------------------------------------------------------------- 010 public DmlPictureLocks() 011 { 012 super(DmlXML.PIC_LOCKS); 013 } 014 015 //--------------------------------------------------------------------------- 016 /** 017 * Specifies whether or not to disallow aspect ratio change. 018 */ 019 public DmlPictureLocks setDisallowAspectRatioChange(boolean inValue) 020 { 021 setAttribute(DmlXML.NO_CHANGE_ASPECT_ATT, inValue ? "1" : "0"); 022 return this; 023 } 024 025 //--------------------------------------------------------------------------- 026 /** 027 * Specifies whether or not to disallow arrowhead changes. 028 */ 029 public DmlPictureLocks setDisallowArrowheadChanges(boolean inValue) 030 { 031 setAttribute(DmlXML.NO_CHANGE_ARROWHEADS_ATT, inValue ? "1" : "0"); 032 return this; 033 } 034 035}