/** * Returns the level of text properties that this paragraph will follow. * * @return the text level of this paragraph (0-based). Default is 0. */ public int getLevel(){ CTTextParagraphProperties pr = _p.getPPr(); if(pr == null) return 0; return pr.getLvl(); }
public int getLevel() { if (props.isSetLvl()) { return 1 + props.getLvl(); } else { return 0; } }
@Override public int getIndentLevel() { CTTextParagraphProperties pr = _p.getPPr(); return (pr == null || !pr.isSetLvl()) ? 0 : pr.getLvl(); }
protected <R> Optional<R> findDefinedParagraphProperty(Function<CTTextParagraphProperties, Boolean> isSet, Function<CTTextParagraphProperties, R> getter) { if (_p.isSetPPr()) { int level = _p.getPPr().isSetLvl() ? 1 + _p.getPPr().getLvl() : 0; return findDefinedParagraphProperty(isSet, getter, level); } else { return _parent.findDefinedParagraphProperty(isSet, getter, 0); } }
protected <R> Optional<R> findDefinedRunProperty(Function<CTTextCharacterProperties, Boolean> isSet, Function<CTTextCharacterProperties, R> getter) { if (_p.isSetPPr()) { int level = _p.getPPr().isSetLvl() ? 1 + _p.getPPr().getLvl() : 0; return findDefinedRunProperty(isSet, getter, level); } else { return _parent.findDefinedRunProperty(isSet, getter, 0); } }
/** * Returns the level of text properties that this paragraph will follow. * * @return the text level of this paragraph (0-based). Default is 0. */ public int getLevel(){ CTTextParagraphProperties pr = _p.getPPr(); if(pr == null) return 0; return pr.getLvl(); }
public int getLevel() { if (props.isSetLvl()) { return 1 + props.getLvl(); } else { return 0; } }
/** * * @return the text level of this paragraph (0-based). Default is 0. */ public int getLevel(){ CTTextParagraphProperties pr = _p.getPPr(); if(pr == null) return 0; return pr.getLvl(); }
@Override public int getIndentLevel() { CTTextParagraphProperties pr = _p.getPPr(); return (pr == null || !pr.isSetLvl()) ? 0 : pr.getLvl(); }
protected <R> Optional<R> findDefinedParagraphProperty(Function<CTTextParagraphProperties, Boolean> isSet, Function<CTTextParagraphProperties, R> getter) { if (_p.isSetPPr()) { int level = _p.getPPr().isSetLvl() ? 1 + _p.getPPr().getLvl() : 0; return findDefinedParagraphProperty(isSet, getter, level); } else { return _parent.findDefinedParagraphProperty(isSet, getter, 0); } }
protected <R> Optional<R> findDefinedRunProperty(Function<CTTextCharacterProperties, Boolean> isSet, Function<CTTextCharacterProperties, R> getter) { if (_p.isSetPPr()) { int level = _p.getPPr().isSetLvl() ? 1 + _p.getPPr().getLvl() : 0; return findDefinedRunProperty(isSet, getter, level); } else { return _parent.findDefinedRunProperty(isSet, getter, 0); } }