private void InitialiseFeatures()
        {
            // Hide unwanted menubar options
            CommandHandling.RemoveCommand("scriptToolStripMenuItem", this.MenuBar.Items);
            CommandHandling.RemoveCommand("toolsToolStripMenuItem", this.MenuBar.Items);

            CommandHandling.RemoveCommand("printPreviewToolStripMenuItem", this.MenuBar.Items);
            CommandHandling.RemoveCommand("printSettingsToolStripMenuItem", this.MenuBar.Items);
            CommandHandling.RemoveCommand("printToolStripMenuItem", this.MenuBar.Items);
            CommandHandling.RemoveCommand("exitToolStripMenuItem", this.MenuBar.Items);
            CommandHandling.RemoveCommand("componentsToolStripMenuItem", this.MenuBar.Items);
            CommandHandling.RemoveCommand("visibleToolStripMenuItem", this.MenuBar.Items);

            CommandHandling.RemoveCommand("newWindowToolStripMenuItem", this.MenuBar.Items);
            CommandHandling.RemoveCommand("exportAsHtmlToolStripMenuItem", this.MenuBar.Items);
            CommandHandling.RemoveCommand("editXMLToolStripMenuItem", this.MenuBar.Items);
            CommandHandling.RemoveCommand("exportAsCSVToolStripMenuItem", this.MenuBar.Items);
            CommandHandling.RemoveCommand("saveToolStripMenuItem", this.MenuBar.Items);

            CommandHandling.RemoveCommand("focusCellStyleToolStripMenuItem", this.MenuBar.Items);
            CommandHandling.RemoveCommand("selectionToolStripMenuItem", this.MenuBar.Items);

            //CommandHandling.RemoveCommand("", this.MenuBar.Items);

            // Hide unwanted toolbar options
            CommandHandling.RemoveCommand("printPreviewToolStripButton", this.ToolBar.Items);
            CommandHandling.RemoveCommand("saveToolStripButton", this.ToolBar.Items);
            CommandHandling.RemoveCommand("showDebugFormToolStripButton", this.ToolBar.Items);
            CommandHandling.RemoveCommand("slashLeftSolidToolStripButton", this.ToolBar.Items);
            CommandHandling.RemoveCommand("slashRightSolidToolStripButton", this.ToolBar.Items);

            CommandHandling.RemoveCommand("zoomToolStripDropDownButton", this.FontBar.Items);
            //CommandHandling.RemoveCommand("", this.ToolBar.Items);
        }
        private void InitialiseFeatures()
        {
            // remove whole 'Document' submenu
            base.InitialiseFeatures(true);

            // Don't need the Enable Edit because we implement Ctrl+Click
            CommandHandling.RemoveCommand("toolstripEnableEditing", ToolBar.Items);
        }
Exemple #3
0
		virtual protected void InitialiseFeatures()
		{
			// remove whole 'Document' submenu
			base.InitialiseFeatures(true);

			// extras
			CommandHandling.RemoveCommand("toolstripEnableEditing", ToolBar.Items);
			//CommandHandling.HideCommand("toolstripInsertLink", ToolBar.Items);
			//CommandHandling.HideCommand("contextInsertLink", ContextMenu.Items);

			//CommandHandling.HideCommand("", ToolBar.Items);
			//CommandHandling.HideCommand("", ToolBar.Items);
			//CommandHandling.HideCommand("", ToolBar.Items);
		}