亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? texteditorpanel.cs

?? C#實現DHTML編輯器功能!
?? CS
字號:
// DINAMIC XML Editor
//
// Copyright (c) 2002-2003 Dusan Hlavaty
// mailto: duddo@atlas.cz
//
// This software is licensed under the terms of
// GNU General Public license
//
using System;
using System.Windows.Forms;
using System.Drawing;

using Crownwood.Magic.Docking;
 
using XML_editor.MyForms;
using XML_editor.Common;

namespace XML_editor.DockingPanels
{
	/// <summary>
	/// Dokovaci panel obsahujuci vlastnosti aktualneho editora a
	/// dovoluje ich menit 'za pochodu'.
	/// </summary>
	public class TextEditorPanel : Crownwood.Magic.Docking.Content
	{

//		TODO: ReadOnly

		/// <summary>
		/// odkaz na hlavny formular aplikacie
		/// </summary>
		private MainForm mainForm = null;

		private XML_editor.MyComponents.AxGroupBox groupBox = new XML_editor.MyComponents.AxGroupBox(280);
		private System.Windows.Forms.CheckBox checkBox_EOL = new System.Windows.Forms.CheckBox();
		private System.Windows.Forms.CheckBox checkBox_spaces = new System.Windows.Forms.CheckBox();
		private System.Windows.Forms.CheckBox checkBox_tabs = new System.Windows.Forms.CheckBox();
		private System.Windows.Forms.CheckBox checkBox_invalidLines = new System.Windows.Forms.CheckBox();
		private System.Windows.Forms.CheckBox checkBox_rightMargin = new System.Windows.Forms.CheckBox();
		private System.Windows.Forms.CheckBox checkBox_lineNumbers = new System.Windows.Forms.CheckBox();
		private System.Windows.Forms.NumericUpDown upDownRightMargin = new System.Windows.Forms.NumericUpDown();


		/// <summary>
		/// true = ze sa nebudu 'vyhadzovat' eventy pre stlacenie checkboxov, tlacitiel, ...
		/// </summary>
		private bool doNotFireEvents = false;

		// -------------------------------------------------------------------------
		/// <summary>
		/// odkaz na hlavny formular aplikacie
		/// </summary>
		public MainForm MainForm
		{
			get 
			{
				return this.mainForm;
			}
		}

		// -------------------------------------------------------------------------
		/// <summary>
		/// Inicializuje dokovaci panel obsahujuci vlastnosti aktualneho editora.
		/// </summary>
		/// <param name="mainForm">odkaz na hlavny formular aplikacie - <see cref="MainForm"/></param>
		/// <param name="manager">odkaz na <see cref="DockingManager"/>, ku ktoremu bude tento panel patrit</param>
		public TextEditorPanel(MainForm mainForm, DockingManager manager)
			                    : base(manager)
		{
			this.mainForm = mainForm;
			this.FullTitle = this.Title = "Text Editor";
 			
			System.Windows.Forms.ImageList i = new System.Windows.Forms.ImageList();
			i.Images.Add( IconProvider.LoadBitmap(this, "XML_editor.Icons.Properties.png") );
			this.ImageList = i;
			this.ImageIndex = 0;

			System.Windows.Forms.Label label1 = new System.Windows.Forms.Label();
			System.Windows.Forms.Label label2 = new System.Windows.Forms.Label();
			System.Windows.Forms.Label label3 = new System.Windows.Forms.Label();

			// 
			// groupBox
			// 
			this.groupBox.Controls.AddRange(new System.Windows.Forms.Control[] {
																																					  label1,
																																						this.checkBox_tabs,
																																						this.checkBox_spaces,
																																						this.checkBox_EOL,
																																						this.checkBox_invalidLines,
																																						label2, checkBox_lineNumbers, checkBox_rightMargin, this.upDownRightMargin, label3});
			this.groupBox.Name = "groupBox";
			this.groupBox.Size = new System.Drawing.Size(208, 256);
			this.groupBox.TabIndex = 1;
			this.groupBox.TabStop = false;

			// 
			// label1
			// 
			label1.AutoSize = true;
			label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(238)));
			label1.Location = new System.Drawing.Point(8, 16);
			label1.Name = "label1";
			label1.Size = new System.Drawing.Size(43, 13);
			label1.TabIndex = 3;
			label1.Text = "Special chars";

