コード例 #1
0
 public void Analyze(Office.IRibbonControl control)
 {
     Globals.ThisAddIn.WorkWithDocument();
 }
コード例 #2
0
 public void OnViewDashboardButton(Office.IRibbonControl control)
 {
     Globals.ThisAddIn.myItemCustomTaskPane.Visible    = false;
     Globals.ThisAddIn.myCustomTaskPane.Visible        = !Globals.ThisAddIn.myCustomTaskPane.Visible;
     Globals.ThisAddIn.myAddItemCustomTaskPane.Visible = false;
 }
コード例 #3
0
ファイル: MyRibbon.cs プロジェクト: res0o43m/Redaction
 public void SplitButtonMark_Click(Office.IRibbonControl control)
 {
     TurnOffEvents();
     MarkSelection();
     TurnOnEvents();
 }
コード例 #4
0
 public void Reset_Click(Office.IRibbonControl control)
コード例 #5
0
ファイル: Ribbon.cs プロジェクト: JDCain/ClickToCall
 public void DialNumber(Office.IRibbonControl control)
 {
     CheckAndCall(() => _clickToCall.MakeCall(_credential, IPAddress.Parse(PhoneIP), GetNumber()));
 }
コード例 #6
0
 public Bitmap GetCustomImage(Office.IRibbonControl control)
 {
     return(bmpExtract);
 }
コード例 #7
0
 public void FindReplace_Click(Office.IRibbonControl control)
コード例 #8
0
        //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);
        }
コード例 #9
0
 // 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");
 }
コード例 #10
0
 public bool GetPressed(Office.IRibbonControl control)
 {
     ActionFramework.Common.Interface.PressedHandler pressedHandler = PressedHandlerFactory.CreateInstance(control.Id, control.Tag);
     return(pressedHandler.Get(control.Id));
 }
コード例 #11
0
 public void OnCheckBoxAction(Office.IRibbonControl control, bool pressed)
 {
     ActionFramework.Common.Interface.CheckBoxActionHandler checkBoxActionHandler = CheckBoxActionHandlerFactory.CreateInstance(control.Id, control.Tag);
     checkBoxActionHandler.Execute(control.Id, pressed);
 }
コード例 #12
0
 public string GetContent(Office.IRibbonControl control)
 {
     ActionFramework.Common.Interface.ContentHandler contentHandler = ContentHandlerFactory.CreateInstance(control.Id, control.Tag);
     return(contentHandler.Get(control.Id));
 }
コード例 #13
0
 public Bitmap GetImage(Office.IRibbonControl control)
 {
     ActionFramework.Common.Interface.ImageHandler imageHandler = ImageHandlerFactory.CreateInstance(control.Id, control.Tag);
     return(imageHandler.Get(control.Id));
 }
コード例 #14
0
 public string GetSupertip(Office.IRibbonControl control)
 {
     ActionFramework.Common.Interface.SupertipHandler supertipHandler = SupertipHandlerFactory.CreateInstance(control.Id, control.Tag);
     return(supertipHandler.Get(control.Id));
 }
コード例 #15
0
ファイル: RibbonEventArgs.cs プロジェクト: zhaoyin/officeOBA
 public RibbonEventArgs(Office.IRibbonControl ribbonControl, bool cancel)
     : base(cancel)
 {
     this.ribbonControl = ribbonControl;
 }
コード例 #16
0
 // 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);
 }
コード例 #17
0
 public void OnExtractPatch(Office.IRibbonControl control)
 {
     PatchExtractor.Extract(Globals.ThisAddIn.Application.ActiveExplorer().Selection);
 }
コード例 #18
0
 // Sets the default starting status of the checkbox (whether checked or not)
 public bool SetVisibility(Office.IRibbonControl control)
 {
     return(DisableFormatTab);
 }
コード例 #19
0
 public void SelectionConvert_Click(Office.IRibbonControl control)
コード例 #20
0
 // Sets the default starting status of the checkbox (whether checked or not)
 public bool SetImageCompression(Office.IRibbonControl control)
 {
     return(ShouldCompressImages);
 }
コード例 #21
0
 public void RoundTripCheck_Click(Office.IRibbonControl control)
コード例 #22
0
 public string GetCombineShapesLabel(Office.IRibbonControl control)
 {
     return(CommonText.CombineShapesLabel);
 }
コード例 #23
0
ファイル: Ribbon.cs プロジェクト: JDCain/ClickToCall
 public bool IsVisible(Office.IRibbonControl control)
 {
     return(IsValidNumber(GetSelection()));
 }
コード例 #24
0
 public string GetPowerPointLabsMenuLabel(Office.IRibbonControl control)
 {
     return(CommonText.PowerPointLabsMenuLabel);
 }
コード例 #25
0
 public void OnSearchItemButton(Office.IRibbonControl control)
 {
     //Word.Range currentRange = Globals.ThisAddIn.Application.Selection.Range;
     //currentRange.Text = "This text was added by the Ribbon.";
 }
コード例 #26
0
 public void OnAction(Office.IRibbonControl control)
 {
     ActionFramework.Common.Interface.ActionHandler actionHandler = ActionHandlerFactory.CreateInstance(control.Id, control.Tag);
     actionHandler.Execute(control.Id);
 }
コード例 #27
0
 public void OnAddItemButton(Office.IRibbonControl control)
 {
     Globals.ThisAddIn.myCustomTaskPane.Visible        = false;
     Globals.ThisAddIn.myItemCustomTaskPane.Visible    = false;
     Globals.ThisAddIn.myAddItemCustomTaskPane.Visible = true;
 }
コード例 #28
0
ファイル: RibbonEventArgs.cs プロジェクト: zhaoyin/officeOBA
 public RibbonEventArgs(Office.IRibbonControl ribbonControl)
     : base()
 {
     this.ribbonControl = ribbonControl;
 }
コード例 #29
0
ファイル: MyRibbon.cs プロジェクト: res0o43m/Redaction
 public void ButtonUnmark_Click(Office.IRibbonControl control)
 {
     TurnOffEvents();
     UnmarkSelection();
     TurnOnEvents();
 }
コード例 #30
0
        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");
            }
        }