コード例 #1
0
 protected override void InitialiseRibbonFactoryController(IRibbonFactoryController controller, object application)
 {
     var app = (Application) application;
     excelViewProvider = new ExcelViewProvider(app);
     controller.Initialise(excelViewProvider);
     excelViewProvider.RegisterOpenDocuments();
 }
コード例 #2
0
        protected override void InitialiseRibbonFactoryController(IRibbonFactoryController controller, object application)
        {
            var app = (Application)application;

            excelViewProvider = new ExcelViewProvider(app);
            controller.Initialise(excelViewProvider);
            excelViewProvider.RegisterOpenDocuments();
        }
コード例 #3
0
 public override void Ribbon_Load(Microsoft.Office.Core.IRibbonUI ribbonUi)
 {
     //Excel does not raise a new document event when we are starting up, and initialise is too soon
     if (excelViewProvider != null)
     {
         excelViewProvider.RegisterOpenDocuments();
     }
     base.Ribbon_Load(ribbonUi);
 }