public XWPFAbstractNum(CT_AbstractNum abstractNum) { this.ctAbstractNum = abstractNum; }
public XWPFAbstractNum(CT_AbstractNum ctAbstractNum, XWPFNumbering numbering) { this.ctAbstractNum = ctAbstractNum; this.numbering = numbering; }
public void SetAbstractNumArray(int pos, CT_AbstractNum cT_AbstractNum) { if (this.abstractNumField == null) this.abstractNumField = new List<CT_AbstractNum>(); if (pos < 0 || pos >= abstractNumField.Count) abstractNumField.Add(cT_AbstractNum); abstractNumField[pos] = cT_AbstractNum; }
protected XWPFAbstractNum() { this.ctAbstractNum = null; this.numbering = null; }
public static CT_AbstractNum Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) return null; CT_AbstractNum ctObj = new CT_AbstractNum(); ctObj.abstractNumId = XmlHelper.ReadString(node.Attributes["w:abstractNumId"]); ctObj.lvl = new List<CT_Lvl>(); foreach (XmlNode childNode in node.ChildNodes) { if (childNode.LocalName == "nsid") ctObj.nsid = CT_LongHexNumber.Parse(childNode, namespaceManager); else if (childNode.LocalName == "multiLevelType") ctObj.multiLevelType = CT_MultiLevelType.Parse(childNode, namespaceManager); else if (childNode.LocalName == "tmpl") ctObj.tmpl = CT_LongHexNumber.Parse(childNode, namespaceManager); else if (childNode.LocalName == "name") ctObj.name = CT_String.Parse(childNode, namespaceManager); else if (childNode.LocalName == "styleLink") ctObj.styleLink = CT_String.Parse(childNode, namespaceManager); else if (childNode.LocalName == "numStyleLink") ctObj.numStyleLink = CT_String.Parse(childNode, namespaceManager); else if (childNode.LocalName == "lvl") ctObj.lvl.Add(CT_Lvl.Parse(childNode, namespaceManager)); } return ctObj; }
public CT_AbstractNum AddNewAbstractNum() { CT_AbstractNum num = new CT_AbstractNum(); if (this.abstractNumField == null) this.abstractNumField = new List<CT_AbstractNum>(); this.abstractNumField.Add(num); return num; }
public void Set(CT_AbstractNum cT_AbstractNum) { this.abstractNumIdField = cT_AbstractNum.abstractNumIdField; this.lvlField = new List<CT_Lvl>(cT_AbstractNum.lvlField); this.multiLevelTypeField = cT_AbstractNum.multiLevelTypeField; this.nameField = cT_AbstractNum.nameField; this.nsidField = cT_AbstractNum.nsidField; this.numStyleLinkField = cT_AbstractNum.numStyleLinkField; this.styleLinkField = cT_AbstractNum.styleLinkField; this.tmplField = cT_AbstractNum.tmplField; }
public bool ValueEquals(CT_AbstractNum cT_AbstractNum) { return this.abstractNumIdField == cT_AbstractNum.abstractNumIdField; }
public CT_AbstractNum Copy() { CT_AbstractNum anum = new CT_AbstractNum(); anum.abstractNumIdField = this.abstractNumIdField; anum.lvlField = new List<CT_Lvl>(this.lvlField); anum.multiLevelTypeField = this.multiLevelTypeField; anum.nameField = this.nameField; anum.nsidField = this.nsidField; anum.numStyleLinkField = this.numStyleLinkField; anum.styleLinkField = this.styleLinkField; anum.tmplField = this.tmplField; return anum; }
public void SetAbstractNumArray(int pos, CT_AbstractNum cT_AbstractNum) { if (pos < 0 || pos >= abstractNumField.Count) abstractNumField.Add(cT_AbstractNum); abstractNumField[pos] = cT_AbstractNum; }
public CT_AbstractNum AddNewAbstractNum() { CT_AbstractNum num = new CT_AbstractNum(); this.abstractNumField.Add(num); return num; }