			// 
			// checkBox_EOL
			// 
			this.checkBox_EOL.Anchor = ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right);
			this.checkBox_EOL.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.checkBox_EOL.Location = new System.Drawing.Point(16, 32);
			this.checkBox_EOL.Name = "checkBox_EOL";
			this.checkBox_EOL.Size = new System.Drawing.Size(176, 32);
			this.checkBox_EOL.TabIndex = 0;
			this.checkBox_EOL.Text = "Show End Of Line";
			this.checkBox_EOL.CheckedChanged += new System.EventHandler(this.checkBox_EOL_CheckedChanged);
			// 
			// checkBox_spaces
			// 
			this.checkBox_spaces.Anchor = ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right);
			this.checkBox_spaces.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.checkBox_spaces.Location = new System.Drawing.Point(16, 64);
			this.checkBox_spaces.Name = "checkBox_spaces";
			this.checkBox_spaces.Size = new System.Drawing.Size(176, 32);
			this.checkBox_spaces.TabIndex = 1;
			this.checkBox_spaces.Text = "Show Spaces";
			this.checkBox_spaces.CheckedChanged += new System.EventHandler(this.checkBox_spaces_CheckedChanged);
			// 
			// checkBox_tabs
			// 
			this.checkBox_tabs.Anchor = ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right);
			this.checkBox_tabs.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.checkBox_tabs.Location = new System.Drawing.Point(16, 96);
			this.checkBox_tabs.Name = "checkBox_tabs";
			this.checkBox_tabs.Size = new System.Drawing.Size(176, 32);
			this.checkBox_tabs.TabIndex = 2;
			this.checkBox_tabs.Text = "Show Tabs";
			this.checkBox_tabs.CheckedChanged += new System.EventHandler(this.checkBox_tabs_CheckedChanged);

			// 
			// checkBox_invalidLines
			// 
			this.checkBox_invalidLines.Anchor = ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right);
			this.checkBox_invalidLines.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.checkBox_invalidLines.Location = new System.Drawing.Point(16, 128);
			this.checkBox_invalidLines.Name = "checkBox_invalidLines";
			this.checkBox_invalidLines.Size = new System.Drawing.Size(176, 32);
			this.checkBox_invalidLines.TabIndex = 3;
			this.checkBox_invalidLines.Text = "Show Invalid Lines";
			this.checkBox_invalidLines.CheckedChanged += new System.EventHandler(this.checkBox_invalidLines_CheckedChanged);

			// 
			// label2
			// 
			label2.AutoSize = true;
			label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(238)));
			label2.Location = new System.Drawing.Point(8, 160);
			label2.Name = "label2";
			label2.Size = new System.Drawing.Size(43, 13);
			label2.TabIndex = 3;
			label2.Text = "Apearance";

			// 
			// checkBox_lineNumbers
			// 
			this.checkBox_lineNumbers.Anchor = ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right);
			this.checkBox_lineNumbers.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.checkBox_lineNumbers.Location = new System.Drawing.Point(16, 172);
			this.checkBox_lineNumbers.Name = "checkBox_rightMargin";
			this.checkBox_lineNumbers.Size = new System.Drawing.Size(176, 32);
			this.checkBox_lineNumbers.TabIndex = 3;
			this.checkBox_lineNumbers.Text = "Show Line Numbers";
			this.checkBox_lineNumbers.CheckedChanged += new System.EventHandler(this.checkBox_lineNumbers_CheckedChanged);

			// 
			// checkBox_rightMargin
			// 
			this.checkBox_rightMargin.Anchor = ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right);
			this.checkBox_rightMargin.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.checkBox_rightMargin.Location = new System.Drawing.Point(16, 204);
			this.checkBox_rightMargin.Name = "checkBox_rightMargin";
			this.checkBox_rightMargin.Size = new System.Drawing.Size(176, 32);
			this.checkBox_rightMargin.TabIndex = 3;
			this.checkBox_rightMargin.Text = "Show Right Margin";
			this.checkBox_rightMargin.CheckedChanged += new System.EventHandler(this.checkBox_rightMargin_CheckedChanged);

			// 
			// label3
			// 
			label3.AutoSize = true;
			label3.Location = new System.Drawing.Point(30, 242);
			label3.Text = "Margin:";

			// 
			// upDownRightMargin
			// 
			this.upDownRightMargin.Location = new System.Drawing.Point(72, 238);
			this.upDownRightMargin.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.upDownRightMargin.Maximum = 200;
			this.upDownRightMargin.Minimum = 1;
			this.upDownRightMargin.Size = new System.Drawing.Size(50, 20);
			this.upDownRightMargin.Value = 80;
			this.upDownRightMargin.ValueChanged += new System.EventHandler(this.upDownRightMargin_ValueChanged);

			this.Control = this.groupBox;
		
			this.ActualTextAreaControlChanged(null, null);

			this.MainForm.ActualTextAreaControlChanged += new System.EventHandler(this.ActualTextAreaControlChanged);

		}
	
		// -------------------------------------------------------------------------
		/// <summary>
		/// Vyvola sa, PO zmene aktualneho <see cref="MainForm.ActualTextAreaControl"/>
		/// - teda ked uzivatel prepne na inu zalozku.
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void ActualTextAreaControlChanged(object sender, System.EventArgs e)
		{
			if (this.MainForm.ActualTextAreaControl == null) 
			{
				this.groupBox.Enabled = false;
			} 
			else 
			{
				this.doNotFireEvents = true;
				this.checkBox_EOL.Checked = this.MainForm.ActualTextAreaControl.ShowEOLMarkers;
				this.checkBox_invalidLines.Checked = this.MainForm.ActualTextAreaControl.ShowInvalidLines;
				this.checkBox_spaces.Checked = this.MainForm.ActualTextAreaControl.ShowSpaces;
				this.checkBox_tabs.Checked = this.MainForm.ActualTextAreaControl.ShowTabs;
				this.checkBox_rightMargin.Checked = this.MainForm.ActualTextAreaControl.ShowRightMargin;
				this.checkBox_lineNumbers.Checked = this.MainForm.ActualTextAreaControl.ShowLineNumbers;
				this.upDownRightMargin.Enabled = this.checkBox_rightMargin.Checked;
				this.upDownRightMargin.Value = (decimal)this.MainForm.ActualTextAreaControl.RightMarginRow;
				this.groupBox.Enabled = true;
				this.doNotFireEvents = false;
			}
		}

		// -------------------------------------------------------------------------
		/// <summary>
		/// Vyvola sa po zmene zaskrtnutia 'checkBox_EOL'
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void checkBox_EOL_CheckedChanged(object sender, System.EventArgs e)
		{
			if (this.doNotFireEvents == true) 
			{
				return;
			}
			if (this.MainForm.ActualTextAreaControl != null) 
			{
				this.MainForm.ActualTextAreaControl.ShowEOLMarkers = this.checkBox_EOL.Checked;
			}
		}

		// -------------------------------------------------------------------------
		/// <summary>
		/// Vyvola sa po zmene zaskrtnutia 'checkBox_spaces'
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void checkBox_spaces_CheckedChanged(object sender, System.EventArgs e)
		{
			if (this.doNotFireEvents == true) 
			{
				return;
			}
			if (this.MainForm.ActualTextAreaControl != null) 
			{
				this.MainForm.ActualTextAreaControl.ShowSpaces = this.checkBox_spaces.Checked;
			}
		}

		// -------------------------------------------------------------------------
		/// <summary>
		/// Vyvola sa po zmene zaskrtnutia 'checkBox_tabs'
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void checkBox_tabs_CheckedChanged(object sender, System.EventArgs e)
		{
			if (this.doNotFireEvents == true) 
			{
				return;
			}
			if (this.MainForm.ActualTextAreaControl != null) 
			{
				this.MainForm.ActualTextAreaControl.ShowTabs = this.checkBox_tabs.Checked;
			}
		}

		// -------------------------------------------------------------------------
		/// <summary>
		/// Vyvola sa po zmene zaskrtnutia 'checkBox_invalidLines'
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void checkBox_invalidLines_CheckedChanged(object sender, System.EventArgs e)
		{
			if (this.doNotFireEvents == true) 
			{
				return;
			}
			if (this.MainForm.ActualTextAreaControl != null) 
			{
				this.MainForm.ActualTextAreaControl.ShowInvalidLines = this.checkBox_invalidLines.Checked;
			}
		}

		// -------------------------------------------------------------------------
		/// <summary>
		/// Vyvola sa po zmene zaskrtnutia 'checkBox_rightMargin'
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void checkBox_rightMargin_CheckedChanged(object sender, System.EventArgs e)
		{
			if (this.doNotFireEvents == true) 
			{
				return;
			}
			if (this.MainForm.ActualTextAreaControl != null) 
			{
				this.MainForm.ActualTextAreaControl.ShowRightMargin = this.checkBox_rightMargin.Checked;
				this.upDownRightMargin.Enabled = this.checkBox_rightMargin.Checked;
			}
		}
		
		// -------------------------------------------------------------------------
		/// <summary>
		/// Vyvola sa po zmene zaskrtnutia 'checkBox_lineNumbers'
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void checkBox_lineNumbers_CheckedChanged(object sender, System.EventArgs e)
		{
			if (this.doNotFireEvents == true) 
			{
				return;
			}
			if (this.MainForm.ActualTextAreaControl != null) 
			{
				this.MainForm.ActualTextAreaControl.ShowLineNumbers = this.checkBox_lineNumbers.Checked;
			}
		}

		// -------------------------------------------------------------------------
		/// <summary>
		/// Vyvola sa po zmene praveho okraja
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void upDownRightMargin_ValueChanged(object sender, System.EventArgs e)
		{
			if (this.doNotFireEvents == true) 
			{
				return;
			}

			if (this.MainForm.ActualTextAreaControl != null) 
			{
				this.MainForm.ActualTextAreaControl.RightMarginRow = (int)this.upDownRightMargin.Value;
			}		
		}


	} // public class TextEditorPanel : ...
} // namespace XML_editor.DockingPanels

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美在线视频你懂得| 国产成人免费视频| 欧美精品1区2区3区| 水蜜桃久久夜色精品一区的特点| 欧美亚洲禁片免费| 日韩精品电影一区亚洲| 日韩精品一区二区三区视频在线观看| 久久电影国产免费久久电影| 久久久精品蜜桃| 91丨porny丨中文| 亚洲制服丝袜在线| 日韩欧美区一区二| 懂色一区二区三区免费观看| 亚洲日本在线观看| 在线观看91精品国产麻豆| 韩国成人在线视频| **欧美大码日韩| 欧美丰满美乳xxx高潮www| 精品一区二区av| 国产精品国产自产拍高清av王其| 91麻豆精东视频| 美日韩一区二区| 国产精品久久久久久久第一福利| 欧美色图激情小说| 国产福利一区在线| 亚洲午夜一区二区| 精品av久久707| 欧美午夜在线观看| 精品无人区卡一卡二卡三乱码免费卡| 国产精品国产三级国产aⅴ无密码| 欧美吞精做爰啪啪高潮| 国内成+人亚洲+欧美+综合在线 | 一区二区三区在线播放| 日韩写真欧美这视频| 成人h动漫精品一区二区| 日韩中文字幕av电影| 国产精品网站在线观看| 91麻豆精品国产无毒不卡在线观看| 成人午夜在线播放| 青青青爽久久午夜综合久久午夜| 国产精品久久久久影视| 精品国产一区二区三区久久久蜜月 | 欧美视频一区二区在线观看| 国产成人综合亚洲网站| 日韩高清不卡一区二区三区| 亚洲天堂免费看| 国产日韩av一区| 日韩一区二区三区电影在线观看 | 色婷婷一区二区| 国产成人超碰人人澡人人澡| 日韩av电影天堂| 亚洲一二三区在线观看| 中文字幕中文字幕一区二区| 精品国产露脸精彩对白| 欧美一级在线免费| 欧美日韩一区视频| 日本丶国产丶欧美色综合| 成人免费观看男女羞羞视频| 国产一区二区三区四区五区入口| 肉色丝袜一区二区| 性欧美大战久久久久久久久| 亚洲天堂网中文字| 综合自拍亚洲综合图不卡区| 国产日韩精品一区| 国产欧美日韩在线视频| 久久综合狠狠综合久久激情| 日韩午夜在线观看视频| 欧美一区二区三区精品| 欧美日韩1区2区| 欧美精品在线一区二区三区| 在线视频观看一区| 在线视频观看一区| 欧美午夜电影在线播放| 欧美视频在线一区二区三区 | 色综合咪咪久久| 一本色道久久综合精品竹菊| 99久久99精品久久久久久| www.欧美.com| 99精品久久只有精品| 色欲综合视频天天天| 欧美私人免费视频| 欧美精品电影在线播放| 91精品国产手机| 欧美成人精品二区三区99精品| 日韩亚洲欧美成人一区| 亚洲精品免费在线| 亚洲人亚洲人成电影网站色| 亚洲天堂成人在线观看| 亚洲激情五月婷婷| 肉丝袜脚交视频一区二区| 奇米精品一区二区三区在线观看一| 七七婷婷婷婷精品国产| 九九精品视频在线看| 国产成人精品一区二区三区网站观看| 成人亚洲一区二区一| 99久久精品国产导航| 欧美片网站yy| 久久奇米777| 亚洲欧美区自拍先锋| 亚洲国产日韩在线一区模特| 青青草精品视频| 国产成人综合在线播放| 91视频免费播放| 欧美乱熟臀69xxxxxx| 久久精品欧美一区二区三区麻豆 | 色婷婷亚洲综合| 欧美一区二区视频在线观看 | 欧美日韩高清影院| 久久综合色婷婷| 亚洲免费电影在线| 久久精品99国产精品| 成人h版在线观看| 欧美电影在哪看比较好| 国产清纯在线一区二区www| 亚洲一区二区三区不卡国产欧美| 免费高清在线视频一区·| 大美女一区二区三区| 欧美精品亚洲一区二区在线播放| 国产亚洲午夜高清国产拍精品| 亚洲精品成人精品456| 久久99久久精品欧美| 99久久久久免费精品国产| 欧美不卡在线视频| 一区二区三区四区中文字幕| 精品一区二区三区在线播放| 91黄视频在线| 久久九九久精品国产免费直播| 亚洲第一搞黄网站| 99视频精品在线| 精品国产不卡一区二区三区| 亚洲男同性视频| 国产福利精品导航| 日韩视频免费观看高清在线视频| 成人欧美一区二区三区小说 | 色诱亚洲精品久久久久久| 久久一区二区视频| 日韩中文字幕区一区有砖一区| bt7086福利一区国产| 久久久久久久国产精品影院| 亚洲aⅴ怡春院| 91成人网在线| 亚洲欧洲www| 懂色av一区二区三区蜜臀| 欧美成人午夜电影| 三级精品在线观看| 欧美日韩在线播| 一区二区在线观看免费| 不卡视频一二三| 中文欧美字幕免费| 国产精品2024| 久久精品日韩一区二区三区| 久久99热99| 精品国产人成亚洲区| 懂色av一区二区三区免费观看| 欧美成人vr18sexvr| 日韩中文字幕91| 7777精品伊人久久久大香线蕉完整版 | 麻豆高清免费国产一区| 欧美日韩在线播放一区| 一区二区三区在线视频免费观看| av一区二区久久| 日韩美女视频19| 91亚洲国产成人精品一区二区三| 国产日韩欧美精品一区| 粉嫩av一区二区三区粉嫩| 欧美极品少妇xxxxⅹ高跟鞋| 国产成人在线免费观看| 日本一区二区三区四区| 成人一区二区三区视频在线观看| 欧美精彩视频一区二区三区| 国产成人小视频| 国产精品久久久久aaaa| 99久久精品费精品国产一区二区| 综合久久给合久久狠狠狠97色| 91视视频在线直接观看在线看网页在线看| 国产精品污网站| 色欧美片视频在线观看在线视频| 亚洲精品成a人| 欧美日韩精品专区| 蜜桃久久久久久| 久久精品男人天堂av| 成人avav影音| 亚洲中国最大av网站| 3751色影院一区二区三区| 久久er精品视频| 欧美国产乱子伦| 色爱区综合激月婷婷| 午夜精品福利在线| 欧美r级在线观看| 成人动漫在线一区| 亚洲一二三区不卡| 日韩欧美一二三四区| 成人开心网精品视频| 亚洲一区二区三区四区在线观看 | 91电影在线观看| 奇米色777欧美一区二区| 久久久精品2019中文字幕之3| 99久久精品国产观看| 午夜精品久久久久久| 日本一区二区三级电影在线观看 |