Beispiel #1
0
        public List <ISlideData> FetchCurrentPresentationData()
        {
            List <ISlideData> slideData = FunctionalTestExtensions.GetCurrentPresentation().Presentation
                                          .Slides.Cast <Slide>().Select(SlideData.FromSlide).ToList();

            return(slideData);
        }
Beispiel #2
0
        public Slide SelectSlide(string slideName)
        {
            List <Models.PowerPointSlide> slides = FunctionalTestExtensions.GetCurrentPresentation().Slides;

            for (int i = 0; i <= slides.Count; i++)
            {
                if (slideName == slides[i].Name)
                {
                    Slide slide = slides[i].GetNativeSlide();
                    slide.Select();
                    FunctionalTestExtensions.GetCurrentWindow().View.GotoSlide(i + 1);
                    return(slide);
                }
            }
            return(null);
        }
Beispiel #3
0
        public Slide SelectSlide(int index)
        {
            var slides = FunctionalTestExtensions.GetCurrentPresentation().Slides;

            for (int i = 0; i <= slides.Count; i++)
            {
                if (i == (index - 1))
                {
                    var slide = slides[i].GetNativeSlide();
                    slide.Select();
                    FunctionalTestExtensions.GetCurrentWindow().View.GotoSlide(index);
                    return(slide);
                }
            }
            return(null);
        }
Beispiel #4
0
 public void DeleteSection(int index, bool deleteSlides)
 {
     FunctionalTestExtensions.GetCurrentPresentation().SectionProperties.Delete(index, deleteSlides);
 }
Beispiel #5
0
 public void AddSection(int index, string sectionName)
 {
     FunctionalTestExtensions.GetCurrentPresentation().SectionProperties.AddSection(index, sectionName);
 }
Beispiel #6
0
 public void RenameSection(int index, string newName)
 {
     FunctionalTestExtensions.GetCurrentPresentation().SectionProperties.Rename(index, newName);
 }
Beispiel #7
0
 public Slide[] GetAllSlides()
 {
     return(FunctionalTestExtensions.GetCurrentPresentation().Presentation.Slides.Cast <Slide>().ToArray());
 }
Beispiel #8
0
 public void ClosePresentation()
 {
     EnterFunctionalTest();
     FunctionalTestExtensions.GetCurrentPresentation().Presentation.Close();
 }
Beispiel #9
0
 public void SavePresentationAs(string presName)
 {
     FunctionalTestExtensions.GetCurrentPresentation().Presentation.SaveCopyAs(presName);
 }