diff --git a/PROMS/Volian.Controls.Library/frmImportWordContents.Designer.cs b/PROMS/Volian.Controls.Library/frmImportWordContents.Designer.cs index 9aef241a..0e7f482d 100644 --- a/PROMS/Volian.Controls.Library/frmImportWordContents.Designer.cs +++ b/PROMS/Volian.Controls.Library/frmImportWordContents.Designer.cs @@ -28,473 +28,497 @@ /// private void InitializeComponent() { - this.txbWordFile = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.btnBrowse = new DevComponents.DotNetBar.ButtonX(); - this.labelX2 = new DevComponents.DotNetBar.LabelX(); - this.txvStyle = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.txbLevel = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.labelX3 = new DevComponents.DotNetBar.LabelX(); - this.txbWrdText = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.btnOpen = new DevComponents.DotNetBar.ButtonX(); - this.btnPage = new DevComponents.DotNetBar.ButtonX(); - this.btnPrev = new DevComponents.DotNetBar.ButtonX(); - this.btnNext = new DevComponents.DotNetBar.ButtonX(); - this.ofd = new System.Windows.Forms.OpenFileDialog(); - this.btnNextIns = new DevComponents.DotNetBar.ButtonX(); - this.btnNextRpl = new DevComponents.DotNetBar.ButtonX(); - 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.lblTable = new DevComponents.DotNetBar.LabelX(); - this.btnCurrent = new DevComponents.DotNetBar.ButtonX(); - this.btnTest = new DevComponents.DotNetBar.ButtonX(); - this.txbImport = new System.Windows.Forms.TextBox(); - this.lblFS = new DevComponents.DotNetBar.LabelX(); - 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.Name = "txbWordFile"; - this.txbWordFile.PreventEnterBeep = true; - this.txbWordFile.Size = new System.Drawing.Size(626, 20); - this.txbWordFile.TabIndex = 0; - 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.Size = new System.Drawing.Size(75, 23); - this.labelX1.TabIndex = 1; - this.labelX1.Text = "Word File:"; - // - // btnBrowse - // - this.btnBrowse.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btnBrowse.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btnBrowse.Location = new System.Drawing.Point(644, 12); - this.btnBrowse.Name = "btnBrowse"; - this.btnBrowse.Size = new System.Drawing.Size(75, 23); - this.btnBrowse.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnBrowse.TabIndex = 2; - this.btnBrowse.Text = "Browse"; - 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.Size = new System.Drawing.Size(35, 23); - this.labelX2.TabIndex = 3; - this.labelX2.Text = "Style:"; - // - // 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.Name = "txvStyle"; - this.txvStyle.PreventEnterBeep = true; - this.txvStyle.ReadOnly = true; - this.txvStyle.Size = new System.Drawing.Size(226, 20); - 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.Name = "txbLevel"; - this.txbLevel.PreventEnterBeep = true; - this.txbLevel.ReadOnly = true; - this.txbLevel.Size = new System.Drawing.Size(36, 20); - 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.Size = new System.Drawing.Size(35, 23); - this.labelX3.TabIndex = 5; - 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.Location = new System.Drawing.Point(13, 84); - this.txbWrdText.Multiline = true; - this.txbWrdText.Name = "txbWrdText"; - this.txbWrdText.PreventEnterBeep = true; - this.txbWrdText.Size = new System.Drawing.Size(611, 81); - this.txbWrdText.TabIndex = 7; - this.txbWrdText.TextChanged += new System.EventHandler(this.txbWrdText_TextChanged); - // - // btnOpen - // - this.btnOpen.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btnOpen.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btnOpen.Location = new System.Drawing.Point(644, 41); - this.btnOpen.Name = "btnOpen"; - this.btnOpen.Size = new System.Drawing.Size(75, 23); - this.btnOpen.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnOpen.TabIndex = 8; - this.btnOpen.Text = "Open"; - this.btnOpen.Click += new System.EventHandler(this.btnOpen_Click); - // - // btnPage - // - this.btnPage.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btnPage.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btnPage.Location = new System.Drawing.Point(635, 84); - this.btnPage.Name = "btnPage"; - this.btnPage.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F10); - this.btnPage.Size = new System.Drawing.Size(84, 23); - this.btnPage.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnPage.TabIndex = 9; - this.btnPage.Text = "Page (F10)"; - this.btnPage.Click += new System.EventHandler(this.btnPage_Click); - // - // btnPrev - // - this.btnPrev.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btnPrev.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btnPrev.Location = new System.Drawing.Point(636, 113); - this.btnPrev.Name = "btnPrev"; - this.btnPrev.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F11); - this.btnPrev.Size = new System.Drawing.Size(84, 23); - this.btnPrev.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnPrev.TabIndex = 10; - this.btnPrev.Text = "Previous (F11)"; - this.btnPrev.Click += new System.EventHandler(this.btnPrev_Click); - // - // btnNext - // - this.btnNext.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btnNext.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btnNext.Location = new System.Drawing.Point(636, 142); - this.btnNext.Name = "btnNext"; - this.btnNext.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F12); - this.btnNext.Size = new System.Drawing.Size(84, 23); - this.btnNext.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnNext.TabIndex = 11; - this.btnNext.Text = "Next (F12)"; - this.btnNext.Click += new System.EventHandler(this.btnNext_Click); - // - // ofd - // - this.ofd.Filter = "Docx Files|*.docx|Doc Files|*.doc|All Files|*.*"; - this.ofd.FileOk += new System.ComponentModel.CancelEventHandler(this.ofd_FileOk); - // - // btnNextIns - // - this.btnNextIns.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btnNextIns.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - 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.Visible = false; - // - // btnNextRpl - // - this.btnNextRpl.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btnNextRpl.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - 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.Visible = false; - // - // btnReplaceNext - // - this.btnReplaceNext.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btnReplaceNext.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btnReplaceNext.Location = new System.Drawing.Point(637, 200); - 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(637, 226); - 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(600, 200); - 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(405, 200); - 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(526, 200); - 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(563, 200); - 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(563, 226); - 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(526, 226); - 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(636, 252); - 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(434, 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(377, 58); - this.labelX4.Name = "labelX4"; - this.labelX4.Size = new System.Drawing.Size(51, 23); - this.labelX4.TabIndex = 24; - 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.Size = new System.Drawing.Size(52, 23); - this.lblTable.TabIndex = 26; - this.lblTable.Text = "Not Table"; - // - // btnCurrent - // - this.btnCurrent.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btnCurrent.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btnCurrent.Location = new System.Drawing.Point(637, 171); - this.btnCurrent.Name = "btnCurrent"; - this.btnCurrent.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F12); - this.btnCurrent.Size = new System.Drawing.Size(84, 23); - this.btnCurrent.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnCurrent.TabIndex = 27; - this.btnCurrent.Text = "Current"; - this.btnCurrent.Click += new System.EventHandler(this.btnCurrent_Click); - // - // btnTest - // - this.btnTest.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btnTest.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btnTest.Location = new System.Drawing.Point(122, 3); - this.btnTest.Name = "btnTest"; - this.btnTest.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3); - this.btnTest.Size = new System.Drawing.Size(31, 20); - this.btnTest.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnTest.TabIndex = 28; - this.btnTest.Text = "Test"; - this.btnTest.Visible = false; - // - // txbImport - // - this.txbImport.Font = new System.Drawing.Font("Times New Roman", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.txbImport.Location = new System.Drawing.Point(16, 178); - this.txbImport.Multiline = true; - this.txbImport.Name = "txbImport"; - this.txbImport.Size = new System.Drawing.Size(360, 93); - 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.Size = new System.Drawing.Size(52, 23); - this.lblFS.TabIndex = 30; - this.lblFS.Text = "FS"; - // - // frmImportWordContents - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(731, 280); - this.Controls.Add(this.lblFS); - this.Controls.Add(this.txbImport); - this.Controls.Add(this.btnTest); - this.Controls.Add(this.btnCurrent); - this.Controls.Add(this.lblTable); - 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); - 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(); + this.txbWordFile = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.btnBrowse = new DevComponents.DotNetBar.ButtonX(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.txvStyle = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.txbLevel = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.labelX3 = new DevComponents.DotNetBar.LabelX(); + this.txbWrdText = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.btnOpen = new DevComponents.DotNetBar.ButtonX(); + this.btnPage = new DevComponents.DotNetBar.ButtonX(); + this.btnPrev = new DevComponents.DotNetBar.ButtonX(); + this.btnNext = new DevComponents.DotNetBar.ButtonX(); + this.ofd = new System.Windows.Forms.OpenFileDialog(); + this.btnNextIns = new DevComponents.DotNetBar.ButtonX(); + this.btnNextRpl = new DevComponents.DotNetBar.ButtonX(); + 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.lblTable = new DevComponents.DotNetBar.LabelX(); + this.btnCurrent = new DevComponents.DotNetBar.ButtonX(); + this.btnTest = new DevComponents.DotNetBar.ButtonX(); + this.txbImport = new System.Windows.Forms.TextBox(); + this.lblFS = new DevComponents.DotNetBar.LabelX(); + this.btnTableConvert = new DevComponents.DotNetBar.ButtonX(); + this.pbTable = new System.Windows.Forms.ProgressBar(); + 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.Name = "txbWordFile"; + this.txbWordFile.PreventEnterBeep = true; + this.txbWordFile.Size = new System.Drawing.Size(626, 20); + this.txbWordFile.TabIndex = 0; + 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.Size = new System.Drawing.Size(75, 23); + this.labelX1.TabIndex = 1; + this.labelX1.Text = "Word File:"; + // + // btnBrowse + // + this.btnBrowse.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnBrowse.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnBrowse.Location = new System.Drawing.Point(644, 12); + this.btnBrowse.Name = "btnBrowse"; + this.btnBrowse.Size = new System.Drawing.Size(75, 23); + this.btnBrowse.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnBrowse.TabIndex = 2; + this.btnBrowse.Text = "Browse"; + 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.Size = new System.Drawing.Size(35, 23); + this.labelX2.TabIndex = 3; + this.labelX2.Text = "Style:"; + // + // 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.Name = "txvStyle"; + this.txvStyle.PreventEnterBeep = true; + this.txvStyle.ReadOnly = true; + this.txvStyle.Size = new System.Drawing.Size(226, 20); + 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.Name = "txbLevel"; + this.txbLevel.PreventEnterBeep = true; + this.txbLevel.ReadOnly = true; + this.txbLevel.Size = new System.Drawing.Size(36, 20); + 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.Size = new System.Drawing.Size(35, 23); + this.labelX3.TabIndex = 5; + 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.Location = new System.Drawing.Point(13, 84); + this.txbWrdText.Multiline = true; + this.txbWrdText.Name = "txbWrdText"; + this.txbWrdText.PreventEnterBeep = true; + this.txbWrdText.Size = new System.Drawing.Size(611, 81); + this.txbWrdText.TabIndex = 7; + this.txbWrdText.TextChanged += new System.EventHandler(this.txbWrdText_TextChanged); + // + // btnOpen + // + this.btnOpen.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnOpen.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnOpen.Location = new System.Drawing.Point(644, 41); + this.btnOpen.Name = "btnOpen"; + this.btnOpen.Size = new System.Drawing.Size(75, 23); + this.btnOpen.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnOpen.TabIndex = 8; + this.btnOpen.Text = "Open"; + this.btnOpen.Click += new System.EventHandler(this.btnOpen_Click); + // + // btnPage + // + this.btnPage.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnPage.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnPage.Location = new System.Drawing.Point(635, 84); + this.btnPage.Name = "btnPage"; + this.btnPage.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F10); + this.btnPage.Size = new System.Drawing.Size(84, 23); + this.btnPage.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnPage.TabIndex = 9; + this.btnPage.Text = "Page (F10)"; + this.btnPage.Click += new System.EventHandler(this.btnPage_Click); + // + // btnPrev + // + this.btnPrev.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnPrev.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnPrev.Location = new System.Drawing.Point(636, 113); + this.btnPrev.Name = "btnPrev"; + this.btnPrev.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F11); + this.btnPrev.Size = new System.Drawing.Size(84, 23); + this.btnPrev.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnPrev.TabIndex = 10; + this.btnPrev.Text = "Previous (F11)"; + this.btnPrev.Click += new System.EventHandler(this.btnPrev_Click); + // + // btnNext + // + this.btnNext.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnNext.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnNext.Location = new System.Drawing.Point(636, 142); + this.btnNext.Name = "btnNext"; + this.btnNext.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F12); + this.btnNext.Size = new System.Drawing.Size(84, 23); + this.btnNext.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnNext.TabIndex = 11; + this.btnNext.Text = "Next (F12)"; + this.btnNext.Click += new System.EventHandler(this.btnNext_Click); + // + // ofd + // + this.ofd.Filter = "Docx Files|*.docx|Doc Files|*.doc|All Files|*.*"; + this.ofd.FileOk += new System.ComponentModel.CancelEventHandler(this.ofd_FileOk); + // + // btnNextIns + // + this.btnNextIns.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnNextIns.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + 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.Visible = false; + // + // btnNextRpl + // + this.btnNextRpl.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnNextRpl.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + 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.Visible = false; + // + // btnReplaceNext + // + this.btnReplaceNext.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnReplaceNext.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnReplaceNext.Location = new System.Drawing.Point(637, 200); + 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(637, 226); + 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(600, 200); + 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(405, 200); + 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(526, 200); + 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(563, 200); + 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(563, 226); + 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(526, 226); + 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(636, 252); + 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(434, 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(377, 58); + this.labelX4.Name = "labelX4"; + this.labelX4.Size = new System.Drawing.Size(51, 23); + this.labelX4.TabIndex = 24; + 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.Size = new System.Drawing.Size(52, 23); + this.lblTable.TabIndex = 26; + this.lblTable.Text = "Not Table"; + // + // btnCurrent + // + this.btnCurrent.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnCurrent.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnCurrent.Location = new System.Drawing.Point(637, 171); + this.btnCurrent.Name = "btnCurrent"; + this.btnCurrent.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F12); + this.btnCurrent.Size = new System.Drawing.Size(84, 23); + this.btnCurrent.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnCurrent.TabIndex = 27; + this.btnCurrent.Text = "Current"; + this.btnCurrent.Click += new System.EventHandler(this.btnCurrent_Click); + // + // btnTest + // + this.btnTest.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnTest.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnTest.Location = new System.Drawing.Point(122, 3); + this.btnTest.Name = "btnTest"; + this.btnTest.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3); + this.btnTest.Size = new System.Drawing.Size(31, 20); + this.btnTest.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnTest.TabIndex = 28; + this.btnTest.Text = "Test"; + this.btnTest.Visible = false; + // + // txbImport + // + this.txbImport.Font = new System.Drawing.Font("Times New Roman", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.txbImport.Location = new System.Drawing.Point(16, 178); + this.txbImport.Multiline = true; + this.txbImport.Name = "txbImport"; + this.txbImport.Size = new System.Drawing.Size(360, 93); + 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.Size = new System.Drawing.Size(52, 23); + this.lblFS.TabIndex = 30; + this.lblFS.Text = "FS"; + // + // btnTableConvert + // + this.btnTableConvert.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnTableConvert.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnTableConvert.Location = new System.Drawing.Point(405, 226); + this.btnTableConvert.Name = "btnTableConvert"; + this.btnTableConvert.Shortcuts.Add(DevComponents.DotNetBar.eShortcut.F3); + this.btnTableConvert.Size = new System.Drawing.Size(31, 20); + this.btnTableConvert.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnTableConvert.TabIndex = 31; + this.btnTableConvert.Text = "Table"; + this.btnTableConvert.Click += new System.EventHandler(this.btnTableConvert_Click); + // + // pbTable + // + this.pbTable.Location = new System.Drawing.Point(405, 252); + this.pbTable.Name = "pbTable"; + this.pbTable.Size = new System.Drawing.Size(225, 20); + this.pbTable.TabIndex = 32; + // + // frmImportWordContents + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(731, 280); + this.Controls.Add(this.pbTable); + this.Controls.Add(this.btnTableConvert); + this.Controls.Add(this.lblFS); + this.Controls.Add(this.txbImport); + this.Controls.Add(this.btnTest); + this.Controls.Add(this.btnCurrent); + this.Controls.Add(this.lblTable); + 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); + 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 System.Windows.Forms.TextBox txbImport; private DevComponents.DotNetBar.LabelX lblFS; + private DevComponents.DotNetBar.ButtonX btnTableConvert; + private System.Windows.Forms.ProgressBar pbTable; } -} \ No newline at end of file +} diff --git a/PROMS/Volian.Controls.Library/frmImportWordContents.cs b/PROMS/Volian.Controls.Library/frmImportWordContents.cs index d7b8773b..d726eef4 100644 --- a/PROMS/Volian.Controls.Library/frmImportWordContents.cs +++ b/PROMS/Volian.Controls.Library/frmImportWordContents.cs @@ -7,6 +7,8 @@ using System.Text; using System.Windows.Forms; using System.IO; using LBWordLibrary; +using System.Xml; +using VEPROMS.CSLA.Library; namespace Volian.Controls.Library { @@ -30,7 +32,7 @@ namespace Volian.Controls.Library disableButtons(); _initializing = false; // B2019-108 Enable/disable buttons - btnOpen.Enabled = File.Exists(txbWordFile.Text) && _WordApp==null; + btnOpen.Enabled = File.Exists(txbWordFile.Text) && _WordApp == null; } private void disableButtons() @@ -104,7 +106,7 @@ namespace Volian.Controls.Library } 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, 1); // Select paragraph //_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; // Only do this for tables 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) { @@ -151,8 +153,8 @@ namespace Volian.Controls.Library if (myCell.RowIndex == rowIndex && myCell.ColumnIndex == columnIndex) { // Move the Start to the start of the next cell - _WordApp.Selection.Start = tbl.Range.Cells[i + 1].Range.Start; - // Select the entire cell + _WordApp.Selection.Start = tbl.Range.Cells[i + 1].Range.Start; + // Select the entire cell_WordApp.Selection.Start = _WordApp.Selection.SelectCell(); return true; // Cell Found and moved } @@ -208,7 +210,7 @@ namespace Volian.Controls.Library txvStyle.Text = _WordApp.Selection.Style.NameLocal; txbLevel.Text = _WordApp.Selection.Style.ListLevelNumber.ToString(); 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 { //Console.WriteLine("Cell Count = {0}", _WordApp.Selection.Cells.Count); @@ -230,7 +232,7 @@ namespace Volian.Controls.Library .Replace("\x201C", "\"")// Space .Replace("\x201D", "\"")// Space .Replace("\x09INITIAL", "")// Space - ); + ); if (txt.Contains("\x09_____")) // Tab Signoff txt = txt.Substring(0, txt.IndexOf("\x09_____")).TrimEnd(" \x09".ToCharArray());// Trim spaces and Tabs txbWrdText.Text = txt; @@ -331,7 +333,7 @@ namespace Volian.Controls.Library vg.StartEditing(); MyStepRTB.Text = txbWrdText.Text; // 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; fs = new Font(fs.FontFamily, float.Parse(lblFS.Text.Replace("Pts", "")), fs.Style); @@ -422,7 +424,7 @@ namespace Volian.Controls.Library if (MyStepRTB != null) { 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); return; @@ -517,8 +519,6 @@ namespace Volian.Controls.Library //else Clipboard.SetText(txbWrdText.Text); } - catch - { } } //private void btnTest_Click(object sender, EventArgs e) //{ @@ -557,6 +557,10 @@ namespace Volian.Controls.Library // B2019-108 Handle WordApp status 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 { if (_WordApp != null || _WordApp.WindowState == LBWdWindowState.wdWindowStateMinimize) @@ -564,9 +568,322 @@ namespace Volian.Controls.Library } catch { - _WordApp=null; + _WordApp = null; 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 = ""; + 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 += ""; + } + // start new row + sXML += ""; + iR = myCell.RowIndex - 1; + offset = 0; + } + sXML += " 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 += "

" + ha + sb + "

"; + } + else + { + sXML += "

"; + } + } + if (iR >= 0) + { + // at least one row hase been written so close the last row + sXML += "
"; + } + sXML += "
"; + 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; + } + } } +