Skip to content

Commit

Permalink
Minor improvements to constructors and MathMLLength
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminTMilnes committed Mar 30, 2016
1 parent 24999e3 commit 3efded0
Show file tree
Hide file tree
Showing 27 changed files with 82 additions and 47 deletions.
2 changes: 1 addition & 1 deletion MathML.Tests/MathMLGlyphTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void EmptyMathMLGlyphTest()
[TestMethod]
public void MathMLGlyphWithAllAttributesTest()
{
Assert.AreEqual("<mglyph src=\"somefile.png\" alt=\"Some Text\" width=\"12pt\" height=\"14mm\" valign=\"16px\"></mglyph>", _serializer.SerializeMathMLNode(new MathMLGlyph() { AlternativeText = "Some Text", Source = "somefile.png", Width = new MathMLLength(12, MathMLLengthUnit.Points), Height = new MathMLLength(14, MathMLLengthUnit.Millimeters), VerticalAlignment = new MathMLLength(16, MathMLLengthUnit.Pixels) }));
Assert.AreEqual("<mglyph src=\"somefile.png\" alt=\"Some Text\" width=\"12pt\" height=\"14mm\" valign=\"16px\"></mglyph>", _serializer.SerializeMathMLNode(new MathMLGlyph() { AlternativeText = "Some Text", Source = "somefile.png", Width = new MathMLMeasuredLength(12, MathMLMeasuredLengthUnit.Points), Height = new MathMLMeasuredLength(14, MathMLMeasuredLengthUnit.Millimeters), VerticalAlignment = new MathMLMeasuredLength(16, MathMLMeasuredLengthUnit.Pixels) }));
}
}
}
2 changes: 1 addition & 1 deletion MathML.Tests/MathMLMultiscriptsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void EmptyMathMLMultiscriptsTest()
[TestMethod]
public void MathMLMultiscriptsWithAllAttributesTest()
{
Assert.AreEqual("<mmultiscripts subscriptshift=\"4pt\" superscriptshift=\"8mm\"></mmultiscripts>", _serializer.SerializeMathMLNode(new MathMLMultiscripts() { SubscriptShift = new MathMLLength(4, MathMLLengthUnit.Points), SuperscriptShift = new MathMLLength(8, MathMLLengthUnit.Millimeters) }));
Assert.AreEqual("<mmultiscripts subscriptshift=\"4pt\" superscriptshift=\"8mm\"></mmultiscripts>", _serializer.SerializeMathMLNode(new MathMLMultiscripts() { SubscriptShift = new MathMLMeasuredLength(4, MathMLMeasuredLengthUnit.Points), SuperscriptShift = new MathMLMeasuredLength(8, MathMLMeasuredLengthUnit.Millimeters) }));
}
}
}
2 changes: 1 addition & 1 deletion MathML.Tests/MathMLOperatorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void MathMLOperatorWithContentTest()
[TestMethod]
public void MathMLOperatorWithAllAttributes()
{
Assert.AreEqual("<mo dir=\"rtl\" mathvariant=\"bold\" form=\"postfix\" largeop=\"true\" movablelimits=\"true\" accent=\"true\" fence=\"true\" stretchy=\"true\" symmetric=\"true\" lspace=\"10pt\" rspace=\"5mm\"></mo>", _serializer.SerializeMathMLNode(new MathMLOperator() { Accent = true, Fence = true, Form = MathMLOperatorForm.Postfix, LargeOperator = true, MovableLimits = true, Stretchy = true, Symmetric = true, LeftSpace = new MathMLLength(10, MathMLLengthUnit.Points), RightSpace = new MathMLLength(5, MathMLLengthUnit.Millimeters), TextDirection = MathMLTextDirection.RightToLeft, MathVariant = MathMLMathVariant.Bold }));
Assert.AreEqual("<mo dir=\"rtl\" mathvariant=\"bold\" form=\"postfix\" largeop=\"true\" movablelimits=\"true\" accent=\"true\" fence=\"true\" stretchy=\"true\" symmetric=\"true\" lspace=\"10pt\" rspace=\"5mm\"></mo>", _serializer.SerializeMathMLNode(new MathMLOperator() { Accent = true, Fence = true, Form = MathMLOperatorForm.Postfix, LargeOperator = true, MovableLimits = true, Stretchy = true, Symmetric = true, LeftSpace = new MathMLMeasuredLength(10, MathMLMeasuredLengthUnit.Points), RightSpace = new MathMLMeasuredLength(5, MathMLMeasuredLengthUnit.Millimeters), TextDirection = MathMLTextDirection.RightToLeft, MathVariant = MathMLMathVariant.Bold }));
}
}
}
2 changes: 1 addition & 1 deletion MathML.Tests/MathMLPaddedTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void EmptyMathMLPaddedTest()
[TestMethod]
public void MathMLPaddedWithAllAttributes()
{
Assert.AreEqual("<mpadded width=\"10pt\" height=\"5mm\" depth=\"20px\" lspace=\"1in\" voffset=\"15em\"></mpadded>", _serializer.SerializeMathMLNode(new MathMLPadded() { Width = new MathMLLength(10, MathMLLengthUnit.Points), Height = new MathMLLength(5, MathMLLengthUnit.Millimeters), Depth = new MathMLLength(20, MathMLLengthUnit.Pixels), LeftSpace = new MathMLLength(1, MathMLLengthUnit.Inches), VerticalOffset = new MathMLLength(15, MathMLLengthUnit.Em) }));
Assert.AreEqual("<mpadded width=\"10pt\" height=\"5mm\" depth=\"20px\" lspace=\"1in\" voffset=\"15em\"></mpadded>", _serializer.SerializeMathMLNode(new MathMLPadded() { Width = new MathMLMeasuredLength(10, MathMLMeasuredLengthUnit.Points), Height = new MathMLMeasuredLength(5, MathMLMeasuredLengthUnit.Millimeters), Depth = new MathMLMeasuredLength(20, MathMLMeasuredLengthUnit.Pixels), LeftSpace = new MathMLMeasuredLength(1, MathMLMeasuredLengthUnit.Inches), VerticalOffset = new MathMLMeasuredLength(15, MathMLMeasuredLengthUnit.Em) }));
}
}
}
2 changes: 1 addition & 1 deletion MathML.Tests/MathMLSpaceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void EmptyMathMLSpaceTest()
[TestMethod]
public void MathMLSpaceWithAllAttributesTest()
{
Assert.AreEqual("<mspace width=\"10pt\" height=\"5mm\" depth=\"20px\" linebreak=\"newline\"></mspace>", _serializer.SerializeMathMLNode(new MathMLSpace() { Width = new MathMLLength(10, MathMLLengthUnit.Points), Height = new MathMLLength(5, MathMLLengthUnit.Millimeters), Depth = new MathMLLength(20, MathMLLengthUnit.Pixels), LineBreak = MathMLLineBreak.NewLine }));
Assert.AreEqual("<mspace width=\"10pt\" height=\"5mm\" depth=\"20px\" linebreak=\"newline\"></mspace>", _serializer.SerializeMathMLNode(new MathMLSpace() { Width = new MathMLMeasuredLength(10, MathMLMeasuredLengthUnit.Points), Height = new MathMLMeasuredLength(5, MathMLMeasuredLengthUnit.Millimeters), Depth = new MathMLMeasuredLength(20, MathMLMeasuredLengthUnit.Pixels), LineBreak = MathMLLineBreak.NewLine }));
}
}
}
2 changes: 1 addition & 1 deletion MathML.Tests/MathMLStyleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void EmptyMathMLStyleTest()
[TestMethod]
public void MathMLStyleWithAllAttributesTest()
{
Assert.AreEqual("<mstyle dir=\"rtl\" displaystyle=\"false\" decimalpoint=\",\" infixlinebreakstyle=\"duplicate\" scriptlevel=\"10\" scriptminsize=\"15mm\" scriptsizemultiplier=\"2.5\"></mstyle>", _serializer.SerializeMathMLNode(new MathMLStyle() { TextDirection = MathMLTextDirection.RightToLeft, DisplayStyle = false, DecimalPoint = ',', InfixLineBreakStyle = MathMLInfixLineBreakStyle.Duplicate, ScriptLevel = 10, ScriptMinimumSize = new MathMLLength(15, MathMLLengthUnit.Millimeters), ScriptSizeMultiplier = 2.5 }));
Assert.AreEqual("<mstyle dir=\"rtl\" displaystyle=\"false\" decimalpoint=\",\" infixlinebreakstyle=\"duplicate\" scriptlevel=\"10\" scriptminsize=\"15mm\" scriptsizemultiplier=\"2.5\"></mstyle>", _serializer.SerializeMathMLNode(new MathMLStyle() { TextDirection = MathMLTextDirection.RightToLeft, DisplayStyle = false, DecimalPoint = ',', InfixLineBreakStyle = MathMLInfixLineBreakStyle.Duplicate, ScriptLevel = 10, ScriptMinimumSize = new MathMLMeasuredLength(15, MathMLMeasuredLengthUnit.Millimeters), ScriptSizeMultiplier = 2.5 }));
}
}
}
2 changes: 1 addition & 1 deletion MathML.Tests/MathMLSubscriptSuperscriptTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void EmptyMathMLSubscriptSuperscriptTest()
[TestMethod]
public void MathMLSubscriptSuperscriptWithAllAttributesTest()
{
Assert.AreEqual("<msubsup subscriptshift=\"10pt\" superscriptshift=\"15mm\"></msubsup>", _serializer.SerializeMathMLNode(new MathMLSubscriptSuperscript() { SubscriptShift = new MathMLLength(10, MathMLLengthUnit.Points), SuperscriptShift = new MathMLLength(15, MathMLLengthUnit.Millimeters) }));
Assert.AreEqual("<msubsup subscriptshift=\"10pt\" superscriptshift=\"15mm\"></msubsup>", _serializer.SerializeMathMLNode(new MathMLSubscriptSuperscript() { SubscriptShift = new MathMLMeasuredLength(10, MathMLMeasuredLengthUnit.Points), SuperscriptShift = new MathMLMeasuredLength(15, MathMLMeasuredLengthUnit.Millimeters) }));
}
}
}
2 changes: 1 addition & 1 deletion MathML.Tests/MathMLSubscriptTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void EmptyMathMLSubscriptTest()
[TestMethod]
public void MathMLSubscriptWithAllAttributesTest()
{
Assert.AreEqual("<msub subscriptshift=\"10pt\"></msub>", _serializer.SerializeMathMLNode(new MathMLSubscript() { Shift = new MathMLLength(10, MathMLLengthUnit.Points) }));
Assert.AreEqual("<msub subscriptshift=\"10pt\"></msub>", _serializer.SerializeMathMLNode(new MathMLSubscript() { Shift = new MathMLMeasuredLength(10, MathMLMeasuredLengthUnit.Points) }));
}
}
}
2 changes: 1 addition & 1 deletion MathML.Tests/MathMLSuperscriptTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void EmptyMathMLSuperscriptTest()
[TestMethod]
public void MathMLSuperscriptWithAllAttributes()
{
Assert.AreEqual("<msup superscriptshift=\"10pt\"></msup>", _serializer.SerializeMathMLNode(new MathMLSuperscript() { Shift = new MathMLLength(10, MathMLLengthUnit.Points) }));
Assert.AreEqual("<msup superscriptshift=\"10pt\"></msup>", _serializer.SerializeMathMLNode(new MathMLSuperscript() { Shift = new MathMLMeasuredLength(10, MathMLMeasuredLengthUnit.Points) }));
}
}
}
4 changes: 2 additions & 2 deletions MathML/MathML.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
<Compile Include="MathMLInfixLineBreakStyle.cs" />
<Compile Include="MathMLLabeledTableRow.cs" />
<Compile Include="MathMLLabeledTableRowPlacement.cs" />
<Compile Include="MathMLLength.cs" />
<Compile Include="MathMLLengthUnit.cs" />
<Compile Include="MathMLMeasuredLength.cs" />
<Compile Include="MathMLMeasuredLengthUnit.cs" />
<Compile Include="MathMLLineBreak.cs" />
<Compile Include="MathMLLongDivision.cs" />
<Compile Include="MathMLMath.cs" />
Expand Down
2 changes: 1 addition & 1 deletion MathML/MathMLColor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace MathML
{
public class MathMLColor
public abstract class MathMLColor
{
}
}
8 changes: 8 additions & 0 deletions MathML/MathMLEnclose.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ namespace MathML
public class MathMLEnclose : MathMLElement
{
[MathMLAttributeName("notation")]
[MathMLAttributeOrderIndex(7)]
public MathMLEncloseNotation Notation { get; set; }

public MathMLEnclose() : this(MathMLEncloseNotation.LongDivision) { }

public MathMLEnclose(MathMLEncloseNotation notation)
{
Notation = notation;
}
}
}
6 changes: 3 additions & 3 deletions MathML/MathMLGlyph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ public class MathMLGlyph : MathMLElement

