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 override object GetService(Type service)
 {
     if (service == typeof(UndoManager)){
         return this.undoManager;
     } else if (service == typeof(SchemaCache)) {
         return this.model.SchemaCache;
     } else if (service == typeof(TreeView)) {
         XmlTreeView view = (XmlTreeView)GetService(typeof(XmlTreeView));
         return view.TreeView;
     } else if (service == typeof(XmlTreeView)) {
         if (this.xmlTreeView1 == null) {
             this.xmlTreeView1 = this.CreateTreeView();
         }
         return this.xmlTreeView1;
     } else if (service == typeof(XmlCache)) {
         if (null == this.model)
         {
             this.model = new XmlCache((IServiceProvider)this, (ISynchronizeInvoke)this);
         }
         return this.model;
     } else if (service == typeof(Settings)){
         return this.settings;
     } else if (service == typeof(IIntellisenseProvider)) {
         if (this.ip == null) this.ip = CreateIntellisenseProvider(this.model, this);
         return this.ip;
     } else if (service == typeof(HelpProvider)) {
         return this.helpProvider1;
     } else if (service == typeof(WebProxyService)) {
         if (this.proxyService == null)
             this.proxyService = new WebProxyService((IServiceProvider)this);
         return this.proxyService;
     } else if (service == typeof(UserSettings)) {
         return new UserSettings(this.settings);
     }
     return base.GetService (service);
 }
 /// <summary>
 /// Insert an existing XmlNode into the tree and create a corresponding XmlTreeNode for it.
 /// </summary>
 /// <param name="target">Anchor point for insertion</param>
 /// <param name="position">Where to insert the new node relative to target node</param>
 /// <param name="xnode">Provided XmlNode that the new XmlTreeNode will wrap</param>
 /// <param name="selectNewNode">Whether to select the node in the tree after it's inserted.</param>
 public InsertNode(XmlTreeNode target, InsertPosition position, XmlNode xnode, bool selectNewNode, bool expandNewNode)
 {
     this.view = target.XmlTreeView;
     this.doc = this.view.Model.Document;
     this.position = position;
     this.type = xnode.NodeType;
     this.newNode = new XmlTreeNode(this.view, xnode);
     Initialize(newNode, target, position);
     this.selectNewNode = selectNewNode;
     this.expandNewNode = expandNewNode;
 }
 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
     //
     resources.ApplyResources(this.textAfterToolStripMenuItem, "textAfterToolStripMenuItem");
     this.textAfterToolStripMenuItem.Name = "textAfterToolStripMenuItem";
     this.textAfterToolStripMenuItem.Click += new System.EventHandler(this.textAfterToolStripMenuItem_Click);
     //
     // textChildToolStripMenuItem
     //
     resources.ApplyResources(this.textChildToolStripMenuItem, "textChildToolStripMenuItem");
     this.textChildToolStripMenuItem.Name = "textChildToolStripMenuItem";
     this.textChildToolStripMenuItem.Click += new System.EventHandler(this.textChildToolStripMenuItem_Click);
     //
     // commentToolStripMenuItem
     //
     resources.ApplyResources(this.commentToolStripMenuItem, "commentToolStripMenuItem");
     this.commentToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.commentBeforeToolStripMenuItem,
     this.commentAfterToolStripMenuItem,
     this.commentChildToolStripMenuItem});
     this.commentToolStripMenuItem.Name = "commentToolStripMenuItem";
     //
     // commentBeforeToolStripMenuItem
     //
     resources.ApplyResources(this.commentBeforeToolStripMenuItem, "commentBeforeToolStripMenuItem");
     this.commentBeforeToolStripMenuItem.Name = "commentBeforeToolStripMenuItem";
     this.commentBeforeToolStripMenuItem.Click += new System.EventHandler(this.commentBeforeToolStripMenuItem_Click);
     //
     // commentAfterToolStripMenuItem
     //
     resources.ApplyResources(this.commentAfterToolStripMenuItem, "commentAfterToolStripMenuItem");
     this.commentAfterToolStripMenuItem.Name = "commentAfterToolStripMenuItem";
     this.commentAfterToolStripMenuItem.Click += new System.EventHandler(this.commentAfterToolStripMenuItem_Click);
     //
     // commentChildToolStripMenuItem
     //
     resources.ApplyResources(this.commentChildToolStripMenuItem, "commentChildToolStripMenuItem");
     this.commentChildToolStripMenuItem.Name = "commentChildToolStripMenuItem";
     this.commentChildToolStripMenuItem.Click += new System.EventHandler(this.commentChildToolStripMenuItem_Click);
     //
     // CDATAToolStripMenuItem
     //
     this.CDATAToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.cdataBeforeToolStripMenuItem,
     this.cdataAfterToolStripMenuItem,
     this.cdataChildToolStripMenuItem});
     this.CDATAToolStripMenuItem.Name = "CDATAToolStripMenuItem";
     resources.ApplyResources(this.CDATAToolStripMenuItem, "CDATAToolStripMenuItem");
     //
     // cdataBeforeToolStripMenuItem
     //
     resources.ApplyResources(this.cdataBeforeToolStripMenuItem, "cdataBeforeToolStripMenuItem");
     this.cdataBeforeToolStripMenuItem.Name = "cdataBeforeToolStripMenuItem";
     this.cdataBeforeToolStripMenuItem.Click += new System.EventHandler(this.cdataBeforeToolStripMenuItem_Click);
     //
     // cdataAfterToolStripMenuItem
     //
     resources.ApplyResources(this.cdataAfterToolStripMenuItem, "cdataAfterToolStripMenuItem");
     this.cdataAfterToolStripMenuItem.Name = "cdataAfterToolStripMenuItem";
     this.cdataAfterToolStripMenuItem.Click += new System.EventHandler(this.cdataAfterToolStripMenuItem_Click);
     //
     // cdataChildToolStripMenuItem
     //
     resources.ApplyResources(this.cdataChildToolStripMenuItem, "cdataChildToolStripMenuItem");
     this.cdataChildToolStripMenuItem.Name = "cdataChildToolStripMenuItem";
     this.cdataChildToolStripMenuItem.Click += new System.EventHandler(this.cdataChildToolStripMenuItem_Click);
     //
     // PIToolStripMenuItem
     //
     this.PIToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.PIBeforeToolStripMenuItem,
     this.PIAfterToolStripMenuItem,
     this.PIChildToolStripMenuItem});
     this.PIToolStripMenuItem.Name = "PIToolStripMenuItem";
     resources.ApplyResources(this.PIToolStripMenuItem, "PIToolStripMenuItem");
     //
     // PIBeforeToolStripMenuItem
     //
     resources.ApplyResources(this.PIBeforeToolStripMenuItem, "PIBeforeToolStripMenuItem");
     this.PIBeforeToolStripMenuItem.Name = "PIBeforeToolStripMenuItem";
     this.PIBeforeToolStripMenuItem.Click += new System.EventHandler(this.PIBeforeToolStripMenuItem_Click);
     //
     // PIAfterToolStripMenuItem
     //
     resources.ApplyResources(this.PIAfterToolStripMenuItem, "PIAfterToolStripMenuItem");
     this.PIAfterToolStripMenuItem.Name = "PIAfterToolStripMenuItem";
     this.PIAfterToolStripMenuItem.Click += new System.EventHandler(this.PIAfterToolStripMenuItem_Click);
     //
     // PIChildToolStripMenuItem
     //
     resources.ApplyResources(this.PIChildToolStripMenuItem, "PIChildToolStripMenuItem");
     this.PIChildToolStripMenuItem.Name = "PIChildToolStripMenuItem";
     this.PIChildToolStripMenuItem.Click += new System.EventHandler(this.PIChildToolStripMenuItem_Click);
     //
     // windowToolStripMenuItem
     //
     resources.ApplyResources(this.windowToolStripMenuItem, "windowToolStripMenuItem");
     this.windowToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.newWindowToolStripMenuItem});
     this.windowToolStripMenuItem.Name = "windowToolStripMenuItem";
     //
     // newWindowToolStripMenuItem
     //
     resources.ApplyResources(this.newWindowToolStripMenuItem, "newWindowToolStripMenuItem");
     this.newWindowToolStripMenuItem.Name = "newWindowToolStripMenuItem";
     this.newWindowToolStripMenuItem.Click += new System.EventHandler(this.newWindowToolStripMenuItem_Click);
     //
     // helpToolStripMenuItem
     //
     resources.ApplyResources(this.helpToolStripMenuItem, "helpToolStripMenuItem");
     this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.contentsToolStripMenuItem,
     this.indexToolStripMenuItem,
     this.toolStripMenuItem10,
     this.aboutXMLNotepadToolStripMenuItem});
     this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
     //
     // contentsToolStripMenuItem
     //
     resources.ApplyResources(this.contentsToolStripMenuItem, "contentsToolStripMenuItem");
     this.contentsToolStripMenuItem.Name = "contentsToolStripMenuItem";
     this.contentsToolStripMenuItem.Click += new System.EventHandler(this.contentsToolStripMenuItem_Click);
     //
     // indexToolStripMenuItem
     //
     resources.ApplyResources(this.indexToolStripMenuItem, "indexToolStripMenuItem");
     this.indexToolStripMenuItem.Name = "indexToolStripMenuItem";
     this.indexToolStripMenuItem.Click += new System.EventHandler(this.indexToolStripMenuItem_Click);
     //
     // toolStripMenuItem10
     //
     this.toolStripMenuItem10.Name = "toolStripMenuItem10";
     resources.ApplyResources(this.toolStripMenuItem10, "toolStripMenuItem10");
     //
     // aboutXMLNotepadToolStripMenuItem
     //
     resources.ApplyResources(this.aboutXMLNotepadToolStripMenuItem, "aboutXMLNotepadToolStripMenuItem");
     this.aboutXMLNotepadToolStripMenuItem.Name = "aboutXMLNotepadToolStripMenuItem";
     this.aboutXMLNotepadToolStripMenuItem.Click += new System.EventHandler(this.aboutXMLNotepadToolStripMenuItem_Click);
     //
     // toolStripMenuItemUpdate
     //
     resources.ApplyResources(this.toolStripMenuItemUpdate, "toolStripMenuItemUpdate");
     this.toolStripMenuItemUpdate.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
     this.toolStripMenuItemUpdate.BackColor = System.Drawing.Color.MediumAquamarine;
     this.toolStripMenuItemUpdate.Name = "toolStripMenuItemUpdate";
     //
     // toolStrip1
     //
     this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.toolStripButtonNew,
     this.toolStripButtonOpen,
     this.toolStripButtonSave,
     this.toolStripButtonUndo,
     this.toolStripButtonRedo,
     this.toolStripButtonCut,
     this.toolStripButtonCopy,
     this.toolStripButtonPaste,
     this.toolStripButtonDelete,
     this.toolStripSeparator4,
     this.toolStripButtonNudgeUp,
     this.toolStripButtonNudgeDown,
     this.toolStripButtonNudgeLeft,
     this.toolStripButtonNudgeRight,
     this.toolStripSeparator1});
     resources.ApplyResources(this.toolStrip1, "toolStrip1");
     this.toolStrip1.Name = "toolStrip1";
     //
     // toolStripButtonNew
     //
     resources.ApplyResources(this.toolStripButtonNew, "toolStripButtonNew");
     this.toolStripButtonNew.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripButtonNew.Name = "toolStripButtonNew";
     this.toolStripButtonNew.Click += new System.EventHandler(this.toolStripButtonNew_Click);
     //
     // toolStripButtonOpen
     //
     resources.ApplyResources(this.toolStripButtonOpen, "toolStripButtonOpen");
     this.toolStripButtonOpen.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripButtonOpen.Name = "toolStripButtonOpen";
     this.toolStripButtonOpen.Click += new System.EventHandler(this.toolStripButtonOpen_Click);
     //
     // toolStripButtonSave
     //
     resources.ApplyResources(this.toolStripButtonSave, "toolStripButtonSave");
     this.toolStripButtonSave.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripButtonSave.Name = "toolStripButtonSave";
     this.toolStripButtonSave.Click += new System.EventHandler(this.toolStripButtonSave_Click);
     //
     // toolStripButtonUndo
     //
     resources.ApplyResources(this.toolStripButtonUndo, "toolStripButtonUndo");
     this.toolStripButtonUndo.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripButtonUndo.Name = "toolStripButtonUndo";
     this.toolStripButtonUndo.Click += new System.EventHandler(this.toolStripButtonUndo_Click);
     //
     // toolStripButtonRedo
     //
     resources.ApplyResources(this.toolStripButtonRedo, "toolStripButtonRedo");
     this.toolStripButtonRedo.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripButtonRedo.Name = "toolStripButtonRedo";
     this.toolStripButtonRedo.Click += new System.EventHandler(this.toolStripButtonRedo_Click);
     //
     // toolStripButtonCut
     //
     resources.ApplyResources(this.toolStripButtonCut, "toolStripButtonCut");
     this.toolStripButtonCut.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripButtonCut.Name = "toolStripButtonCut";
     this.toolStripButtonCut.Click += new System.EventHandler(this.toolStripButtonCut_Click);
     //
     // toolStripButtonCopy
     //
     resources.ApplyResources(this.toolStripButtonCopy, "toolStripButtonCopy");
     this.toolStripButtonCopy.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripButtonCopy.Name = "toolStripButtonCopy";
     this.toolStripButtonCopy.Click += new System.EventHandler(this.toolStripButtonCopy_Click);
     //
     // toolStripButtonPaste
     //
     resources.ApplyResources(this.toolStripButtonPaste, "toolStripButtonPaste");
     this.toolStripButtonPaste.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripButtonPaste.Name = "toolStripButtonPaste";
     this.toolStripButtonPaste.Click += new System.EventHandler(this.toolStripButtonPaste_Click);
     //
     // toolStripButtonDelete
     //
     resources.ApplyResources(this.toolStripButtonDelete, "toolStripButtonDelete");
     this.toolStripButtonDelete.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripButtonDelete.Name = "toolStripButtonDelete";
     this.toolStripButtonDelete.Click += new System.EventHandler(this.toolStripButtonDelete_Click);
     //
     // toolStripSeparator4
     //
     this.toolStripSeparator4.Name = "toolStripSeparator4";
     resources.ApplyResources(this.toolStripSeparator4, "toolStripSeparator4");
     //
     // toolStripButtonNudgeUp
     //
     resources.ApplyResources(this.toolStripButtonNudgeUp, "toolStripButtonNudgeUp");
     this.toolStripButtonNudgeUp.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripButtonNudgeUp.Name = "toolStripButtonNudgeUp";
     this.toolStripButtonNudgeUp.Click += new System.EventHandler(this.toolStripButtonNudgeUp_Click);
     //
     // toolStripButtonNudgeDown
     //
     resources.ApplyResources(this.toolStripButtonNudgeDown, "toolStripButtonNudgeDown");
     this.toolStripButtonNudgeDown.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripButtonNudgeDown.Name = "toolStripButtonNudgeDown";
     this.toolStripButtonNudgeDown.Click += new System.EventHandler(this.toolStripButtonNudgeDown_Click);
     //
     // toolStripButtonNudgeLeft
     //
     resources.ApplyResources(this.toolStripButtonNudgeLeft, "toolStripButtonNudgeLeft");
     this.toolStripButtonNudgeLeft.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripButtonNudgeLeft.Name = "toolStripButtonNudgeLeft";
     this.toolStripButtonNudgeLeft.Click += new System.EventHandler(this.toolStripButtonNudgeLeft_Click);
     //
     // toolStripButtonNudgeRight
     //
     resources.ApplyResources(this.toolStripButtonNudgeRight, "toolStripButtonNudgeRight");
     this.toolStripButtonNudgeRight.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
     this.toolStripButtonNudgeRight.Name = "toolStripButtonNudgeRight";
     this.toolStripButtonNudgeRight.Click += new System.EventHandler(this.toolStripButtonNudgeRight_Click);
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     resources.ApplyResources(this.toolStripSeparator1, "toolStripSeparator1");
     //
     // tabPageTaskList
     //
     resources.ApplyResources(this.tabPageTaskList, "tabPageTaskList");
     this.tabPageTaskList.Name = "tabPageTaskList";
     //
     // tabPageDynamicHelp
     //
     resources.ApplyResources(this.tabPageDynamicHelp, "tabPageDynamicHelp");
     this.tabPageDynamicHelp.Name = "tabPageDynamicHelp";
     //
     // resizer
     //
     resources.ApplyResources(this.resizer, "resizer");
     this.resizer.Border3DStyle = System.Windows.Forms.Border3DStyle.Raised;
     this.resizer.Name = "resizer";
     this.resizer.Pane1 = null;
     this.resizer.Pane2 = null;
     this.resizer.PaneWidth = 5;
     this.resizer.Vertical = false;
     //
     // taskList
     //
     resources.ApplyResources(this.taskList, "taskList");
     this.taskList.Name = "taskList";
     //
     // dynamicHelpViewer
     //
     /*
     resources.ApplyResources(this.dynamicHelpViewer, "dynamicHelpViewer");
     this.dynamicHelpViewer.DefaultStylesheetResource = "XmlNotepad.DefaultSS.xslt";
     this.dynamicHelpViewer.Name = "dynamicHelpViewer";
     this.dynamicHelpViewer.ShowFileStrip = true;
     */
     //
     // xsltViewer
     //
     /*
     resources.ApplyResources(this.xsltViewer, "xsltViewer");
     this.xsltViewer.DefaultStylesheetResource = "XmlNotepad.DefaultSS.xslt";
     this.xsltViewer.Name = "xsltViewer";
     this.xsltViewer.ShowFileStrip = true;
     */
     //
     // tabControlViews
     //
     resources.ApplyResources(this.tabControlViews, "tabControlViews");
     this.tabControlViews.Controls.Add(this.tabPageTreeView);
     this.tabControlViews.Controls.Add(this.tabPageHtmlView);
     this.tabControlViews.Name = "tabControlViews";
     this.tabControlViews.SelectedIndex = 0;
     this.tabControlViews.SelectedTab = this.tabPageTreeView;
     this.tabControlViews.Selected += new XmlNotepad.NoBorderTabControlEventHandler(this.TabControlViews_Selected);
     //
     // tabPageTreeView
     //
     resources.ApplyResources(this.tabPageTreeView, "tabPageTreeView");
     this.tabPageTreeView.Controls.Add(this.xmlTreeView1);
     this.tabPageTreeView.Name = "tabPageTreeView";
     //
     // tabPageHtmlView
     //
     /*
     resources.ApplyResources(this.tabPageHtmlView, "tabPageHtmlView");
     this.tabPageHtmlView.Controls.Add(this.xsltViewer);
     this.tabPageHtmlView.Name = "tabPageHtmlView";
     */
     //
     // comboBoxLocation
     //
     resources.ApplyResources(this.comboBoxLocation, "comboBoxLocation");
     this.comboBoxLocation.FormattingEnabled = true;
     this.comboBoxLocation.Name = "comboBoxLocation";
     //
     // FormMain
     //
     resources.ApplyResources(this, "$this");
     this.Controls.Add(this.comboBoxLocation);
     this.Controls.Add(this.tabControlViews);
     this.Controls.Add(this.toolStrip1);
     this.Controls.Add(this.statusBar1);
     this.Controls.Add(this.resizer);
     this.Controls.Add(this.menuStrip1);
     this.MainMenuStrip = this.menuStrip1;
     this.Name = "FormMain";
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanelMessage)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanelBusy)).EndInit();
     this.contextMenu1.ResumeLayout(false);
     this.menuStrip1.ResumeLayout(false);
     this.menuStrip1.PerformLayout();
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     this.tabControlViews.ResumeLayout(false);
     this.tabPageTreeView.ResumeLayout(false);
     this.tabPageHtmlView.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
        public EditNodeValue(XmlTreeView view, XmlTreeNode n, string newValue)
        {
            this.view = view;
            this.n = n;
            this.xn = n.Node;
            this.newValue = newValue;

            if (xn is XmlElement) {
                this.oldValue = xn.InnerText;
            } else if (xn is XmlProcessingInstruction) {
                XmlProcessingInstruction pi = ((XmlProcessingInstruction)xn);
                this.oldValue = pi.Data;
            } else if (xn != null) {
                this.oldValue = xn.Value;
            }
        }
 /// <summary>
 /// Insert a new element as a sibling or child of current node. This command can create
 /// new XmlTreeNodes and new XmlNodes to go with it, or it can 
 /// </summary>
 public InsertNode(XmlTreeView view)
 {
     this.view = view;
     this.newNode = view.CreateTreeNode();
     this.doc = view.Model.Document;
     this.position = InsertPosition.Child;
 }
 public CutCommand(XmlTreeView view, XmlTreeNode node)
 {
     this.node = node;
     this.parent = new TreeParent(view, view.Model.Document, node);
     index = node.Index;
 }
        public ChangeNode(XmlTreeView view, XmlTreeNode node, XmlNodeType nt)
        {
            this.doc = view.Model.Document;
            this.nt = nt;
            this.view = view;
            this.node = node;
            XmlNode n = node.Node;
            if (n == null) return;

            init:
            this.oldnt = n.NodeType;
            string innerXml = (oldnt == XmlNodeType.Element) ? n.InnerXml : SpecialUnescape(oldnt, n.Value);
            string outerXml = n.OuterXml;
            string qname = n.Name;
            string localName = n.LocalName;
            string ns = n.NamespaceURI;
            bool noName = false;
            if (qname.StartsWith("#")) {
                qname = localName = "";
            }
            noName = string.IsNullOrEmpty(qname);

            if (noName && IsNamedNodeType(nt)) {
                // Try parsing the content of the node as markup! (but first check for special unescaping
                // that we do for nested comment/cdata blocks)
                PasteCommand paste = new PasteCommand(doc, view, InsertPosition.Before, new TreeData(innerXml));
                XmlTreeNode nte = paste.NewNode;
                if (nte != null && IsNamedNodeType(nte.NodeType)) {
                    // then it worked - we extracted a node with a name, so start over.
                    n = newNode = nte.Node;
                    goto init;
                }
            }
            if (newNode == null || newNode.NodeType != nt) {
                switch (nt) {
                    case XmlNodeType.Element:
                        if (noName) {
                            qname = "element";
                        }
                        newNode = doc.CreateElement(qname, ns);
                        newNode.InnerXml = innerXml;
                        break;
                    case XmlNodeType.Attribute:
                        if (noName) {
                            qname = "attribute";
                        }
                        newNode = doc.CreateAttribute(qname, ns);
                        newNode.Value = innerXml;
                        break;
                    case XmlNodeType.Comment:
                        newNode = doc.CreateComment(SpecialEscape(nt, noName ? innerXml : outerXml));
                        break;
                    case XmlNodeType.ProcessingInstruction:
                        if (noName) {
                            localName = "pi";
                        }
                        newNode = doc.CreateProcessingInstruction(localName, innerXml);
                        break;
                    case XmlNodeType.Text:
                        newNode = doc.CreateTextNode(noName ? innerXml : outerXml);
                        break;
                    case XmlNodeType.CDATA:
                        newNode = doc.CreateCDataSection(SpecialEscape(nt, noName ? innerXml : outerXml));
                        break;
                }
            }
            InsertNode icmd = new InsertNode(node, InsertPosition.Before, newNode, true, true);
            newTreeNode = icmd.NewNode;
            DeleteNode del = new DeleteNode(doc, node);
            group = new CompoundCommand(this.Name);
            group.Add(icmd);
            group.Add(del);
        }
        public XmlTreeNode GetTreeNode(XmlDocument owner, XmlTreeNode target, XmlTreeView view)
        {
            XmlTreeNode node = view.CreateTreeNode();

            if (this.img == -1 && this.xml != null){
                Regex regex = new Regex(@"[:_.\w]+\s*=\s*(""[^""]*"")|('[^']*')\s*");
                Match m = regex.Match(xml);
                string trimmed = xml.Trim();
                if (m.Success && m.Index == 0 && m.Length == xml.Length) {
                    nodeType = (int)XmlNodeType.Attribute;
                    img = (int)NodeImage.Attribute - 1;
                } else if (trimmed.StartsWith("<?")) {
                    nodeType = (int)XmlNodeType.ProcessingInstruction;
                    img = (int)NodeImage.PI - 1;
                } else if (trimmed.StartsWith("<!--")) {
                    nodeType = (int)XmlNodeType.Comment;
                    img = (int)NodeImage.Comment - 1;
                } else if (trimmed.StartsWith("<![CDATA[")) {
                    nodeType = (int)XmlNodeType.CDATA;
                    img = (int)NodeImage.CData - 1;
                } else if (trimmed.StartsWith("<")) {
                    nodeType = (int)XmlNodeType.Element;
                    img = (int)NodeImage.Element - 1;
                } else {
                    nodeType = (int)XmlNodeType.Text;
                    img = (int)NodeImage.Text - 1;
                }
            }

            XmlNode xn = null;
            XmlNode context = (target != null) ? target.Node : owner;

            if (this.nodeType == (int)XmlNodeType.Attribute) {
                int i = this.xml.IndexOf('=');
                if (i > 0) {
                    string name = this.xml.Substring(0, i).Trim();
                    XmlName qname = XmlHelpers.ParseName(context, name, XmlNodeType.Attribute);
                    xn = owner.CreateAttribute(qname.Prefix, qname.LocalName, qname.NamespaceUri);
                    string s = this.xml.Substring(i + 1).Trim();
                    if (s.Length > 2) {
                        char quote = s[0];
                        s = s.Substring(1, s.Length - 2); // strip off quotes
                        // un-escape quotes in the value.
                        xn.Value = s.Replace(quote == '\'' ? "&apos;" : "&quot;", quote.ToString());
                    }
                }

            } else {
                XmlNamespaceManager nsmgr = XmlHelpers.GetNamespaceScope(context);
                XmlParserContext pcontext = new XmlParserContext(owner.NameTable, nsmgr, null, XmlSpace.None);
                XmlTextReader r = null;
                if (this.xml != null) {
                    r = new XmlTextReader(this.xml, XmlNodeType.Element, pcontext);
                } else {
                    r = new XmlTextReader(this.stm, XmlNodeType.Element, pcontext);
                }
                r.WhitespaceHandling = WhitespaceHandling.Significant;

                // TODO: add multi-select support, so we can insert multiple nodes also.
                // And find valid nodes (for example, don't attempt to insert Xml declaration
                // if target node is not at the top of the document, etc).
                // For now we just favor XML elements over other node types.
                ArrayList list = new ArrayList();
                while (true){
                    XmlNode rn = owner.ReadNode(r);
                    if (rn == null)
                        break;
                    if (rn is XmlElement){
                        xn = rn;
                        NormalizeNamespaces((XmlElement)rn, nsmgr);
                    }
                    list.Add(rn);
                }
                if (xn == null && list.Count>0)
                    xn = list[0] as XmlNode;
            }
            node.Node = xn;

            if (!(xn is XmlAttribute)) {
                view.Invalidate();
                if (xn is XmlElement){
                    if (node.Nodes.Count <= 1){
                        this.img = ((int)NodeImage.Leaf -1);
                    }
                }
            }
            return node;
        }
 public TreeParent(XmlTreeView xview, XmlDocument doc, XmlTreeNode node)
     : this(xview.TreeView, doc, node)
 {
 }
 public PasteCommand(XmlDocument doc, XmlTreeView view, InsertPosition position, TreeData data)
 {
     this.td = data;
     this.doc = doc;
     this.target = (XmlTreeNode)view.SelectedNode;
     if (this.target == null && view.TreeView.Nodes.Count > 0) {
         this.target = (XmlTreeNode)view.TreeView.Nodes[0];
     }
     if (this.target != null && this.target.NodeType != XmlNodeType.Element &&
         this.target.NodeType != XmlNodeType.Document) {
         position = InsertPosition.After;
     }
     this.position = position;
     this.view = view;
     if (td != null) {
         this.source = td.GetTreeNode(this.doc, this.target, this.view);
     }
 }
 public NudgeNode(XmlTreeView view, XmlTreeNode node, NudgeDirection dir)
 {
     this.node = node;
     this.dir = dir;
     this.view = view;
 }
        /// <summary>
        /// Move or copy a node from one place to another place in the tree.
        /// </summary>
        /// <param name="view">The MyTreeView that we are inserting into</param>
        /// <param name="source">The node that we are moving.  This node may not be in the tree
        /// and that is ok, so it might be a node that is being cut&paste from another process
        /// for example</param>
        /// <param name="target">The existing node that establishes where in the tree we want
        /// to move the source node to</param>
        /// <param name="where">The position relative to the target node (before or after)</param>
        /// <param name="copy">Whether we are moving or copying the source node</param>
        public MoveNode(XmlTreeView view, XmlTreeNode source, XmlTreeNode target, InsertPosition where, bool copy)
        {
            XmlNode sn = source.Node;
            XmlNode dn = target.Node;

            this.copy = copy;
            TreeView tv = view.TreeView;
            XmlDocument doc = view.Model.Document;
            this.view = view;
            this.sourcePosition = source.Index;

            view.Model.BeginUpdate();
            try {
                if (copy) {
                    this.wasExpanded = source.IsExpanded;
                    XmlTreeNode newSource = view.CreateTreeNode();
                    if (sn != null) {
                        sn = sn.CloneNode(true);
                        newSource.Node = sn;
                    }
                    source = newSource;
                }

                this.sourceParent = new TreeParent(tv, doc, source);
                this.tp = new TreeParent(tv, doc, target);

                // normalize destination based on source node type.
                // for example, if source is an attribute, then it can only be
                // inserted amongst attributes of another node.
                if (tp.IsRoot && where != InsertPosition.Child) {
                    if (sn is XmlAttribute)
                        throw new Exception(SR.RootLevelAttributes);
                    if (sn is XmlText || sn is XmlCDataSection)
                        throw new Exception(SR.RootLevelText);
                    if (sn is XmlElement && sn.OwnerDocument.DocumentElement != null && sn.OwnerDocument.DocumentElement != sn)
                        throw new Exception(SR.RootLevelElements);
                    if (dn is XmlDeclaration && where == InsertPosition.Before)
                        throw new Exception(SR.RootLevelBeforeXmlDecl);
                }
                if (where != InsertPosition.Child) {
                    if (sn is XmlAttribute) {
                        if (!(dn is XmlAttribute)) {
                            if (tp.AttributeCount != 0) {
                                // move target to valid location for attributes.
                                target = tp.GetChild(tp.AttributeCount - 1);
                                where = InsertPosition.After;
                            } else {
                                // append the attribute.
                                where = InsertPosition.Child;
                                target = (XmlTreeNode)target.Parent;
                            }

                        }
                    } else if (dn is XmlAttribute) {
                        if (!(sn is XmlAttribute)) {
                            int skip = tp.AttributeCount;
                            if (tp.Count > skip) {
                                // Move non-attribute down to beginning of child elements.
                                target = tp.GetChild(skip);
                                where = InsertPosition.Before;
                            } else {
                                // append the node.
                                where = InsertPosition.Child;
                                target = (XmlTreeNode)target.Parent;
                            }
                        }
                    }
                }
                this.source = source;
                this.target = target;
                this.where = where;
                this.tp = new TreeParent(tv, doc, target);

                if (where == InsertPosition.Child) {
                    this.tp.SetParent(target);
                }
            } finally {
                view.Model.EndUpdate();
            }
        }
 public XmlTreeViewFindTarget(XmlTreeView view)
 {
     this.view = view;
 }
Exemple #15
0
 public DeleteNode(XmlDocument doc, XmlTreeNode e)
 {
     this.e = e;
     this.doc = doc;
     this.view = e.XmlTreeView;
     Debug.Assert(this.view != null);
 }