Esempio n. 1
0
 protected override void ExecuteAction(string ribbonId)
 {
     //TODO: This needs to improved to stop using global variables
     this.StartNewUndoEntry();
     NotesToCaptions.IsRemoveCaptionsEnabled = false;
     this.GetRibbonUi().RefreshRibbonControl("RemoveCaptionsButton");
     NotesToCaptions.RemoveCaptionsFromSelectedSlides();
 }
        protected override void ExecuteAction(string ribbonId)
        {
            //TODO: This needs to improved to stop using global variables
            this.StartNewUndoEntry();

            foreach (PowerPointSlide slide in this.GetCurrentPresentation().SelectedSlides)
            {
                if (slide.NotesPageText.Trim() != "")
                {
                    NotesToCaptions.IsRemoveCaptionsEnabled = true;
                    break;
                }
            }

            NotesToCaptions.EmbedCaptionsOnSelectedSlides();
            this.GetRibbonUi().RefreshRibbonControl("RemoveCaptionsButton");
        }