Bug 57899

Summary: Refactor XWPFRun and XWPFParagraph so the PPr/RPr logic can be shared with the default styles code
Product: POI Reporter: Nick Burch <apache>
Component: XWPFAssignee: POI Developers List <dev>
Status: NEW ---    
Severity: enhancement    
Priority: P2    
Version: 3.12-dev   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description Nick Burch 2015-05-07 13:28:38 UTC
As of r1678193, XWPFStyles now exposes the default paragraph and run style information via new classes XWPFDefaultRunStyle and XWPFDefaultParagraphStyle

However, these classes don't have much logic on them. Most of what they need can be found on XWPFRun and XWPFParagraph, and both sets work with the same objects, RPr / PPr

Therefore, the common RPr logic should be refactored out of XWPFRun and put somewhere so it can be shared with XWPFDefaultRunStyle. Likewise, the same should be done for PPr logic in XWPFParagraph for XWPFDefaultParagraphStyle