OSDN Git Service

テストのビルドが失敗していた
[fooeditengine/FooEditEngine.git] / WPF / UnitTest / DummyRender.cs
index 1ba5f38..abe65d6 100644 (file)
@@ -52,6 +52,30 @@ namespace UnitTest
             set;
         }
 
+        public bool ShowFullSpace
+        {
+            get;
+            set;
+        }
+
+        public bool ShowHalfSpace
+        {
+            get;
+            set;
+        }
+
+        public bool ShowTab
+        {
+            get;
+            set;
+        }
+
+        public bool ShowLineBreak
+        {
+            get;
+            set;
+        }
+
         public event ChangedRenderResourceEventHandler ChangedRenderResource;
 
         public event EventHandler ChangedRightToLeft;
@@ -76,7 +100,7 @@ namespace UnitTest
             throw new NotImplementedException();
         }
 
-        public void DrawString(string str, double x, double y, StringAlignment align, Size layoutRect)
+        public void DrawString(string str, double x, double y, StringAlignment align, Size layoutRect,StringColorType type)
         {
             throw new NotImplementedException();
         }
@@ -96,17 +120,30 @@ namespace UnitTest
             throw new NotImplementedException();
         }
 
-        public void DrawOneLine(LineToIndexTable lti, int row, double x, double y, IEnumerable<Selection> SelectRanges)
+        public void DrawOneLine(Document doc, LineToIndexTable lti, int row, double x, double y)
         {
             throw new NotImplementedException();
         }
 
-        public List<LineToIndexTableData> BreakLine(Document doc, int startIndex, int endIndex, double wrapwidth)
+        public List<LineToIndexTableData> BreakLine(Document doc,LineToIndexTable layoutLineCollection, int startIndex, int endIndex, double wrapwidth)
         {
             throw new NotImplementedException();
         }
 
-        public ITextLayout CreateLaytout(string str, SyntaxInfo[] syntaxCollection, IEnumerable<Marker> MarkerRanges)
+        public void DrawGripper(Point p, double radius)
+        {
+            throw new NotImplementedException();
+        }
+
+        public void BeginClipRect(Rectangle rect)
+        {
+        }
+
+        public void EndClipRect()
+        {
+        }
+
+        public ITextLayout CreateLaytout(string str, SyntaxInfo[] syntaxCollection, IEnumerable<Marker> MarkerRanges, IEnumerable<Selection> Selections, double WrapWidth)
         {
             return new DummyTextLayout();
         }
@@ -136,27 +173,41 @@ namespace UnitTest
 
         public int GetIndexFromColPostion(double x)
         {
-            throw new NotImplementedException();
+            return 0;
         }
 
         public double GetWidthFromIndex(int index)
         {
-            throw new NotImplementedException();
+            return 0;
         }
 
         public double GetColPostionFromIndex(int index)
         {
-            throw new NotImplementedException();
+            return index;
         }
 
         public int AlignIndexToNearestCluster(int index, AlignDirection flow)
         {
-            throw new NotImplementedException();
+            if(flow == AlignDirection.Back)
+                return Math.Max(index - 1,0);
+            if (flow == AlignDirection.Forward)
+                return index + 1;
+            throw new ArgumentOutOfRangeException("flowの値がおかしい");
         }
 
         public void Dispose()
         {
             this.Disposed = true;
         }
+
+        public int GetIndexFromPostion(double x, double y)
+        {
+            return 0;
+        }
+
+        public Point GetPostionFromIndex(int index)
+        {
+            return new Point(0,0);
+        }
     }
 }