return _dop;
}
- /**
- * Returns the range that covers all text in the
- * file, including main text, footnotes, headers
- * and comments
- */
public Range getOverallRange() {
// hack to get the ending cp of the document, Have to revisit this.
PropertyNode p = _tpt.getTextPieces().get(_tpt.getTextPieces().size() - 1);
}
}
- /**
- * Returns the range which covers the whole of the
- * document, but excludes any headers and footers.
- */
- public abstract Range getRange();
-
+ /**
+ * Returns the range which covers the whole of the document, but excludes
+ * any headers and footers.
+ */
+ public abstract Range getRange();
+
+ /**
+ * Returns the range that covers all text in the file, including main text,
+ * footnotes, headers and comments
+ */
+ public abstract Range getOverallRange();
+
public abstract TextPieceTable getTextTable();
public CHPBinTable getCharacterTable()
_fib.getFcMin(), tpt
);
}
-
- public Range getRange() {
+
+ public Range getOverallRange()
+ {
// Life is easy when we have no footers, headers or unicode!
- return new Range(
- 0, _fib.getFcMac() - _fib.getFcMin(), this
- );
+ return new Range( 0, _fib.getFcMac() - _fib.getFcMin(), this );
+ }
+
+ public Range getRange()
+ {
+ return getOverallRange();
}
public TextPieceTable getTextTable()
}
}
- final Range overallrange = getDocument() instanceof HWPFDocument ? ((HWPFDocument) getDocument())
- .getOverallRange() : getDocument().getRange();
+ final Range overallrange = getDocument().getOverallRange();
int limit = _paragraphs.size();
for ( ; tableEndInclusive < limit - 1; tableEndInclusive++ )
{