コード例 #1
0
        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;
        }
コード例 #2
0
ファイル: Ribbon1.cs プロジェクト: junkiattan/PowerPointLabs
        //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();
        }
コード例 #3
0
 public string GetLabel(Office.IRibbonControl control)
 {
     ActionFramework.Common.Interface.LabelHandler labelHandler = LabelHandlerFactory.CreateInstance(control.Id, control.Tag);
     return(labelHandler.Get(control.Id));
 }
コード例 #4
0
ファイル: Ribbon1.cs プロジェクト: youthinkk/PowerPointLabs
        //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();
            LabelHandlerFactory = new LabelHandlerFactory();
            SupertipHandlerFactory = new SupertipHandlerFactory();
            ImageHandlerFactory = new ImageHandlerFactory();

            _ribbon = ribbonUi;

            SetVoicesFromInstalledOptions();
            SetCoreVoicesToSelections();
        }
コード例 #5
0
        public string GetLabel(Office.IRibbonControl control)
        {
            var labelHandler = LabelHandlerFactory.CreateInstance(control.Id, control.Tag);

            return(labelHandler.Get(control.Id));
        }