[MathMLAttributeName("width")]
[MathMLAttributeOrderIndex(9)]
public MathMLLength Width { get; set; }
public MathMLMeasuredLength Width { get; set; }

[MathMLAttributeName("height")]
[MathMLAttributeOrderIndex(10)]
public MathMLLength Height { get; set; }
public MathMLMeasuredLength Height { get; set; }

[MathMLAttributeName("valign")]
[MathMLAttributeOrderIndex(11)]
public MathMLLength VerticalAlignment { get; set; }
public MathMLMeasuredLength VerticalAlignment { get; set; }
}
}
10 changes: 7 additions & 3 deletions MathML/MathMLMath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ public class MathMLMath : MathMLElement
[DefaultValue(MathMLOverflow.LineBreak)]
public MathMLOverflow Overflow { get; set; }

public MathMLMath()
public MathMLMath() : this(MathMLDisplay.Block, MathMLOverflow.LineBreak) { }

public MathMLMath(MathMLDisplay display) : this(display, MathMLOverflow.LineBreak) { }

public MathMLMath(MathMLDisplay display, MathMLOverflow overflow)
{
Display = MathMLDisplay.Block;
Overflow = MathMLOverflow.LineBreak;
Display = display;
Overflow = overflow;
}
}
}
6 changes: 3 additions & 3 deletions MathML/MathMLLength.cs → MathML/MathMLMeasuredLength.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

