Beispiel #1
0
        protected Field ProcessDeadField(HWPFDocumentCore wordDocument,
                                         Range charactersRange, int currentTableLevel, int startOffset,
                                         XmlElement currentBlock)
        {
            if (!(wordDocument is HWPFDocument))
            {
                return(null);
            }

            HWPFDocument hwpfDocument = (HWPFDocument)wordDocument;
            Field        field        = hwpfDocument.GetFields().GetFieldByStartOffset(
                FieldsDocumentPart.MAIN, startOffset);

            if (field == null)
            {
                return(null);
            }

            ProcessField(hwpfDocument, charactersRange, currentTableLevel, field,
                         currentBlock);

            return(field);
        }