cssStyle.addProperty("text-decoration", "line-through"); if(rPr.getVertAlign() != null) { int align = rPr.getVertAlign().getVal().intValue(); if(STVerticalAlignRun.INT_SUPERSCRIPT == align) { cssStyle.addProperty("vertical-align", "super");
cssStyle.addProperty("text-decoration", "line-through"); if(rPr.getVertAlign() != null) { int align = rPr.getVertAlign().getVal().intValue(); if(STVerticalAlignRun.INT_SUPERSCRIPT == align) { cssStyle.addProperty("vertical-align", "super");
/** * Specifies the alignment which shall be applied to the contents of this * run in relation to the default appearance of the run's text. * This allows the text to be repositioned as subscript or superscript without * altering the font size of the run properties. * * @return VerticalAlign * @see {@link VerticalAlign} all possible value that could be applyed to this run * @deprecated use {@link XWPFRun.getVerticalAlignment} */ @Removal(version = "4.2") public VerticalAlign getSubscript() { CTRPr pr = getRunProperties(false); return (pr != null && pr.isSetVertAlign()) ? VerticalAlign.valueOf(pr.getVertAlign().getVal().intValue()) : VerticalAlign.BASELINE; }
/** * Specifies the alignment which shall be applied to the contents of this * run in relation to the default appearance of the run's text. * This allows the text to be repositioned as subscript or superscript without * altering the font size of the run properties. * * @return VerticalAlign * @see VerticalAlign all possible value that could be applyed to this run */ public VerticalAlign getSubscript() { CTRPr pr = run.getRPr(); return (pr != null && pr.isSetVertAlign()) ? VerticalAlign.valueOf(pr.getVertAlign().getVal().intValue()) : VerticalAlign.BASELINE; }
/** * Specifies the alignment which shall be applied to the contents of this * run in relation to the default appearance of the run's text. * This allows the text to be repositioned as subscript or superscript without * altering the font size of the run properties. * * @return VerticalAlign * @see {@link VerticalAlign} all possible value that could be applyed to this run * @deprecated use {@link XWPFRun.getVerticalAlignment} */ @Removal(version = "4.2") public VerticalAlign getSubscript() { CTRPr pr = getRunProperties(false); return (pr != null && pr.isSetVertAlign()) ? VerticalAlign.valueOf(pr.getVertAlign().getVal().intValue()) : VerticalAlign.BASELINE; }