Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 1 addition & 28 deletions OpenXmlFormats/Shared/Math.cs
Original file line number Diff line number Diff line change
Expand Up @@ -617,12 +617,10 @@ public static CT_OnOff Parse(XmlNode node, XmlNamespaceManager namespaceManager)
return ctObj;
}



internal void Write(StreamWriter sw, string nodeName)
{
sw.WriteStart("m", nodeName);
if(this.val== ST_OnOff.off||this.val== ST_OnOff.Value0)
if(this.val== ST_OnOff.off||this.val== ST_OnOff.False)
XmlHelper.WriteAttribute(sw, "m:val", "0");
else
XmlHelper.WriteAttribute(sw, "m:val", "1");
Expand Down Expand Up @@ -655,38 +653,13 @@ public bool valSpecified
}
}
}


[Serializable]
[XmlType(Namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math")]
public enum ST_OnOff
{
/// <summary>
/// False
/// </summary>
[XmlEnum("0")]
Value0 = 0,

/// <summary>
/// True
/// </summary>
[XmlEnum("1")]
Value1 = 1,

on,


off,
}


[Serializable]

[XmlType(Namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math")]
[XmlRoot(Namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math", IsNullable = true)]
public class CT_BreakBinSub
{

private ST_BreakBinSub valField;

private bool valFieldSpecified;
Expand Down
13 changes: 1 addition & 12 deletions OpenXmlFormats/Wordprocessing/BaseTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,6 @@ public enum ST_OnOff
/// True
/// </summary>
on,
///// <summary>
///// False
///// </summary>
//[XmlEnum("0")]
//Value0 = 0,

///// <summary>
///// True
///// </summary>
//[XmlEnum("1")]
//Value1 = 1,

/// <summary>
/// True
Expand All @@ -131,7 +120,7 @@ public enum ST_OnOff
/// False
/// </summary>
[XmlEnum("false")]
False,
False
}
/// <summary>
/// Long Hexadecimal Number
Expand Down
Loading