context: // <file>
  //     <copyright see="prj:///doc/copyright.txt"/>
  //     <license see="prj:///doc/license.txt"/>
  //     <owner name="none" email=""/>
  //     <version>$Revision$</version>
  // </file>
  
  using System;
  using System.Drawing;
  using System.Text;
  
  namespace ICSharpCode.TextEditor.Document
  {
  	public enum BracketMatchingStyle {
  		Before,
  		After
  	}
  	
  	public class DefaultTextEditorProperties : ITextEditorProperties
  	{
  		int                   tabIndent             = 4;
  		int                   indentationSize       = 4;
  		IndentStyle           indentStyle           = IndentStyle.Smart;
  		DocumentSelectionMode documentSelectionMode = DocumentSelectionMode.Normal;
  		Encoding              encoding              = System.Text.Encoding.UTF8;
  		BracketMatchingStyle  bracketMatchingStyle  = BracketMatchingStyle.After;
  		FontContainer fontContainer;
  		static Font DefaultFont;
  		
  		public DefaultTextEditorProperties()
  		{
  			if (DefaultFont == null) {
  				DefaultFont = new Font("Courier New", 10);
  			}
  			this.fontContainer = new FontContainer(DefaultFont);
  		}
  		
  		bool        allowCaretBeyondEOL = false;
  
  		bool        caretLine           = false;
  		
  		bool        showMatchingBracket = true;
  		bool        showLineNumbers     = true;
  		
  		bool        showSpaces          = false;
  		bool        showTabs            = false;
  		bool        showEOLMarker       = false;
  		
  		bool        showInvalidLines    = false;
  		
  		bool        isIconBarVisible    = false;
  		bool        enableFolding       = true;
  		bool        showHorizontalRuler = false;
  		bool        showVerticalRuler   = true;
  		bool        convertTabsToSpaces = false;
  		System.Drawing.Text.TextRenderingHint textRenderingHint = System.Drawing.Text.TextRenderingHint.SystemDefault;
  		bool        mouseWheelScrollDown = true;
  		bool        mouseWheelTextZoom   = true;
  		
  		bool        hideMouseCursor      = false;
  		bool        cutCopyWholeLine     = true;
  		
  		int         verticalRulerRow    = 80;
  		LineViewerStyle  lineViewerStyle = LineViewerStyle.None;
  		string      lineTerminator = "\r\n";
  		bool        autoInsertCurlyBracket = true;
  		bool        supportReadOnlySegments = false;
  		
  		public int TabIndent {
  			get {
  				return tabIndent;
  			}
  			set {
  				tabIndent = value;
  			}
  		}
  
  		public int IndentationSize {
  			get { return indentationSize; }
  			set { indentationSize = value; }
  		}
  		
  		public IndentStyle IndentStyle {
  			get {
  				return indentStyle;
  			}
  			set {
  				indentStyle = value;
  			}
  		}
  
  		public bool CaretLine {
  			get
  			{
  				return caretLine;
  			}
  			set
  			{
  				caretLine = value;
  			}
  		}
  
  		public DocumentSelectionMode DocumentSelectionMode {
  			get {
  				return documentSelectionMode;
  			}
  			set {
  				documentSelectionMode = value;
  			}
  		}
  		public bool AllowCaretBeyondEOL {
  			get {
  				return allowCaretBeyondEOL;
  			}
  			set {
  				allowCaretBeyondEOL = value;
  			}
  		}
  		public bool ShowMatchingBracket {
  			get {
  				return showMatchingBracket;
  			}
  			set {
  				showMatchingBracket = value;
  			}
  		}
  		public bool ShowLineNumbers {
  			get {
  				return showLineNumbers;
  			}
  			set {
  				showLineNumbers = value;
  			}
  		}
  		public bool ShowSpaces {
  			get {
  				return showSpaces;
  			}
  			set {
  				showSpaces = value;
  			}
  		}
  		public bool ShowTabs {
  			get {
  				return showTabs;
  			}
  			set {
  				showTabs = value;
  			}
  		}
  		public bool ShowEOLMarker {
  			get {
  				return showEOLMarker;
  			}
  			set {
  				showEOLMarker = value;
  			}
  		}
  		public bool ShowInvalidLines {
  			get {
  				return showInvalidLines;
  			}
  			set {
  				showInvalidLines = value;
  			}
  		}
  		public bool IsIconBarVisible {
  			get {
  				return isIconBarVisible;
  			}
  			set {
  				isIconBarVisible = value;
  			}
  		}
  		public bool EnableFolding {
  			get {
  				return enableFolding;
  			}
  			set {
  				enableFolding = value;
  			}
  		}
  		public bool ShowHorizontalRuler {
  			get {
  				return showHorizontalRuler;
  			}
  			set {
  				showHorizontalRuler = value;
  			}
  		}
  		public bool ShowVerticalRuler {
  			get {
  				return showVerticalRuler;
  			}
  			set {
  				showVerticalRuler = value;
  			}
  		}
  		public bool ConvertTabsToSpaces {
  			get {
  				return convertTabsToSpaces;
  			}
  			set {
  				convertTabsToSpaces = value;
  			}
  		}
  		public System.Drawing.Text.TextRenderingHint TextRenderingHint {
  
gt: 			get { return textRenderingHint; }