Skip to content

Commit

Permalink
Merge branch 'nissl-lab:master' into dg
Browse files Browse the repository at this point in the history
  • Loading branch information
mino-alpha authored Jul 31, 2023
2 parents fc9f45d + 0c08215 commit 98ce2ff
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions OpenXmlFormats/Wordprocessing/Numbering.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1136,8 +1136,6 @@ public static CT_AbstractNum Parse(XmlNode node, XmlNamespaceManager namespaceMa
return ctObj;
}



internal void Write(StreamWriter sw, string nodeName)
{
sw.Write(string.Format("<w:{0}", nodeName));
Expand Down Expand Up @@ -1165,7 +1163,14 @@ internal void Write(StreamWriter sw, string nodeName)
sw.WriteEndW(nodeName);
}


public CT_Lvl AddNewLvl()
{
if (this.lvl == null)
this.lvlField = new List<CT_Lvl>();
CT_Lvl lvl = new CT_Lvl();
this.lvlField.Add(lvl);
return lvl;
}


public int SizeOfLvlArray()
Expand Down Expand Up @@ -1582,6 +1587,18 @@ public bool tentativeSpecified
this.tentativeFieldSpecified = value;
}
}

public CT_NumFmt AddNewNumFmt()
{
this.numFmtField = new CT_NumFmt();
return this.numFmtField;
}

public CT_LevelText AddNewLvlText()
{
this.lvlText = new CT_LevelText();
return this.lvlText;
}
}


Expand Down

0 comments on commit 98ce2ff

Please sign in to comment.