OSDN Git Service

MVVM化の準備のため、RectSelectionとIndentModeをDocumentに移動させた
authorgdkhd812 <test@nnn.co.jp>
Sun, 25 Oct 2015 10:59:27 +0000 (16:29 +0530)
committergdkhd812 <test@nnn.co.jp>
Sun, 25 Oct 2015 10:59:27 +0000 (16:29 +0530)
Core/Controller.cs
Core/Document.cs

index dd051eb..fd16593 100644 (file)
@@ -74,8 +74,8 @@ namespace FooEditEngine
         /// </summary>
         public bool RectSelection
         {
-            get;
-            set;
+            get { return this.Document.RectSelection; }
+            set { this.Document.RectSelection = value; }
         }
 
         /// <summary>
@@ -83,8 +83,8 @@ namespace FooEditEngine
         /// </summary>
         public IndentMode IndentMode
         {
-            get;
-            set;
+            get { return this.Document.IndentMode; }
+            set { this.Document.IndentMode = value; }
         }
 
         /// <summary>
index c9c41aa..62b9668 100644 (file)
@@ -190,6 +190,24 @@ namespace FooEditEngine
         }
 
         /// <summary>
+        /// 矩形選択モードなら真を返し、そうでない場合は偽を返す
+        /// </summary>
+        public bool RectSelection
+        {
+            get;
+            set;
+        }
+
+        /// <summary>
+        /// インデントの方法を表す
+        /// </summary>
+        public IndentMode IndentMode
+        {
+            get;
+            set;
+        }
+
+        /// <summary>
         /// ラインマーカーを描くなら偽。そうでなければ真
         /// </summary>
         public bool HideLineMarker