public static void setParam(Microsoft.Office.Tools.Ribbon.RibbonControl _ctr, string _opt = "") { try { if (_ctr is Microsoft.Office.Tools.Ribbon.RibbonButton) { Microsoft.Office.Tools.Ribbon.RibbonButton _tempButton = (Microsoft.Office.Tools.Ribbon.RibbonButton)_ctr; //_tempButton.ScreenTip = Resources.Labels.ResourceManager.GetString("Ribbon_Tips_" + _tempButton.Name); setParamButton(_tempButton, _opt); } else if (_ctr is Microsoft.Office.Tools.Ribbon.RibbonSplitButton) { Microsoft.Office.Tools.Ribbon.RibbonSplitButton _tempButton = (Microsoft.Office.Tools.Ribbon.RibbonSplitButton)_ctr; //_tempButton.ScreenTip = Resources.Labels.ResourceManager.GetString("Ribbon_Tips_" + _tempButton.Name); setParamSButton(_tempButton, _opt); } else if (_ctr is Microsoft.Office.Tools.Ribbon.RibbonGallery) { Microsoft.Office.Tools.Ribbon.RibbonGallery _tempButton = (Microsoft.Office.Tools.Ribbon.RibbonGallery)_ctr; _tempButton.ScreenTip = Resources.Labels.ResourceManager.GetString("Ribbon_Tips_" + _tempButton.Name); setParamGallery(_tempButton, _opt); } else if (_ctr is Microsoft.Office.Tools.Ribbon.RibbonToggleButton) { Microsoft.Office.Tools.Ribbon.RibbonToggleButton _tempButton = (Microsoft.Office.Tools.Ribbon.RibbonToggleButton)_ctr; setParamToggle(_tempButton, _opt); } } catch (Exception E) { System.Windows.Forms.MessageBox.Show("There is an interface label configuration error: " + E.Message + ". I don't know what you did, but it's funny. Please, contact application administrator.", "WooTable .::. Error", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error); } }
public static void setParamGallery(Microsoft.Office.Tools.Ribbon.RibbonGallery _ctr, string _opt = "") { switch (_opt) { case "tip": _ctr.ScreenTip = Resources.Labels.ResourceManager.GetString("Ribbon_Tips_" + _ctr.Name); break; case "label": _ctr.Label = Resources.Labels.ResourceManager.GetString("Ribbon_Labels_" + _ctr.Name); foreach (Microsoft.Office.Tools.Ribbon.RibbonButton _btn in _ctr.Buttons) { _btn.Label = Resources.Labels.ResourceManager.GetString("Ribbon_Labels_" + _ctr.Name + "_" + _btn.Id); } break; } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DocumentControlRibbon)); this.DocControl = this.Factory.CreateRibbonTab(); this.Document = this.Factory.CreateRibbonGroup(); this.docPropUpdater = this.Factory.CreateRibbonButton(); this.download = this.Factory.CreateRibbonButton(); this.separator2 = this.Factory.CreateRibbonSeparator(); this.showMarkup = this.Factory.CreateRibbonToggleButton(); this.showSpellingErrors = this.Factory.CreateRibbonToggleButton(); this.openParagraphFormatter = this.Factory.CreateRibbonButton(); this.textToolsGroup = this.Factory.CreateRibbonGroup(); this.insertSectionBreak = this.Factory.CreateRibbonButton(); this.separator1 = this.Factory.CreateRibbonSeparator(); this.headingsDropdown = this.Factory.CreateRibbonGallery(); this.headingOne = this.Factory.CreateRibbonButton(); this.headingTwo = this.Factory.CreateRibbonButton(); this.headingThree = this.Factory.CreateRibbonButton(); this.headingFour = this.Factory.CreateRibbonButton(); this.headingFive = this.Factory.CreateRibbonButton(); this.applyBodyStyle = this.Factory.CreateRibbonButton(); this.applyFigureStyle = this.Factory.CreateRibbonButton(); this.applyMarkingStyle = this.Factory.CreateRibbonButton(); this.keepWithNext = this.Factory.CreateRibbonButton(); this.formatAllFigures = this.Factory.CreateRibbonButton(); this.pageBreakBefore = this.Factory.CreateRibbonButton(); this.group2 = this.Factory.CreateRibbonGroup(); this.box1 = this.Factory.CreateRibbonBox(); this.defaultUL = this.Factory.CreateRibbonButton(); this.unorderedDropdown = this.Factory.CreateRibbonGallery(); this.level_one_uo = this.Factory.CreateRibbonButton(); this.level_two_uo = this.Factory.CreateRibbonButton(); this.level_three_uo = this.Factory.CreateRibbonButton(); this.level_four_uo = this.Factory.CreateRibbonButton(); this.box2 = this.Factory.CreateRibbonBox(); this.defaultOL = this.Factory.CreateRibbonButton(); this.orderedListGallery = this.Factory.CreateRibbonGallery(); this.level_one_ol = this.Factory.CreateRibbonButton(); this.level_two_ol = this.Factory.CreateRibbonButton(); this.acronymTableGroup = this.Factory.CreateRibbonGroup(); this.formatTable = this.Factory.CreateRibbonButton(); this.runAcronymTool = this.Factory.CreateRibbonButton(); this.crossRefsGroup = this.Factory.CreateRibbonGroup(); this.insertCrossReference = this.Factory.CreateRibbonButton(); this.figureRefButton = this.Factory.CreateRibbonButton(); this.tableRefButton = this.Factory.CreateRibbonButton(); this.DocControl.SuspendLayout(); this.Document.SuspendLayout(); this.textToolsGroup.SuspendLayout(); this.group2.SuspendLayout(); this.box1.SuspendLayout(); this.box2.SuspendLayout(); this.acronymTableGroup.SuspendLayout(); this.crossRefsGroup.SuspendLayout(); this.SuspendLayout(); // // DocControl // this.DocControl.Groups.Add(this.Document); this.DocControl.Groups.Add(this.textToolsGroup); this.DocControl.Groups.Add(this.group2); this.DocControl.Groups.Add(this.acronymTableGroup); this.DocControl.Groups.Add(this.crossRefsGroup); this.DocControl.Label = "Doc Control"; this.DocControl.Name = "DocControl"; // // Document // this.Document.Items.Add(this.docPropUpdater); this.Document.Items.Add(this.download); this.Document.Items.Add(this.separator2); this.Document.Items.Add(this.showMarkup); this.Document.Items.Add(this.showSpellingErrors); this.Document.Items.Add(this.openParagraphFormatter); this.Document.Label = "Document"; this.Document.Name = "Document"; // // docPropUpdater // this.docPropUpdater.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge; this.docPropUpdater.Image = global::DocumentControlToolbar.Properties.Resources.properties_icon_raw; this.docPropUpdater.Label = "Document Properties Editor"; this.docPropUpdater.Name = "docPropUpdater"; this.docPropUpdater.ScreenTip = "The Document Properties Editor is a window that allows you to easily edit the com" + "pany\'s custom document properties."; this.docPropUpdater.ShowImage = true; this.docPropUpdater.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.docPropUpdater_Click); // // download // this.download.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge; this.download.Image = global::DocumentControlToolbar.Properties.Resources.import_styles; this.download.Label = "Import Styles"; this.download.Name = "download"; this.download.ScreenTip = "Imports all missing styles into the document and resets any customized styles."; this.download.ShowImage = true; this.download.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.headings_Click); // // separator2 // this.separator2.Name = "separator2"; // // showMarkup // this.showMarkup.Image = global::DocumentControlToolbar.Properties.Resources.show_markup_small; this.showMarkup.Label = "Show"; this.showMarkup.Name = "showMarkup"; this.showMarkup.ShowImage = true; this.showMarkup.ShowLabel = false; this.showMarkup.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.showMarkup_Click); // // showSpellingErrors // this.showSpellingErrors.Image = global::DocumentControlToolbar.Properties.Resources.spell_check_small; this.showSpellingErrors.Label = "toggleButton1"; this.showSpellingErrors.Name = "showSpellingErrors"; this.showSpellingErrors.ShowImage = true; this.showSpellingErrors.ShowLabel = false; this.showSpellingErrors.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.showSpellingErrors_Click_1); // // openParagraphFormatter // this.openParagraphFormatter.Image = global::DocumentControlToolbar.Properties.Resources.open_paragraph_dialog1; this.openParagraphFormatter.Label = "button1"; this.openParagraphFormatter.Name = "openParagraphFormatter"; this.openParagraphFormatter.ShowImage = true; this.openParagraphFormatter.ShowLabel = false; this.openParagraphFormatter.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.openParagraphFormatter_Click); // // textToolsGroup // this.textToolsGroup.Items.Add(this.insertSectionBreak); this.textToolsGroup.Items.Add(this.separator1); this.textToolsGroup.Items.Add(this.headingsDropdown); this.textToolsGroup.Items.Add(this.applyBodyStyle); this.textToolsGroup.Items.Add(this.applyFigureStyle); this.textToolsGroup.Items.Add(this.applyMarkingStyle); this.textToolsGroup.Items.Add(this.keepWithNext); this.textToolsGroup.Items.Add(this.formatAllFigures); this.textToolsGroup.Items.Add(this.pageBreakBefore); this.textToolsGroup.Label = "Style"; this.textToolsGroup.Name = "textToolsGroup"; // // insertSectionBreak // this.insertSectionBreak.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge; this.insertSectionBreak.Image = global::DocumentControlToolbar.Properties.Resources.section_break_icon; this.insertSectionBreak.Label = "Insert Section Break"; this.insertSectionBreak.Name = "insertSectionBreak"; this.insertSectionBreak.ScreenTip = "Inserts a section break before the cursor\'s position in the document."; this.insertSectionBreak.ShowImage = true; this.insertSectionBreak.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.insertSectionBreak_Click); // // separator1 // this.separator1.Name = "separator1"; // // headingsDropdown // this.headingsDropdown.Buttons.Add(this.headingOne); this.headingsDropdown.Buttons.Add(this.headingTwo); this.headingsDropdown.Buttons.Add(this.headingThree); this.headingsDropdown.Buttons.Add(this.headingFour); this.headingsDropdown.Buttons.Add(this.headingFive); this.headingsDropdown.ColumnCount = 1; this.headingsDropdown.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge; this.headingsDropdown.Image = global::DocumentControlToolbar.Properties.Resources.headings_icon; this.headingsDropdown.Label = "Headings"; this.headingsDropdown.Name = "headingsDropdown"; this.headingsDropdown.ScreenTip = "This dropdown provides an easy way to style heading levels."; this.headingsDropdown.ShowImage = true; // // headingOne // this.headingOne.Label = "Level 1"; this.headingOne.Name = "headingOne"; this.headingOne.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.headingOne_Click); // // headingTwo // this.headingTwo.Label = "Level 2"; this.headingTwo.Name = "headingTwo"; this.headingTwo.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.headingTwo_Click); // // headingThree // this.headingThree.Label = "Level 3"; this.headingThree.Name = "headingThree"; this.headingThree.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.headingThree_Click); // // headingFour // this.headingFour.Label = "Level 4"; this.headingFour.Name = "headingFour"; this.headingFour.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.headingFour_Click); // // headingFive // this.headingFive.Label = "Level 5"; this.headingFive.Name = "headingFive"; this.headingFive.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.headingFive_Click); // // applyBodyStyle // this.applyBodyStyle.Image = global::DocumentControlToolbar.Properties.Resources.apply_style_small_icon; this.applyBodyStyle.Label = "Body"; this.applyBodyStyle.Name = "applyBodyStyle"; this.applyBodyStyle.ScreenTip = "Applies the body style to a selected paragraph or selected paragraphs."; this.applyBodyStyle.ShowImage = true; this.applyBodyStyle.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.applyBodyStyle_Click); // // applyFigureStyle // this.applyFigureStyle.Image = global::DocumentControlToolbar.Properties.Resources.figure_style_small; this.applyFigureStyle.Label = "Figure"; this.applyFigureStyle.Name = "applyFigureStyle"; this.applyFigureStyle.ScreenTip = "Applies the figure style to a selected figure or paragraph."; this.applyFigureStyle.ShowImage = true; this.applyFigureStyle.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.applyFigureStyle_Click); // // applyMarkingStyle // this.applyMarkingStyle.Image = global::DocumentControlToolbar.Properties.Resources.marking_style_small; this.applyMarkingStyle.Label = "Marking"; this.applyMarkingStyle.Name = "applyMarkingStyle"; this.applyMarkingStyle.ScreenTip = "Applys the marking style to a selected paragraph or paragraphs."; this.applyMarkingStyle.ShowImage = true; this.applyMarkingStyle.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.applyMarkingStyle_Click); // // keepWithNext // this.keepWithNext.Image = global::DocumentControlToolbar.Properties.Resources.keep_with_next_small; this.keepWithNext.Label = "Keep With Next "; this.keepWithNext.Name = "keepWithNext"; this.keepWithNext.ScreenTip = "Keeps the selected paragraph with the next paragraph."; this.keepWithNext.ShowImage = true; this.keepWithNext.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.keepWithNext_Click); // // formatAllFigures // this.formatAllFigures.Image = global::DocumentControlToolbar.Properties.Resources.format_all_figures; this.formatAllFigures.Label = "Format All Figures"; this.formatAllFigures.Name = "formatAllFigures"; this.formatAllFigures.ScreenTip = "Applies the figure style to all figures in the document."; this.formatAllFigures.ShowImage = true; this.formatAllFigures.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.formatAllFigures_Click); // // pageBreakBefore // this.pageBreakBefore.Image = global::DocumentControlToolbar.Properties.Resources.page_break_before_small_icon; this.pageBreakBefore.Label = "Page Break Before "; this.pageBreakBefore.Name = "pageBreakBefore"; this.pageBreakBefore.ScreenTip = "Applies the \"insert page break before\" property to a selected paragraph. "; this.pageBreakBefore.ShowImage = true; this.pageBreakBefore.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.pageBreakBefore_Click); // // group2 // this.group2.Items.Add(this.box1); this.group2.Items.Add(this.box2); this.group2.Label = "List"; this.group2.Name = "group2"; // // box1 // this.box1.Items.Add(this.defaultUL); this.box1.Items.Add(this.unorderedDropdown); this.box1.Name = "box1"; // // defaultUL // this.defaultUL.Image = global::DocumentControlToolbar.Properties.Resources.apply_list_small_icon; this.defaultUL.Label = "Apply Default UL"; this.defaultUL.Name = "defaultUL"; this.defaultUL.ScreenTip = "Applies the default unordered list to a selected paragraph or selected paragraphs" + "."; this.defaultUL.ShowImage = true; this.defaultUL.ShowLabel = false; this.defaultUL.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.defaultUL_Click); // // unorderedDropdown // this.unorderedDropdown.Buttons.Add(this.level_one_uo); this.unorderedDropdown.Buttons.Add(this.level_two_uo); this.unorderedDropdown.Buttons.Add(this.level_three_uo); this.unorderedDropdown.Buttons.Add(this.level_four_uo); this.unorderedDropdown.Label = " Apply UL"; this.unorderedDropdown.Name = "unorderedDropdown"; this.unorderedDropdown.ScreenTip = "Provides an easy and consistent way to set unordered list levels. "; // // level_one_uo // this.level_one_uo.Image = global::DocumentControlToolbar.Properties.Resources.level_one_ul; this.level_one_uo.Label = "Level 1"; this.level_one_uo.Name = "level_one_uo"; this.level_one_uo.ShowImage = true; this.level_one_uo.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.level_one_uo_Click); // // level_two_uo // this.level_two_uo.Image = global::DocumentControlToolbar.Properties.Resources.level_two_ul; this.level_two_uo.Label = "Level 2"; this.level_two_uo.Name = "level_two_uo"; this.level_two_uo.ShowImage = true; this.level_two_uo.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.level_two_uo_Click); // // level_three_uo // this.level_three_uo.Image = global::DocumentControlToolbar.Properties.Resources.level_three_ul; this.level_three_uo.Label = "Level 3"; this.level_three_uo.Name = "level_three_uo"; this.level_three_uo.ShowImage = true; this.level_three_uo.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.level_three_uo_Click); // // level_four_uo // this.level_four_uo.Image = global::DocumentControlToolbar.Properties.Resources.level_four_ul; this.level_four_uo.Label = "Level 4"; this.level_four_uo.Name = "level_four_uo"; this.level_four_uo.ShowImage = true; this.level_four_uo.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.level_four_uo_Click); // // box2 // this.box2.Items.Add(this.defaultOL); this.box2.Items.Add(this.orderedListGallery); this.box2.Name = "box2"; // // defaultOL // this.defaultOL.Image = global::DocumentControlToolbar.Properties.Resources.apply_o_list_small_icon; this.defaultOL.Label = "Apply Default OL"; this.defaultOL.Name = "defaultOL"; this.defaultOL.ScreenTip = "Applies the default ordered list to a selected paragraph or selected paragraphs."; this.defaultOL.ShowImage = true; this.defaultOL.ShowLabel = false; this.defaultOL.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.defaultOL_Click); // // orderedListGallery // this.orderedListGallery.Buttons.Add(this.level_one_ol); this.orderedListGallery.Buttons.Add(this.level_two_ol); this.orderedListGallery.Label = " Apply OL"; this.orderedListGallery.Name = "orderedListGallery"; this.orderedListGallery.ScreenTip = "Provides an easy and consistent way to set ordered list levels."; // // level_one_ol // this.level_one_ol.Image = global::DocumentControlToolbar.Properties.Resources.level_one_ol; this.level_one_ol.Label = "Level 1"; this.level_one_ol.Name = "level_one_ol"; this.level_one_ol.ShowImage = true; this.level_one_ol.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.level_one_ol_Click); // // level_two_ol // this.level_two_ol.Image = global::DocumentControlToolbar.Properties.Resources.level_two_ol; this.level_two_ol.Label = "Level 2"; this.level_two_ol.Name = "level_two_ol"; this.level_two_ol.ShowImage = true; this.level_two_ol.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.level_two_ol_Click); // // acronymTableGroup // this.acronymTableGroup.Items.Add(this.formatTable); this.acronymTableGroup.Items.Add(this.runAcronymTool); this.acronymTableGroup.Label = "Table"; this.acronymTableGroup.Name = "acronymTableGroup"; // // formatTable // this.formatTable.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge; this.formatTable.Image = global::DocumentControlToolbar.Properties.Resources.table_icon; this.formatTable.Label = "Format Table"; this.formatTable.Name = "formatTable"; this.formatTable.ScreenTip = "Formats a table in the official company style."; this.formatTable.ShowImage = true; this.formatTable.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.formatTable_Click); // // runAcronymTool // this.runAcronymTool.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge; this.runAcronymTool.Image = ((System.Drawing.Image)(resources.GetObject("runAcronymTool.Image"))); this.runAcronymTool.Label = "Acronym Table Updater"; this.runAcronymTool.Name = "runAcronymTool"; this.runAcronymTool.ScreenTip = "Proofs the document\'s acronym table. Acronyms that do not appear in the document " + "are highlighted in red. Acronyms found in the document are added to the table an" + "d highlighted in yellow."; this.runAcronymTool.ShowImage = true; this.runAcronymTool.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.runAcronymTool_Click); // // crossRefsGroup // this.crossRefsGroup.Items.Add(this.insertCrossReference); this.crossRefsGroup.Items.Add(this.figureRefButton); this.crossRefsGroup.Items.Add(this.tableRefButton); this.crossRefsGroup.Label = "Cross-references"; this.crossRefsGroup.Name = "crossRefsGroup"; // // insertCrossReference // this.insertCrossReference.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge; this.insertCrossReference.Image = global::DocumentControlToolbar.Properties.Resources.insert_cross_reference_large; this.insertCrossReference.Label = "Cross- reference"; this.insertCrossReference.Name = "insertCrossReference"; this.insertCrossReference.ShowImage = true; this.insertCrossReference.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.insertCrossReference_Click); // // figureRefButton // this.figureRefButton.Image = global::DocumentControlToolbar.Properties.Resources.insert_figure_ref_small_icon; this.figureRefButton.Label = " Insert Figure Caption"; this.figureRefButton.Name = "figureRefButton"; this.figureRefButton.ScreenTip = "Inserts a figure caption and styles it in the marking style."; this.figureRefButton.ShowImage = true; this.figureRefButton.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.figureRefButton_Click); // // tableRefButton // this.tableRefButton.Image = global::DocumentControlToolbar.Properties.Resources.insert_table_ref_small_icon; this.tableRefButton.Label = " Insert Table Caption"; this.tableRefButton.Name = "tableRefButton"; this.tableRefButton.ScreenTip = "Inserts a table caption and styles it in the marking style."; this.tableRefButton.ShowImage = true; this.tableRefButton.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.tableRefButton_Click); // // DocumentControlRibbon // this.Name = "DocumentControlRibbon"; this.RibbonType = "Microsoft.Word.Document"; this.Tabs.Add(this.DocControl); this.Load += new Microsoft.Office.Tools.Ribbon.RibbonUIEventHandler(this.Ribbon1_Load); this.DocControl.ResumeLayout(false); this.DocControl.PerformLayout(); this.Document.ResumeLayout(false); this.Document.PerformLayout(); this.textToolsGroup.ResumeLayout(false); this.textToolsGroup.PerformLayout(); this.group2.ResumeLayout(false); this.group2.PerformLayout(); this.box1.ResumeLayout(false); this.box1.PerformLayout(); this.box2.ResumeLayout(false); this.box2.PerformLayout(); this.acronymTableGroup.ResumeLayout(false); this.acronymTableGroup.PerformLayout(); this.crossRefsGroup.ResumeLayout(false); this.crossRefsGroup.PerformLayout(); this.ResumeLayout(false); }
/// <summary> /// 设计器支持所需的方法 - 请勿 /// 使用代码编辑器修改此方法的内容。 /// </summary> private void InitializeComponent() { Microsoft.Office.Tools.Ribbon.RibbonDropDownItem ribbonDropDownItem1 = new Microsoft.Office.Tools.Ribbon.RibbonDropDownItem(); Microsoft.Office.Tools.Ribbon.RibbonDropDownItem ribbonDropDownItem2 = new Microsoft.Office.Tools.Ribbon.RibbonDropDownItem(); Microsoft.Office.Tools.Ribbon.RibbonDropDownItem ribbonDropDownItem3 = new Microsoft.Office.Tools.Ribbon.RibbonDropDownItem(); Microsoft.Office.Tools.Ribbon.RibbonDropDownItem ribbonDropDownItem4 = new Microsoft.Office.Tools.Ribbon.RibbonDropDownItem(); Microsoft.Office.Tools.Ribbon.RibbonDropDownItem ribbonDropDownItem5 = new Microsoft.Office.Tools.Ribbon.RibbonDropDownItem(); Microsoft.Office.Tools.Ribbon.RibbonDropDownItem ribbonDropDownItem6 = new Microsoft.Office.Tools.Ribbon.RibbonDropDownItem(); Microsoft.Office.Tools.Ribbon.RibbonDropDownItem ribbonDropDownItem7 = new Microsoft.Office.Tools.Ribbon.RibbonDropDownItem(); Microsoft.Office.Tools.Ribbon.RibbonDropDownItem ribbonDropDownItem8 = new Microsoft.Office.Tools.Ribbon.RibbonDropDownItem(); this.tControls = new Microsoft.Office.Tools.Ribbon.RibbonTab(); this.gButtons = new Microsoft.Office.Tools.Ribbon.RibbonGroup(); this.btnActionsPane = new Microsoft.Office.Tools.Ribbon.RibbonToggleButton(); this.bgMoodFace = new Microsoft.Office.Tools.Ribbon.RibbonButtonGroup(); this.btnHappy = new Microsoft.Office.Tools.Ribbon.RibbonToggleButton(); this.btnNeutral = new Microsoft.Office.Tools.Ribbon.RibbonToggleButton(); this.btnSad = new Microsoft.Office.Tools.Ribbon.RibbonToggleButton(); this.sbtnAlign = new Microsoft.Office.Tools.Ribbon.RibbonSplitButton(); this.btnLeft = new Microsoft.Office.Tools.Ribbon.RibbonButton(); this.btnCenter = new Microsoft.Office.Tools.Ribbon.RibbonButton(); this.btnRight = new Microsoft.Office.Tools.Ribbon.RibbonButton(); this.separator1 = new Microsoft.Office.Tools.Ribbon.RibbonSeparator(); this.ddFormatChart = new Microsoft.Office.Tools.Ribbon.RibbonDropDown(); this.cbMRUFind = new Microsoft.Office.Tools.Ribbon.RibbonComboBox(); this.galShapes = new Microsoft.Office.Tools.Ribbon.RibbonGallery(); this.gDynamicMenu = new Microsoft.Office.Tools.Ribbon.RibbonGroup(); this.mDynamicMenu = new Microsoft.Office.Tools.Ribbon.RibbonMenu(); this.cbButton = new Microsoft.Office.Tools.Ribbon.RibbonCheckBox(); this.cbSeparator = new Microsoft.Office.Tools.Ribbon.RibbonCheckBox(); this.cbSubMenu = new Microsoft.Office.Tools.Ribbon.RibbonCheckBox(); this.tControls.SuspendLayout(); this.gButtons.SuspendLayout(); this.bgMoodFace.SuspendLayout(); this.gDynamicMenu.SuspendLayout(); this.SuspendLayout(); // // tControls // this.tControls.Groups.Add(this.gButtons); this.tControls.Groups.Add(this.gDynamicMenu); this.tControls.Label = "Ribbon Control Sample"; this.tControls.Name = "tControls"; // // gButtons // this.gButtons.Items.Add(this.btnActionsPane); this.gButtons.Items.Add(this.bgMoodFace); this.gButtons.Items.Add(this.sbtnAlign); this.gButtons.Items.Add(this.separator1); this.gButtons.Items.Add(this.ddFormatChart); this.gButtons.Items.Add(this.cbMRUFind); this.gButtons.Items.Add(this.galShapes); this.gButtons.Label = "Working with Sheets"; this.gButtons.Name = "gButtons"; // // btnActionsPane // this.btnActionsPane.Label = "Show Actions Pane"; this.btnActionsPane.Name = "btnActionsPane"; this.btnActionsPane.ScreenTip = "Toggle Button"; this.btnActionsPane.ShowImage = true; this.btnActionsPane.SuperTip = "A ToggleButton that appears pressed or unpressed. Click the ToggleButton to show" + "/hide the Actions Pane."; this.btnActionsPane.Click += new System.EventHandler<Microsoft.Office.Tools.Ribbon.RibbonControlEventArgs>(this.btnActionsPane_Click); // // bgMoodFace // this.bgMoodFace.Items.Add(this.btnHappy); this.bgMoodFace.Items.Add(this.btnNeutral); this.bgMoodFace.Items.Add(this.btnSad); this.bgMoodFace.Name = "bgMoodFace"; // // btnHappy // this.btnHappy.Image = global::RibbonControlsExcelWorkbook.Properties.Resources.happy; this.btnHappy.Label = "toggleButton1"; this.btnHappy.Name = "btnHappy"; this.btnHappy.ShowImage = true; this.btnHappy.ShowLabel = false; this.btnHappy.Click += new System.EventHandler<Microsoft.Office.Tools.Ribbon.RibbonControlEventArgs>(this.btnHappy_Click); // // btnNeutral // this.btnNeutral.Image = global::RibbonControlsExcelWorkbook.Properties.Resources.Neutral; this.btnNeutral.Label = "toggleButton2"; this.btnNeutral.Name = "btnNeutral"; this.btnNeutral.ShowImage = true; this.btnNeutral.ShowLabel = false; this.btnNeutral.Click += new System.EventHandler<Microsoft.Office.Tools.Ribbon.RibbonControlEventArgs>(this.btnNeutral_Click); // // btnSad // this.btnSad.Image = global::RibbonControlsExcelWorkbook.Properties.Resources.sad; this.btnSad.Label = "toggleButton3"; this.btnSad.Name = "btnSad"; this.btnSad.ShowImage = true; this.btnSad.ShowLabel = false; this.btnSad.Click += new System.EventHandler<Microsoft.Office.Tools.Ribbon.RibbonControlEventArgs>(this.btnSad_Click); // // sbtnAlign // this.sbtnAlign.Items.Add(this.btnLeft); this.sbtnAlign.Items.Add(this.btnCenter); this.sbtnAlign.Items.Add(this.btnRight); this.sbtnAlign.Label = "Alignment"; this.sbtnAlign.Name = "sbtnAlign"; this.sbtnAlign.OfficeImageId = "AlignCenter"; this.sbtnAlign.ScreenTip = "Split Button"; this.sbtnAlign.SuperTip = "A Split Button is a button with a menu. Click the button to center align text in" + " cell A4 or select the menu for other alignment options."; this.sbtnAlign.Click += new System.EventHandler<Microsoft.Office.Tools.Ribbon.RibbonControlEventArgs>(this.sbtnAlign_Click); // // btnLeft // this.btnLeft.Label = "Left Align"; this.btnLeft.Name = "btnLeft"; this.btnLeft.OfficeImageId = "AlignLeft"; this.btnLeft.ScreenTip = "Button"; this.btnLeft.ShowImage = true; this.btnLeft.SuperTip = "Button in a Split Button."; this.btnLeft.Click += new System.EventHandler<Microsoft.Office.Tools.Ribbon.RibbonControlEventArgs>(this.btnLeft_Click); // // btnCenter // this.btnCenter.Label = "Center Align"; this.btnCenter.Name = "btnCenter"; this.btnCenter.OfficeImageId = "AlignCenter"; this.btnCenter.ScreenTip = "Button"; this.btnCenter.ShowImage = true; this.btnCenter.SuperTip = "Button in a Split Button."; this.btnCenter.Click += new System.EventHandler<Microsoft.Office.Tools.Ribbon.RibbonControlEventArgs>(this.btnCenter_Click); // // btnRight // this.btnRight.Label = "Right Align"; this.btnRight.Name = "btnRight"; this.btnRight.OfficeImageId = "AlignRight"; this.btnRight.ScreenTip = "Button"; this.btnRight.ShowImage = true; this.btnRight.SuperTip = "Button in a Split Button."; this.btnRight.Click += new System.EventHandler<Microsoft.Office.Tools.Ribbon.RibbonControlEventArgs>(this.btnRight_Click); // // separator1 // this.separator1.Name = "separator1"; // // ddFormatChart // ribbonDropDownItem1.Label = "Bar"; ribbonDropDownItem1.OfficeImageId = "ChartTypeBarInsertGallery"; ribbonDropDownItem1.ScreenTip = "DropDown Item"; ribbonDropDownItem1.SuperTip = "Select DropDown Item to format the chart."; ribbonDropDownItem2.Label = "Column"; ribbonDropDownItem2.OfficeImageId = "ChartTypeColumnInsertGallery"; ribbonDropDownItem2.ScreenTip = "DropDown Item"; ribbonDropDownItem2.SuperTip = "Select DropDown Item to format the chart."; ribbonDropDownItem3.Label = "Area"; ribbonDropDownItem3.OfficeImageId = "ChartTypeAreaInsertGallery"; ribbonDropDownItem3.ScreenTip = "DropDown Item"; ribbonDropDownItem3.SuperTip = "Select DropDown Item to format the chart."; ribbonDropDownItem4.Label = "Pie"; ribbonDropDownItem4.OfficeImageId = "ChartTypePieInsertGallery"; ribbonDropDownItem4.ScreenTip = "DropDown Item"; ribbonDropDownItem4.SuperTip = "Select DropDown Item to format the chart."; this.ddFormatChart.Items.Add(ribbonDropDownItem1); this.ddFormatChart.Items.Add(ribbonDropDownItem2); this.ddFormatChart.Items.Add(ribbonDropDownItem3); this.ddFormatChart.Items.Add(ribbonDropDownItem4); this.ddFormatChart.Label = "Format Chart"; this.ddFormatChart.Name = "ddFormatChart"; this.ddFormatChart.ScreenTip = "Drop Down"; this.ddFormatChart.SuperTip = "A drop down list of options. Select a chart type to format the chart on Sheet1."; this.ddFormatChart.SelectionChanged += new System.EventHandler<Microsoft.Office.Tools.Ribbon.RibbonControlEventArgs>(this.ddFormatChart_SelectionChanged); // // cbMRUFind // ribbonDropDownItem5.Label = "Q1"; ribbonDropDownItem6.Label = "Q2"; ribbonDropDownItem7.Label = "Q3"; ribbonDropDownItem8.Label = "Q4"; this.cbMRUFind.Items.Add(ribbonDropDownItem5); this.cbMRUFind.Items.Add(ribbonDropDownItem6); this.cbMRUFind.Items.Add(ribbonDropDownItem7); this.cbMRUFind.Items.Add(ribbonDropDownItem8); this.cbMRUFind.Label = "MRU Find"; this.cbMRUFind.Name = "cbMRUFind"; this.cbMRUFind.ScreenTip = "Combo Box"; this.cbMRUFind.SizeString = "Enter or select search text."; this.cbMRUFind.SuperTip = "ComboBox is a EditBox with a DropDown. Select text from the list to find it in t" + "he spreadsheet. Or, enter your own search string to add to the list."; this.cbMRUFind.Text = "Enter or select search text."; this.cbMRUFind.TextChanged += new System.EventHandler<Microsoft.Office.Tools.Ribbon.RibbonControlEventArgs>(this.cbMRUFind_TextChanged); // // galShapes // this.galShapes.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge; this.galShapes.Image = global::RibbonControlsExcelWorkbook.Properties.Resources.AvocadoGreen; this.galShapes.Label = "Color"; this.galShapes.Name = "galShapes"; this.galShapes.ScreenTip = "Gallery"; this.galShapes.ShowImage = true; this.galShapes.SuperTip = "A gallery is a multi-dimensional dropdown. This gallery will format insert a dif" + "ferent colored sphere on to Sheet1."; this.galShapes.ItemsLoading += new System.EventHandler<Microsoft.Office.Tools.Ribbon.RibbonControlEventArgs>(this.galShapes_ItemsLoading); this.galShapes.Click += new System.EventHandler<Microsoft.Office.Tools.Ribbon.RibbonControlEventArgs>(this.galShapes_Click); // // gDynamicMenu // this.gDynamicMenu.Items.Add(this.mDynamicMenu); this.gDynamicMenu.Items.Add(this.cbButton); this.gDynamicMenu.Items.Add(this.cbSeparator); this.gDynamicMenu.Items.Add(this.cbSubMenu); this.gDynamicMenu.Label = "Build Dynamic Menu"; this.gDynamicMenu.Name = "gDynamicMenu"; // // mDynamicMenu // this.mDynamicMenu.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge; this.mDynamicMenu.Dynamic = true; this.mDynamicMenu.Label = "Dynamic Menu"; this.mDynamicMenu.Name = "mDynamicMenu"; this.mDynamicMenu.OfficeImageId = "QueryAppend"; this.mDynamicMenu.ScreenTip = "Dynamic Menu"; this.mDynamicMenu.ShowImage = true; this.mDynamicMenu.SuperTip = "This is a dynamic menu. Use the checkboxes at the right to determine which contr" + "ols to add at runtime."; this.mDynamicMenu.ItemsLoading += new System.EventHandler<Microsoft.Office.Tools.Ribbon.RibbonControlEventArgs>(this.mDynamicMenu_ItemsLoading); // // cbButton // this.cbButton.Label = "Button"; this.cbButton.Name = "cbButton"; this.cbButton.ScreenTip = "Check Box"; this.cbButton.SuperTip = "Select to add control to Dynamic Menu."; // // cbSeparator // this.cbSeparator.Label = "Separator"; this.cbSeparator.Name = "cbSeparator"; this.cbSeparator.ScreenTip = "Check Box"; this.cbSeparator.SuperTip = "Select to add control to Dynamic Menu."; // // cbSubMenu // this.cbSubMenu.Label = "SubMenu"; this.cbSubMenu.Name = "cbSubMenu"; this.cbSubMenu.ScreenTip = "Check Box"; this.cbSubMenu.SuperTip = "Select to add control to Dynamic Menu."; // // RibbonControls // this.Name = "RibbonControls"; this.RibbonType = "Microsoft.Excel.Workbook"; this.StartFromScratch = true; this.Tabs.Add(this.tControls); this.Load += new System.EventHandler<Microsoft.Office.Tools.Ribbon.RibbonUIEventArgs>(this.RibbonControls_Load); this.tControls.ResumeLayout(false); this.tControls.PerformLayout(); this.gButtons.ResumeLayout(false); this.gButtons.PerformLayout(); this.bgMoodFace.ResumeLayout(false); this.bgMoodFace.PerformLayout(); this.gDynamicMenu.ResumeLayout(false); this.gDynamicMenu.PerformLayout(); this.ResumeLayout(false); }