예제 #1
0
 private IPartFilter GetSlideMasterPartFilter(string sTarget, bool bCleaning)
 {
     PptxSlideMasterPartFilter smpf = new PptxSlideMasterPartFilter(m_commonNamespaces, sTarget);
     smpf.Triggers.AddRange(PptxMetadataDefinitions.ParagraphText);
     if (bCleaning && AreWeInterestedIn(ContentType.Field))
     {
         smpf.Triggers.AddRange(PptxMetadataDefinitions.ActiveXControls);
         smpf.Triggers.AddRange(PptxMetadataDefinitions.EmbeddedObjects);
         smpf.ListGraphicFrameHasOLEObject = GetListOfSlideMasterOLEObjectsInGraphicFrames(sTarget);
     }
     if (AreWeInterestedIn(ContentType.Footer))
     {
         smpf.Triggers.AddRange(PptxMetadataDefinitions.Footer);
         smpf.Triggers.AddRange(PptxMetadataDefinitions.FooterOnSlide);
     }
     return smpf as IPartFilter;
 }
예제 #2
0
        private void CollectPreProcessResultsForSlideMasterPart(PartInfo rel, PptxSlideMasterPartFilter pf)
        {
            if (pf == null || string.IsNullOrEmpty(rel.Target))
                return;

            m_dictSlideMasterOLEObjectsInGraphicFrames.Add(rel.Target, pf.ListGraphicFrameHasOLEObject);
        }