public void Analyze(Office.IRibbonControl control) { Globals.ThisAddIn.WorkWithDocument(); }
public void OnViewDashboardButton(Office.IRibbonControl control) { Globals.ThisAddIn.myItemCustomTaskPane.Visible = false; Globals.ThisAddIn.myCustomTaskPane.Visible = !Globals.ThisAddIn.myCustomTaskPane.Visible; Globals.ThisAddIn.myAddItemCustomTaskPane.Visible = false; }
public void SplitButtonMark_Click(Office.IRibbonControl control) { TurnOffEvents(); MarkSelection(); TurnOnEvents(); }
public void Reset_Click(Office.IRibbonControl control)
public void DialNumber(Office.IRibbonControl control) { CheckAndCall(() => _clickToCall.MakeCall(_credential, IPAddress.Parse(PhoneIP), GetNumber())); }
public Bitmap GetCustomImage(Office.IRibbonControl control) { return(bmpExtract); }
public void FindReplace_Click(Office.IRibbonControl control)
//Create callback methods here. For more information about adding callback methods, select the Ribbon XML item in Solution Explorer and then press F1 // Set the visibility of the Drawing Tools Format Tab public bool ToggleVisibleFormatTab(Office.IRibbonControl control) { return(!DisableFormatTab); }
// Toggles the boolean controlling the visibility of the Drawing Tools Format Tab public void ToggleVisibility(Office.IRibbonControl control, bool pressed) { DisableFormatTab = pressed; _ribbon.InvalidateControlMso("TabDrawingToolsFormat"); _ribbon.InvalidateControl("VisibleFormatShapes"); }
public bool GetPressed(Office.IRibbonControl control) { ActionFramework.Common.Interface.PressedHandler pressedHandler = PressedHandlerFactory.CreateInstance(control.Id, control.Tag); return(pressedHandler.Get(control.Id)); }
public void OnCheckBoxAction(Office.IRibbonControl control, bool pressed) { ActionFramework.Common.Interface.CheckBoxActionHandler checkBoxActionHandler = CheckBoxActionHandlerFactory.CreateInstance(control.Id, control.Tag); checkBoxActionHandler.Execute(control.Id, pressed); }
public string GetContent(Office.IRibbonControl control) { ActionFramework.Common.Interface.ContentHandler contentHandler = ContentHandlerFactory.CreateInstance(control.Id, control.Tag); return(contentHandler.Get(control.Id)); }
public Bitmap GetImage(Office.IRibbonControl control) { ActionFramework.Common.Interface.ImageHandler imageHandler = ImageHandlerFactory.CreateInstance(control.Id, control.Tag); return(imageHandler.Get(control.Id)); }
public string GetSupertip(Office.IRibbonControl control) { ActionFramework.Common.Interface.SupertipHandler supertipHandler = SupertipHandlerFactory.CreateInstance(control.Id, control.Tag); return(supertipHandler.Get(control.Id)); }
public RibbonEventArgs(Office.IRibbonControl ribbonControl, bool cancel) : base(cancel) { this.ribbonControl = ribbonControl; }
// Toggles the boolean controlling whether images should be compressed. public void ToggleImageCompression(Office.IRibbonControl control, bool pressed) { ShouldCompressImages = pressed; _ribbon.InvalidateControl("ShouldCompressImagesCheckbox"); GraphicsUtil.ShouldCompressPictureExport(ShouldCompressImages); }
public void OnExtractPatch(Office.IRibbonControl control) { PatchExtractor.Extract(Globals.ThisAddIn.Application.ActiveExplorer().Selection); }
// Sets the default starting status of the checkbox (whether checked or not) public bool SetVisibility(Office.IRibbonControl control) { return(DisableFormatTab); }
public void SelectionConvert_Click(Office.IRibbonControl control)
// Sets the default starting status of the checkbox (whether checked or not) public bool SetImageCompression(Office.IRibbonControl control) { return(ShouldCompressImages); }
public void RoundTripCheck_Click(Office.IRibbonControl control)
public string GetCombineShapesLabel(Office.IRibbonControl control) { return(CommonText.CombineShapesLabel); }
public bool IsVisible(Office.IRibbonControl control) { return(IsValidNumber(GetSelection())); }
public string GetPowerPointLabsMenuLabel(Office.IRibbonControl control) { return(CommonText.PowerPointLabsMenuLabel); }
public void OnSearchItemButton(Office.IRibbonControl control) { //Word.Range currentRange = Globals.ThisAddIn.Application.Selection.Range; //currentRange.Text = "This text was added by the Ribbon."; }
public void OnAction(Office.IRibbonControl control) { ActionFramework.Common.Interface.ActionHandler actionHandler = ActionHandlerFactory.CreateInstance(control.Id, control.Tag); actionHandler.Execute(control.Id); }
public void OnAddItemButton(Office.IRibbonControl control) { Globals.ThisAddIn.myCustomTaskPane.Visible = false; Globals.ThisAddIn.myItemCustomTaskPane.Visible = false; Globals.ThisAddIn.myAddItemCustomTaskPane.Visible = true; }
public RibbonEventArgs(Office.IRibbonControl ribbonControl) : base() { this.ribbonControl = ribbonControl; }
public void ButtonUnmark_Click(Office.IRibbonControl control) { TurnOffEvents(); UnmarkSelection(); TurnOnEvents(); }
public void ExecMenuButton(Office.IRibbonControl vControl) { var vActivCell = SqlEngine.currExcelApp.ActiveCell; try { In2SqlSvcTool.RunGarbageCollector(); switch (vControl.Id) { case "ExecConnManager": showSQlMAnPane(); ActivateTab(); break; case "ODBCManager": In2SqlSvcTool.RunCmdLauncher("odbcad32"); ActivateTab(); break; case "OdbcProp": showODBCProp(); ActivateTab(); break; case "BackOutl": showOutlinePane(); ActivateTab(); break; case "SqlEdit": showEditPane(); break; case "KeepOnly": intSqlVBAEngine.RibbonKeepOnly(); ActivateTab(); break; case "RemoveOnly": intSqlVBAEngine.RibbonRemoveOnly(); ActivateTab(); break; case "Retrieve": intSqlVBAEngine.RibbonRefresh(); ActivateTab(); break; case "RetrieveAll": intSqlVBAEngine.RibbonRefreshAll(); ActivateTab(); break; case "EditQuery": showSqlEdit(); ActivateTab(); break; case "PivotExcel": intSqlVBAEngine.RibbonPivotExcel(); ActivateTab(); break; case "Undo": intSqlVBAEngine.Undo(); ActivateTab(); break; case "Redo": intSqlVBAEngine.Redo(); ActivateTab(); break; // () case "UpdateDataAll": intSqlVBAEngine.updateTablesAll(); ActivateTab(); break; case "UpdateData": intSqlVBAEngine.updateTables(); ActivateTab(); break; // case "PowerPivotMM": intSqlVBAEngine.runPowerPivotM(); //intSqlVBAEngine.checkTableName(); ActivateTab(); break; case "Options": intSqlVBAEngine.runSqlProperties(); //intSqlVBAEngine.checkTableName(); ActivateTab(); break; case "TableProp": intSqlVBAEngine.runTableProperties(); break; case "About": showAbout(); /* var frmshowAbout = new in2SqlWF09CloudConnectionEditor(); * frmshowAbout.Show(); * ActivateTab();*/ break; //RightTaskPane default: /* string caption = "Information message"; * MessageBoxButtons buttons = MessageBoxButtons.YesNo; * DialogResult result; * * // Displays the MessageBox. * result = MessageBox.Show(vControl.Id, caption, buttons); */ break; } // In2SqlSvcTool.RunGarbageCollector(); } catch (Exception e) { In2SqlSvcTool.ExpHandler(e, "ExecMenuButton"); } }