namespace MathML
{
public class MathMLLength
public class MathMLMeasuredLength
{
public double Quantity { get; private set; }
public MathMLLengthUnit Units { get; private set; }
public MathMLMeasuredLengthUnit Units { get; private set; }

public MathMLLength(double quantity, MathMLLengthUnit units)
public MathMLMeasuredLength(double quantity, MathMLMeasuredLengthUnit units)
{
Quantity = quantity;
Units = units;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace MathML
{
public enum MathMLLengthUnit
public enum MathMLMeasuredLengthUnit
{
[MathMLAttributeValue("em")]
Em = 0,
Expand Down
4 changes: 2 additions & 2 deletions MathML/MathMLMultiscripts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ namespace MathML
public class MathMLMultiscripts : MathMLElement
{
[MathMLAttributeName("subscriptshift")]
public MathMLLength SubscriptShift { get; set; }
public MathMLMeasuredLength SubscriptShift { get; set; }

[MathMLAttributeName("superscriptshift")]
public MathMLLength SuperscriptShift { get; set; }
public MathMLMeasuredLength SuperscriptShift { get; set; }
}
}
4 changes: 2 additions & 2 deletions MathML/MathMLOperator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ public class MathMLOperator : MathMLElement

[MathMLAttributeName("lspace")]
[MathMLAttributeOrderIndex(17)]
public MathMLLength LeftSpace { get; set; }
public MathMLMeasuredLength LeftSpace { get; set; }

[MathMLAttributeName("rspace")]
[MathMLAttributeOrderIndex(18)]
public MathMLLength RightSpace { get; set; }
public MathMLMeasuredLength RightSpace { get; set; }

[MathMLAttributeName("dir")]
[MathMLAttributeOrderIndex(7)]
Expand Down
7 changes: 7 additions & 0 deletions MathML/MathMLOver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,12 @@ public class MathMLOver : MathMLElement
[MathMLAttributeOrderIndex(7)]
[DefaultValue(false)]
public bool Accent { get; set; }

public MathMLOver() : this(false) { }

public MathMLOver(bool accent)
{
Accent = accent;
}
}
}
10 changes: 5 additions & 5 deletions MathML/MathMLPadded.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ public class MathMLPadded : MathMLElement
{
[MathMLAttributeName("width")]
[MathMLAttributeOrderIndex(7)]
public MathMLLength Width { get; set; }
public MathMLMeasuredLength Width { get; set; }

[MathMLAttributeName("height")]
[MathMLAttributeOrderIndex(8)]
public MathMLLength Height { get; set; }
public MathMLMeasuredLength Height { get; set; }

[MathMLAttributeName("depth")]
[MathMLAttributeOrderIndex(9)]
public MathMLLength Depth { get; set; }
public MathMLMeasuredLength Depth { get; set; }

[MathMLAttributeName("lspace")]
[MathMLAttributeOrderIndex(10)]
public MathMLLength LeftSpace { get; set; }
public MathMLMeasuredLength LeftSpace { get; set; }

[MathMLAttributeName("voffset")]
[MathMLAttributeOrderIndex(11)]
public MathMLLength VerticalOffset { get; set; }
public MathMLMeasuredLength VerticalOffset { get; set; }
}
}
4 changes: 2 additions & 2 deletions MathML/MathMLSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ private string SerializeAttributeValue(object value)
else if (value is MathMLTableVerticalAlignment) return SerializeEnumeration((MathMLTableVerticalAlignment)value);
else if (value is MathMLTextDirection) return SerializeEnumeration((MathMLTextDirection)value);
else if (value is MathMLUnderOverAlignment) return SerializeEnumeration((MathMLUnderOverAlignment)value);
else if (value is MathMLLength) return SerializeMathMLLength((MathMLLength)value);
else if (value is MathMLMeasuredLength) return SerializeMathMLLength((MathMLMeasuredLength)value);
else if (value is MathMLColor) return SerializeMathMLColor((MathMLColor)value);

throw new UnknownMathMLAttributeTypeException();
Expand All @@ -183,7 +183,7 @@ private string SerializeEnumeration<T>(T value)
return ((MathMLAttributeValue)attribute).Value;
}

