Added Sub ConvertTable to change Word table definition to FlexGrid compatible XML
This commit is contained in:
parent
d0df8b68e8
commit
9d24334753
@ -28,473 +28,497 @@
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
this.txbWordFile = new DevComponents.DotNetBar.Controls.TextBoxX();
|
this.txbWordFile = new DevComponents.DotNetBar.Controls.TextBoxX();
|
||||||
this.labelX1 = new DevComponents.DotNetBar.LabelX();
|
this.labelX1 = new DevComponents.DotNetBar.LabelX();
|
||||||
this.btnBrowse = new DevComponents.DotNetBar.ButtonX();
|
this.btnBrowse = new DevComponents.DotNetBar.ButtonX();
|
||||||
this.labelX2 = new DevComponents.DotNetBar.LabelX();
|
this.labelX2 = new DevComponents.DotNetBar.LabelX();
|
||||||
this.txvStyle = new DevComponents.DotNetBar.Controls.TextBoxX();
|
this.txvStyle = new DevComponents.DotNetBar.Controls.TextBoxX();
|
||||||
this.txbLevel = new DevComponents.DotNetBar.Controls.TextBoxX();
|
this.txbLevel = new DevComponents.DotNetBar.Controls.TextBoxX();
|
||||||
this.labelX3 = new DevComponents.DotNetBar.LabelX();
|
this.labelX3 = new DevComponents.DotNetBar.LabelX();
|
||||||
this.txbWrdText = new DevComponents.DotNetBar.Controls.TextBoxX();
|
this.txbWrdText = new DevComponents.DotNetBar.Controls.TextBoxX();
|
||||||
this.btnOpen = new DevComponents.DotNetBar.ButtonX();
|
this.btnOpen = new DevComponents.DotNetBar.ButtonX();
|
||||||
this.btnPage = new DevComponents.DotNetBar.ButtonX();
|
this.btnPage = new DevComponents.DotNetBar.ButtonX();
|
||||||
this.btnPrev = new DevComponents.DotNetBar.ButtonX();
|
this.btnPrev = new DevComponents.DotNetBar.ButtonX();
|
||||||
this.btnNext = new DevComponents.DotNetBar.ButtonX();
|
this.btnNext = new DevComponents.DotNetBar.ButtonX();
|
||||||
this.ofd = new System.Windows.Forms.OpenFileDialog();
|
this.ofd = new System.Windows.Forms.OpenFileDialog();
|
||||||
this.btnNextIns = new DevComponents.DotNetBar.ButtonX();
|
this.btnNextIns = new DevComponents.DotNetBar.ButtonX();
|
||||||
this.btnNextRpl = new DevComponents.DotNetBar.ButtonX();
|
this.btnNextRpl = new DevComponents.DotNetBar.ButtonX();
|
||||||
this.btnReplaceNext = new DevComponents.DotNetBar.ButtonX();
|
this.btnReplaceNext = new DevComponents.DotNetBar.ButtonX();
|
||||||
this.btnInsertNext = new DevComponents.DotNetBar.ButtonX();
|
this.btnInsertNext = new DevComponents.DotNetBar.ButtonX();
|
||||||
this.btnAfter = new DevComponents.DotNetBar.ButtonX();
|
this.btnAfter = new DevComponents.DotNetBar.ButtonX();
|
||||||
this.btnSect = new DevComponents.DotNetBar.ButtonX();
|
this.btnSect = new DevComponents.DotNetBar.ButtonX();
|
||||||
this.btnHigh = new DevComponents.DotNetBar.ButtonX();
|
this.btnHigh = new DevComponents.DotNetBar.ButtonX();
|
||||||
this.btnSEQ = new DevComponents.DotNetBar.ButtonX();
|
this.btnSEQ = new DevComponents.DotNetBar.ButtonX();
|
||||||
this.btnParentAfter = new DevComponents.DotNetBar.ButtonX();
|
this.btnParentAfter = new DevComponents.DotNetBar.ButtonX();
|
||||||
this.btnSplit = new DevComponents.DotNetBar.ButtonX();
|
this.btnSplit = new DevComponents.DotNetBar.ButtonX();
|
||||||
this.btnPaste = new DevComponents.DotNetBar.ButtonX();
|
this.btnPaste = new DevComponents.DotNetBar.ButtonX();
|
||||||
this.tbxNumber = new DevComponents.DotNetBar.Controls.TextBoxX();
|
this.tbxNumber = new DevComponents.DotNetBar.Controls.TextBoxX();
|
||||||
this.labelX4 = new DevComponents.DotNetBar.LabelX();
|
this.labelX4 = new DevComponents.DotNetBar.LabelX();
|
||||||
this.lblTable = new DevComponents.DotNetBar.LabelX();
|
this.lblTable = new DevComponents.DotNetBar.LabelX();
|
||||||
this.btnCurrent = new DevComponents.DotNetBar.ButtonX();
|
this.btnCurrent = new DevComponents.DotNetBar.ButtonX();
|
||||||
this.btnTest = new DevComponents.DotNetBar.ButtonX();
|
this.btnTest = new DevComponents.DotNetBar.ButtonX();
|
||||||
this.txbImport = new System.Windows.Forms.TextBox();
|
this.txbImport = new System.Windows.Forms.TextBox();
|
||||||
this.lblFS = new DevComponents.DotNetBar.LabelX();
|
this.lblFS = new DevComponents.DotNetBar.LabelX();
|
||||||
this.SuspendLayout();
|
this.btnTableConvert = new DevComponents.DotNetBar.ButtonX();
|
||||||
//
|
this.pbTable = new System.Windows.Forms.ProgressBar();
|
||||||
// txbWordFile
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
//
|
// txbWordFile
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
this.txbWordFile.Border.Class = "TextBoxBorder";
|
//
|
||||||
this.txbWordFile.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
//
|
||||||
this.txbWordFile.Location = new System.Drawing.Point(3, 29);
|
this.txbWordFile.Border.Class = "TextBoxBorder";
|
||||||
this.txbWordFile.Name = "txbWordFile";
|
this.txbWordFile.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||||
this.txbWordFile.PreventEnterBeep = true;
|
this.txbWordFile.Location = new System.Drawing.Point(3, 29);
|
||||||
this.txbWordFile.Size = new System.Drawing.Size(626, 20);
|
this.txbWordFile.Name = "txbWordFile";
|
||||||
this.txbWordFile.TabIndex = 0;
|
this.txbWordFile.PreventEnterBeep = true;
|
||||||
this.txbWordFile.TextChanged += new System.EventHandler(this.txbWordFile_TextChanged);
|
this.txbWordFile.Size = new System.Drawing.Size(626, 20);
|
||||||
//
|
this.txbWordFile.TabIndex = 0;
|
||||||
// labelX1
|
this.txbWordFile.TextChanged += new System.EventHandler(this.txbWordFile_TextChanged);
|
||||||
//
|
//
|
||||||
//
|
// labelX1
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
//
|
||||||
this.labelX1.Location = new System.Drawing.Point(2, 0);
|
//
|
||||||
this.labelX1.Name = "labelX1";
|
this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||||
this.labelX1.Size = new System.Drawing.Size(75, 23);
|
this.labelX1.Location = new System.Drawing.Point(2, 0);
|
||||||
this.labelX1.TabIndex = 1;
|
this.labelX1.Name = "labelX1";
|
||||||
this.labelX1.Text = "Word File:";
|
this.labelX1.Size = new System.Drawing.Size(75, 23);
|
||||||
//
|
this.labelX1.TabIndex = 1;
|
||||||
// btnBrowse
|
this.labelX1.Text = "Word File:";
|
||||||
//
|
//
|
||||||
this.btnBrowse.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
// btnBrowse
|
||||||
this.btnBrowse.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
//
|
||||||
this.btnBrowse.Location = new System.Drawing.Point(644, 12);
|
this.btnBrowse.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||||
this.btnBrowse.Name = "btnBrowse";
|
this.btnBrowse.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||||
this.btnBrowse.Size = new System.Drawing.Size(75, 23);
|
this.btnBrowse.Location = new System.Drawing.Point(644, 12);
|
||||||
this.btnBrowse.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
this.btnBrowse.Name = "btnBrowse";
|
||||||
this.btnBrowse.TabIndex = 2;
|
this.btnBrowse.Size = new System.Drawing.Size(75, 23);
|
||||||
this.btnBrowse.Text = "Browse";
|
this.btnBrowse.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||||
this.btnBrowse.Click += new System.EventHandler(this.btnBrowse_Click);
|
this.btnBrowse.TabIndex = 2;
|
||||||
//
|
this.btnBrowse.Text = "Browse";
|
||||||
// labelX2
|
this.btnBrowse.Click += new System.EventHandler(this.btnBrowse_Click);
|
||||||
//
|
//
|
||||||
//
|
// labelX2
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
//
|
||||||
this.labelX2.Location = new System.Drawing.Point(13, 58);
|
//
|
||||||
this.labelX2.Name = "labelX2";
|
this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||||
this.labelX2.Size = new System.Drawing.Size(35, 23);
|
this.labelX2.Location = new System.Drawing.Point(13, 58);
|
||||||
this.labelX2.TabIndex = 3;
|
this.labelX2.Name = "labelX2";
|
||||||
this.labelX2.Text = "Style:";
|
this.labelX2.Size = new System.Drawing.Size(35, 23);
|
||||||
//
|
this.labelX2.TabIndex = 3;
|
||||||
// txvStyle
|
this.labelX2.Text = "Style:";
|
||||||
//
|
//
|
||||||
this.txvStyle.BackColor = System.Drawing.SystemColors.Control;
|
// txvStyle
|
||||||
//
|
//
|
||||||
//
|
this.txvStyle.BackColor = System.Drawing.SystemColors.Control;
|
||||||
//
|
//
|
||||||
this.txvStyle.Border.Class = "TextBoxBorder";
|
//
|
||||||
this.txvStyle.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
//
|
||||||
this.txvStyle.Location = new System.Drawing.Point(54, 58);
|
this.txvStyle.Border.Class = "TextBoxBorder";
|
||||||
this.txvStyle.Name = "txvStyle";
|
this.txvStyle.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||||
this.txvStyle.PreventEnterBeep = true;
|
this.txvStyle.Location = new System.Drawing.Point(54, 58);
|
||||||
this.txvStyle.ReadOnly = true;
|
this.txvStyle.Name = "txvStyle";
|
||||||
this.txvStyle.Size = new System.Drawing.Size(226, 20);
|
this.txvStyle.PreventEnterBeep = true;
|
||||||
this.txvStyle.TabIndex = 4;
|
this.txvStyle.ReadOnly = true;
|
||||||
//
|
this.txvStyle.Size = new System.Drawing.Size(226, 20);
|
||||||
// txbLevel
|
this.txvStyle.TabIndex = 4;
|
||||||
//
|
//
|
||||||
//
|
// txbLevel
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
this.txbLevel.Border.Class = "TextBoxBorder";
|
//
|
||||||
this.txbLevel.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
//
|
||||||
this.txbLevel.Location = new System.Drawing.Point(323, 58);
|
this.txbLevel.Border.Class = "TextBoxBorder";
|
||||||
this.txbLevel.Name = "txbLevel";
|
this.txbLevel.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||||
this.txbLevel.PreventEnterBeep = true;
|
this.txbLevel.Location = new System.Drawing.Point(323, 58);
|
||||||
this.txbLevel.ReadOnly = true;
|
this.txbLevel.Name = "txbLevel";
|
||||||
this.txbLevel.Size = new System.Drawing.Size(36, 20);
|
this.txbLevel.PreventEnterBeep = true;
|
||||||
this.txbLevel.TabIndex = 6;
|
this.txbLevel.ReadOnly = true;
|
||||||
//
|
this.txbLevel.Size = new System.Drawing.Size(36, 20);
|
||||||
// labelX3
|
this.txbLevel.TabIndex = 6;
|
||||||
//
|
//
|
||||||
//
|
// labelX3
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
//
|
||||||
this.labelX3.Location = new System.Drawing.Point(282, 58);
|
//
|
||||||
this.labelX3.Name = "labelX3";
|
this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||||
this.labelX3.Size = new System.Drawing.Size(35, 23);
|
this.labelX3.Location = new System.Drawing.Point(282, 58);
|
||||||
this.labelX3.TabIndex = 5;
|
this.labelX3.Name = "labelX3";
|
||||||
this.labelX3.Text = "Level:";
|
this.labelX3.Size = new System.Drawing.Size(35, 23);
|
||||||
//
|
this.labelX3.TabIndex = 5;
|
||||||
// txbWrdText
|
this.labelX3.Text = "Level:";
|
||||||
//
|
//
|
||||||
//
|
// txbWrdText
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
this.txbWrdText.Border.Class = "TextBoxBorder";
|
//
|
||||||
this.txbWrdText.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
//
|
||||||
this.txbWrdText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.txbWrdText.Border.Class = "TextBoxBorder";
|
||||||
this.txbWrdText.Location = new System.Drawing.Point(13, 84);
|
this.txbWrdText.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||||
this.txbWrdText.Multiline = true;
|
this.txbWrdText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.txbWrdText.Name = "txbWrdText";
|
this.txbWrdText.Location = new System.Drawing.Point(13, 84);
|
||||||
this.txbWrdText.PreventEnterBeep = true;
|
this.txbWrdText.Multiline = true;
|
||||||
this.txbWrdText.Size = new System.Drawing.Size(611, 81);
|
this.txbWrdText.Name = "txbWrdText";
|
||||||
this.txbWrdText.TabIndex = 7;
|
this.txbWrdText.PreventEnterBeep = true;
|
||||||
this.txbWrdText.TextChanged += new System.EventHandler(this.txbWrdText_TextChanged);
|
this.txbWrdText.Size = new System.Drawing.Size(611, 81);
|
||||||
//
|
this.txbWrdText.TabIndex = 7;
|
||||||
// btnOpen
|
this.txbWrdText.TextChanged += new System.EventHandler(this.txbWrdText_TextChanged);
|
||||||
//
|
//
|
||||||
this.btnOpen.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
// btnOpen
|
||||||
this.btnOpen.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
//
|
||||||
this.btnOpen.Location = new System.Drawing.Point(644, 41);
|
this.btnOpen.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||||
this.btnOpen.Name = "btnOpen";
|
this.btnOpen.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||||
this.btnOpen.Size = new System.Drawing.Size(75, 23);
|
this.btnOpen.Location = new System.Drawing.Point(644, 41);
|
||||||
this.btnOpen.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
this.btnOpen.Name = "btnOpen";
|
||||||
this.btnOpen.TabIndex = 8;
|
this.btnOpen.Size = new System.Drawing.Size(75, 23);
|
||||||
this.btnOpen.Text = "Open";
|
this.btnOpen.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||||
this.btnOpen.Click += new System.EventHandler(this.btnOpen_Click);
|
this.btnOpen.TabIndex = 8;
|
||||||
//
|
this.btnOpen.Text = "Open";
|
||||||
// btnPage
|
this.btnOpen.Click += new System.EventHandler(this.btnOpen_Click);
|
||||||
//
|
//
|
||||||
this.btnPage.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
// btnPage
|
||||||
this.btnPage.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
//
|
||||||
this.btnPage.Location = new System.Drawing.Point(635, 84);
|
this.btnPage.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||||
this.btnPage.Name = "btnPage";
|
this.btnPage.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||||
this.btnPage.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F10);
|
this.btnPage.Location = new System.Drawing.Point(635, 84);
|
||||||
this.btnPage.Size = new System.Drawing.Size(84, 23);
|
this.btnPage.Name = "btnPage";
|
||||||
this.btnPage.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
this.btnPage.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F10);
|
||||||
this.btnPage.TabIndex = 9;
|
this.btnPage.Size = new System.Drawing.Size(84, 23);
|
||||||
this.btnPage.Text = "Page (F10)";
|
this.btnPage.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||||
this.btnPage.Click += new System.EventHandler(this.btnPage_Click);
|
this.btnPage.TabIndex = 9;
|
||||||
//
|
this.btnPage.Text = "Page (F10)";
|
||||||
// btnPrev
|
this.btnPage.Click += new System.EventHandler(this.btnPage_Click);
|
||||||
//
|
//
|
||||||
this.btnPrev.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
// btnPrev
|
||||||
this.btnPrev.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
//
|
||||||
this.btnPrev.Location = new System.Drawing.Point(636, 113);
|
this.btnPrev.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||||
this.btnPrev.Name = "btnPrev";
|
this.btnPrev.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||||
this.btnPrev.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F11);
|
this.btnPrev.Location = new System.Drawing.Point(636, 113);
|
||||||
this.btnPrev.Size = new System.Drawing.Size(84, 23);
|
this.btnPrev.Name = "btnPrev";
|
||||||
this.btnPrev.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
this.btnPrev.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F11);
|
||||||
this.btnPrev.TabIndex = 10;
|
this.btnPrev.Size = new System.Drawing.Size(84, 23);
|
||||||
this.btnPrev.Text = "Previous (F11)";
|
this.btnPrev.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||||
this.btnPrev.Click += new System.EventHandler(this.btnPrev_Click);
|
this.btnPrev.TabIndex = 10;
|
||||||
//
|
this.btnPrev.Text = "Previous (F11)";
|
||||||
// btnNext
|
this.btnPrev.Click += new System.EventHandler(this.btnPrev_Click);
|
||||||
//
|
//
|
||||||
this.btnNext.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
// btnNext
|
||||||
this.btnNext.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
//
|
||||||
this.btnNext.Location = new System.Drawing.Point(636, 142);
|
this.btnNext.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||||
this.btnNext.Name = "btnNext";
|
this.btnNext.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||||
this.btnNext.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F12);
|
this.btnNext.Location = new System.Drawing.Point(636, 142);
|
||||||
this.btnNext.Size = new System.Drawing.Size(84, 23);
|
this.btnNext.Name = "btnNext";
|
||||||
this.btnNext.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
this.btnNext.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F12);
|
||||||
this.btnNext.TabIndex = 11;
|
this.btnNext.Size = new System.Drawing.Size(84, 23);
|
||||||
this.btnNext.Text = "Next (F12)";
|
this.btnNext.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||||
this.btnNext.Click += new System.EventHandler(this.btnNext_Click);
|
this.btnNext.TabIndex = 11;
|
||||||
//
|
this.btnNext.Text = "Next (F12)";
|
||||||
// ofd
|
this.btnNext.Click += new System.EventHandler(this.btnNext_Click);
|
||||||
//
|
//
|
||||||
this.ofd.Filter = "Docx Files|*.docx|Doc Files|*.doc|All Files|*.*";
|
// ofd
|
||||||
this.ofd.FileOk += new System.ComponentModel.CancelEventHandler(this.ofd_FileOk);
|
//
|
||||||
//
|
this.ofd.Filter = "Docx Files|*.docx|Doc Files|*.doc|All Files|*.*";
|
||||||
// btnNextIns
|
this.ofd.FileOk += new System.ComponentModel.CancelEventHandler(this.ofd_FileOk);
|
||||||
//
|
//
|
||||||
this.btnNextIns.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
// btnNextIns
|
||||||
this.btnNextIns.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
//
|
||||||
this.btnNextIns.Location = new System.Drawing.Point(319, 3);
|
this.btnNextIns.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||||
this.btnNextIns.Name = "btnNextIns";
|
this.btnNextIns.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||||
this.btnNextIns.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F4);
|
this.btnNextIns.Location = new System.Drawing.Point(319, 3);
|
||||||
this.btnNextIns.Size = new System.Drawing.Size(102, 20);
|
this.btnNextIns.Name = "btnNextIns";
|
||||||
this.btnNextIns.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
this.btnNextIns.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F4);
|
||||||
this.btnNextIns.TabIndex = 12;
|
this.btnNextIns.Size = new System.Drawing.Size(102, 20);
|
||||||
this.btnNextIns.Text = "Insert After (F4)";
|
this.btnNextIns.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||||
this.btnNextIns.Visible = false;
|
this.btnNextIns.TabIndex = 12;
|
||||||
//
|
this.btnNextIns.Text = "Insert After (F4)";
|
||||||
// btnNextRpl
|
this.btnNextIns.Visible = false;
|
||||||
//
|
//
|
||||||
this.btnNextRpl.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
// btnNextRpl
|
||||||
this.btnNextRpl.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
//
|
||||||
this.btnNextRpl.Location = new System.Drawing.Point(211, 3);
|
this.btnNextRpl.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||||
this.btnNextRpl.Name = "btnNextRpl";
|
this.btnNextRpl.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||||
this.btnNextRpl.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
|
this.btnNextRpl.Location = new System.Drawing.Point(211, 3);
|
||||||
this.btnNextRpl.Size = new System.Drawing.Size(102, 20);
|
this.btnNextRpl.Name = "btnNextRpl";
|
||||||
this.btnNextRpl.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
this.btnNextRpl.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
|
||||||
this.btnNextRpl.TabIndex = 13;
|
this.btnNextRpl.Size = new System.Drawing.Size(102, 20);
|
||||||
this.btnNextRpl.Text = "Replace After (F3)";
|
this.btnNextRpl.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||||
this.btnNextRpl.Visible = false;
|
this.btnNextRpl.TabIndex = 13;
|
||||||
//
|
this.btnNextRpl.Text = "Replace After (F3)";
|
||||||
// btnReplaceNext
|
this.btnNextRpl.Visible = false;
|
||||||
//
|
//
|
||||||
this.btnReplaceNext.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
// btnReplaceNext
|
||||||
this.btnReplaceNext.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
//
|
||||||
this.btnReplaceNext.Location = new System.Drawing.Point(637, 200);
|
this.btnReplaceNext.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||||
this.btnReplaceNext.Name = "btnReplaceNext";
|
this.btnReplaceNext.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||||
this.btnReplaceNext.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
|
this.btnReplaceNext.Location = new System.Drawing.Point(637, 200);
|
||||||
this.btnReplaceNext.Size = new System.Drawing.Size(82, 20);
|
this.btnReplaceNext.Name = "btnReplaceNext";
|
||||||
this.btnReplaceNext.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
this.btnReplaceNext.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
|
||||||
this.btnReplaceNext.TabIndex = 15;
|
this.btnReplaceNext.Size = new System.Drawing.Size(82, 20);
|
||||||
this.btnReplaceNext.Text = "Replace Next";
|
this.btnReplaceNext.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||||
this.btnReplaceNext.Click += new System.EventHandler(this.btnReplaceNext_Click);
|
this.btnReplaceNext.TabIndex = 15;
|
||||||
//
|
this.btnReplaceNext.Text = "Replace Next";
|
||||||
// btnInsertNext
|
this.btnReplaceNext.Click += new System.EventHandler(this.btnReplaceNext_Click);
|
||||||
//
|
//
|
||||||
this.btnInsertNext.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
// btnInsertNext
|
||||||
this.btnInsertNext.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
//
|
||||||
this.btnInsertNext.Location = new System.Drawing.Point(637, 226);
|
this.btnInsertNext.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||||
this.btnInsertNext.Name = "btnInsertNext";
|
this.btnInsertNext.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||||
this.btnInsertNext.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F4);
|
this.btnInsertNext.Location = new System.Drawing.Point(637, 226);
|
||||||
this.btnInsertNext.Size = new System.Drawing.Size(82, 20);
|
this.btnInsertNext.Name = "btnInsertNext";
|
||||||
this.btnInsertNext.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
this.btnInsertNext.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F4);
|
||||||
this.btnInsertNext.TabIndex = 14;
|
this.btnInsertNext.Size = new System.Drawing.Size(82, 20);
|
||||||
this.btnInsertNext.Text = "Insert Next";
|
this.btnInsertNext.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||||
this.btnInsertNext.Click += new System.EventHandler(this.btnInsertNext_Click);
|
this.btnInsertNext.TabIndex = 14;
|
||||||
//
|
this.btnInsertNext.Text = "Insert Next";
|
||||||
// btnAfter
|
this.btnInsertNext.Click += new System.EventHandler(this.btnInsertNext_Click);
|
||||||
//
|
//
|
||||||
this.btnAfter.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
// btnAfter
|
||||||
this.btnAfter.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
//
|
||||||
this.btnAfter.Location = new System.Drawing.Point(600, 200);
|
this.btnAfter.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||||
this.btnAfter.Name = "btnAfter";
|
this.btnAfter.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||||
this.btnAfter.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
|
this.btnAfter.Location = new System.Drawing.Point(600, 200);
|
||||||
this.btnAfter.Size = new System.Drawing.Size(31, 20);
|
this.btnAfter.Name = "btnAfter";
|
||||||
this.btnAfter.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
this.btnAfter.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
|
||||||
this.btnAfter.TabIndex = 17;
|
this.btnAfter.Size = new System.Drawing.Size(31, 20);
|
||||||
this.btnAfter.Text = "After";
|
this.btnAfter.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||||
this.btnAfter.Click += new System.EventHandler(this.btnAfter_Click);
|
this.btnAfter.TabIndex = 17;
|
||||||
//
|
this.btnAfter.Text = "After";
|
||||||
// btnSect
|
this.btnAfter.Click += new System.EventHandler(this.btnAfter_Click);
|
||||||
//
|
//
|
||||||
this.btnSect.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
// btnSect
|
||||||
this.btnSect.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
//
|
||||||
this.btnSect.Location = new System.Drawing.Point(405, 200);
|
this.btnSect.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||||
this.btnSect.Name = "btnSect";
|
this.btnSect.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||||
this.btnSect.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
|
this.btnSect.Location = new System.Drawing.Point(405, 200);
|
||||||
this.btnSect.Size = new System.Drawing.Size(31, 20);
|
this.btnSect.Name = "btnSect";
|
||||||
this.btnSect.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
this.btnSect.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
|
||||||
this.btnSect.TabIndex = 18;
|
this.btnSect.Size = new System.Drawing.Size(31, 20);
|
||||||
this.btnSect.Text = "Sect";
|
this.btnSect.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||||
this.btnSect.Click += new System.EventHandler(this.btnSect_Click);
|
this.btnSect.TabIndex = 18;
|
||||||
//
|
this.btnSect.Text = "Sect";
|
||||||
// btnHigh
|
this.btnSect.Click += new System.EventHandler(this.btnSect_Click);
|
||||||
//
|
//
|
||||||
this.btnHigh.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
// btnHigh
|
||||||
this.btnHigh.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
//
|
||||||
this.btnHigh.Location = new System.Drawing.Point(526, 200);
|
this.btnHigh.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||||
this.btnHigh.Name = "btnHigh";
|
this.btnHigh.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||||
this.btnHigh.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
|
this.btnHigh.Location = new System.Drawing.Point(526, 200);
|
||||||
this.btnHigh.Size = new System.Drawing.Size(31, 20);
|
this.btnHigh.Name = "btnHigh";
|
||||||
this.btnHigh.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
this.btnHigh.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
|
||||||
this.btnHigh.TabIndex = 19;
|
this.btnHigh.Size = new System.Drawing.Size(31, 20);
|
||||||
this.btnHigh.Text = "High";
|
this.btnHigh.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||||
this.btnHigh.Click += new System.EventHandler(this.btnHigh_Click);
|
this.btnHigh.TabIndex = 19;
|
||||||
//
|
this.btnHigh.Text = "High";
|
||||||
// btnSEQ
|
this.btnHigh.Click += new System.EventHandler(this.btnHigh_Click);
|
||||||
//
|
//
|
||||||
this.btnSEQ.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
// btnSEQ
|
||||||
this.btnSEQ.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
//
|
||||||
this.btnSEQ.Location = new System.Drawing.Point(563, 200);
|
this.btnSEQ.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||||
this.btnSEQ.Name = "btnSEQ";
|
this.btnSEQ.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||||
this.btnSEQ.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
|
this.btnSEQ.Location = new System.Drawing.Point(563, 200);
|
||||||
this.btnSEQ.Size = new System.Drawing.Size(31, 20);
|
this.btnSEQ.Name = "btnSEQ";
|
||||||
this.btnSEQ.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
this.btnSEQ.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
|
||||||
this.btnSEQ.TabIndex = 20;
|
this.btnSEQ.Size = new System.Drawing.Size(31, 20);
|
||||||
this.btnSEQ.Text = "Seq";
|
this.btnSEQ.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||||
this.btnSEQ.Click += new System.EventHandler(this.btnSEQ_Click);
|
this.btnSEQ.TabIndex = 20;
|
||||||
//
|
this.btnSEQ.Text = "Seq";
|
||||||
// btnParentAfter
|
this.btnSEQ.Click += new System.EventHandler(this.btnSEQ_Click);
|
||||||
//
|
//
|
||||||
this.btnParentAfter.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
// btnParentAfter
|
||||||
this.btnParentAfter.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
//
|
||||||
this.btnParentAfter.Location = new System.Drawing.Point(563, 226);
|
this.btnParentAfter.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||||
this.btnParentAfter.Name = "btnParentAfter";
|
this.btnParentAfter.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||||
this.btnParentAfter.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
|
this.btnParentAfter.Location = new System.Drawing.Point(563, 226);
|
||||||
this.btnParentAfter.Size = new System.Drawing.Size(68, 20);
|
this.btnParentAfter.Name = "btnParentAfter";
|
||||||
this.btnParentAfter.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
this.btnParentAfter.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
|
||||||
this.btnParentAfter.TabIndex = 21;
|
this.btnParentAfter.Size = new System.Drawing.Size(68, 20);
|
||||||
this.btnParentAfter.Text = "Parent After";
|
this.btnParentAfter.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||||
this.btnParentAfter.Click += new System.EventHandler(this.btnParentAfter_Click);
|
this.btnParentAfter.TabIndex = 21;
|
||||||
//
|
this.btnParentAfter.Text = "Parent After";
|
||||||
// btnSplit
|
this.btnParentAfter.Click += new System.EventHandler(this.btnParentAfter_Click);
|
||||||
//
|
//
|
||||||
this.btnSplit.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
// btnSplit
|
||||||
this.btnSplit.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
//
|
||||||
this.btnSplit.Location = new System.Drawing.Point(526, 226);
|
this.btnSplit.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||||
this.btnSplit.Name = "btnSplit";
|
this.btnSplit.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||||
this.btnSplit.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
|
this.btnSplit.Location = new System.Drawing.Point(526, 226);
|
||||||
this.btnSplit.Size = new System.Drawing.Size(31, 20);
|
this.btnSplit.Name = "btnSplit";
|
||||||
this.btnSplit.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
this.btnSplit.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
|
||||||
this.btnSplit.TabIndex = 22;
|
this.btnSplit.Size = new System.Drawing.Size(31, 20);
|
||||||
this.btnSplit.Text = "Split";
|
this.btnSplit.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||||
this.btnSplit.Click += new System.EventHandler(this.btnSplit_Click);
|
this.btnSplit.TabIndex = 22;
|
||||||
//
|
this.btnSplit.Text = "Split";
|
||||||
// btnPaste
|
this.btnSplit.Click += new System.EventHandler(this.btnSplit_Click);
|
||||||
//
|
//
|
||||||
this.btnPaste.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
// btnPaste
|
||||||
this.btnPaste.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
//
|
||||||
this.btnPaste.Location = new System.Drawing.Point(636, 252);
|
this.btnPaste.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||||
this.btnPaste.Name = "btnPaste";
|
this.btnPaste.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||||
this.btnPaste.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
|
this.btnPaste.Location = new System.Drawing.Point(636, 252);
|
||||||
this.btnPaste.Size = new System.Drawing.Size(83, 20);
|
this.btnPaste.Name = "btnPaste";
|
||||||
this.btnPaste.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
this.btnPaste.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
|
||||||
this.btnPaste.TabIndex = 23;
|
this.btnPaste.Size = new System.Drawing.Size(83, 20);
|
||||||
this.btnPaste.Text = "Paste";
|
this.btnPaste.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||||
this.btnPaste.Click += new System.EventHandler(this.btnPaste_Click);
|
this.btnPaste.TabIndex = 23;
|
||||||
//
|
this.btnPaste.Text = "Paste";
|
||||||
// tbxNumber
|
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(434, 58);
|
this.tbxNumber.Border.Class = "TextBoxBorder";
|
||||||
this.tbxNumber.Name = "tbxNumber";
|
this.tbxNumber.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||||
this.tbxNumber.PreventEnterBeep = true;
|
this.tbxNumber.Location = new System.Drawing.Point(434, 58);
|
||||||
this.tbxNumber.Size = new System.Drawing.Size(56, 20);
|
this.tbxNumber.Name = "tbxNumber";
|
||||||
this.tbxNumber.TabIndex = 25;
|
this.tbxNumber.PreventEnterBeep = true;
|
||||||
//
|
this.tbxNumber.Size = new System.Drawing.Size(56, 20);
|
||||||
// labelX4
|
this.tbxNumber.TabIndex = 25;
|
||||||
//
|
//
|
||||||
//
|
// labelX4
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
//
|
||||||
this.labelX4.Location = new System.Drawing.Point(377, 58);
|
//
|
||||||
this.labelX4.Name = "labelX4";
|
this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||||
this.labelX4.Size = new System.Drawing.Size(51, 23);
|
this.labelX4.Location = new System.Drawing.Point(377, 58);
|
||||||
this.labelX4.TabIndex = 24;
|
this.labelX4.Name = "labelX4";
|
||||||
this.labelX4.Text = "Number:";
|
this.labelX4.Size = new System.Drawing.Size(51, 23);
|
||||||
//
|
this.labelX4.TabIndex = 24;
|
||||||
// lblTable
|
this.labelX4.Text = "Number:";
|
||||||
//
|
//
|
||||||
//
|
// lblTable
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
this.lblTable.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
//
|
||||||
this.lblTable.Location = new System.Drawing.Point(496, 58);
|
//
|
||||||
this.lblTable.Name = "lblTable";
|
this.lblTable.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||||
this.lblTable.Size = new System.Drawing.Size(52, 23);
|
this.lblTable.Location = new System.Drawing.Point(496, 58);
|
||||||
this.lblTable.TabIndex = 26;
|
this.lblTable.Name = "lblTable";
|
||||||
this.lblTable.Text = "Not Table";
|
this.lblTable.Size = new System.Drawing.Size(52, 23);
|
||||||
//
|
this.lblTable.TabIndex = 26;
|
||||||
// btnCurrent
|
this.lblTable.Text = "Not Table";
|
||||||
//
|
//
|
||||||
this.btnCurrent.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
// btnCurrent
|
||||||
this.btnCurrent.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
//
|
||||||
this.btnCurrent.Location = new System.Drawing.Point(637, 171);
|
this.btnCurrent.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||||
this.btnCurrent.Name = "btnCurrent";
|
this.btnCurrent.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||||
this.btnCurrent.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F12);
|
this.btnCurrent.Location = new System.Drawing.Point(637, 171);
|
||||||
this.btnCurrent.Size = new System.Drawing.Size(84, 23);
|
this.btnCurrent.Name = "btnCurrent";
|
||||||
this.btnCurrent.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
this.btnCurrent.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F12);
|
||||||
this.btnCurrent.TabIndex = 27;
|
this.btnCurrent.Size = new System.Drawing.Size(84, 23);
|
||||||
this.btnCurrent.Text = "Current";
|
this.btnCurrent.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||||
this.btnCurrent.Click += new System.EventHandler(this.btnCurrent_Click);
|
this.btnCurrent.TabIndex = 27;
|
||||||
//
|
this.btnCurrent.Text = "Current";
|
||||||
// btnTest
|
this.btnCurrent.Click += new System.EventHandler(this.btnCurrent_Click);
|
||||||
//
|
//
|
||||||
this.btnTest.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
// btnTest
|
||||||
this.btnTest.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
//
|
||||||
this.btnTest.Location = new System.Drawing.Point(122, 3);
|
this.btnTest.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||||
this.btnTest.Name = "btnTest";
|
this.btnTest.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||||
this.btnTest.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
|
this.btnTest.Location = new System.Drawing.Point(122, 3);
|
||||||
this.btnTest.Size = new System.Drawing.Size(31, 20);
|
this.btnTest.Name = "btnTest";
|
||||||
this.btnTest.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
this.btnTest.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
|
||||||
this.btnTest.TabIndex = 28;
|
this.btnTest.Size = new System.Drawing.Size(31, 20);
|
||||||
this.btnTest.Text = "Test";
|
this.btnTest.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||||
this.btnTest.Visible = false;
|
this.btnTest.TabIndex = 28;
|
||||||
//
|
this.btnTest.Text = "Test";
|
||||||
// txbImport
|
this.btnTest.Visible = false;
|
||||||
//
|
//
|
||||||
this.txbImport.Font = new System.Drawing.Font("Times New Roman", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
// txbImport
|
||||||
this.txbImport.Location = new System.Drawing.Point(16, 178);
|
//
|
||||||
this.txbImport.Multiline = true;
|
this.txbImport.Font = new System.Drawing.Font("Times New Roman", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.txbImport.Name = "txbImport";
|
this.txbImport.Location = new System.Drawing.Point(16, 178);
|
||||||
this.txbImport.Size = new System.Drawing.Size(360, 93);
|
this.txbImport.Multiline = true;
|
||||||
this.txbImport.TabIndex = 29;
|
this.txbImport.Name = "txbImport";
|
||||||
//
|
this.txbImport.Size = new System.Drawing.Size(360, 93);
|
||||||
// lblFS
|
this.txbImport.TabIndex = 29;
|
||||||
//
|
//
|
||||||
//
|
// lblFS
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
this.lblFS.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
//
|
||||||
this.lblFS.Location = new System.Drawing.Point(563, 58);
|
//
|
||||||
this.lblFS.Name = "lblFS";
|
this.lblFS.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||||
this.lblFS.Size = new System.Drawing.Size(52, 23);
|
this.lblFS.Location = new System.Drawing.Point(563, 58);
|
||||||
this.lblFS.TabIndex = 30;
|
this.lblFS.Name = "lblFS";
|
||||||
this.lblFS.Text = "FS";
|
this.lblFS.Size = new System.Drawing.Size(52, 23);
|
||||||
//
|
this.lblFS.TabIndex = 30;
|
||||||
// frmImportWordContents
|
this.lblFS.Text = "FS";
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
// btnTableConvert
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
//
|
||||||
this.ClientSize = new System.Drawing.Size(731, 280);
|
this.btnTableConvert.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
|
||||||
this.Controls.Add(this.lblFS);
|
this.btnTableConvert.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
|
||||||
this.Controls.Add(this.txbImport);
|
this.btnTableConvert.Location = new System.Drawing.Point(405, 226);
|
||||||
this.Controls.Add(this.btnTest);
|
this.btnTableConvert.Name = "btnTableConvert";
|
||||||
this.Controls.Add(this.btnCurrent);
|
this.btnTableConvert.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3);
|
||||||
this.Controls.Add(this.lblTable);
|
this.btnTableConvert.Size = new System.Drawing.Size(31, 20);
|
||||||
this.Controls.Add(this.tbxNumber);
|
this.btnTableConvert.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||||
this.Controls.Add(this.labelX4);
|
this.btnTableConvert.TabIndex = 31;
|
||||||
this.Controls.Add(this.btnPaste);
|
this.btnTableConvert.Text = "Table";
|
||||||
this.Controls.Add(this.btnSplit);
|
this.btnTableConvert.Click += new System.EventHandler(this.btnTableConvert_Click);
|
||||||
this.Controls.Add(this.btnParentAfter);
|
//
|
||||||
this.Controls.Add(this.btnSEQ);
|
// pbTable
|
||||||
this.Controls.Add(this.btnHigh);
|
//
|
||||||
this.Controls.Add(this.btnSect);
|
this.pbTable.Location = new System.Drawing.Point(405, 252);
|
||||||
this.Controls.Add(this.btnAfter);
|
this.pbTable.Name = "pbTable";
|
||||||
this.Controls.Add(this.btnReplaceNext);
|
this.pbTable.Size = new System.Drawing.Size(225, 20);
|
||||||
this.Controls.Add(this.btnInsertNext);
|
this.pbTable.TabIndex = 32;
|
||||||
this.Controls.Add(this.btnNextRpl);
|
//
|
||||||
this.Controls.Add(this.btnNextIns);
|
// frmImportWordContents
|
||||||
this.Controls.Add(this.btnNext);
|
//
|
||||||
this.Controls.Add(this.btnPrev);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.Controls.Add(this.btnPage);
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.Controls.Add(this.btnOpen);
|
this.ClientSize = new System.Drawing.Size(731, 280);
|
||||||
this.Controls.Add(this.txbWrdText);
|
this.Controls.Add(this.pbTable);
|
||||||
this.Controls.Add(this.txbLevel);
|
this.Controls.Add(this.btnTableConvert);
|
||||||
this.Controls.Add(this.labelX3);
|
this.Controls.Add(this.lblFS);
|
||||||
this.Controls.Add(this.txvStyle);
|
this.Controls.Add(this.txbImport);
|
||||||
this.Controls.Add(this.labelX2);
|
this.Controls.Add(this.btnTest);
|
||||||
this.Controls.Add(this.btnBrowse);
|
this.Controls.Add(this.btnCurrent);
|
||||||
this.Controls.Add(this.labelX1);
|
this.Controls.Add(this.lblTable);
|
||||||
this.Controls.Add(this.txbWordFile);
|
this.Controls.Add(this.tbxNumber);
|
||||||
this.MaximizeBox = false;
|
this.Controls.Add(this.labelX4);
|
||||||
this.MinimizeBox = false;
|
this.Controls.Add(this.btnPaste);
|
||||||
this.Name = "frmImportWordContents";
|
this.Controls.Add(this.btnSplit);
|
||||||
this.ShowIcon = false;
|
this.Controls.Add(this.btnParentAfter);
|
||||||
this.Text = "Import Word Contents";
|
this.Controls.Add(this.btnSEQ);
|
||||||
this.Activated += new System.EventHandler(this.frmImportWordContents_Activated);
|
this.Controls.Add(this.btnHigh);
|
||||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmImportWordContents_FormClosing);
|
this.Controls.Add(this.btnSect);
|
||||||
this.ResumeLayout(false);
|
this.Controls.Add(this.btnAfter);
|
||||||
this.PerformLayout();
|
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);
|
||||||
|
this.Controls.Add(this.btnPrev);
|
||||||
|
this.Controls.Add(this.btnPage);
|
||||||
|
this.Controls.Add(this.btnOpen);
|
||||||
|
this.Controls.Add(this.txbWrdText);
|
||||||
|
this.Controls.Add(this.txbLevel);
|
||||||
|
this.Controls.Add(this.labelX3);
|
||||||
|
this.Controls.Add(this.txvStyle);
|
||||||
|
this.Controls.Add(this.labelX2);
|
||||||
|
this.Controls.Add(this.btnBrowse);
|
||||||
|
this.Controls.Add(this.labelX1);
|
||||||
|
this.Controls.Add(this.txbWordFile);
|
||||||
|
this.MaximizeBox = false;
|
||||||
|
this.MinimizeBox = false;
|
||||||
|
this.Name = "frmImportWordContents";
|
||||||
|
this.ShowIcon = false;
|
||||||
|
this.Text = "Import Word Contents";
|
||||||
|
this.Activated += new System.EventHandler(this.frmImportWordContents_Activated);
|
||||||
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmImportWordContents_FormClosing);
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -531,5 +555,7 @@
|
|||||||
private DevComponents.DotNetBar.ButtonX btnTest;
|
private DevComponents.DotNetBar.ButtonX btnTest;
|
||||||
private System.Windows.Forms.TextBox txbImport;
|
private System.Windows.Forms.TextBox txbImport;
|
||||||
private DevComponents.DotNetBar.LabelX lblFS;
|
private DevComponents.DotNetBar.LabelX lblFS;
|
||||||
|
private DevComponents.DotNetBar.ButtonX btnTableConvert;
|
||||||
|
private System.Windows.Forms.ProgressBar pbTable;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,8 @@ using System.Text;
|
|||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using LBWordLibrary;
|
using LBWordLibrary;
|
||||||
|
using System.Xml;
|
||||||
|
using VEPROMS.CSLA.Library;
|
||||||
|
|
||||||
namespace Volian.Controls.Library
|
namespace Volian.Controls.Library
|
||||||
{
|
{
|
||||||
@ -30,7 +32,7 @@ namespace Volian.Controls.Library
|
|||||||
disableButtons();
|
disableButtons();
|
||||||
_initializing = false;
|
_initializing = false;
|
||||||
// B2019-108 Enable/disable buttons
|
// B2019-108 Enable/disable buttons
|
||||||
btnOpen.Enabled = File.Exists(txbWordFile.Text) && _WordApp==null;
|
btnOpen.Enabled = File.Exists(txbWordFile.Text) && _WordApp == null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void disableButtons()
|
private void disableButtons()
|
||||||
@ -104,7 +106,7 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
private void btnPrev_Click(object sender, EventArgs e)
|
private void btnPrev_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
// C2019-021 RHM 5/15/2019 Added new methods and properties for Import Word Content
|
// C2019-021 RHM 5/15/2019 Added new methods and properties for Import Word Content
|
||||||
_WordApp.Selection.MoveUp(LBWdUnits.wdParagraph, 1, 0); // Move to previous paragraph
|
_WordApp.Selection.MoveUp(LBWdUnits.wdParagraph, 1, 0); // Move to previous paragraph
|
||||||
_WordApp.Selection.MoveUp(LBWdUnits.wdParagraph, 1, 1); // Select paragraph
|
_WordApp.Selection.MoveUp(LBWdUnits.wdParagraph, 1, 1); // Select paragraph
|
||||||
//_WordApp.Selection.MoveEnd(LBWdUnits.wdCharacter, -1); // Move 1 Character Back
|
//_WordApp.Selection.MoveEnd(LBWdUnits.wdCharacter, -1); // Move 1 Character Back
|
||||||
@ -137,7 +139,7 @@ namespace Volian.Controls.Library
|
|||||||
int columnIndex = _WordApp.Selection.Cells[1].ColumnIndex;
|
int columnIndex = _WordApp.Selection.Cells[1].ColumnIndex;
|
||||||
// Only do this for tables
|
// Only do this for tables
|
||||||
if (_WordApp.Selection.Tables != null && _WordApp.Selection.Tables.Count > 0)
|
if (_WordApp.Selection.Tables != null && _WordApp.Selection.Tables.Count > 0)
|
||||||
{
|
{
|
||||||
LBTable tbl = _WordApp.Selection.Tables[1];
|
LBTable tbl = _WordApp.Selection.Tables[1];
|
||||||
if (tbl.Range.Cells != null && tbl.Range.Cells.Count > 0)
|
if (tbl.Range.Cells != null && tbl.Range.Cells.Count > 0)
|
||||||
{
|
{
|
||||||
@ -151,8 +153,8 @@ namespace Volian.Controls.Library
|
|||||||
if (myCell.RowIndex == rowIndex && myCell.ColumnIndex == columnIndex)
|
if (myCell.RowIndex == rowIndex && myCell.ColumnIndex == columnIndex)
|
||||||
{
|
{
|
||||||
// Move the Start to the start of the next cell
|
// Move the Start to the start of the next cell
|
||||||
_WordApp.Selection.Start = tbl.Range.Cells[i + 1].Range.Start;
|
_WordApp.Selection.Start = tbl.Range.Cells[i + 1].Range.Start;
|
||||||
// Select the entire cell
|
// Select the entire cell_WordApp.Selection.Start =
|
||||||
_WordApp.Selection.SelectCell();
|
_WordApp.Selection.SelectCell();
|
||||||
return true; // Cell Found and moved
|
return true; // Cell Found and moved
|
||||||
}
|
}
|
||||||
@ -208,7 +210,7 @@ namespace Volian.Controls.Library
|
|||||||
txvStyle.Text = _WordApp.Selection.Style.NameLocal;
|
txvStyle.Text = _WordApp.Selection.Style.NameLocal;
|
||||||
txbLevel.Text = _WordApp.Selection.Style.ListLevelNumber.ToString();
|
txbLevel.Text = _WordApp.Selection.Style.ListLevelNumber.ToString();
|
||||||
tbxNumber.Text = _WordApp.Selection.Range.ListFormat.ListString;
|
tbxNumber.Text = _WordApp.Selection.Range.ListFormat.ListString;
|
||||||
// C2019-021 RHM 5/15/2019 Added new methods and properties for Import Word Content
|
// C2019-021 RHM 5/15/2019 Added new methods and properties for Import Word Content
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
//Console.WriteLine("Cell Count = {0}", _WordApp.Selection.Cells.Count);
|
//Console.WriteLine("Cell Count = {0}", _WordApp.Selection.Cells.Count);
|
||||||
@ -230,7 +232,7 @@ namespace Volian.Controls.Library
|
|||||||
.Replace("\x201C", "\"")// Space
|
.Replace("\x201C", "\"")// Space
|
||||||
.Replace("\x201D", "\"")// Space
|
.Replace("\x201D", "\"")// Space
|
||||||
.Replace("\x09INITIAL", "")// Space
|
.Replace("\x09INITIAL", "")// Space
|
||||||
);
|
);
|
||||||
if (txt.Contains("\x09_____")) // Tab Signoff
|
if (txt.Contains("\x09_____")) // Tab Signoff
|
||||||
txt = txt.Substring(0, txt.IndexOf("\x09_____")).TrimEnd(" \x09".ToCharArray());// Trim spaces and Tabs
|
txt = txt.Substring(0, txt.IndexOf("\x09_____")).TrimEnd(" \x09".ToCharArray());// Trim spaces and Tabs
|
||||||
txbWrdText.Text = txt;
|
txbWrdText.Text = txt;
|
||||||
@ -331,7 +333,7 @@ namespace Volian.Controls.Library
|
|||||||
vg.StartEditing();
|
vg.StartEditing();
|
||||||
MyStepRTB.Text = txbWrdText.Text;
|
MyStepRTB.Text = txbWrdText.Text;
|
||||||
// B2019-108 Set font for table cell
|
// B2019-108 Set font for table cell
|
||||||
if (MyStepRTB.Parent is VlnFlexGrid && lblFS.Text !="FS")
|
if (MyStepRTB.Parent is VlnFlexGrid && lblFS.Text != "FS")
|
||||||
{
|
{
|
||||||
Font fs = MyStepRTB.Font;
|
Font fs = MyStepRTB.Font;
|
||||||
fs = new Font(fs.FontFamily, float.Parse(lblFS.Text.Replace("Pts", "")), fs.Style);
|
fs = new Font(fs.FontFamily, float.Parse(lblFS.Text.Replace("Pts", "")), fs.Style);
|
||||||
@ -422,7 +424,7 @@ namespace Volian.Controls.Library
|
|||||||
if (MyStepRTB != null)
|
if (MyStepRTB != null)
|
||||||
{
|
{
|
||||||
EditItem ei = GetEditItem(MyStepRTB);
|
EditItem ei = GetEditItem(MyStepRTB);
|
||||||
if (ei != null && ei.MyItemInfo.IsSection)
|
if (ei != null && ei.MyItemInfo.IsSection)
|
||||||
{
|
{
|
||||||
ei.AddChild(VEPROMS.CSLA.Library.E_FromType.Step, 20002);
|
ei.AddChild(VEPROMS.CSLA.Library.E_FromType.Step, 20002);
|
||||||
return;
|
return;
|
||||||
@ -517,8 +519,6 @@ namespace Volian.Controls.Library
|
|||||||
//else
|
//else
|
||||||
Clipboard.SetText(txbWrdText.Text);
|
Clipboard.SetText(txbWrdText.Text);
|
||||||
}
|
}
|
||||||
catch
|
|
||||||
{ }
|
|
||||||
}
|
}
|
||||||
//private void btnTest_Click(object sender, EventArgs e)
|
//private void btnTest_Click(object sender, EventArgs e)
|
||||||
//{
|
//{
|
||||||
@ -557,6 +557,10 @@ namespace Volian.Controls.Library
|
|||||||
// B2019-108 Handle WordApp status
|
// B2019-108 Handle WordApp status
|
||||||
private void frmImportWordContents_Activated(object sender, EventArgs e)
|
private void frmImportWordContents_Activated(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
// B2019-108 Corrected curent button code
|
||||||
|
//_WordApp.Selection.MoveUp(LBWdUnits.wdParagraph, 1, 0); // Select paragraph
|
||||||
|
//_WordApp.Selection.MoveDown(LBWdUnits.wdParagraph, 1, 1); // Select paragraph
|
||||||
|
//_WordApp.Selection.MoveEnd(LBWdUnits.wdCharacter, -1); // Exclude the last character
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (_WordApp != null || _WordApp.WindowState == LBWdWindowState.wdWindowStateMinimize)
|
if (_WordApp != null || _WordApp.WindowState == LBWdWindowState.wdWindowStateMinimize)
|
||||||
@ -564,9 +568,322 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
_WordApp=null;
|
_WordApp = null;
|
||||||
disableButtons();
|
disableButtons();
|
||||||
}
|
}
|
||||||
|
catch
|
||||||
|
{ }
|
||||||
}
|
}
|
||||||
}
|
//private void btnTest_Click(object sender, EventArgs e)
|
||||||
|
//{
|
||||||
|
// if (!MoveToNextCell())
|
||||||
|
// {
|
||||||
|
// _WordApp.Selection.MoveDown(LBWdUnits.wdParagraph, 2, 0);
|
||||||
|
// _WordApp.Selection.MoveDown(LBWdUnits.wdParagraph, 1, 1);
|
||||||
|
// }
|
||||||
|
// _WordApp.Activate();
|
||||||
|
// //int cols = _WordApp.Selection.Tables[1].Columns.Count;
|
||||||
|
//}
|
||||||
|
|
||||||
|
// B2019-108 Show special Characters
|
||||||
|
private void txbWrdText_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
txbImport.Text = fixText(txbWrdText.Text);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnTableConvert_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
string xml = ConvertWordToXML();
|
||||||
|
if (xml == null)
|
||||||
|
{
|
||||||
|
MessageBox.Show("Make sure that the Selection is within a table in Word");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
XmlDocument xd = new XmlDocument();
|
||||||
|
xml = xml.Replace("\x0B", "\r\n");
|
||||||
|
try
|
||||||
|
{
|
||||||
|
xd.LoadXml(xml);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Console.WriteLine("{0} - {1}", ex.GetType().Name, ex.Message);
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
foreach (char c in xml)
|
||||||
|
{
|
||||||
|
int ic = c;
|
||||||
|
if (ic < 32 || ic > 128)
|
||||||
|
sb.Append(string.Format("<<<<{0:X4}>>>>", ic));
|
||||||
|
else
|
||||||
|
sb.Append(c);
|
||||||
|
}
|
||||||
|
MessageBox.Show(ex.Message + "\r\n" + sb.ToString(), ex.GetType().Name);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
LoadTable2(xd.DocumentElement);
|
||||||
|
int type = 20008;
|
||||||
|
ItemInfo myTable;
|
||||||
|
if(MyStepRTB.MyItemInfo.IsTable)
|
||||||
|
{
|
||||||
|
using( Item itm = MyStepRTB.MyItemInfo.Get())
|
||||||
|
{
|
||||||
|
itm.MyContent.MyGrid.Data = TblFlexGrid.GetXMLData();
|
||||||
|
itm.MyContent.Text= TblFlexGrid.GetSearchableText();
|
||||||
|
itm.Save();
|
||||||
|
ItemInfo.Refresh(itm);
|
||||||
|
ContentInfo.Refresh(itm.MyContent);
|
||||||
|
GridInfo.Refresh(itm.MyContent.MyGrid);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//using (Step stp = Step.MakeStep(MyStepRTB.MyItemInfo, null, null, TblFlexGrid.GetSearchableText() , 20008, E_FromType.Table))
|
||||||
|
//{
|
||||||
|
// myTable = ItemInfo.Get(stp.ItemID);
|
||||||
|
// Grid.MakeGrid(stp.MyContent, TblFlexGrid.GetXMLData(), "");
|
||||||
|
//}
|
||||||
|
//MyStepRTB.MyItemInfo.MyContent.RefreshContentParts();
|
||||||
|
EditItem ei = MyStepRTB.Parent as EditItem;
|
||||||
|
ei.AddChild(E_FromType.Table, 20008, TblFlexGrid);
|
||||||
|
if (ei != null) ei.SetAllTabs();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private string ConvertWordToXML()
|
||||||
|
{
|
||||||
|
string sXML = null;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
DateTime tstart = DateTime.Now;
|
||||||
|
if (_WordApp.Selection.Tables != null && _WordApp.Selection.Tables.Count > 0)
|
||||||
|
{
|
||||||
|
LBTable tbl = _WordApp.Selection.Tables[1];
|
||||||
|
if (tbl.Range.Cells != null && tbl.Range.Cells.Count > 0)
|
||||||
|
{
|
||||||
|
// size variables to match table row and column dimensions
|
||||||
|
int[] Wcol = new int[tbl.Columns.Count];
|
||||||
|
int[,] Wcell = new int[tbl.Rows.Count, tbl.Columns.Count];
|
||||||
|
int[,] Hcell = new int[tbl.Rows.Count, tbl.Columns.Count];
|
||||||
|
int[,] SpanC = new int[tbl.Rows.Count, tbl.Columns.Count];
|
||||||
|
int[,] SpanR = new int[tbl.Rows.Count, tbl.Columns.Count];
|
||||||
|
|
||||||
|
DateTime tend = DateTime.Now; Console.WriteLine("{0} before Loop", TimeSpan.FromTicks(tend.Ticks - tstart.Ticks).TotalMilliseconds); tstart = tend;
|
||||||
|
pbTable.Maximum = tbl.Columns.Count * tbl.Rows.Count * tbl.Range.Cells.Count;
|
||||||
|
pbTable.Value = 0;
|
||||||
|
int iR = 0;
|
||||||
|
int iC = 0;
|
||||||
|
// capture widths for valid cells
|
||||||
|
for (int i = 1; i <= tbl.Range.Cells.Count; i++)
|
||||||
|
{
|
||||||
|
//LBCell myCell = tbl.Range.Cells[i];
|
||||||
|
// convert points to pixels and save value
|
||||||
|
int w = (int)(tbl.Range.Cells[i].Width * 8 / 6);
|
||||||
|
iC = tbl.Range.Cells[i].ColumnIndex - 1;
|
||||||
|
Wcell[tbl.Range.Cells[i].RowIndex - 1, iC] = w;
|
||||||
|
Hcell[tbl.Range.Cells[i].RowIndex - 1, iC] = (int)(tbl.Range.Cells[i].Height * 8 / 6);
|
||||||
|
if (Wcol[iC] == 0)
|
||||||
|
{
|
||||||
|
Wcol[iC] = w;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (Wcol[iC] > w)
|
||||||
|
{
|
||||||
|
Wcol[iC] = w;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tend = DateTime.Now; Console.WriteLine("{0} before table width", TimeSpan.FromTicks(tend.Ticks - tstart.Ticks).TotalMilliseconds); tstart = tend;
|
||||||
|
int TableWidth = 0;
|
||||||
|
for (iC = 0; iC < tbl.Columns.Count; iC++)
|
||||||
|
{
|
||||||
|
TableWidth = TableWidth + Wcol[iC];
|
||||||
|
}
|
||||||
|
tend = DateTime.Now; Console.WriteLine("{0} before Rollup columns", TimeSpan.FromTicks(tend.Ticks - tstart.Ticks).TotalMilliseconds); tstart = tend;
|
||||||
|
// roll up columns
|
||||||
|
for (iR = 0; iR < tbl.Rows.Count; iR++)
|
||||||
|
{
|
||||||
|
int tmp = 0;
|
||||||
|
for (iC = 0; iC < tbl.Columns.Count; iC++)
|
||||||
|
{
|
||||||
|
if (Wcell[iR, iC] > TableWidth)
|
||||||
|
{
|
||||||
|
Wcell[iR, iC] = Wcol[iC];
|
||||||
|
SpanC[iR, iC] = 1;
|
||||||
|
}
|
||||||
|
else if (Wcell[iR, iC] > 0)
|
||||||
|
{
|
||||||
|
SpanC[iR, iC] = 1;
|
||||||
|
tmp = Wcell[iR, iC] - Wcol[iC];
|
||||||
|
while (tmp > 0)
|
||||||
|
{
|
||||||
|
for (int i = tbl.Columns.Count - 1; i > iC + 1; i--)
|
||||||
|
{
|
||||||
|
Wcell[iR, i] = Wcell[iR, i - 1];
|
||||||
|
Wcell[iR, i - 1] = 0;
|
||||||
|
}
|
||||||
|
tmp = tmp - Wcol[iC + SpanC[iR, iC]];
|
||||||
|
SpanC[iR, iC]++;
|
||||||
|
}
|
||||||
|
iC = iC + SpanC[iR, iC] - 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tend = DateTime.Now; Console.WriteLine("{0} before Rollup rows", TimeSpan.FromTicks(tend.Ticks - tstart.Ticks).TotalMilliseconds); tstart = tend;
|
||||||
|
//roll up row spans
|
||||||
|
for (iC = 0; iC < tbl.Columns.Count; iC++)
|
||||||
|
{
|
||||||
|
int LastGood = 0;
|
||||||
|
for (iR = 0; iR < tbl.Rows.Count; iR++)
|
||||||
|
{
|
||||||
|
if (Wcell[iR, iC] > 0)
|
||||||
|
{
|
||||||
|
// valid cell
|
||||||
|
LastGood = iR;
|
||||||
|
SpanR[LastGood, iC] = 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// invalid cell
|
||||||
|
SpanR[LastGood, iC]++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tend = DateTime.Now; Console.WriteLine("{0} before Build", TimeSpan.FromTicks(tend.Ticks - tstart.Ticks).TotalMilliseconds); tstart = tend;
|
||||||
|
|
||||||
|
// build xml for this table
|
||||||
|
|
||||||
|
iR = -1;
|
||||||
|
int offset = 0;
|
||||||
|
sXML = "<table>";
|
||||||
|
for (int i = 1; i <= tbl.Range.Cells.Count; i++)
|
||||||
|
{
|
||||||
|
|
||||||
|
LBCell myCell = tbl.Range.Cells[i];
|
||||||
|
// if this cell has matching indices save its text
|
||||||
|
if (iR != myCell.RowIndex - 1)
|
||||||
|
{
|
||||||
|
// this is a new row
|
||||||
|
if (myCell.RowIndex > 1)
|
||||||
|
{
|
||||||
|
// close previous row
|
||||||
|
sXML += "</tr>";
|
||||||
|
}
|
||||||
|
// start new row
|
||||||
|
sXML += "<tr>";
|
||||||
|
iR = myCell.RowIndex - 1;
|
||||||
|
offset = 0;
|
||||||
|
}
|
||||||
|
sXML += "<td";
|
||||||
|
iC = myCell.ColumnIndex - 1 + offset;
|
||||||
|
if (SpanR[iR, iC] > 1)
|
||||||
|
{
|
||||||
|
sXML += " rowspan=\"" + SpanR[iR, iC] + "\"";
|
||||||
|
}
|
||||||
|
if (SpanC[iR, iC] > 1)
|
||||||
|
{
|
||||||
|
sXML += " colspan=\"" + SpanC[iR, iC] + "\"";
|
||||||
|
offset += SpanC[iR, iC] - 1;
|
||||||
|
}
|
||||||
|
else if (Wcol[iC] > 0)
|
||||||
|
{
|
||||||
|
sXML += " width=\"" + Wcol[iC] + "\"";
|
||||||
|
Wcol[iC] = Wcol[iC] * -1;
|
||||||
|
}
|
||||||
|
string textalign = "";
|
||||||
|
string ha;
|
||||||
|
switch (myCell.Range.ParagraphFormat.Alignment)
|
||||||
|
{
|
||||||
|
case LBWdParagraphAlignment.wdAlignParagraphCenter:
|
||||||
|
textalign += "Center";
|
||||||
|
ha = "\\qc";
|
||||||
|
break;
|
||||||
|
case LBWdParagraphAlignment.wdAlignParagraphRight:
|
||||||
|
textalign += "Right";
|
||||||
|
ha = "\\qr";
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
textalign += "Left";
|
||||||
|
ha = "\\ql";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
switch (myCell.VerticalAlignment)
|
||||||
|
{
|
||||||
|
case LBWdCellVerticalAlignment.wdCellAlignVerticalBottom:
|
||||||
|
textalign += "Bottom";
|
||||||
|
break;
|
||||||
|
case LBWdCellVerticalAlignment.wdCellAlignVerticalCenter:
|
||||||
|
textalign += "Center";
|
||||||
|
break;
|
||||||
|
case default(LBWdCellVerticalAlignment):
|
||||||
|
textalign += "Top";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
sXML += " textalign=\"" + textalign + "\"";
|
||||||
|
sXML += ">";
|
||||||
|
// select text from current cell
|
||||||
|
_WordApp.Selection.Start = myCell.Range.Start;
|
||||||
|
_WordApp.Selection.SelectCell();
|
||||||
|
_WordApp.Selection.End = _WordApp.Selection.End - 1;
|
||||||
|
if (_WordApp.Selection.End > _WordApp.Selection.Start)
|
||||||
|
{
|
||||||
|
// capture formatted text
|
||||||
|
StepRTB rtbStep = new StepRTB();
|
||||||
|
_WordApp.Selection.Copy();
|
||||||
|
rtbStep.Paste();
|
||||||
|
rtbStep.SelectAll();
|
||||||
|
Console.WriteLine("RTF before {0}", rtbStep.Rtf);
|
||||||
|
Console.WriteLine("RTF after {0}", rtbStep.Rtf);
|
||||||
|
// rtbStep.Rtf.Replace("\\f1 P\\f0 ", "\\u10004?"); // check mark within parenthesis
|
||||||
|
string strp = rtbStep.Rtf.Replace("\\par\r\n", "!!!");
|
||||||
|
strp = DisplayText.StaticStripRtfCommands(strp, true);
|
||||||
|
Console.WriteLine("RTF clean {0}", strp);
|
||||||
|
strp = strp.Remove(strp.LastIndexOf("!!!"));
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.Append(strp);
|
||||||
|
sb.Replace("!!!", "\\par");
|
||||||
|
// clean up special characters
|
||||||
|
{
|
||||||
|
sb.Replace("\x1D", "-");// Hyphen
|
||||||
|
sb.Replace("\x1E", "-");// Hyphen
|
||||||
|
sb.Replace("\x2013", "-");// Hyphen
|
||||||
|
sb.Replace("\xa0", " ");// Space
|
||||||
|
sb.Replace("\x0b", " ");// Space Soft Return
|
||||||
|
sb.Replace("\x201C", "\"");// Space
|
||||||
|
sb.Replace("\x201D", "\"");// Space
|
||||||
|
sb.Replace("\x09INITIAL", "");// Space
|
||||||
|
sb.Replace("\x09_____", ""); // Tab Signoff
|
||||||
|
//sb.Replace("(P)", "(\\u10004?)"); // check mark within parenthesis
|
||||||
|
//sb.Replace("\\u9633?", "□"); //box
|
||||||
|
}
|
||||||
|
// save resulting text in xml structure
|
||||||
|
sXML += "<p>" + ha + sb + "</p></td>";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sXML += "<p></p></td>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (iR >= 0)
|
||||||
|
{
|
||||||
|
// at least one row hase been written so close the last row
|
||||||
|
sXML += "</tr>";
|
||||||
|
}
|
||||||
|
sXML += "</table>";
|
||||||
|
tend = DateTime.Now; Console.WriteLine("{0} After Build", TimeSpan.FromTicks(tend.Ticks - tstart.Ticks).TotalMilliseconds); tstart = tend;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
while (ex != null)
|
||||||
|
{
|
||||||
|
Console.WriteLine("Column{0} - {1}", ex.GetType().Name, ex.Message);
|
||||||
|
ex = ex.InnerException;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return sXML;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user