示例#1
0
 public XWPFAbstractNum(CT_AbstractNum abstractNum)
 {
     this.ctAbstractNum = abstractNum;
 }
示例#2
0
 public XWPFAbstractNum(CT_AbstractNum ctAbstractNum, XWPFNumbering numbering)
 {
     this.ctAbstractNum = ctAbstractNum;
     this.numbering = numbering;
 }
示例#3
0
 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;
 }
示例#4
0
        protected XWPFAbstractNum()
        {
            this.ctAbstractNum = null;
            this.numbering = null;

        }
示例#5
0
 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;
 }
示例#6
0
 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;
 }
示例#7
0
 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;
 }
示例#8
0
 public bool ValueEquals(CT_AbstractNum cT_AbstractNum)
 {
     return this.abstractNumIdField == cT_AbstractNum.abstractNumIdField;
 }
示例#9
0
 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;
 }
示例#10
0
 public void SetAbstractNumArray(int pos, CT_AbstractNum cT_AbstractNum)
 {
     if (pos < 0 || pos >= abstractNumField.Count)
         abstractNumField.Add(cT_AbstractNum);
     abstractNumField[pos] = cT_AbstractNum;
 }
示例#11
0
 public CT_AbstractNum AddNewAbstractNum()
 {
     CT_AbstractNum num = new CT_AbstractNum();
     this.abstractNumField.Add(num);
     return num;
 }