private string SerializeMathMLLength(MathMLLength length)
private string SerializeMathMLLength(MathMLMeasuredLength length)
{
return string.Format("{0}{1}", length.Quantity.ToString(), SerializeEnumeration(length.Units));
}
Expand Down
6 changes: 3 additions & 3 deletions MathML/MathMLSpace.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ public class MathMLSpace : MathMLElement
{
[MathMLAttributeName("width")]
[MathMLAttributeOrderIndex(7)]
public MathMLLength Width { get; set; }
public MathMLMeasuredLength Width { get; set; }

[MathMLAttributeName("height")]
[MathMLAttributeOrderIndex(8)]
public MathMLLength Height { get; set; }
public MathMLMeasuredLength Height { get; set; }

[MathMLAttributeName("depth")]
[MathMLAttributeOrderIndex(9)]
public MathMLLength Depth { get; set; }
public MathMLMeasuredLength Depth { get; set; }

[MathMLAttributeName("linebreak")]
[MathMLAttributeOrderIndex(10)]
Expand Down
2 changes: 1 addition & 1 deletion MathML/MathMLStyle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class MathMLStyle : MathMLElement

[MathMLAttributeName("scriptminsize")]
[MathMLAttributeOrderIndex(12)]
public MathMLLength ScriptMinimumSize { get; set; }
public MathMLMeasuredLength ScriptMinimumSize { get; set; }

[MathMLAttributeName("scriptsizemultiplier")]
[MathMLAttributeOrderIndex(13)]
Expand Down
2 changes: 1 addition & 1 deletion MathML/MathMLSubscript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ namespace MathML
public class MathMLSubscript : MathMLElement
{
[MathMLAttributeName("subscriptshift")]
public MathMLLength Shift { get; set; }
public MathMLMeasuredLength Shift { get; set; }
}
}
4 changes: 2 additions & 2 deletions MathML/MathMLSubscriptSuperscript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ namespace MathML
public class MathMLSubscriptSuperscript : MathMLElement
{
[MathMLAttributeName("subscriptshift")]
public MathMLLength SubscriptShift { get; set; }
public MathMLMeasuredLength SubscriptShift { get; set; }

[MathMLAttributeName("superscriptshift")]
public MathMLLength SuperscriptShift { get; set; }
public MathMLMeasuredLength SuperscriptShift { get; set; }
}
}
2 changes: 1 addition & 1 deletion MathML/MathMLSuperscript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ namespace MathML
public class MathMLSuperscript : MathMLElement
{
[MathMLAttributeName("superscriptshift")]
public MathMLLength Shift { get; set; }
public MathMLMeasuredLength Shift { get; set; }
}
}
28 changes: 22 additions & 6 deletions MathML/MathMLTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ namespace MathML
public class MathMLTable : MathMLElement
{
[MathMLAttributeName("align")]
[DefaultValue(MathMLTableVerticalAlignment.Axis)]
public MathMLTableVerticalAlignment VerticalAlignment { get; set; }

[MathMLAttributeName("columnalign")]
Expand All @@ -19,28 +20,32 @@ public class MathMLTable : MathMLElement
public IList<MathMLTableLineStyle> ColumnLineStyle { get; set; }

[MathMLAttributeName("columnspacing")]
public MathMLLength ColumnSpacing { get; set; }
public MathMLMeasuredLength ColumnSpacing { get; set; }

[MathMLAttributeName("columnwidth")]
public MathMLLength ColumnWidth { get; set; }
public MathMLMeasuredLength ColumnWidth { get; set; }

[MathMLAttributeName("displaystyle")]
[DefaultValue(true)]
public bool DisplayStyle { get; set; }

[MathMLAttributeName("equalcolumns")]
[DefaultValue(false)]
public bool EqualColumnHeights { get; set; }

[MathMLAttributeName("equalrows")]
[DefaultValue(false)]
public bool EqualRowHeights { get; set; }

[MathMLAttributeName("frame")]
[DefaultValue(MathMLTableLineStyle.None)]
public MathMLTableLineStyle Frame { get; set; }

[MathMLAttributeName("framespacing")]
public MathMLLength FrameSpacing { get; set; }
public MathMLMeasuredLength FrameSpacing { get; set; }

[MathMLAttributeName("minlabelspacing")]
public MathMLLength MinimumLabelSpacing { get; set; }
public MathMLMeasuredLength MinimumLabelSpacing { get; set; }

[MathMLAttributeName("rowalign")]
public IList<MathMLTableVerticalAlignment> RowAlignment { get; set; }
Expand All @@ -49,12 +54,23 @@ public class MathMLTable : MathMLElement
public IList<MathMLTableLineStyle> RowLineStyle { get; set; }

[MathMLAttributeName("rowspacing")]
public MathMLLength RowSpacing { get; set; }
public MathMLMeasuredLength RowSpacing { get; set; }

[MathMLAttributeName("side")]
[DefaultValue(MathMLLabeledTableRowPlacement.Right)]
public MathMLLabeledTableRowPlacement Side { get; set; }

[MathMLAttributeName("width")]
public MathMLLength Width { get; set; }
public MathMLMeasuredLength Width { get; set; }

public MathMLTable()
{
VerticalAlignment = MathMLTableVerticalAlignment.Axis;
DisplayStyle = true;
EqualColumnHeights = false;
EqualRowHeights = false;
Frame = MathMLTableLineStyle.None;
Side = MathMLLabeledTableRowPlacement.Right;
}
}
}

0 comments on commit 3efded0

Please sign in to comment.