private IPartFilter GetNotesMasterPartFilter(string sTarget, bool bCleaning) { PptxNotesMasterPartFilter nmpf = new PptxNotesMasterPartFilter(m_commonNamespaces, sTarget); nmpf.Triggers.AddRange(PptxMetadataDefinitions.ParagraphText); if (bCleaning && AreWeInterestedIn(ContentType.Field)) { nmpf.Triggers.AddRange(PptxMetadataDefinitions.ActiveXControls); nmpf.Triggers.AddRange(PptxMetadataDefinitions.EmbeddedObjects); nmpf.ListGraphicFrameHasOLEObject = GetListOfNotesMasterOLEObjectsInGraphicFrames(sTarget); } if (AreWeInterestedIn(ContentType.Footer)) nmpf.Triggers.AddRange(PptxMetadataDefinitions.Footer); if (AreWeInterestedIn(ContentType.Header)) nmpf.Triggers.AddRange(PptxMetadataDefinitions.Header); return nmpf as IPartFilter; }
private void CollectPreProcessResultsForNotesMasterPart(PartInfo rel, PptxNotesMasterPartFilter pf) { if (pf == null || string.IsNullOrEmpty(rel.Target)) return; m_dictNotesMasterOLEObjectsInGraphicFrames.Add(rel.Target, pf.ListGraphicFrameHasOLEObject); }