504 |
insertContentTag(data[i]); |
insertContentTag(data[i]); |
505 |
break; |
break; |
506 |
} |
} |
|
BranchElement root = (BranchElement) getDefaultRootElement(); |
|
507 |
} |
} |
508 |
} |
} |
509 |
|
|
521 |
|
|
522 |
BranchElement newParagraph = |
BranchElement newParagraph = |
523 |
(BranchElement) createBranchElement(root, tag.getAttributes()); |
(BranchElement) createBranchElement(root, tag.getAttributes()); |
524 |
|
newParagraph.setResolveParent(getStyle(StyleContext.DEFAULT_STYLE)); |
525 |
|
|
526 |
// Add new paragraph into document structure. |
// Add new paragraph into document structure. |
527 |
Element[] added = new Element[]{newParagraph}; |
Element[] added = new Element[]{newParagraph}; |
796 |
// Use createBranchElement() and createLeafElement instead. |
// Use createBranchElement() and createLeafElement instead. |
797 |
SectionElement section = new SectionElement(); |
SectionElement section = new SectionElement(); |
798 |
|
|
799 |
BranchElement paragraph = new BranchElement(section, null); |
BranchElement paragraph = |
800 |
|
(BranchElement) createBranchElement(section, null); |
801 |
|
paragraph.setResolveParent(getStyle(StyleContext.DEFAULT_STYLE)); |
802 |
tmp = new Element[1]; |
tmp = new Element[1]; |
803 |
tmp[0] = paragraph; |
tmp[0] = paragraph; |
804 |
section.replace(0, 0, tmp); |
section.replace(0, 0, tmp); |