// // walking the hierarchy will include this if it is needed
// if (expressRPr == null || expressRPr.getRStyle() == null ) {
// applyRPr(resolvedStyleRPrComponent.get(defaultCharacterStyleId), effectiveRPr);
// }
RPr effectiveRPr = null;
if (rPrFromPStyle==null) {
effectiveRPr = Context.getWmlObjectFactory().createRPr();
} else {
effectiveRPr=(RPr)XmlUtils.deepCopy(rPrFromPStyle);
}
// System.out.println("start\n" + XmlUtils.marshaltoString(effectiveRPr, true, true));
// Next, the table style properties are applied to each table in the document,
// following the conditional formatting inclusions and exclusions specified
// per table.
// TODO - if the paragraph is in a table?
// Next, numbered item and paragraph properties are applied to each paragraph
// formatted with a *numbering *style**.
// TODO - who uses numbering styles (as opposed to numbering
// via a paragraph style or direct formatting)?
// Next, paragraph and run properties are
// applied to each paragraph as defined by the paragraph style
// (this includes run properties defined in a paragraph style,
// but not run properties directly included in a pPr in the
// document (those only apply to a paragraph mark).
// applyRPr(pPrLevelRunStyle, effectiveRPr);
// Next, run properties are applied to each run with a specific character style
// applied.
RPr resolvedRPr = null;
String runStyleId;
if (expressRPr != null && expressRPr.getRStyle() != null ) {
runStyleId = expressRPr.getRStyle().getVal();
resolvedRPr = getEffectiveRPr(runStyleId);
StyleUtil.apply(resolvedRPr, effectiveRPr);