예제 #1
0
 protected override void PreprocessSpecialParts(PartInfo rel, IPartFilter pf)
 {
     Stream inputData = rel.GetContent();
     if (pf is XlsxWorkbookXmlPartFilter ||
         pf is XlsxStyleXmlPartFilter ||
         pf is XlsxPreprocessTablePartFilter)
     {
         pf.PreProcessPart(inputData);
     }
     else if (pf is XlsxPreprocessWorksheetPartFilter)
     {
         foreach (PartInfo subRel in pf.SortRelatedParts(rel.GetRelatedObjects()))
         {
             if (subRel.Type == OpenXmlFactory.Get(m_openXmlFormat).OfficeDocumentRelationshipsTable)
             {
                 PreprocessPart(subRel, DocumentProcessingActions.Discover);
                 m_tablePreprocessed = true;
                 break;
             }
         }
         pf.PreProcessPart(inputData);
     }
     base.PreprocessSpecialParts(rel, pf);
 }