public HtmlSelection(HtmlEditor editor)
 {
     _editor    = editor;
     _minZIndex = 100;
     _maxZIndex = 99;
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(HtmlEditor));
     this.tabControl1       = new System.Windows.Forms.TabControl();
     this.tabPage1          = new System.Windows.Forms.TabPage();
     this.designDescription = new Anderson.Chris.BlogX.WindowsClient.Html.HtmlEditor();
     this.tabPage2          = new System.Windows.Forms.TabPage();
     this.htmlDescription   = new System.Windows.Forms.TextBox();
     this.toolBar1          = new System.Windows.Forms.ToolBar();
     this.boldButton        = new System.Windows.Forms.ToolBarButton();
     this.italicButton      = new System.Windows.Forms.ToolBarButton();
     this.linkButton        = new System.Windows.Forms.ToolBarButton();
     this.bulletButton      = new System.Windows.Forms.ToolBarButton();
     this.numberButton      = new System.Windows.Forms.ToolBarButton();
     this.imageList1        = new System.Windows.Forms.ImageList(this.components);
     this.tabControl1.SuspendLayout();
     this.tabPage1.SuspendLayout();
     this.tabPage2.SuspendLayout();
     this.SuspendLayout();
     //
     // tabControl1
     //
     this.tabControl1.Appearance = System.Windows.Forms.TabAppearance.FlatButtons;
     this.tabControl1.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.tabPage1,
         this.tabPage2
     });
     this.tabControl1.Dock                  = System.Windows.Forms.DockStyle.Fill;
     this.tabControl1.Location              = new System.Drawing.Point(0, 55);
     this.tabControl1.Multiline             = true;
     this.tabControl1.Name                  = "tabControl1";
     this.tabControl1.SelectedIndex         = 0;
     this.tabControl1.Size                  = new System.Drawing.Size(600, 265);
     this.tabControl1.TabIndex              = 9;
     this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged);
     //
     // tabPage1
     //
     this.tabPage1.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.designDescription
     });
     this.tabPage1.Location = new System.Drawing.Point(4, 25);
     this.tabPage1.Name     = "tabPage1";
     this.tabPage1.Size     = new System.Drawing.Size(592, 236);
     this.tabPage1.TabIndex = 0;
     this.tabPage1.Text     = "Design";
     //
     // designDescription
     //
     this.designDescription.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.designDescription.Enabled  = true;
     this.designDescription.Name     = "designDescription";
     this.designDescription.Size     = new System.Drawing.Size(592, 236);
     this.designDescription.TabIndex = 0;
     //
     // tabPage2
     //
     this.tabPage2.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.htmlDescription
     });
     this.tabPage2.Location = new System.Drawing.Point(4, 25);
     this.tabPage2.Name     = "tabPage2";
     this.tabPage2.Size     = new System.Drawing.Size(592, 250);
     this.tabPage2.TabIndex = 1;
     this.tabPage2.Text     = "HTML";
     this.tabPage2.Visible  = false;
     //
     // htmlDescription
     //
     this.htmlDescription.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.htmlDescription.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.htmlDescription.Multiline   = true;
     this.htmlDescription.WordWrap    = false;
     this.htmlDescription.Name        = "htmlDescription";
     this.htmlDescription.ScrollBars  = System.Windows.Forms.ScrollBars.Both;
     this.htmlDescription.Font        = new Font("Lucida Console", 10);
     this.htmlDescription.Size        = new System.Drawing.Size(592, 250);
     this.htmlDescription.TabIndex    = 5;
     this.htmlDescription.Text        = "";
     //
     // toolBar1
     //
     this.toolBar1.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
     this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
         this.boldButton,
         this.italicButton,
         this.linkButton,
         this.bulletButton,
         this.numberButton
     });
     this.toolBar1.ButtonSize     = new System.Drawing.Size(52, 38);
     this.toolBar1.DropDownArrows = true;
     this.toolBar1.ImageList      = this.imageList1;
     this.toolBar1.Name           = "toolBar1";
     this.toolBar1.ShowToolTips   = true;
     this.toolBar1.Size           = new System.Drawing.Size(600, 55);
     this.toolBar1.TabIndex       = 10;
     this.toolBar1.ButtonClick   += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick);
     //
     // boldButton
     //
     this.boldButton.Tag  = "bold";
     this.boldButton.Text = "Bold";
     //
     // italicButton
     //
     this.italicButton.Tag  = "italic";
     this.italicButton.Text = "Italic";
     //
     // linkButton
     //
     this.linkButton.Tag  = "link";
     this.linkButton.Text = "Link";
     //
     // bulletButton
     //
     this.bulletButton.Tag  = "bullet";
     this.bulletButton.Text = "Bullet";
     //
     // numberButton
     //
     this.numberButton.Tag  = "number";
     this.numberButton.Text = "Number";
     //
     // imageList1
     //
     this.imageList1.ColorDepth       = System.Windows.Forms.ColorDepth.Depth24Bit;
     this.imageList1.ImageSize        = new System.Drawing.Size(32, 32);
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     //
     // HtmlEditor
     //
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.tabControl1,
         this.toolBar1
     });
     this.Name  = "HtmlEditor";
     this.Size  = new System.Drawing.Size(600, 320);
     this.Load += new System.EventHandler(this.HtmlEditor_Load);
     this.tabControl1.ResumeLayout(false);
     this.tabPage1.ResumeLayout(false);
     this.tabPage2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemple #3
0
 public HtmlDocument(HtmlEditor editor)
 {
     _editor = editor;
 }
 /// <summary>
 /// Constructor which simply takes an HtmlEditor to interface with MSHTML
 /// </summary>
 /// <param name="target"></param>
 public HtmlTextFormatting(HtmlEditor editor)
 {
     this.editor = editor;
 }