コード例 #1
0
        object MathML.MathMLVisitor.Visit(MathMLMathElement e, object args)
        {
            MathMLElement c = (MathMLElement)args;
            MathMLElement n = null;

            switch (selection)
            {
            case SelectionType.Prev:
            {
                if ((n = PreviousMathSibling(c)) != null)
                {
                    return(n);
                }
                else
                {
                    selection = SelectionType.Start;
                    return(c.Accept(this, null));
                }
            }

            case SelectionType.Next:
            {
                if ((n = NextMathSibling(c)) != null)
                {
                    selection = SelectionType.Start;
                    index     = 0;
                    return(n.Accept(this, null));
                }
                else
                {
                    selection = SelectionType.End;
                    return(c.Accept(this, null));
                }
            }

            case SelectionType.Start:
            {
                n = e.FirstChild as MathMLElement;
                return(n != null?n.Accept(this, null) : null);
            }

            case SelectionType.End:
            {
                n = e.LastChild as MathMLElement;
                return(n != null?n.Accept(this, null) : null);
            }

            default:
            {
                return(null);
            }
            }
        }
コード例 #2
0
ファイル: MathMLMeasurer.cs プロジェクト: Altaxo/Altaxo
		object MathML.MathMLVisitor.Visit(MathMLMathElement e, object args)
		{
			return ((Area)formatter.Visit(e, args)).BoundingBox;
		}
コード例 #3
0
ファイル: WinGraphicsRenderer.cs プロジェクト: Altaxo/Altaxo
 public void SetMathElement(MathMLMathElement value)
   {
     mathElement = value;
   }
コード例 #4
0
 object MathML.MathMLVisitor.Visit(MathMLMathElement e, object args)
 {
     return(((Area)formatter.Visit(e, args)).BoundingBox);
 }
コード例 #5
0
 public void SetMathElement(MathMLMathElement value)
 {
     mathElement = value;
 }