Added functionality to the Import Word Content feature (Insert Ribbon in Debug Mode)

This commit is contained in:
Rich
2019-05-06 18:24:02 +00:00
parent c973925790
commit a0461e9a7a
3 changed files with 374 additions and 58 deletions

View File

@@ -43,6 +43,18 @@
this.ofd = new System.Windows.Forms.OpenFileDialog();
this.btnNextIns = new DevComponents.DotNetBar.ButtonX();
this.btnNextRpl = new DevComponents.DotNetBar.ButtonX();
// C2019-021 New Buttons
this.btnReplaceNext = new DevComponents.DotNetBar.ButtonX();
this.btnInsertNext = new DevComponents.DotNetBar.ButtonX();
this.btnAfter = new DevComponents.DotNetBar.ButtonX();
this.btnSect = new DevComponents.DotNetBar.ButtonX();
this.btnHigh = new DevComponents.DotNetBar.ButtonX();
this.btnSEQ = new DevComponents.DotNetBar.ButtonX();
this.btnParentAfter = new DevComponents.DotNetBar.ButtonX();
this.btnSplit = new DevComponents.DotNetBar.ButtonX();
this.btnPaste = new DevComponents.DotNetBar.ButtonX();
this.tbxNumber = new DevComponents.DotNetBar.Controls.TextBoxX();
this.labelX4 = new DevComponents.DotNetBar.LabelX();
this.SuspendLayout();
//
// txbWordFile
@@ -117,7 +129,7 @@
//
this.txbLevel.Border.Class = "TextBoxBorder";
this.txbLevel.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.txbLevel.Location = new System.Drawing.Point(353, 58);
this.txbLevel.Location = new System.Drawing.Point(301, 58);
this.txbLevel.Name = "txbLevel";
this.txbLevel.PreventEnterBeep = true;
this.txbLevel.ReadOnly = true;
@@ -130,7 +142,7 @@
//
//
this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.labelX3.Location = new System.Drawing.Point(312, 58);
this.labelX3.Location = new System.Drawing.Point(260, 58);
this.labelX3.Name = "labelX3";
this.labelX3.Size = new System.Drawing.Size(35, 23);
this.labelX3.TabIndex = 5;
@@ -179,7 +191,7 @@
//
this.btnPrev.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnPrev.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.btnPrev.Location = new System.Drawing.Point(461, 116);
this.btnPrev.Location = new System.Drawing.Point(462, 113);
this.btnPrev.Name = "btnPrev";
this.btnPrev.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F11);
this.btnPrev.Size = new System.Drawing.Size(84, 23);
@@ -192,7 +204,7 @@
//
this.btnNext.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnNext.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.btnNext.Location = new System.Drawing.Point(461, 145);
this.btnNext.Location = new System.Drawing.Point(462, 142);
this.btnNext.Name = "btnNext";
this.btnNext.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F12);
this.btnNext.Size = new System.Drawing.Size(84, 23);
@@ -210,33 +222,188 @@
//
this.btnNextIns.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnNextIns.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.btnNextIns.Location = new System.Drawing.Point(353, 200);
this.btnNextIns.Location = new System.Drawing.Point(319, 3);
this.btnNextIns.Name = "btnNextIns";
this.btnNextIns.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F4);
this.btnNextIns.Size = new System.Drawing.Size(102, 20);
this.btnNextIns.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnNextIns.TabIndex = 12;
this.btnNextIns.Text = "Insert After (F4)";
this.btnNextIns.Click += new System.EventHandler(this.btnNextIns_Click);
this.btnNextIns.Visible = false;
//this.btnNextIns.Click += new System.EventHandler(this.btnNextIns_Click);
//
// btnNextRpl
//
this.btnNextRpl.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnNextRpl.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.btnNextRpl.Location = new System.Drawing.Point(353, 174);
this.btnNextRpl.Location = new System.Drawing.Point(211, 3);
this.btnNextRpl.Name = "btnNextRpl";
this.btnNextRpl.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
this.btnNextRpl.Size = new System.Drawing.Size(102, 20);
this.btnNextRpl.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnNextRpl.TabIndex = 13;
this.btnNextRpl.Text = "Replace After (F3)";
this.btnNextRpl.Click += new System.EventHandler(this.btnNextRpl_Click);
this.btnNextRpl.Visible = false;
//this.btnNextRpl.Click += new System.EventHandler(this.btnNextRpl_Click);
//
// btnReplaceNext
//
this.btnReplaceNext.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnReplaceNext.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.btnReplaceNext.Location = new System.Drawing.Point(462, 174);
this.btnReplaceNext.Name = "btnReplaceNext";
this.btnReplaceNext.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
this.btnReplaceNext.Size = new System.Drawing.Size(82, 20);
this.btnReplaceNext.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnReplaceNext.TabIndex = 15;
this.btnReplaceNext.Text = "Replace Next";
this.btnReplaceNext.Click += new System.EventHandler(this.btnReplaceNext_Click);
//
// btnInsertNext
//
this.btnInsertNext.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnInsertNext.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.btnInsertNext.Location = new System.Drawing.Point(462, 200);
this.btnInsertNext.Name = "btnInsertNext";
this.btnInsertNext.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F4);
this.btnInsertNext.Size = new System.Drawing.Size(82, 20);
this.btnInsertNext.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnInsertNext.TabIndex = 14;
this.btnInsertNext.Text = "Insert Next";
this.btnInsertNext.Click += new System.EventHandler(this.btnInsertNext_Click);
//
// btnAfter
//
this.btnAfter.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnAfter.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.btnAfter.Location = new System.Drawing.Point(425, 174);
this.btnAfter.Name = "btnAfter";
this.btnAfter.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
this.btnAfter.Size = new System.Drawing.Size(31, 20);
this.btnAfter.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnAfter.TabIndex = 17;
this.btnAfter.Text = "After";
this.btnAfter.Click += new System.EventHandler(this.btnAfter_Click);
//
// btnSect
//
this.btnSect.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnSect.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.btnSect.Location = new System.Drawing.Point(230, 174);
this.btnSect.Name = "btnSect";
this.btnSect.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
this.btnSect.Size = new System.Drawing.Size(31, 20);
this.btnSect.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnSect.TabIndex = 18;
this.btnSect.Text = "Sect";
this.btnSect.Click += new System.EventHandler(this.btnSect_Click);
//
// btnHigh
//
this.btnHigh.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnHigh.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.btnHigh.Location = new System.Drawing.Point(351, 174);
this.btnHigh.Name = "btnHigh";
this.btnHigh.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
this.btnHigh.Size = new System.Drawing.Size(31, 20);
this.btnHigh.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnHigh.TabIndex = 19;
this.btnHigh.Text = "High";
this.btnHigh.Click += new System.EventHandler(this.btnHigh_Click);
//
// btnSEQ
//
this.btnSEQ.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnSEQ.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.btnSEQ.Location = new System.Drawing.Point(388, 174);
this.btnSEQ.Name = "btnSEQ";
this.btnSEQ.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
this.btnSEQ.Size = new System.Drawing.Size(31, 20);
this.btnSEQ.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnSEQ.TabIndex = 20;
this.btnSEQ.Text = "Seq";
this.btnSEQ.Click += new System.EventHandler(this.btnSEQ_Click);
//
// btnParentAfter
//
this.btnParentAfter.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnParentAfter.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.btnParentAfter.Location = new System.Drawing.Point(388, 200);
this.btnParentAfter.Name = "btnParentAfter";
this.btnParentAfter.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
this.btnParentAfter.Size = new System.Drawing.Size(68, 20);
this.btnParentAfter.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnParentAfter.TabIndex = 21;
this.btnParentAfter.Text = "Parent After";
this.btnParentAfter.Click += new System.EventHandler(this.btnParentAfter_Click);
//
// btnSplit
//
this.btnSplit.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnSplit.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.btnSplit.Location = new System.Drawing.Point(351, 200);
this.btnSplit.Name = "btnSplit";
this.btnSplit.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
this.btnSplit.Size = new System.Drawing.Size(31, 20);
this.btnSplit.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnSplit.TabIndex = 22;
this.btnSplit.Text = "Split";
this.btnSplit.Click += new System.EventHandler(this.btnSplit_Click);
//
// btnPaste
//
this.btnPaste.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.btnPaste.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.btnPaste.Location = new System.Drawing.Point(461, 226);
this.btnPaste.Name = "btnPaste";
this.btnPaste.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
this.btnPaste.Size = new System.Drawing.Size(83, 20);
this.btnPaste.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnPaste.TabIndex = 23;
this.btnPaste.Text = "Paste";
this.btnPaste.Click += new System.EventHandler(this.btnPaste_Click);
//
// tbxNumber
//
//
//
//
this.tbxNumber.Border.Class = "TextBoxBorder";
this.tbxNumber.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.tbxNumber.Location = new System.Drawing.Point(388, 58);
this.tbxNumber.Name = "tbxNumber";
this.tbxNumber.PreventEnterBeep = true;
this.tbxNumber.Size = new System.Drawing.Size(56, 20);
this.tbxNumber.TabIndex = 25;
//
// labelX4
//
//
//
//
this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.labelX4.Location = new System.Drawing.Point(343, 58);
this.labelX4.Name = "labelX4";
this.labelX4.Size = new System.Drawing.Size(51, 23);
this.labelX4.TabIndex = 24;
this.labelX4.Text = "Number:";
//
// frmImportWordContents
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(556, 226);
this.ClientSize = new System.Drawing.Size(556, 272);
this.Controls.Add(this.tbxNumber);
this.Controls.Add(this.labelX4);
this.Controls.Add(this.btnPaste);
this.Controls.Add(this.btnSplit);
this.Controls.Add(this.btnParentAfter);
this.Controls.Add(this.btnSEQ);
this.Controls.Add(this.btnHigh);
this.Controls.Add(this.btnSect);
this.Controls.Add(this.btnAfter);
this.Controls.Add(this.btnReplaceNext);
this.Controls.Add(this.btnInsertNext);
this.Controls.Add(this.btnNextRpl);
this.Controls.Add(this.btnNextIns);
this.Controls.Add(this.btnNext);
@@ -278,5 +445,16 @@
private System.Windows.Forms.OpenFileDialog ofd;
private DevComponents.DotNetBar.ButtonX btnNextIns;
private DevComponents.DotNetBar.ButtonX btnNextRpl;
private DevComponents.DotNetBar.ButtonX btnReplaceNext;
private DevComponents.DotNetBar.ButtonX btnInsertNext;
private DevComponents.DotNetBar.ButtonX btnAfter;
private DevComponents.DotNetBar.ButtonX btnSect;
private DevComponents.DotNetBar.ButtonX btnHigh;
private DevComponents.DotNetBar.ButtonX btnSEQ;
private DevComponents.DotNetBar.ButtonX btnParentAfter;
private DevComponents.DotNetBar.ButtonX btnSplit;
private DevComponents.DotNetBar.ButtonX btnPaste;
private DevComponents.DotNetBar.Controls.TextBoxX tbxNumber;
private DevComponents.DotNetBar.LabelX labelX4;
}
}