X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=WPF%2FUnitTest%2FDummyRender.cs;h=abe65d69770c72f2d32b32f91147f27099ecf68d;hb=b7936584dd8ebbee3f900b7e23bc5bae4ad232cc;hp=9ea3b5ee623856030d9baefafe767e7f622c3958;hpb=1226b3eb0c52fabb85117d4078564fe335aa1351;p=fooeditengine%2FFooEditEngine.git diff --git a/WPF/UnitTest/DummyRender.cs b/WPF/UnitTest/DummyRender.cs index 9ea3b5e..abe65d6 100644 --- a/WPF/UnitTest/DummyRender.cs +++ b/WPF/UnitTest/DummyRender.cs @@ -120,7 +120,7 @@ namespace UnitTest throw new NotImplementedException(); } - public void DrawOneLine(LineToIndexTable lti, int row, double x, double y, IEnumerable SelectRanges) + public void DrawOneLine(Document doc, LineToIndexTable lti, int row, double x, double y) { throw new NotImplementedException(); } @@ -130,11 +130,6 @@ namespace UnitTest throw new NotImplementedException(); } - public ITextLayout CreateLaytout(string str, SyntaxInfo[] syntaxCollection, IEnumerable MarkerRanges) - { - return new DummyTextLayout(); - } - public void DrawGripper(Point p, double radius) { throw new NotImplementedException(); @@ -147,6 +142,11 @@ namespace UnitTest public void EndClipRect() { } + + public ITextLayout CreateLaytout(string str, SyntaxInfo[] syntaxCollection, IEnumerable MarkerRanges, IEnumerable Selections, double WrapWidth) + { + return new DummyTextLayout(); + } } class DummyTextLayout : ITextLayout { @@ -199,5 +199,15 @@ namespace UnitTest { this.Disposed = true; } + + public int GetIndexFromPostion(double x, double y) + { + return 0; + } + + public Point GetPostionFromIndex(int index) + { + return new Point(0,0); + } } }