FormMain.cs
上传用户:hbhltzc
上传日期:2022-06-04
资源大小:1925k
文件大小:166k
源码类别:
xml/soap/webservice
开发平台:
Visual C++
- //#define WHIDBEY_MENUS
- using System;
- using System.Drawing;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Windows.Forms;
- using System.Xml;
- using System.Xml.Xsl;
- using System.IO;
- using System.Diagnostics;
- using System.Text;
- using Microsoft.XmlDiffPatch;
- using MyContextMenu = System.Windows.Forms.ContextMenu;
- using TopLevelMenuItemBaseType = System.Windows.Forms.MenuItem;
- namespace XmlNotepad {
- /// <summary>
- /// Summary description for Form1.
- /// </summary>
- public class FormMain : System.Windows.Forms.Form, ISite {
- UndoManager undoManager;
- Settings settings;
- string[] args;
- DataFormats.Format urlFormat;
- private System.Windows.Forms.StatusBar statusBar1;
- private System.Windows.Forms.StatusBarPanel statusBarPanelMessage;
- private System.Windows.Forms.StatusBarPanel statusBarPanelBusy;
- RecentFilesMenu recentFiles;
- TaskList taskList;
- XsltViewer dynamicHelpViewer;
- bool loading;
- FormSearch search;
- IIntellisenseProvider ip;
- OpenFileDialog od;
- WebProxyService proxyService;
- bool firstActivate = true;
- int batch;
- bool includesExpanded;
- bool helpAvailableHint = true;
- Updater updater;
- System.CodeDom.Compiler.TempFileCollection tempFiles = new System.CodeDom.Compiler.TempFileCollection();
- private ContextMenuStrip contextMenu1;
- private ToolStripSeparator ctxMenuItem20;
- private ToolStripSeparator ctxMenuItem23;
- private ToolStripMenuItem ctxcutToolStripMenuItem;
- private ToolStripMenuItem ctxMenuItemCopy;
- private ToolStripMenuItem ctxMenuItemPaste;
- private ToolStripMenuItem ctxMenuItemExpand;
- private ToolStripMenuItem ctxMenuItemCollapse;
- private MenuStrip menuStrip1;
- private ToolStripMenuItem fileToolStripMenuItem;
- private ToolStripMenuItem newToolStripMenuItem;
- private ToolStripMenuItem openToolStripMenuItem;
- private ToolStripMenuItem reloadToolStripMenuItem;
- private ToolStripSeparator toolStripMenuItem1;
- private ToolStripMenuItem saveToolStripMenuItem;
- private ToolStripMenuItem saveAsToolStripMenuItem;
- private ToolStripSeparator toolStripMenuItem2;
- private ToolStripMenuItem recentFilesToolStripMenuItem;
- private ToolStripSeparator toolStripMenuItem3;
- private ToolStripMenuItem exitToolStripMenuItem;
- private ToolStripMenuItem editToolStripMenuItem;
- private ToolStripMenuItem undoToolStripMenuItem;
- private ToolStripMenuItem redoToolStripMenuItem;
- private ToolStripSeparator toolStripMenuItem4;
- private ToolStripMenuItem cutToolStripMenuItem;
- private ToolStripMenuItem copyToolStripMenuItem;
- private ToolStripMenuItem pasteToolStripMenuItem;
- private ToolStripSeparator toolStripMenuItem5;
- private ToolStripMenuItem deleteToolStripMenuItem;
- private ToolStripMenuItem repeatToolStripMenuItem;
- private ToolStripMenuItem insertToolStripMenuItem;
- private ToolStripMenuItem duplicateToolStripMenuItem;
- private ToolStripSeparator toolStripMenuItem6;
- private ToolStripMenuItem nudgeToolStripMenuItem;
- private ToolStripMenuItem upToolStripMenuItem;
- private ToolStripMenuItem downToolStripMenuItem;
- private ToolStripMenuItem leftToolStripMenuItem;
- private ToolStripMenuItem rightToolStripMenuItem;
- private ToolStripSeparator toolStripMenuItem7;
- private ToolStripMenuItem findToolStripMenuItem;
- private ToolStripMenuItem viewToolStripMenuItem;
- private ToolStripMenuItem expandAllToolStripMenuItem;
- private ToolStripMenuItem collapseAllToolStripMenuItem;
- private ToolStripSeparator toolStripMenuItem8;
- private ToolStripMenuItem statusBarToolStripMenuItem;
- private ToolStripSeparator toolStripMenuItem9;
- private ToolStripMenuItem sourceToolStripMenuItem;
- private ToolStripMenuItem optionsToolStripMenuItem;
- private ToolStripMenuItem helpToolStripMenuItem;
- private ToolStripMenuItem attributeToolStripMenuItem;
- private ToolStripMenuItem textToolStripMenuItem;
- private ToolStripMenuItem commentToolStripMenuItem;
- private ToolStripMenuItem CDATAToolStripMenuItem;
- private ToolStripMenuItem PIToolStripMenuItem;
- private ToolStripMenuItem contentsToolStripMenuItem;
- private ToolStripMenuItem indexToolStripMenuItem;
- private ToolStripSeparator toolStripMenuItem10;
- private ToolStripMenuItem aboutXMLNotepadToolStripMenuItem;
- private ToolStrip toolStrip1;
- private ToolStripButton toolStripButtonNew;
- private ToolStripButton toolStripButtonOpen;
- private ToolStripButton toolStripButtonSave;
- private ToolStripButton toolStripButtonUndo;
- private ToolStripButton toolStripButtonRedo;
- private ToolStripButton toolStripButtonCut;
- private ToolStripButton toolStripButtonCopy;
- private ToolStripButton toolStripButtonPaste;
- private ToolStripButton toolStripButtonDelete;
- private ToolStripSeparator toolStripSeparator1;
- private ToolStripButton toolStripButtonNudgeUp;
- private ToolStripButton toolStripButtonNudgeDown;
- private ToolStripButton toolStripButtonNudgeLeft;
- private ToolStripButton toolStripButtonNudgeRight;
- private HelpProvider helpProvider1;
- private ToolStripMenuItem elementToolStripMenuItem;
- private ToolStripMenuItem elementAfterToolStripMenuItem;
- private ToolStripMenuItem elementBeforeToolStripMenuItem;
- private ToolStripMenuItem elementChildToolStripMenuItem;
- private ToolStripMenuItem attributeBeforeToolStripMenuItem;
- private ToolStripMenuItem attributeAfterToolStripMenuItem;
- private ToolStripMenuItem attributeChildToolStripMenuItem;
- private ToolStripMenuItem textBeforeToolStripMenuItem;
- private ToolStripMenuItem textAfterToolStripMenuItem;
- private ToolStripMenuItem textChildToolStripMenuItem;
- private ToolStripMenuItem commentBeforeToolStripMenuItem;
- private ToolStripMenuItem commentAfterToolStripMenuItem;
- private ToolStripMenuItem commentChildToolStripMenuItem;
- private ToolStripMenuItem cdataBeforeToolStripMenuItem;
- private ToolStripMenuItem cdataAfterToolStripMenuItem;
- private ToolStripMenuItem cdataChildToolStripMenuItem;
- private ToolStripMenuItem PIBeforeToolStripMenuItem;
- private ToolStripMenuItem PIAfterToolStripMenuItem;
- private ToolStripMenuItem PIChildToolStripMenuItem;
- private ToolStripMenuItem ctxElementToolStripMenuItem;
- private ToolStripMenuItem ctxElementBeforeToolStripMenuItem;
- private ToolStripMenuItem ctxElementAfterToolStripMenuItem;
- private ToolStripMenuItem ctxElementChildToolStripMenuItem;
- private ToolStripMenuItem ctxAttributeToolStripMenuItem;
- private ToolStripMenuItem ctxAttributeAfterToolStripMenuItem;
- private ToolStripMenuItem ctxAttributeChildToolStripMenuItem;
- private ToolStripMenuItem ctxTextToolStripMenuItem;
- private ToolStripMenuItem ctxTextBeforeToolStripMenuItem;
- private ToolStripMenuItem ctxTextAfterToolStripMenuItem;
- private ToolStripMenuItem ctxTextChildToolStripMenuItem;
- private ToolStripMenuItem ctxCommentToolStripMenuItem;
- private ToolStripMenuItem ctxCommentBeforeToolStripMenuItem;
- private ToolStripMenuItem ctxCommentAfterToolStripMenuItem;
- private ToolStripMenuItem ctxCommentChildToolStripMenuItem;
- private ToolStripMenuItem ctxCdataToolStripMenuItem;
- private ToolStripMenuItem ctxCdataBeforeToolStripMenuItem;
- private ToolStripMenuItem ctxCdataAfterToolStripMenuItem;
- private ToolStripMenuItem ctxCdataChildToolStripMenuItem;
- private ToolStripMenuItem ctxPIToolStripMenuItem;
- private ToolStripMenuItem ctxPIBeforeToolStripMenuItem;
- private ToolStripMenuItem ctxPIAfterToolStripMenuItem;
- private ToolStripMenuItem ctxPIChildToolStripMenuItem;
- private ToolStripMenuItem windowToolStripMenuItem;
- private ToolStripMenuItem newWindowToolStripMenuItem;
- private ToolStripMenuItem schemasToolStripMenuItem;
- private System.ComponentModel.IContainer components;
- private ToolStripSeparator toolStripMenuItem11;
- private ToolStripMenuItem nextErrorToolStripMenuItem;
- private XmlCache model;
- private PaneResizer resizer;
- private ToolStripSeparator toolStripSeparator2;
- private ToolStripMenuItem compareXMLFilesToolStripMenuItem;
- private NoBorderTabControl tabControlLists;
- private NoBorderTabPage tabPageTaskList;
- private NoBorderTabPage tabPageDynamicHelp;
- private NoBorderTabControl tabControlViews;
- protected NoBorderTabPage tabPageTreeView;
- protected NoBorderTabPage tabPageHtmlView;
- private XmlTreeView xmlTreeView1;
- private XsltViewer xsltViewer;
- private string undoLabel;
- private ToolStripSeparator toolStripSeparator3;
- private ToolStripMenuItem ctxGotoDefinitionToolStripMenuItem;
- private ToolStripMenuItem gotoDefinitionToolStripMenuItem;
- private ToolStripMenuItem expandXIncludesToolStripMenuItem;
- private ToolStripMenuItem exportErrorsToolStripMenuItem;
- private ToolStripMenuItem toolStripMenuItemUpdate;
- private ToolStripSeparator toolStripSeparator4;
- private ComboBox comboBoxLocation;
- // ChangeTo menu
- private ToolStripMenuItem changeToToolStripMenuItem;
- private ToolStripMenuItem changeToElementToolStripMenuItem1;
- private ToolStripMenuItem changeToAttributeToolStripMenuItem1;
- private ToolStripMenuItem changeToTextToolStripMenuItem1;
- private ToolStripMenuItem changeToCDATAToolStripMenuItem1;
- private ToolStripMenuItem changeToCommentToolStripMenuItem1;
- private ToolStripMenuItem changeToProcessingInstructionToolStripMenuItem;
- private ToolStripSeparator toolStripMenuItem12;
- // ChangeTo Context menu...
- private ToolStripMenuItem changeToContextMenuItem;
- private ToolStripMenuItem changeToElementContextMenuItem;
- private ToolStripMenuItem changeToAttributeContextMenuItem;
- private ToolStripMenuItem changeToTextContextMenuItem;
- private ToolStripMenuItem changeToCDATAContextMenuItem;
- private ToolStripMenuItem changeToCommentContextMenuItem;
- private ToolStripMenuItem changeToProcessingInstructionContextMenuItem;
- private ToolStripMenuItem incrementalSearchToolStripMenuItem;
- private ToolStripMenuItem deleteToolStripMenuItem1;
- private ToolStripMenuItem renameToolStripMenuItem;
- private ToolStripSeparator toolStripMenuItem13;
- private ToolStripMenuItem renameToolStripMenuItem1;
- private ToolStripMenuItem insertToolStripMenuItem1;
- private ToolStripMenuItem duplicateToolStripMenuItem1;
- private ToolStripMenuItem replaceToolStripMenuItem;
- private ToolStripMenuItem ctxAttributeBeforeToolStripMenuItem;
- private string redoLabel;
- public FormMain() {
- this.settings = new Settings();
- this.model = (XmlCache)GetService(typeof(XmlCache));
- this.ip = (XmlIntellisenseProvider)GetService(typeof(XmlIntellisenseProvider));
- //this.model = new XmlCache((ISynchronizeInvoke)this);
- this.undoManager = new UndoManager(1000);
- this.undoManager.StateChanged += new EventHandler(undoManager_StateChanged);
- this.SuspendLayout();
- //
- // Required for Windows Form Designer support
- //
- InitializeComponent();
- // Separated out so we can have virtual CreateTreeView without causing WinForms designer to barf.
- InitializeTreeView();
- this.xmlTreeView1.Dock = System.Windows.Forms.DockStyle.None;
- this.xmlTreeView1.Size = this.tabPageTreeView.ClientSize;
- this.xmlTreeView1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.undoLabel = this.undoToolStripMenuItem.Text;
- this.redoLabel = this.redoToolStripMenuItem.Text;
- this.xsltViewer.SetSite(this);
- this.dynamicHelpViewer.SetSite(this);
- CreateTabControl();
- this.ResumeLayout();
- InitializeHelp(this.helpProvider1);
- this.dynamicHelpViewer.DefaultStylesheetResource = "XmlNotepad.DynamicHelp.xslt";
- this.dynamicHelpViewer.ShowFileStrip = false;
- model.FileChanged += new EventHandler(OnFileChanged);
- model.ModelChanged += new EventHandler<ModelChangedEventArgs>(OnModelChanged);
- recentFiles = new RecentFilesMenu(recentFilesToolStripMenuItem, this.comboBoxLocation);
- this.recentFiles.RecentFileSelected += new RecentFileHandler(OnRecentFileSelected);
- //this.resizer.Pane1 = this.xmlTreeView1;
- this.resizer.Pane1 = this.tabControlViews;
- this.resizer.Pane2 = this.tabControlLists;
- this.Controls.SetChildIndex(this.resizer, 0);
- this.taskList.Site = this;
- // populate default settings and provide type info.
- Font f = new Font("Courier New", 10, FontStyle.Regular);
- this.Font = f;
- this.settings["Font"] = f;
- System.Collections.Hashtable colors = new System.Collections.Hashtable();
- colors["Element"] = Color.FromArgb(0, 64, 128);
- colors["Attribute"] = Color.Maroon;
- colors["Text"] = Color.Black;
- colors["Comment"] = Color.Green;
- colors["PI"] = Color.Purple;
- colors["CDATA"] = Color.Gray;
- colors["Background"] = Color.White;
- colors["ContainerBackground"] = Color.AliceBlue;
- this.settings["Colors"] = colors;
- this.settings["FileName"] = new Uri("/",UriKind.RelativeOrAbsolute);
- this.settings["WindowBounds"] = new Rectangle(0,0,0,0);
- this.settings["TaskListSize"] = 0;
- this.settings["TreeViewSize"] = 0;
- this.settings["RecentFiles"] = new Uri[0];
- this.settings["SchemaCache"] = this.model.SchemaCache;
- this.settings["SearchLocation"] = new Point(0, 0);
- this.settings["SearchSize"] = new Size(0, 0);
- this.settings["FindMode"] = false;
- this.settings["SearchXPath"] = false;
- this.settings["SearchWholeWord"] = false;
- this.settings["SearchRegex"] = false;
- this.settings["SearchMatchCase"] = false;
- this.settings["LastUpdateCheck"] = DateTime.Now;
- this.settings["UpdateFrequency"] = TimeSpan.FromDays(20);
- this.settings["UpdateLocation"] = "http://download.microsoft.com/download/6/e/e/6eef2361-33d4-48a2-b52e-5827c7f2ad68/Updates.xml";
- this.settings["UpdateEnabled"] = true;
- this.settings["AutoFormatOnSave"] = true;
- this.settings["IndentLevel"] = 2;
- this.settings["IndentChar"] = IndentChar.Space;
- this.settings["NewLineChars"] = "rn";
- this.settings.Changed += new SettingsEventHandler(settings_Changed);
- // now that we have a font, override the tabControlViews font setting.
- this.xmlTreeView1.Font = this.Font;
- // Event wiring
- this.xmlTreeView1.SetSite(this);
- this.xmlTreeView1.SelectionChanged += new EventHandler(treeView1_SelectionChanged);
- this.xmlTreeView1.ClipboardChanged += new EventHandler(treeView1_ClipboardChanged);
- this.xmlTreeView1.NodeChanged += new EventHandler<NodeChangeEventArgs>(treeView1_NodeChanged);
- this.xmlTreeView1.KeyDown += new KeyEventHandler(treeView1_KeyDown);
- this.taskList.GridKeyDown += new KeyEventHandler(taskList_KeyDown);
- this.toolStripButtonUndo.Enabled = false;
- this.toolStripButtonRedo.Enabled = false;
- this.statusBarToolStripMenuItem.Checked = true;
- this.duplicateToolStripMenuItem.Enabled = false;
- this.findToolStripMenuItem.Enabled = true;
- this.replaceToolStripMenuItem.Enabled = true;
- this.DragOver += new DragEventHandler(Form1_DragOver);
- this.xmlTreeView1.TreeView.DragOver += new DragEventHandler(Form1_DragOver);
- this.DragDrop += new DragEventHandler(Form1_DragDrop);
- this.xmlTreeView1.TreeView.DragDrop += new DragEventHandler(Form1_DragDrop);
- this.AllowDrop = true;
- this.urlFormat = DataFormats.GetFormat("UniformResourceLocatorW");
- ctxcutToolStripMenuItem.Click += new EventHandler(this.cutToolStripMenuItem_Click);
- ctxcutToolStripMenuItem.ImageIndex = this.cutToolStripMenuItem.ImageIndex;
- ctxMenuItemCopy.Click += new EventHandler(this.copyToolStripMenuItem_Click);
- ctxMenuItemCopy.ImageIndex = copyToolStripMenuItem.ImageIndex;
- ctxMenuItemPaste.Click += new EventHandler(this.pasteToolStripMenuItem_Click);
- ctxMenuItemPaste.ImageIndex = pasteToolStripMenuItem.ImageIndex;
- ctxMenuItemExpand.Click += new EventHandler(this.expandToolStripMenuItem_Click);
- ctxMenuItemCollapse.Click += new EventHandler(this.collapseToolStripMenuItem_Click);
- this.toolStripMenuItemUpdate.Visible = false;
- this.toolStripMenuItemUpdate.Click += new EventHandler(toolStripMenuItemUpdate_Click);
- // now set in virtual InitializeHelp()
- //
- // helpProvider1
- //
- //this.helpProvider1.HelpNamespace = Application.StartupPath + "\Help.chm";
- //this.helpProvider1.Site = this;
- this.ContextMenuStrip = this.contextMenu1;
- New();
- }
- public FormMain(string[] args)
- : this() {
- this.args = args;
- }
- public XmlCache Model {
- get { return model; }
- set { model = value; }
- }
- public PaneResizer Resizer {
- get { return resizer; }
- set { resizer = value; }
- }
- public NoBorderTabControl TabControlLists {
- get { return tabControlLists; }
- set { tabControlLists = value; }
- }
- public NoBorderTabControl TabControlViews {
- get { return this.tabControlViews; }
- set { tabControlViews = value; }
- }
- public XmlTreeView XmlTreeView {
- get { return xmlTreeView1; }
- set { xmlTreeView1 = value; }
- }
- void InitializeTreeView() {
- // Now remove the WinForm designer generated tree view and call the virtual CreateTreeView method
- // so a subclass of this form can plug in their own tree view.
- this.tabPageTreeView.Controls.Remove(this.xmlTreeView1);
- this.xmlTreeView1 = CreateTreeView();
- //
- // xmlTreeView1
- //
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormMain));
- resources.ApplyResources(this.xmlTreeView1, "xmlTreeView1");
- this.xmlTreeView1.ResizerPosition = 200;
- this.xmlTreeView1.BackColor = System.Drawing.Color.White;
- this.xmlTreeView1.Location = new System.Drawing.Point(0, 52);
- this.xmlTreeView1.Name = "xmlTreeView1";
- this.xmlTreeView1.SelectedNode = null;
- this.xmlTreeView1.TabIndex = 1;
- this.tabPageTreeView.Controls.Add(this.xmlTreeView1);
- this.tabPageTreeView.Controls.SetChildIndex(this.xmlTreeView1, 0);
- }
- protected virtual void InitializeHelp(HelpProvider hp) {
- hp.SetHelpNavigator(this, HelpNavigator.TableOfContents);
- hp.Site = this;
- // in case subclass has already set HelpNamespace
- if (string.IsNullOrEmpty(hp.HelpNamespace))
- {
- string path = Application.StartupPath + "\Help.chm";
- if (!File.Exists(path)) {
- // Perhaps we're running unit tests, in which case help is not in the startup path.
- Uri baseUri = new Uri(this.GetType().Assembly.Location);
- Uri resolved = new Uri(baseUri, @"......HelpHelp.chm");
- path = resolved.LocalPath;
- }
- hp.HelpNamespace = path;
- }
- }
- void FocusNextPanel(bool reverse) {
- Control[] panels = new Control[] { this.xmlTreeView1.TreeView, this.xmlTreeView1.NodeTextView, this.tabControlLists.SelectedTab.Controls[0] };
- for (int i = 0; i < panels.Length; i++) {
- Control c = panels[i];
- if (c.ContainsFocus) {
- int j = i + 1;
- if (reverse) {
- j = i - 1;
- if (j < 0) j = panels.Length - 1;
- } else if (j >= panels.Length) {
- j = 0;
- }
- SelectTreeView();
- panels[j].Focus();
- break;
- }
- }
- }
- void treeView1_KeyDown(object sender, KeyEventArgs e) {
- // Note if e.SuppressKeyPress is true, then this event is bubbling up from
- // the TextEditorOverlay - so we have to be careful not to interfere with
- // intellisense editing here unless we really want to. Turns out the following
- // keystrokes all want to interrupt intellisense.
- if (e.Handled) return;
- switch (e.KeyCode) {
- case Keys.Space:
- if ((e.Modifiers & Keys.Control) == Keys.Control) {
- this.xmlTreeView1.Commit();
- Rectangle r = this.xmlTreeView1.TreeView.Bounds;
- XmlTreeNode node = this.xmlTreeView1.SelectedNode;
- if (node != null) {
- r = node.LabelBounds;
- r.Offset(this.xmlTreeView1.TreeView.ScrollPosition);
- }
- r = this.xmlTreeView1.RectangleToScreen(r);
- this.contextMenu1.Show(r.Left + (r.Width / 2), r.Top + (r.Height / 2));
- }
- break;
- case Keys.F3:
- if (this.search != null) {
- this.xmlTreeView1.Commit();
- this.search.FindAgain(e.Shift);
- e.Handled = true;
- }
- break;
- case Keys.F6:
- FocusNextPanel((e.Modifiers & Keys.Shift) != 0);
- e.Handled = true;
- break;
- }
- }
- void taskList_KeyDown(object sender, KeyEventArgs e) {
- switch (e.KeyCode) {
- case Keys.F6:
- FocusNextPanel((e.Modifiers & Keys.Shift) != 0);
- break;
- case Keys.Enter:
- taskList.NavigateSelectedError();
- break;
- }
- }
- protected override void OnLoad(EventArgs e) {
- this.updater = new Updater(this.settings);
- this.updater.Title = this.Caption;
- this.updater.UpdateRequired += new EventHandler(OnUpdateRequired);
- LoadConfig();
- base.OnLoad(e);
- }
- void OnUpdateRequired(object sender, EventArgs e) {
- ISynchronizeInvoke si = (ISynchronizeInvoke)this;
- if (si.InvokeRequired) {
- // get on the right thread.
- si.Invoke(new EventHandler(OnUpdateRequired), new object[1] { e });
- return;
- }
- this.toolStripMenuItemUpdate.Visible = true;
- }
- void toolStripMenuItemUpdate_Click(object sender, EventArgs e) {
- if (MessageBox.Show(string.Format(SR.UpdateAvailable, this.caption, updater.Version),
- SR.UpdateAvailableCaption, MessageBoxButtons.YesNo,
- MessageBoxIcon.Exclamation) == DialogResult.Yes) {
- Utilities.OpenUrl(this.Handle, this.updater.DownloadPage);
- }
- }
- protected override void OnClosing(CancelEventArgs e) {
- this.xmlTreeView1.Commit();
- if (this.model.Dirty){
- SelectTreeView();
- DialogResult rc = MessageBox.Show(this, SR.SaveChangesPrompt, SR.SaveChangesCaption,
- MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation);
- if (rc == DialogResult.Yes){
- this.Save();
- } else if (rc == DialogResult.Cancel){
- e.Cancel = true;
- return;
- }
- }
- SaveConfig();
- base.OnClosing (e);
- }
- protected override void OnClosed(EventArgs e) {
- this.xmlTreeView1.Close();
- base.OnClosed(e);
- CleanupTempFiles();
- if (this.updater != null) {
- this.updater.Dispose();
- }
- }
- protected override void OnLayout(LayoutEventArgs levent) {
- Size s = this.ClientSize;
- int w = s.Width;
- int h = s.Height;
- int top = this.menuStrip1.Height;
- this.toolStrip1.Size = new Size(w, 24);
- top += 24;
- int sbHeight = 0;
- if (this.statusBar1.Visible) {
- sbHeight = this.statusBar1.Height;
- this.statusBar1.Size = new Size(w, sbHeight);
- }
- this.tabControlViews.Location = new Point(0, top);
- this.tabControlViews.Size = new Size(w, h - top - sbHeight - this.tabControlLists.Height - this.resizer.Height);
- //this.tabControlViews.Padding = new Point(0, 0);
- //this.xmlTreeView1.Location = new Point(0, top);
- //this.xmlTreeView1.Size = new Size(w, h - top - sbHeight - this.tabControlViews.Height);
- this.resizer.Size = new Size(w, this.resizer.Height);
- this.resizer.Location = new Point(0, top + this.tabControlViews.Height);
- //this.taskList.Size = new Size(w, this.taskList.Height);
- //this.taskList.Location = new Point(0, top + this.xmlTreeView1.Height + this.resizer.Height);
- this.tabControlLists.Size = new Size(w, this.tabControlLists.Height);
- this.tabControlLists.Location = new Point(0, top + this.tabControlViews.Height + this.resizer.Height);
- base.OnLayout(levent);
- }
- /// <summary>
- /// Clean up any resources being used.
- /// </summary>
- protected override void Dispose( bool disposing ) {
- if( disposing ) {
- if (components != null) {
- components.Dispose();
- }
- if (this.settings != null) {
- this.settings.Dispose();
- this.settings = null;
- }
- if (this.model != null) {
- this.model.Dispose();
- this.model = null;
- }
- IDisposable d = this.ip as IDisposable;
- if (d != null) {
- d.Dispose();
- }
- this.ip = null;
- }
- base.Dispose( disposing );
- }
- protected virtual XmlTreeView CreateTreeView() {
- return new XmlTreeView();
- }
- protected virtual void CreateTabControl() {
- //
- // tabPageTaskList
- //
- this.tabPageTaskList.Controls.Add(this.taskList);
- this.tabPageTaskList.Location = new System.Drawing.Point(4, 24);
- this.tabPageTaskList.Name = "tabPageTaskList";
- this.tabPageTaskList.AccessibleName = "tabPageTaskList";
- this.tabPageTaskList.Padding = new System.Windows.Forms.Padding(0);
- this.tabPageTaskList.Size = new System.Drawing.Size(728, 68);
- this.tabPageTaskList.TabIndex = 1;
- this.tabPageTaskList.Text = SR.ErrorListTab;
- //
- // taskList
- //
- this.taskList.Dock = System.Windows.Forms.DockStyle.Fill;
- this.taskList.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F);
- this.taskList.Location = new System.Drawing.Point(3, 3);
- this.taskList.Margin = new System.Windows.Forms.Padding(0);
- this.taskList.Name = "taskList";
- this.taskList.Size = new System.Drawing.Size(722, 62);
- this.taskList.TabIndex = 2;
- this.taskList.Navigate += new XmlNotepad.NavigateEventHandler(this.taskList_Navigate);
- //
- // tabPageDynamicHelp
- //
- this.dynamicHelpViewer.Dock = DockStyle.Fill;
- this.dynamicHelpViewer.VisibleChanged += new EventHandler(dynamicHelpViewer_VisibleChanged);
- this.tabPageDynamicHelp.Controls.Add(dynamicHelpViewer);
- this.tabPageDynamicHelp.Location = new System.Drawing.Point(4, 24);
- this.tabPageDynamicHelp.Name = "tabPageDynamicHelp";
- this.tabPageDynamicHelp.Padding = new System.Windows.Forms.Padding(0);
- this.tabPageDynamicHelp.Size = new System.Drawing.Size(728, 68);
- this.tabPageDynamicHelp.TabIndex = 2;
- this.tabPageDynamicHelp.Text = SR.DynamicHelpTab;
- //
- // tabControlLists
- //
- this.tabControlLists = new NoBorderTabControl();
- this.tabControlLists.Controls.AddRange(new Control[]{
- this.tabPageTaskList,
- this.tabPageDynamicHelp});
- this.tabControlLists.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F);
- this.tabControlLists.Location = new System.Drawing.Point(0, 300);
- this.tabControlLists.Name = "tabControlLists";
- this.tabControlLists.SelectedIndex = 0;
- this.tabControlLists.Size = new System.Drawing.Size(736, 90);
- this.tabControlLists.TabIndex = 9;
- this.tabControlLists.Selected += new NoBorderTabControlEventHandler(TabControlLists_Selected);
- this.Controls.Add(this.tabControlLists);
- }
- void dynamicHelpViewer_VisibleChanged(object sender, EventArgs e) {
- this.DisplayHelp();
- }
- protected virtual void TabControlLists_Selected(object sender, NoBorderTabControlEventArgs e) {
- if (e.TabPage == this.tabPageDynamicHelp) {
- this.DisplayHelp();
- }
- }
- #region Windows Form Designer generated code
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- [STAThread]
- private void InitializeComponent() {
- this.components = new System.ComponentModel.Container();
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormMain));
- this.xmlTreeView1 = new XmlNotepad.XmlTreeView();
- this.statusBar1 = new System.Windows.Forms.StatusBar();
- this.statusBarPanelMessage = new System.Windows.Forms.StatusBarPanel();
- this.statusBarPanelBusy = new System.Windows.Forms.StatusBarPanel();
- this.contextMenu1 = new System.Windows.Forms.ContextMenuStrip(this.components);
- this.ctxcutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxMenuItemCopy = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxMenuItemPaste = new System.Windows.Forms.ToolStripMenuItem();
- this.toolStripMenuItem13 = new System.Windows.Forms.ToolStripSeparator();
- this.deleteToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
- this.insertToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
- this.renameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.duplicateToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
- this.changeToContextMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.changeToAttributeContextMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.changeToTextContextMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.changeToCDATAContextMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.changeToCommentContextMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.changeToProcessingInstructionContextMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
- this.ctxGotoDefinitionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxMenuItem20 = new System.Windows.Forms.ToolStripSeparator();
- this.ctxElementToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxElementBeforeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxElementAfterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxElementChildToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxAttributeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxAttributeBeforeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxAttributeAfterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxAttributeChildToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxTextToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxTextBeforeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxTextAfterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxTextChildToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxCommentToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxCommentBeforeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxCommentAfterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxCommentChildToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxCdataToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxCdataBeforeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxCdataAfterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxCdataChildToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxPIToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxPIBeforeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxPIAfterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxPIChildToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxMenuItem23 = new System.Windows.Forms.ToolStripSeparator();
- this.ctxMenuItemExpand = new System.Windows.Forms.ToolStripMenuItem();
- this.ctxMenuItemCollapse = new System.Windows.Forms.ToolStripMenuItem();
- this.menuStrip1 = new System.Windows.Forms.MenuStrip();
- this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.reloadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
- this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.saveAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.exportErrorsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
- this.recentFilesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator();
- this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.undoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.redoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripSeparator();
- this.cutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.pasteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.toolStripMenuItem5 = new System.Windows.Forms.ToolStripSeparator();
- this.deleteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.repeatToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.renameToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
- this.duplicateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.changeToToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.changeToElementToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
- this.changeToAttributeToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
- this.changeToTextToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
- this.changeToCDATAToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
- this.changeToCommentToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
- this.changeToProcessingInstructionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.toolStripMenuItem12 = new System.Windows.Forms.ToolStripSeparator();
- this.gotoDefinitionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.expandXIncludesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.toolStripMenuItem6 = new System.Windows.Forms.ToolStripSeparator();
- this.nudgeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.upToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.downToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.leftToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.rightToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.toolStripMenuItem7 = new System.Windows.Forms.ToolStripSeparator();
- this.findToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.replaceToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.incrementalSearchToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.viewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.expandAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.collapseAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.toolStripMenuItem8 = new System.Windows.Forms.ToolStripSeparator();
- this.statusBarToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.toolStripMenuItem9 = new System.Windows.Forms.ToolStripSeparator();
- this.sourceToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.optionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.schemasToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.toolStripMenuItem11 = new System.Windows.Forms.ToolStripSeparator();
- this.nextErrorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
- this.compareXMLFilesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.insertToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.elementToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.elementBeforeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.elementAfterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.elementChildToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.attributeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.attributeBeforeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.attributeAfterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.attributeChildToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.textToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.textBeforeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.textAfterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.textChildToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.commentToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.commentBeforeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.commentAfterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.commentChildToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.CDATAToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.cdataBeforeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.cdataAfterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.cdataChildToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.PIToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.PIBeforeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.PIAfterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.PIChildToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.windowToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.newWindowToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.contentsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.indexToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.toolStripMenuItem10 = new System.Windows.Forms.ToolStripSeparator();
- this.aboutXMLNotepadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.toolStripMenuItemUpdate = new System.Windows.Forms.ToolStripMenuItem();
- this.toolStrip1 = new System.Windows.Forms.ToolStrip();
- this.toolStripButtonNew = new System.Windows.Forms.ToolStripButton();
- this.toolStripButtonOpen = new System.Windows.Forms.ToolStripButton();
- this.toolStripButtonSave = new System.Windows.Forms.ToolStripButton();
- this.toolStripButtonUndo = new System.Windows.Forms.ToolStripButton();
- this.toolStripButtonRedo = new System.Windows.Forms.ToolStripButton();
- this.toolStripButtonCut = new System.Windows.Forms.ToolStripButton();
- this.toolStripButtonCopy = new System.Windows.Forms.ToolStripButton();
- this.toolStripButtonPaste = new System.Windows.Forms.ToolStripButton();
- this.toolStripButtonDelete = new System.Windows.Forms.ToolStripButton();
- this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
- this.toolStripButtonNudgeUp = new System.Windows.Forms.ToolStripButton();
- this.toolStripButtonNudgeDown = new System.Windows.Forms.ToolStripButton();
- this.toolStripButtonNudgeLeft = new System.Windows.Forms.ToolStripButton();
- this.toolStripButtonNudgeRight = new System.Windows.Forms.ToolStripButton();
- this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
- this.helpProvider1 = new System.Windows.Forms.HelpProvider();
- this.tabPageTaskList = new XmlNotepad.NoBorderTabPage();
- this.tabPageDynamicHelp = new XmlNotepad.NoBorderTabPage();
- this.resizer = new XmlNotepad.PaneResizer();
- this.taskList = new XmlNotepad.TaskList();
- this.dynamicHelpViewer = new XmlNotepad.XsltViewer();
- this.xsltViewer = new XmlNotepad.XsltViewer();
- this.tabControlViews = new XmlNotepad.NoBorderTabControl();
- this.tabPageTreeView = new XmlNotepad.NoBorderTabPage();
- this.tabPageHtmlView = new XmlNotepad.NoBorderTabPage();
- this.comboBoxLocation = new System.Windows.Forms.ComboBox();
- changeToElementContextMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- ((System.ComponentModel.ISupportInitialize)(this.statusBarPanelMessage)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.statusBarPanelBusy)).BeginInit();
- this.contextMenu1.SuspendLayout();
- this.menuStrip1.SuspendLayout();
- this.toolStrip1.SuspendLayout();
- this.tabControlViews.SuspendLayout();
- this.tabPageTreeView.SuspendLayout();
- this.tabPageHtmlView.SuspendLayout();
- this.SuspendLayout();
- //
- // xmlTreeView1
- //
- resources.ApplyResources(this.xmlTreeView1, "xmlTreeView1");
- this.xmlTreeView1.BackColor = System.Drawing.SystemColors.Window;
- this.xmlTreeView1.Name = "xmlTreeView1";
- this.xmlTreeView1.ResizerPosition = 200;
- this.xmlTreeView1.SelectedNode = null;
- //
- // statusBar1
- //
- resources.ApplyResources(this.statusBar1, "statusBar1");
- this.statusBar1.Name = "statusBar1";
- this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
- this.statusBarPanelMessage,
- this.statusBarPanelBusy});
- this.statusBar1.ShowPanels = true;
- //
- // statusBarPanelMessage
- //
- this.statusBarPanelMessage.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
- resources.ApplyResources(this.statusBarPanelMessage, "statusBarPanelMessage");
- //
- // statusBarPanelBusy
- //
- resources.ApplyResources(this.statusBarPanelBusy, "statusBarPanelBusy");
- //
- // contextMenu1
- //
- this.contextMenu1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.ctxcutToolStripMenuItem,
- this.ctxMenuItemCopy,
- this.ctxMenuItemPaste,
- this.toolStripMenuItem13,
- this.deleteToolStripMenuItem1,
- this.insertToolStripMenuItem1,
- this.renameToolStripMenuItem,
- this.duplicateToolStripMenuItem1,
- this.changeToContextMenuItem,
- this.toolStripSeparator3,
- this.ctxGotoDefinitionToolStripMenuItem,
- this.ctxMenuItem20,
- this.ctxElementToolStripMenuItem,
- this.ctxAttributeToolStripMenuItem,
- this.ctxTextToolStripMenuItem,
- this.ctxCommentToolStripMenuItem,
- this.ctxCdataToolStripMenuItem,
- this.ctxPIToolStripMenuItem,
- this.ctxMenuItem23,
- this.ctxMenuItemExpand,
- this.ctxMenuItemCollapse});
- this.contextMenu1.Name = "contextMenuStrip1";
- resources.ApplyResources(this.contextMenu1, "contextMenu1");
- //
- // ctxcutToolStripMenuItem
- //
- resources.ApplyResources(this.ctxcutToolStripMenuItem, "ctxcutToolStripMenuItem");
- this.ctxcutToolStripMenuItem.Name = "ctxcutToolStripMenuItem";
- //
- // ctxMenuItemCopy
- //
- resources.ApplyResources(this.ctxMenuItemCopy, "ctxMenuItemCopy");
- this.ctxMenuItemCopy.Name = "ctxMenuItemCopy";
- //
- // ctxMenuItemPaste
- //
- resources.ApplyResources(this.ctxMenuItemPaste, "ctxMenuItemPaste");
- this.ctxMenuItemPaste.Name = "ctxMenuItemPaste";
- //
- // toolStripMenuItem13
- //
- this.toolStripMenuItem13.Name = "toolStripMenuItem13";
- resources.ApplyResources(this.toolStripMenuItem13, "toolStripMenuItem13");
- //
- // deleteToolStripMenuItem1
- //
- resources.ApplyResources(this.deleteToolStripMenuItem1, "deleteToolStripMenuItem1");
- this.deleteToolStripMenuItem1.Name = "deleteToolStripMenuItem1";
- this.deleteToolStripMenuItem1.Click += new System.EventHandler(this.deleteToolStripMenuItem1_Click);
- //
- // insertToolStripMenuItem1
- //
- this.insertToolStripMenuItem1.Name = "insertToolStripMenuItem1";
- resources.ApplyResources(this.insertToolStripMenuItem1, "insertToolStripMenuItem1");
- this.insertToolStripMenuItem1.Click += new System.EventHandler(this.insertToolStripMenuItem1_Click);
- //
- // renameToolStripMenuItem
- //
- this.renameToolStripMenuItem.Name = "renameToolStripMenuItem";
- resources.ApplyResources(this.renameToolStripMenuItem, "renameToolStripMenuItem");
- this.renameToolStripMenuItem.Click += new System.EventHandler(this.renameToolStripMenuItem_Click);
- //
- // duplicateToolStripMenuItem1
- //
- this.duplicateToolStripMenuItem1.Name = "duplicateToolStripMenuItem1";
- resources.ApplyResources(this.duplicateToolStripMenuItem1, "duplicateToolStripMenuItem1");
- this.duplicateToolStripMenuItem1.Click += new System.EventHandler(this.duplicateToolStripMenuItem1_Click);
- //
- // changeToContextMenuItem
- //
- this.changeToContextMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- changeToElementContextMenuItem,
- this.changeToAttributeContextMenuItem,
- this.changeToTextContextMenuItem,
- this.changeToCDATAContextMenuItem,
- this.changeToCommentContextMenuItem,
- this.changeToProcessingInstructionContextMenuItem});
- this.changeToContextMenuItem.Name = "changeToContextMenuItem";
- resources.ApplyResources(this.changeToContextMenuItem, "changeToContextMenuItem");
- //
- // changeToElementContextMenuItem
- //
- changeToElementContextMenuItem.Name = "changeToElementContextMenuItem";
- resources.ApplyResources(changeToElementContextMenuItem, "changeToElementContextMenuItem");
- changeToElementContextMenuItem.Click += new System.EventHandler(this.changeToElementContextMenuItem_Click);
- //
- // changeToAttributeContextMenuItem
- //
- this.changeToAttributeContextMenuItem.Name = "changeToAttributeContextMenuItem";
- resources.ApplyResources(this.changeToAttributeContextMenuItem, "changeToAttributeContextMenuItem");
- this.changeToAttributeContextMenuItem.Click += new System.EventHandler(this.changeToAttributeContextMenuItem_Click);
- //
- // changeToTextContextMenuItem
- //
- this.changeToTextContextMenuItem.Name = "changeToTextContextMenuItem";
- resources.ApplyResources(this.changeToTextContextMenuItem, "changeToTextContextMenuItem");
- this.changeToTextContextMenuItem.Click += new System.EventHandler(this.changeToTextToolStripMenuItem_Click);
- //
- // changeToCDATAContextMenuItem
- //
- this.changeToCDATAContextMenuItem.Name = "changeToCDATAContextMenuItem";
- resources.ApplyResources(this.changeToCDATAContextMenuItem, "changeToCDATAContextMenuItem");
- this.changeToCDATAContextMenuItem.Click += new System.EventHandler(this.changeToCDATAContextMenuItem_Click);
- //
- // changeToCommentContextMenuItem
- //
- this.changeToCommentContextMenuItem.Name = "changeToCommentContextMenuItem";
- resources.ApplyResources(this.changeToCommentContextMenuItem, "changeToCommentContextMenuItem");
- this.changeToCommentContextMenuItem.Click += new System.EventHandler(this.changeToCommentContextMenuItem_Click);
- //
- // changeToProcessingInstructionContextMenuItem
- //
- this.changeToProcessingInstructionContextMenuItem.Name = "changeToProcessingInstructionContextMenuItem";
- resources.ApplyResources(this.changeToProcessingInstructionContextMenuItem, "changeToProcessingInstructionContextMenuItem");
- this.changeToProcessingInstructionContextMenuItem.Click += new System.EventHandler(this.changeToProcessingInstructionContextMenuItem_Click);
- //
- // toolStripSeparator3
- //
- this.toolStripSeparator3.Name = "toolStripSeparator3";
- resources.ApplyResources(this.toolStripSeparator3, "toolStripSeparator3");
- //
- // ctxGotoDefinitionToolStripMenuItem
- //
- this.ctxGotoDefinitionToolStripMenuItem.Name = "ctxGotoDefinitionToolStripMenuItem";
- resources.ApplyResources(this.ctxGotoDefinitionToolStripMenuItem, "ctxGotoDefinitionToolStripMenuItem");
- this.ctxGotoDefinitionToolStripMenuItem.Click += new System.EventHandler(this.ctxGotoDefinitionToolStripMenuItem_Click);
- //
- // ctxMenuItem20
- //
- this.ctxMenuItem20.Name = "ctxMenuItem20";
- resources.ApplyResources(this.ctxMenuItem20, "ctxMenuItem20");
- //
- // ctxElementToolStripMenuItem
- //
- this.ctxElementToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.ctxElementBeforeToolStripMenuItem,
- this.ctxElementAfterToolStripMenuItem,
- this.ctxElementChildToolStripMenuItem});
- this.ctxElementToolStripMenuItem.Name = "ctxElementToolStripMenuItem";
- resources.ApplyResources(this.ctxElementToolStripMenuItem, "ctxElementToolStripMenuItem");
- //
- // ctxElementBeforeToolStripMenuItem
- //
- resources.ApplyResources(this.ctxElementBeforeToolStripMenuItem, "ctxElementBeforeToolStripMenuItem");
- this.ctxElementBeforeToolStripMenuItem.Name = "ctxElementBeforeToolStripMenuItem";
- this.ctxElementBeforeToolStripMenuItem.Click += new System.EventHandler(this.elementBeforeToolStripMenuItem_Click);
- //
- // ctxElementAfterToolStripMenuItem
- //
- resources.ApplyResources(this.ctxElementAfterToolStripMenuItem, "ctxElementAfterToolStripMenuItem");
- this.ctxElementAfterToolStripMenuItem.Name = "ctxElementAfterToolStripMenuItem";
- this.ctxElementAfterToolStripMenuItem.Click += new System.EventHandler(this.elementAfterToolStripMenuItem_Click);
- //
- // ctxElementChildToolStripMenuItem
- //
- resources.ApplyResources(this.ctxElementChildToolStripMenuItem, "ctxElementChildToolStripMenuItem");
- this.ctxElementChildToolStripMenuItem.Name = "ctxElementChildToolStripMenuItem";
- this.ctxElementChildToolStripMenuItem.Click += new System.EventHandler(this.elementChildToolStripMenuItem_Click);
- //
- // ctxAttributeToolStripMenuItem
- //
- this.ctxAttributeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.ctxAttributeBeforeToolStripMenuItem,
- this.ctxAttributeAfterToolStripMenuItem,
- this.ctxAttributeChildToolStripMenuItem});
- this.ctxAttributeToolStripMenuItem.Name = "ctxAttributeToolStripMenuItem";
- resources.ApplyResources(this.ctxAttributeToolStripMenuItem, "ctxAttributeToolStripMenuItem");
- //
- // ctxAttributeBeforeToolStripMenuItem
- //
- resources.ApplyResources(this.ctxAttributeBeforeToolStripMenuItem, "ctxAttributeBeforeToolStripMenuItem");
- this.ctxAttributeBeforeToolStripMenuItem.Name = "ctxAttributeBeforeToolStripMenuItem";
- this.ctxAttributeBeforeToolStripMenuItem.Click += new System.EventHandler(this.attributeBeforeToolStripMenuItem_Click);
- //
- // ctxAttributeAfterToolStripMenuItem
- //
- resources.ApplyResources(this.ctxAttributeAfterToolStripMenuItem, "ctxAttributeAfterToolStripMenuItem");
- this.ctxAttributeAfterToolStripMenuItem.Name = "ctxAttributeAfterToolStripMenuItem";
- this.ctxAttributeAfterToolStripMenuItem.Click += new System.EventHandler(this.attributeAfterToolStripMenuItem_Click);
- //
- // ctxAttributeChildToolStripMenuItem
- //
- resources.ApplyResources(this.ctxAttributeChildToolStripMenuItem, "ctxAttributeChildToolStripMenuItem");
- this.ctxAttributeChildToolStripMenuItem.Name = "ctxAttributeChildToolStripMenuItem";
- this.ctxAttributeChildToolStripMenuItem.Click += new System.EventHandler(this.attributeChildToolStripMenuItem_Click);
- //
- // ctxTextToolStripMenuItem
- //
- this.ctxTextToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.ctxTextBeforeToolStripMenuItem,
- this.ctxTextAfterToolStripMenuItem,
- this.ctxTextChildToolStripMenuItem});
- this.ctxTextToolStripMenuItem.Name = "ctxTextToolStripMenuItem";
- resources.ApplyResources(this.ctxTextToolStripMenuItem, "ctxTextToolStripMenuItem");
- //
- // ctxTextBeforeToolStripMenuItem
- //
- resources.ApplyResources(this.ctxTextBeforeToolStripMenuItem, "ctxTextBeforeToolStripMenuItem");
- this.ctxTextBeforeToolStripMenuItem.Name = "ctxTextBeforeToolStripMenuItem";
- this.ctxTextBeforeToolStripMenuItem.Click += new System.EventHandler(this.textBeforeToolStripMenuItem_Click);
- //
- // ctxTextAfterToolStripMenuItem
- //
- resources.ApplyResources(this.ctxTextAfterToolStripMenuItem, "ctxTextAfterToolStripMenuItem");
- this.ctxTextAfterToolStripMenuItem.Name = "ctxTextAfterToolStripMenuItem";
- this.ctxTextAfterToolStripMenuItem.Click += new System.EventHandler(this.textAfterToolStripMenuItem_Click);
- //
- // ctxTextChildToolStripMenuItem
- //
- resources.ApplyResources(this.ctxTextChildToolStripMenuItem, "ctxTextChildToolStripMenuItem");
- this.ctxTextChildToolStripMenuItem.Name = "ctxTextChildToolStripMenuItem";
- this.ctxTextChildToolStripMenuItem.Click += new System.EventHandler(this.textChildToolStripMenuItem_Click);
- //
- // ctxCommentToolStripMenuItem
- //
- this.ctxCommentToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.ctxCommentBeforeToolStripMenuItem,
- this.ctxCommentAfterToolStripMenuItem,
- this.ctxCommentChildToolStripMenuItem});
- this.ctxCommentToolStripMenuItem.Name = "ctxCommentToolStripMenuItem";
- resources.ApplyResources(this.ctxCommentToolStripMenuItem, "ctxCommentToolStripMenuItem");
- //
- // ctxCommentBeforeToolStripMenuItem
- //
- resources.ApplyResources(this.ctxCommentBeforeToolStripMenuItem, "ctxCommentBeforeToolStripMenuItem");
- this.ctxCommentBeforeToolStripMenuItem.Name = "ctxCommentBeforeToolStripMenuItem";
- this.ctxCommentBeforeToolStripMenuItem.Click += new System.EventHandler(this.commentBeforeToolStripMenuItem_Click);
- //
- // ctxCommentAfterToolStripMenuItem
- //
- resources.ApplyResources(this.ctxCommentAfterToolStripMenuItem, "ctxCommentAfterToolStripMenuItem");
- this.ctxCommentAfterToolStripMenuItem.Name = "ctxCommentAfterToolStripMenuItem";
- this.ctxCommentAfterToolStripMenuItem.Click += new System.EventHandler(this.commentAfterToolStripMenuItem_Click);
- //
- // ctxCommentChildToolStripMenuItem
- //
- resources.ApplyResources(this.ctxCommentChildToolStripMenuItem, "ctxCommentChildToolStripMenuItem");
- this.ctxCommentChildToolStripMenuItem.Name = "ctxCommentChildToolStripMenuItem";
- this.ctxCommentChildToolStripMenuItem.Click += new System.EventHandler(this.commentChildToolStripMenuItem_Click);
- //
- // ctxCdataToolStripMenuItem
- //
- this.ctxCdataToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.ctxCdataBeforeToolStripMenuItem,
- this.ctxCdataAfterToolStripMenuItem,
- this.ctxCdataChildToolStripMenuItem});
- this.ctxCdataToolStripMenuItem.Name = "ctxCdataToolStripMenuItem";
- resources.ApplyResources(this.ctxCdataToolStripMenuItem, "ctxCdataToolStripMenuItem");
- //
- // ctxCdataBeforeToolStripMenuItem
- //
- resources.ApplyResources(this.ctxCdataBeforeToolStripMenuItem, "ctxCdataBeforeToolStripMenuItem");
- this.ctxCdataBeforeToolStripMenuItem.Name = "ctxCdataBeforeToolStripMenuItem";
- this.ctxCdataBeforeToolStripMenuItem.Click += new System.EventHandler(this.cdataBeforeToolStripMenuItem_Click);
- //
- // ctxCdataAfterToolStripMenuItem
- //
- resources.ApplyResources(this.ctxCdataAfterToolStripMenuItem, "ctxCdataAfterToolStripMenuItem");
- this.ctxCdataAfterToolStripMenuItem.Name = "ctxCdataAfterToolStripMenuItem";
- this.ctxCdataAfterToolStripMenuItem.Click += new System.EventHandler(this.cdataAfterToolStripMenuItem_Click);
- //
- // ctxCdataChildToolStripMenuItem
- //
- resources.ApplyResources(this.ctxCdataChildToolStripMenuItem, "ctxCdataChildToolStripMenuItem");
- this.ctxCdataChildToolStripMenuItem.Name = "ctxCdataChildToolStripMenuItem";
- this.ctxCdataChildToolStripMenuItem.Click += new System.EventHandler(this.cdataChildToolStripMenuItem_Click);
- //
- // ctxPIToolStripMenuItem
- //
- this.ctxPIToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.ctxPIBeforeToolStripMenuItem,
- this.ctxPIAfterToolStripMenuItem,
- this.ctxPIChildToolStripMenuItem});
- this.ctxPIToolStripMenuItem.Name = "ctxPIToolStripMenuItem";
- resources.ApplyResources(this.ctxPIToolStripMenuItem, "ctxPIToolStripMenuItem");
- //
- // ctxPIBeforeToolStripMenuItem
- //
- resources.ApplyResources(this.ctxPIBeforeToolStripMenuItem, "ctxPIBeforeToolStripMenuItem");
- this.ctxPIBeforeToolStripMenuItem.Name = "ctxPIBeforeToolStripMenuItem";
- this.ctxPIBeforeToolStripMenuItem.Click += new System.EventHandler(this.PIBeforeToolStripMenuItem_Click);
- //
- // ctxPIAfterToolStripMenuItem
- //
- resources.ApplyResources(this.ctxPIAfterToolStripMenuItem, "ctxPIAfterToolStripMenuItem");
- this.ctxPIAfterToolStripMenuItem.Name = "ctxPIAfterToolStripMenuItem";
- this.ctxPIAfterToolStripMenuItem.Click += new System.EventHandler(this.PIAfterToolStripMenuItem_Click);
- //
- // ctxPIChildToolStripMenuItem
- //
- resources.ApplyResources(this.ctxPIChildToolStripMenuItem, "ctxPIChildToolStripMenuItem");
- this.ctxPIChildToolStripMenuItem.Name = "ctxPIChildToolStripMenuItem";
- this.ctxPIChildToolStripMenuItem.Click += new System.EventHandler(this.PIChildToolStripMenuItem_Click);
- //
- // ctxMenuItem23
- //
- this.ctxMenuItem23.Name = "ctxMenuItem23";
- resources.ApplyResources(this.ctxMenuItem23, "ctxMenuItem23");
- //
- // ctxMenuItemExpand
- //
- this.ctxMenuItemExpand.Name = "ctxMenuItemExpand";
- resources.ApplyResources(this.ctxMenuItemExpand, "ctxMenuItemExpand");
- //
- // ctxMenuItemCollapse
- //
- this.ctxMenuItemCollapse.Name = "ctxMenuItemCollapse";
- resources.ApplyResources(this.ctxMenuItemCollapse, "ctxMenuItemCollapse");
- //
- // menuStrip1
- //
- this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.fileToolStripMenuItem,
- this.editToolStripMenuItem,
- this.viewToolStripMenuItem,
- this.insertToolStripMenuItem,
- this.windowToolStripMenuItem,
- this.helpToolStripMenuItem,
- this.toolStripMenuItemUpdate});
- resources.ApplyResources(this.menuStrip1, "menuStrip1");
- this.menuStrip1.Name = "menuStrip1";
- //
- // fileToolStripMenuItem
- //
- this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.newToolStripMenuItem,
- this.openToolStripMenuItem,
- this.reloadToolStripMenuItem,
- this.toolStripMenuItem1,
- this.saveToolStripMenuItem,
- this.saveAsToolStripMenuItem,
- this.exportErrorsToolStripMenuItem,
- this.toolStripMenuItem2,
- this.recentFilesToolStripMenuItem,
- this.toolStripMenuItem3,
- this.exitToolStripMenuItem});
- this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
- resources.ApplyResources(this.fileToolStripMenuItem, "fileToolStripMenuItem");
- //
- // newToolStripMenuItem
- //
- resources.ApplyResources(this.newToolStripMenuItem, "newToolStripMenuItem");
- this.newToolStripMenuItem.Name = "newToolStripMenuItem";
- this.newToolStripMenuItem.Click += new System.EventHandler(this.newToolStripMenuItem_Click);
- //
- // openToolStripMenuItem
- //
- resources.ApplyResources(this.openToolStripMenuItem, "openToolStripMenuItem");
- this.openToolStripMenuItem.Name = "openToolStripMenuItem";
- this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click);
- //
- // reloadToolStripMenuItem
- //
- resources.ApplyResources(this.reloadToolStripMenuItem, "reloadToolStripMenuItem");
- this.reloadToolStripMenuItem.Name = "reloadToolStripMenuItem";
- this.reloadToolStripMenuItem.Click += new System.EventHandler(this.reloadToolStripMenuItem_Click);
- //
- // toolStripMenuItem1
- //
- this.toolStripMenuItem1.Name = "toolStripMenuItem1";
- resources.ApplyResources(this.toolStripMenuItem1, "toolStripMenuItem1");
- //
- // saveToolStripMenuItem
- //
- resources.ApplyResources(this.saveToolStripMenuItem, "saveToolStripMenuItem");
- this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
- this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click);
- //
- // saveAsToolStripMenuItem
- //
- resources.ApplyResources(this.saveAsToolStripMenuItem, "saveAsToolStripMenuItem");
- this.saveAsToolStripMenuItem.Name = "saveAsToolStripMenuItem";
- this.saveAsToolStripMenuItem.Click += new System.EventHandler(this.saveAsToolStripMenuItem_Click);
- //
- // exportErrorsToolStripMenuItem
- //
- resources.ApplyResources(this.exportErrorsToolStripMenuItem, "exportErrorsToolStripMenuItem");
- this.exportErrorsToolStripMenuItem.Name = "exportErrorsToolStripMenuItem";
- this.exportErrorsToolStripMenuItem.Click += new System.EventHandler(this.exportErrorsToolStripMenuItem_Click);
- //
- // toolStripMenuItem2
- //
- this.toolStripMenuItem2.Name = "toolStripMenuItem2";
- resources.ApplyResources(this.toolStripMenuItem2, "toolStripMenuItem2");
- //
- // recentFilesToolStripMenuItem
- //
- resources.ApplyResources(this.recentFilesToolStripMenuItem, "recentFilesToolStripMenuItem");
- this.recentFilesToolStripMenuItem.Name = "recentFilesToolStripMenuItem";
- //
- // toolStripMenuItem3
- //
- this.toolStripMenuItem3.Name = "toolStripMenuItem3";
- resources.ApplyResources(this.toolStripMenuItem3, "toolStripMenuItem3");
- //
- // exitToolStripMenuItem
- //
- resources.ApplyResources(this.exitToolStripMenuItem, "exitToolStripMenuItem");
- this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
- this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
- //
- // editToolStripMenuItem
- //
- this.editToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.undoToolStripMenuItem,
- this.redoToolStripMenuItem,
- this.toolStripMenuItem4,
- this.cutToolStripMenuItem,
- this.copyToolStripMenuItem,
- this.pasteToolStripMenuItem,
- this.toolStripMenuItem5,
- this.deleteToolStripMenuItem,
- this.repeatToolStripMenuItem,
- this.renameToolStripMenuItem1,
- this.duplicateToolStripMenuItem,
- this.changeToToolStripMenuItem,
- this.toolStripMenuItem12,
- this.gotoDefinitionToolStripMenuItem,
- this.expandXIncludesToolStripMenuItem,
- this.toolStripMenuItem6,
- this.nudgeToolStripMenuItem,
- this.toolStripMenuItem7,
- this.findToolStripMenuItem,
- this.replaceToolStripMenuItem,
- this.incrementalSearchToolStripMenuItem});
- this.editToolStripMenuItem.Name = "editToolStripMenuItem";
- resources.ApplyResources(this.editToolStripMenuItem, "editToolStripMenuItem");
- //
- // undoToolStripMenuItem
- //
- resources.ApplyResources(this.undoToolStripMenuItem, "undoToolStripMenuItem");
- this.undoToolStripMenuItem.Name = "undoToolStripMenuItem";
- this.undoToolStripMenuItem.Click += new System.EventHandler(this.undoToolStripMenuItem_Click);
- //
- // redoToolStripMenuItem
- //
- resources.ApplyResources(this.redoToolStripMenuItem, "redoToolStripMenuItem");
- this.redoToolStripMenuItem.Name = "redoToolStripMenuItem";
- this.redoToolStripMenuItem.Click += new System.EventHandler(this.redoToolStripMenuItem_Click);
- //
- // toolStripMenuItem4
- //
- this.toolStripMenuItem4.Name = "toolStripMenuItem4";
- resources.ApplyResources(this.toolStripMenuItem4, "toolStripMenuItem4");
- //
- // cutToolStripMenuItem
- //
- resources.ApplyResources(this.cutToolStripMenuItem, "cutToolStripMenuItem");
- this.cutToolStripMenuItem.Name = "cutToolStripMenuItem";
- this.cutToolStripMenuItem.Click += new System.EventHandler(this.cutToolStripMenuItem_Click);
- //
- // copyToolStripMenuItem
- //
- resources.ApplyResources(this.copyToolStripMenuItem, "copyToolStripMenuItem");
- this.copyToolStripMenuItem.Name = "copyToolStripMenuItem";
- this.copyToolStripMenuItem.Click += new System.EventHandler(this.copyToolStripMenuItem_Click);
- //
- // pasteToolStripMenuItem
- //
- resources.ApplyResources(this.pasteToolStripMenuItem, "pasteToolStripMenuItem");
- this.pasteToolStripMenuItem.Name = "pasteToolStripMenuItem";
- this.pasteToolStripMenuItem.Click += new System.EventHandler(this.pasteToolStripMenuItem_Click);
- //
- // toolStripMenuItem5
- //
- this.toolStripMenuItem5.Name = "toolStripMenuItem5";
- resources.ApplyResources(this.toolStripMenuItem5, "toolStripMenuItem5");
- //
- // deleteToolStripMenuItem
- //
- resources.ApplyResources(this.deleteToolStripMenuItem, "deleteToolStripMenuItem");
- this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem";
- this.deleteToolStripMenuItem.Click += new System.EventHandler(this.deleteToolStripMenuItem_Click);
- //
- // repeatToolStripMenuItem
- //
- resources.ApplyResources(this.repeatToolStripMenuItem, "repeatToolStripMenuItem");
- this.repeatToolStripMenuItem.Name = "repeatToolStripMenuItem";
- this.repeatToolStripMenuItem.Click += new System.EventHandler(this.repeatToolStripMenuItem_Click);
- //
- // renameToolStripMenuItem1
- //
- resources.ApplyResources(this.renameToolStripMenuItem1, "renameToolStripMenuItem1");
- this.renameToolStripMenuItem1.Name = "renameToolStripMenuItem1";
- this.renameToolStripMenuItem1.Click += new System.EventHandler(this.renameToolStripMenuItem1_Click);
- //
- // duplicateToolStripMenuItem
- //
- resources.ApplyResources(this.duplicateToolStripMenuItem, "duplicateToolStripMenuItem");
- this.duplicateToolStripMenuItem.Name = "duplicateToolStripMenuItem";
- this.duplicateToolStripMenuItem.Click += new System.EventHandler(this.duplicateToolStripMenuItem_Click);
- //
- // changeToToolStripMenuItem
- //
- resources.ApplyResources(this.changeToToolStripMenuItem, "changeToToolStripMenuItem");
- this.changeToToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.changeToElementToolStripMenuItem1,
- this.changeToAttributeToolStripMenuItem1,
- this.changeToTextToolStripMenuItem1,
- this.changeToCDATAToolStripMenuItem1,
- this.changeToCommentToolStripMenuItem1,
- this.changeToProcessingInstructionToolStripMenuItem});
- this.changeToToolStripMenuItem.Name = "changeToToolStripMenuItem";
- //
- // changeToElementToolStripMenuItem1
- //
- resources.ApplyResources(this.changeToElementToolStripMenuItem1, "changeToElementToolStripMenuItem1");
- this.changeToElementToolStripMenuItem1.Name = "changeToElementToolStripMenuItem1";
- this.changeToElementToolStripMenuItem1.Click += new System.EventHandler(this.changeToElementToolStripMenuItem1_Click);
- //
- // changeToAttributeToolStripMenuItem1
- //
- resources.ApplyResources(this.changeToAttributeToolStripMenuItem1, "changeToAttributeToolStripMenuItem1");
- this.changeToAttributeToolStripMenuItem1.Name = "changeToAttributeToolStripMenuItem1";
- this.changeToAttributeToolStripMenuItem1.Click += new System.EventHandler(this.changeToAttributeToolStripMenuItem1_Click);
- //
- // changeToTextToolStripMenuItem1
- //
- resources.ApplyResources(this.changeToTextToolStripMenuItem1, "changeToTextToolStripMenuItem1");
- this.changeToTextToolStripMenuItem1.Name = "changeToTextToolStripMenuItem1";
- this.changeToTextToolStripMenuItem1.Click += new System.EventHandler(this.changeToTextToolStripMenuItem1_Click);
- //
- // changeToCDATAToolStripMenuItem1
- //
- resources.ApplyResources(this.changeToCDATAToolStripMenuItem1, "changeToCDATAToolStripMenuItem1");
- this.changeToCDATAToolStripMenuItem1.Name = "changeToCDATAToolStripMenuItem1";
- this.changeToCDATAToolStripMenuItem1.Click += new System.EventHandler(this.changeToCDATAToolStripMenuItem1_Click);
- //
- // changeToCommentToolStripMenuItem1
- //
- resources.ApplyResources(this.changeToCommentToolStripMenuItem1, "changeToCommentToolStripMenuItem1");
- this.changeToCommentToolStripMenuItem1.Name = "changeToCommentToolStripMenuItem1";
- this.changeToCommentToolStripMenuItem1.Click += new System.EventHandler(this.changeToCommentToolStripMenuItem1_Click);
- //
- // changeToProcessingInstructionToolStripMenuItem
- //
- resources.ApplyResources(this.changeToProcessingInstructionToolStripMenuItem, "changeToProcessingInstructionToolStripMenuItem");
- this.changeToProcessingInstructionToolStripMenuItem.Name = "changeToProcessingInstructionToolStripMenuItem";
- this.changeToProcessingInstructionToolStripMenuItem.Click += new System.EventHandler(this.changeToProcessingInstructionToolStripMenuItem_Click);
- //
- // toolStripMenuItem12
- //
- this.toolStripMenuItem12.Name = "toolStripMenuItem12";
- resources.ApplyResources(this.toolStripMenuItem12, "toolStripMenuItem12");
- //
- // gotoDefinitionToolStripMenuItem
- //
- resources.ApplyResources(this.gotoDefinitionToolStripMenuItem, "gotoDefinitionToolStripMenuItem");
- this.gotoDefinitionToolStripMenuItem.Name = "gotoDefinitionToolStripMenuItem";
- this.gotoDefinitionToolStripMenuItem.Click += new System.EventHandler(this.gotoDefinitionToolStripMenuItem_Click);
- //
- // expandXIncludesToolStripMenuItem
- //
- resources.ApplyResources(this.expandXIncludesToolStripMenuItem, "expandXIncludesToolStripMenuItem");
- this.expandXIncludesToolStripMenuItem.Name = "expandXIncludesToolStripMenuItem";
- this.expandXIncludesToolStripMenuItem.Click += new System.EventHandler(this.expandXIncludesToolStripMenuItem_Click);
- //
- // toolStripMenuItem6
- //
- this.toolStripMenuItem6.Name = "toolStripMenuItem6";
- resources.ApplyResources(this.toolStripMenuItem6, "toolStripMenuItem6");
- //
- // nudgeToolStripMenuItem
- //
- this.nudgeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.upToolStripMenuItem,
- this.downToolStripMenuItem,
- this.leftToolStripMenuItem,
- this.rightToolStripMenuItem});
- this.nudgeToolStripMenuItem.Name = "nudgeToolStripMenuItem";
- resources.ApplyResources(this.nudgeToolStripMenuItem, "nudgeToolStripMenuItem");
- //
- // upToolStripMenuItem
- //
- resources.ApplyResources(this.upToolStripMenuItem, "upToolStripMenuItem");
- this.upToolStripMenuItem.Name = "upToolStripMenuItem";
- this.upToolStripMenuItem.Click += new System.EventHandler(this.upToolStripMenuItem_Click);
- //
- // downToolStripMenuItem
- //
- resources.ApplyResources(this.downToolStripMenuItem, "downToolStripMenuItem");
- this.downToolStripMenuItem.Name = "downToolStripMenuItem";
- this.downToolStripMenuItem.Click += new System.EventHandler(this.downToolStripMenuItem_Click);
- //
- // leftToolStripMenuItem
- //
- resources.ApplyResources(this.leftToolStripMenuItem, "leftToolStripMenuItem");
- this.leftToolStripMenuItem.Name = "leftToolStripMenuItem";
- this.leftToolStripMenuItem.Click += new System.EventHandler(this.leftToolStripMenuItem_Click);
- //
- // rightToolStripMenuItem
- //
- resources.ApplyResources(this.rightToolStripMenuItem, "rightToolStripMenuItem");
- this.rightToolStripMenuItem.Name = "rightToolStripMenuItem";
- this.rightToolStripMenuItem.Click += new System.EventHandler(this.rightToolStripMenuItem_Click);
- //
- // toolStripMenuItem7
- //
- this.toolStripMenuItem7.Name = "toolStripMenuItem7";
- resources.ApplyResources(this.toolStripMenuItem7, "toolStripMenuItem7");
- //
- // findToolStripMenuItem
- //
- resources.ApplyResources(this.findToolStripMenuItem, "findToolStripMenuItem");
- this.findToolStripMenuItem.Name = "findToolStripMenuItem";
- this.findToolStripMenuItem.Click += new System.EventHandler(this.findToolStripMenuItem_Click);
- //
- // replaceToolStripMenuItem
- //
- resources.ApplyResources(this.replaceToolStripMenuItem, "replaceToolStripMenuItem");
- this.replaceToolStripMenuItem.Name = "replaceToolStripMenuItem";
- this.replaceToolStripMenuItem.Click += new System.EventHandler(this.replaceToolStripMenuItem_Click);
- //
- // incrementalSearchToolStripMenuItem
- //
- resources.ApplyResources(this.incrementalSearchToolStripMenuItem, "incrementalSearchToolStripMenuItem");
- this.incrementalSearchToolStripMenuItem.Name = "incrementalSearchToolStripMenuItem";
- this.incrementalSearchToolStripMenuItem.Click += new System.EventHandler(this.incrementalSearchToolStripMenuItem_Click);
- //
- // viewToolStripMenuItem
- //
- this.viewToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.expandAllToolStripMenuItem,
- this.collapseAllToolStripMenuItem,
- this.toolStripMenuItem8,
- this.statusBarToolStripMenuItem,
- this.toolStripMenuItem9,
- this.sourceToolStripMenuItem,
- this.optionsToolStripMenuItem,
- this.schemasToolStripMenuItem,
- this.toolStripMenuItem11,
- this.nextErrorToolStripMenuItem,
- this.toolStripSeparator2,
- this.compareXMLFilesToolStripMenuItem});
- this.viewToolStripMenuItem.Name = "viewToolStripMenuItem";
- resources.ApplyResources(this.viewToolStripMenuItem, "viewToolStripMenuItem");
- //
- // expandAllToolStripMenuItem
- //
- resources.ApplyResources(this.expandAllToolStripMenuItem, "expandAllToolStripMenuItem");
- this.expandAllToolStripMenuItem.Name = "expandAllToolStripMenuItem";
- this.expandAllToolStripMenuItem.Click += new System.EventHandler(this.expandAllToolStripMenuItem_Click);
- //
- // collapseAllToolStripMenuItem
- //
- resources.ApplyResources(this.collapseAllToolStripMenuItem, "collapseAllToolStripMenuItem");
- this.collapseAllToolStripMenuItem.Name = "collapseAllToolStripMenuItem";
- this.collapseAllToolStripMenuItem.Click += new System.EventHandler(this.collapseAllToolStripMenuItem_Click);
- //
- // toolStripMenuItem8
- //
- this.toolStripMenuItem8.Name = "toolStripMenuItem8";
- resources.ApplyResources(this.toolStripMenuItem8, "toolStripMenuItem8");
- //
- // statusBarToolStripMenuItem
- //
- resources.ApplyResources(this.statusBarToolStripMenuItem, "statusBarToolStripMenuItem");
- this.statusBarToolStripMenuItem.Name = "statusBarToolStripMenuItem";
- this.statusBarToolStripMenuItem.Click += new System.EventHandler(this.statusBarToolStripMenuItem_Click);
- //
- // toolStripMenuItem9
- //
- this.toolStripMenuItem9.Name = "toolStripMenuItem9";
- resources.ApplyResources(this.toolStripMenuItem9, "toolStripMenuItem9");
- //
- // sourceToolStripMenuItem
- //
- resources.ApplyResources(this.sourceToolStripMenuItem, "sourceToolStripMenuItem");
- this.sourceToolStripMenuItem.Name = "sourceToolStripMenuItem";
- this.sourceToolStripMenuItem.Click += new System.EventHandler(this.sourceToolStripMenuItem_Click);
- //
- // optionsToolStripMenuItem
- //
- resources.ApplyResources(this.optionsToolStripMenuItem, "optionsToolStripMenuItem");
- this.optionsToolStripMenuItem.Name = "optionsToolStripMenuItem";
- this.optionsToolStripMenuItem.Click += new System.EventHandler(this.optionsToolStripMenuItem_Click);
- //
- // schemasToolStripMenuItem
- //
- resources.ApplyResources(this.schemasToolStripMenuItem, "schemasToolStripMenuItem");
- this.schemasToolStripMenuItem.Name = "schemasToolStripMenuItem";
- this.schemasToolStripMenuItem.Click += new System.EventHandler(this.schemasToolStripMenuItem_Click);
- //
- // toolStripMenuItem11
- //
- this.toolStripMenuItem11.Name = "toolStripMenuItem11";
- resources.ApplyResources(this.toolStripMenuItem11, "toolStripMenuItem11");
- //
- // nextErrorToolStripMenuItem
- //
- resources.ApplyResources(this.nextErrorToolStripMenuItem, "nextErrorToolStripMenuItem");
- this.nextErrorToolStripMenuItem.Name = "nextErrorToolStripMenuItem";
- this.nextErrorToolStripMenuItem.Click += new System.EventHandler(this.nextErrorToolStripMenuItem_Click);
- //
- // toolStripSeparator2
- //
- this.toolStripSeparator2.Name = "toolStripSeparator2";
- resources.ApplyResources(this.toolStripSeparator2, "toolStripSeparator2");
- //
- // compareXMLFilesToolStripMenuItem
- //
- resources.ApplyResources(this.compareXMLFilesToolStripMenuItem, "compareXMLFilesToolStripMenuItem");
- this.compareXMLFilesToolStripMenuItem.Name = "compareXMLFilesToolStripMenuItem";
- this.compareXMLFilesToolStripMenuItem.Click += new System.EventHandler(this.compareXMLFilesToolStripMenuItem_Click);
- //
- // insertToolStripMenuItem
- //
- resources.ApplyResources(this.insertToolStripMenuItem, "insertToolStripMenuItem");
- this.insertToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.elementToolStripMenuItem,
- this.attributeToolStripMenuItem,
- this.textToolStripMenuItem,
- this.commentToolStripMenuItem,
- this.CDATAToolStripMenuItem,
- this.PIToolStripMenuItem});
- this.insertToolStripMenuItem.Name = "insertToolStripMenuItem";
- //
- // elementToolStripMenuItem
- //
- this.elementToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.elementBeforeToolStripMenuItem,
- this.elementAfterToolStripMenuItem,
- this.elementChildToolStripMenuItem});
- this.elementToolStripMenuItem.Name = "elementToolStripMenuItem";
- resources.ApplyResources(this.elementToolStripMenuItem, "elementToolStripMenuItem");
- //
- // elementBeforeToolStripMenuItem
- //
- resources.ApplyResources(this.elementBeforeToolStripMenuItem, "elementBeforeToolStripMenuItem");
- this.elementBeforeToolStripMenuItem.Name = "elementBeforeToolStripMenuItem";
- this.elementBeforeToolStripMenuItem.Click += new System.EventHandler(this.elementBeforeToolStripMenuItem_Click);
- //
- // elementAfterToolStripMenuItem
- //
- resources.ApplyResources(this.elementAfterToolStripMenuItem, "elementAfterToolStripMenuItem");
- this.elementAfterToolStripMenuItem.Name = "elementAfterToolStripMenuItem";
- this.elementAfterToolStripMenuItem.Click += new System.EventHandler(this.elementAfterToolStripMenuItem_Click);
- //
- // elementChildToolStripMenuItem
- //
- resources.ApplyResources(this.elementChildToolStripMenuItem, "elementChildToolStripMenuItem");
- this.elementChildToolStripMenuItem.Name = "elementChildToolStripMenuItem";
- this.elementChildToolStripMenuItem.Click += new System.EventHandler(this.elementChildToolStripMenuItem_Click);
- //
- // attributeToolStripMenuItem
- //
- this.attributeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.attributeBeforeToolStripMenuItem,
- this.attributeAfterToolStripMenuItem,
- this.attributeChildToolStripMenuItem});
- this.attributeToolStripMenuItem.Name = "attributeToolStripMenuItem";
- resources.ApplyResources(this.attributeToolStripMenuItem, "attributeToolStripMenuItem");
- //
- // attributeBeforeToolStripMenuItem
- //
- resources.ApplyResources(this.attributeBeforeToolStripMenuItem, "attributeBeforeToolStripMenuItem");
- this.attributeBeforeToolStripMenuItem.Name = "attributeBeforeToolStripMenuItem";
- this.attributeBeforeToolStripMenuItem.Click += new System.EventHandler(this.attributeBeforeToolStripMenuItem_Click);
- //
- // attributeAfterToolStripMenuItem
- //
- resources.ApplyResources(this.attributeAfterToolStripMenuItem, "attributeAfterToolStripMenuItem");
- this.attributeAfterToolStripMenuItem.Name = "attributeAfterToolStripMenuItem";
- this.attributeAfterToolStripMenuItem.Click += new System.EventHandler(this.attributeAfterToolStripMenuItem_Click);
- //
- // attributeChildToolStripMenuItem
- //
- resources.ApplyResources(this.attributeChildToolStripMenuItem, "attributeChildToolStripMenuItem");
- this.attributeChildToolStripMenuItem.Name = "attributeChildToolStripMenuItem";
- this.attributeChildToolStripMenuItem.Click += new System.EventHandler(this.attributeChildToolStripMenuItem_Click);
- //
- // textToolStripMenuItem
- //
- this.textToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.textBeforeToolStripMenuItem,
- this.textAfterToolStripMenuItem,
- this.textChildToolStripMenuItem});
- this.textToolStripMenuItem.Name = "textToolStripMenuItem";
- resources.ApplyResources(this.textToolStripMenuItem, "textToolStripMenuItem");
- //
- // textBeforeToolStripMenuItem
- //
- resources.ApplyResources(this.textBeforeToolStripMenuItem, "textBeforeToolStripMenuItem");
- this.textBeforeToolStripMenuItem.Name = "textBeforeToolStripMenuItem";
- this.textBeforeToolStripMenuItem.Click += new System.EventHandler(this.textBeforeToolStripMenuItem_Click);
- //
- // textAfterToolStripMenuItem
- //