@Internal protected XDDFTextParagraph(CTTextParagraph paragraph, XDDFTextBody parent) { this._p = paragraph; this._parent = parent; final int count = paragraph.sizeOfBrArray() + paragraph.sizeOfFldArray() + paragraph.sizeOfRArray(); this._runs = new ArrayList<>(count); for (XmlObject xo : _p.selectChildren(QNameSet.ALL)) { if (xo instanceof CTTextLineBreak) { _runs.add(new XDDFTextRun((CTTextLineBreak) xo, this)); } else if (xo instanceof CTTextField) { _runs.add(new XDDFTextRun((CTTextField) xo, this)); } else if (xo instanceof CTRegularTextRun) { _runs.add(new XDDFTextRun((CTRegularTextRun) xo, this)); } } addDefaultRunProperties(); addAfterLastRunProperties(); }
@Internal protected XDDFTextParagraph(CTTextParagraph paragraph, XDDFTextBody parent) { this._p = paragraph; this._parent = parent; final int count = paragraph.sizeOfBrArray() + paragraph.sizeOfFldArray() + paragraph.sizeOfRArray(); this._runs = new ArrayList<>(count); for (XmlObject xo : _p.selectChildren(QNameSet.ALL)) { if (xo instanceof CTTextLineBreak) { _runs.add(new XDDFTextRun((CTTextLineBreak) xo, this)); } else if (xo instanceof CTTextField) { _runs.add(new XDDFTextRun((CTTextField) xo, this)); } else if (xo instanceof CTRegularTextRun) { _runs.add(new XDDFTextRun((CTRegularTextRun) xo, this)); } } addDefaultRunProperties(); addAfterLastRunProperties(); }