private XDDFParagraphProperties getProperties() { if (_properties == null) { _properties = new XDDFParagraphProperties(_p.getPPr()); } return _properties; }
/** * @since 4.0.1 */ public XDDFRunProperties addDefaultRunProperties() { return getOrCreateProperties().addDefaultRunProperties(); }
public XDDFTabStop addTabStop() { return getOrCreateProperties().addTabStop(); }
public void setLevel2Properties(XDDFParagraphProperties properties) { if (properties == null) { if (_body.isSetLstStyle()) { CTTextListStyle style = _body.getLstStyle(); if (style.isSetLvl2PPr()) { style.unsetLvl2PPr(); } } } else { CTTextListStyle style = _body.isSetLstStyle() ? _body.getLstStyle() : _body.addNewLstStyle(); style.setLvl2PPr(properties.getXmlObject()); } }
/** * @since 4.0.1 */ public XDDFRunProperties addDefaultRunProperties() { if (!props.isSetDefRPr()) { props.addNewDefRPr(); } return getDefaultRunProperties(); }
public XDDFParagraphBulletProperties getOrCreateBulletProperties() { return getOrCreateProperties().getBulletProperties(); }
public XDDFTabStop getTabStop(int index) { if (_p.isSetPPr()) { return getProperties().getTabStop(index); } else { return null; } }
public int countTabStops() { if (_p.isSetPPr()) { return getProperties().countTabStops(); } else { return 0; } }
public List<XDDFTabStop> getTabStops() { if (_p.isSetPPr()) { return getProperties().getTabStops(); } else { return Collections.emptyList(); } }
public XDDFTabStop insertTabStop(int index) { return getOrCreateProperties().insertTabStop(index); }
public void setLevel9Properties(XDDFParagraphProperties properties) { if (properties == null) { if (_body.isSetLstStyle()) { CTTextListStyle style = _body.getLstStyle(); if (style.isSetLvl9PPr()) { style.unsetLvl9PPr(); } } } else { CTTextListStyle style = _body.isSetLstStyle() ? _body.getLstStyle() : _body.addNewLstStyle(); style.setLvl9PPr(properties.getXmlObject()); } }
public XDDFRunProperties getDefaultRunProperties() { if (_p.isSetPPr()) { return getProperties().getDefaultRunProperties(); } else { return null; } }
public XDDFParagraphBulletProperties getBulletProperties() { if (_p.isSetPPr()) { return getProperties().getBulletProperties(); } else { return null; } }
public XDDFTabStop getTabStop(int index) { if (_p.isSetPPr()) { return getProperties().getTabStop(index); } else { return null; } }
public int countTabStops() { if (_p.isSetPPr()) { return getProperties().countTabStops(); } else { return 0; } }
public List<XDDFTabStop> getTabStops() { if (_p.isSetPPr()) { return getProperties().getTabStops(); } else { return Collections.emptyList(); } }
public XDDFTabStop insertTabStop(int index) { return getOrCreateProperties().insertTabStop(index); }
private XDDFParagraphProperties getOrCreateProperties() { if (!_p.isSetPPr()) { _properties = new XDDFParagraphProperties(_p.addNewPPr()); } return getProperties(); }
public void setDefaultProperties(XDDFParagraphProperties properties) { if (properties == null) { if (_body.isSetLstStyle()) { CTTextListStyle style = _body.getLstStyle(); if (style.isSetDefPPr()) { style.unsetDefPPr(); } } } else { CTTextListStyle style = _body.isSetLstStyle() ? _body.getLstStyle() : _body.addNewLstStyle(); style.setDefPPr(properties.getXmlObject()); } }
public XDDFRunProperties getDefaultRunProperties() { if (_p.isSetPPr()) { return getProperties().getDefaultRunProperties(); } else { return null; } }