Skip to content

Commit

Permalink
Fix a lot of issues with name spaces prefix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Fluck authored and Pascal Fluck committed Aug 28, 2017
1 parent 4cf86ff commit ca667de
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 36 deletions.
14 changes: 7 additions & 7 deletions ooxml/OpenXmlFormats/Wordprocessing/FormField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -639,15 +639,15 @@ internal void Write(StreamWriter sw, string nodeName)
{
sw.Write(string.Format("<w:{0}>", nodeName));
if (this.defaultField != null)
this.defaultField.Write(sw, "w:default");
this.defaultField.Write(sw, "default");
if (this.checkedField != null)
this.checkedField.Write(sw, "w:checked");
this.checkedField.Write(sw, "checked");
if (this.itemField != null)
{
if (this.itemField is CT_OnOff)
(this.itemField as CT_OnOff).Write(sw, "w:sizeAuto");
(this.itemField as CT_OnOff).Write(sw, "sizeAuto");
else
(this.itemField as CT_HpsMeasure).Write(sw, "w:size");
(this.itemField as CT_HpsMeasure).Write(sw, "size");
}
sw.Write(string.Format("</w:{0}>", nodeName));
}
Expand Down Expand Up @@ -742,12 +742,12 @@ internal void Write(StreamWriter sw, string nodeName)
{
sw.Write(string.Format("<w:{0}>", nodeName));
if (this.defaultField != null)
this.defaultField.Write(sw, "w:default");
this.defaultField.Write(sw, "default");
if (this.resultField != null)
this.resultField.Write(sw, "w:result");
this.resultField.Write(sw, "result");
foreach (CT_String str in listEntry)
{
str.Write(sw, "w:listEntry");
str.Write(sw, "listEntry");
}
sw.Write(string.Format("</w:{0}>", nodeName));
}
Expand Down
16 changes: 8 additions & 8 deletions ooxml/OpenXmlFormats/Wordprocessing/HdrFtr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -670,13 +670,13 @@ internal void Write(StreamWriter sw, string nodeName)
sw.Write(string.Format("<w:{0}", nodeName));
sw.Write(">");
if (this.pos != null)
this.pos.Write(sw, "w:pos");
this.pos.Write(sw, "pos");
if (this.numFmt != null)
this.numFmt.Write(sw, "w:numFmt");
this.numFmt.Write(sw, "numFmt");
if (this.numStart != null)
this.numStart.Write(sw, "w:numStart");
this.numStart.Write(sw, "numStart");
if (this.numRestart != null)
this.numRestart.Write(sw, "w:numRestart");
this.numRestart.Write(sw, "numRestart");
sw.Write(string.Format("</w:{0}>", nodeName));
}

Expand Down Expand Up @@ -1649,13 +1649,13 @@ internal void Write(StreamWriter sw, string nodeName)
sw.Write(string.Format("<w:{0}", nodeName));
sw.Write(">");
if (this.pos != null)
this.pos.Write(sw, "w:pos");
this.pos.Write(sw, "pos");
if (this.numFmt != null)
this.numFmt.Write(sw, "w:numFmt");
this.numFmt.Write(sw, "numFmt");
if (this.numStart != null)
this.numStart.Write(sw, "w:numStart");
this.numStart.Write(sw, "numStart");
if (this.numRestart != null)
this.numRestart.Write(sw, "w:numRestart");
this.numRestart.Write(sw, "numRestart");
sw.Write(string.Format("</w:{0}>", nodeName));
}

Expand Down
40 changes: 20 additions & 20 deletions ooxml/OpenXmlFormats/Wordprocessing/Paragraph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2068,43 +2068,43 @@ internal void Write(StreamWriter sw, string nodeName)
XmlHelper.WriteAttribute(sw, "w:rsidSect", this.rsidSect);
sw.Write(">");
if (this.footnotePr != null)
this.footnotePr.Write(sw, "w:footnotePr");
this.footnotePr.Write(sw, "footnotePr");
if (this.endnotePr != null)
this.endnotePr.Write(sw, "w:endnotePr");
this.endnotePr.Write(sw, "endnotePr");
if (this.type != null)
this.type.Write(sw, "w:type");
this.type.Write(sw, "type");
if (this.pgSz != null)
this.pgSz.Write(sw, "w:pgSz");
this.pgSz.Write(sw, "pgSz");
if (this.pgMar != null)
this.pgMar.Write(sw, "w:pgMar");
this.pgMar.Write(sw, "pgMar");
if (this.paperSrc != null)
this.paperSrc.Write(sw, "w:paperSrc");
this.paperSrc.Write(sw, "paperSrc");
if (this.pgBorders != null)
this.pgBorders.Write(sw, "w:pgBorders");
this.pgBorders.Write(sw, "pgBorders");
if (this.lnNumType != null)
this.lnNumType.Write(sw, "w:lnNumType");
this.lnNumType.Write(sw, "lnNumType");
if (this.pgNumType != null)
this.pgNumType.Write(sw, "w:pgNumType");
this.pgNumType.Write(sw, "pgNumType");
if (this.cols != null)
this.cols.Write(sw, "w:cols");
this.cols.Write(sw, "cols");
if (this.formProt != null)
this.formProt.Write(sw, "w:formProt");
this.formProt.Write(sw, "formProt");
if (this.vAlign != null)
this.vAlign.Write(sw, "w:vAlign");
this.vAlign.Write(sw, "vAlign");
if (this.noEndnote != null)
this.noEndnote.Write(sw, "w:noEndnote");
this.noEndnote.Write(sw, "noEndnote");
if (this.titlePg != null)
this.titlePg.Write(sw, "w:titlePg");
this.titlePg.Write(sw, "titlePg");
if (this.textDirection != null)
this.textDirection.Write(sw, "w:textDirection");
this.textDirection.Write(sw, "textDirection");
if (this.bidi != null)
this.bidi.Write(sw, "w:bidi");
this.bidi.Write(sw, "bidi");
if (this.rtlGutter != null)
this.rtlGutter.Write(sw, "w:rtlGutter");
this.rtlGutter.Write(sw, "rtlGutter");
if (this.docGrid != null)
this.docGrid.Write(sw, "w:docGrid");
this.docGrid.Write(sw, "docGrid");
if (this.printerSettings != null)
this.printerSettings.Write(sw, "w:printerSettings");
this.printerSettings.Write(sw, "printerSettings");
sw.Write(string.Format("</w:{0}>", nodeName));
}

Expand Down Expand Up @@ -6690,7 +6690,7 @@ public CT_RPrChange()
XmlHelper.WriteAttribute(sw, "r:id", this.id);
sw.Write(">");
if (this.rPr != null)
this.rPr.Write(sw, "w:rPr");
this.rPr.Write(sw, "rPr");
sw.Write(string.Format("</w:{0}>", nodeName));
}

Expand Down
2 changes: 1 addition & 1 deletion ooxml/OpenXmlFormats/Wordprocessing/Run.cs
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ internal void Write(StreamWriter sw, string nodeName)
else if (o is CT_Br)
((CT_Br)o).Write(sw, "br");
else if (o is CT_Markup)
((CT_Markup)o).Write(sw, "w:commentReference");
((CT_Markup)o).Write(sw, "commentReference");
else if (o is CT_Empty && this.ItemsElementName[i] == RunItemsChoiceType.continuationSeparator)
sw.Write("<w:continuationSeparator/>");
else if (o is CT_Empty && this.ItemsElementName[i] == RunItemsChoiceType.cr)
Expand Down

0 comments on commit ca667de

Please sign in to comment.