styleDocDefaults.setPPr(documentDefaultPPr);
styleDocDefaults.setRPr(documentDefaultRPr);
// Now point Normal at this
Style normal = getDefaultParagraphStyle();
if (normal==null) {
log.warn("No default paragraph style!!");
normal = Context.getWmlObjectFactory().createStyle();
normal.setType("paragraph");
normal.setStyleId("Normal");
n = Context.getWmlObjectFactory().createStyleName();
n.setVal("Normal");
normal.setName(n);
this.getJaxbElement().getStyle().add(normal);
normal.setDefault(Boolean.TRUE); // @since 3.2.0
}
BasedOn based = Context.getWmlObjectFactory().createStyleBasedOn();
based.setVal(ROOT_NAME);
normal.setBasedOn(based);
log.info("Set virtual style, id '" + styleDocDefaults.getStyleId() + "', name '"+ styleDocDefaults.getName().getVal() + "'");
log.debug(XmlUtils.marshaltoString(styleDocDefaults, true, true));