public void RibbonLoad(Office.IRibbonUI ribbonUi) { ActionHandlerFactory = new ActionHandlerFactory(); EnabledHandlerFactory = new EnabledHandlerFactory(); LabelHandlerFactory = new LabelHandlerFactory(); SupertipHandlerFactory = new SupertipHandlerFactory(); ImageHandlerFactory = new ImageHandlerFactory(); ContentHandlerFactory = new ContentHandlerFactory(); PressedHandlerFactory = new PressedHandlerFactory(); CheckBoxActionHandlerFactory = new CheckBoxActionHandlerFactory(); DisableFormatTab = new Boolean(); ShouldCompressImages = new Boolean(); _ribbon = ribbonUi; }
//Create callback methods here. For more information about adding callback methods, select the Ribbon XML item in Solution Explorer and then press F1 public void RibbonLoad(Office.IRibbonUI ribbonUi) { ActionHandlerFactory = new ActionHandlerFactory(); EnabledHandlerFactory = new EnabledHandlerFactory(); LabelHandlerFactory = new LabelHandlerFactory(); SupertipHandlerFactory = new SupertipHandlerFactory(); ImageHandlerFactory = new ImageHandlerFactory(); ContentHandlerFactory = new ContentHandlerFactory(); PressedHandlerFactory = new PressedHandlerFactory(); CheckBoxActionHandlerFactory = new CheckBoxActionHandlerFactory(); _ribbon = ribbonUi; SetVoicesFromInstalledOptions(); SetCoreVoicesToSelections(); }
public bool GetPressed(Office.IRibbonControl control) { ActionFramework.Common.Interface.PressedHandler pressedHandler = PressedHandlerFactory.CreateInstance(control.Id, control.Tag); return(pressedHandler.Get(control.Id)); }
public bool GetPressed(Office.IRibbonControl control) { var pressedHandler = PressedHandlerFactory.CreateInstance(control.Id, control.Tag); return(pressedHandler.Get(control.Id)); }