mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
bring together CTRunTrackChange code
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925610 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
40beab6b6c
commit
e17ddb0374
@ -145,23 +145,22 @@ public class XWPFParagraph implements IBodyElement, IRunBody, ISDTContents, Para
|
||||
iruns.add(cc);
|
||||
}
|
||||
if (o instanceof CTRunTrackChange) {
|
||||
for (CTR r : ((CTRunTrackChange) o).getRArray()) {
|
||||
final CTRunTrackChange parentRecord = (CTRunTrackChange) o;
|
||||
for (CTR r : parentRecord.getRArray()) {
|
||||
XWPFRun cr = new XWPFRun(r, this);
|
||||
runs.add(cr);
|
||||
iruns.add(cr);
|
||||
}
|
||||
// add all the insertions as text
|
||||
for (CTRunTrackChange change : parentRecord.getInsArray()) {
|
||||
buildRunsInOrderFromXml(change);
|
||||
}
|
||||
}
|
||||
if (o instanceof CTSmartTagRun) {
|
||||
// Smart Tags can be nested many times.
|
||||
// This implementation does not preserve the tagging information
|
||||
buildRunsInOrderFromXml(o);
|
||||
}
|
||||
if (o instanceof CTRunTrackChange) {
|
||||
// add all the insertions as text
|
||||
for (CTRunTrackChange change : ((CTRunTrackChange) o).getInsArray()) {
|
||||
buildRunsInOrderFromXml(change);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user