/** * Specifies that the contents of this run shall be displayed with a double * horizontal line through the center of the line. * * @return <code>true</code> if the double strike property is applied */ @Override public boolean isDoubleStrikeThrough() { CTRPr pr = getRunProperties(false); return pr != null && pr.isSetDstrike() && isCTOnOff(pr.getDstrike()); }
/** * Specifies that the contents of this run shall be displayed with a * double horizontal line through the center of the line. * * @see #setStrikeThrough(boolean) for the rules about this */ @Override public void setDoubleStrikethrough(boolean value) { CTRPr pr = getRunProperties(true); CTOnOff dstrike = pr.isSetDstrike() ? pr.getDstrike() : pr.addNewDstrike(); dstrike.setVal(value ? STOnOff.TRUE : STOnOff.FALSE); }
/** * Specifies that the contents of this run shall be displayed with a double * horizontal line through the center of the line. * * @return <code>true</code> if the double strike property is applied */ @Override public boolean isDoubleStrikeThrough() { CTRPr pr = getRunProperties(false); return pr != null && pr.isSetDstrike() && isCTOnOff(pr.getDstrike()); }
/** * Specifies that the contents of this run shall be displayed with a * double horizontal line through the center of the line. * * @see #setStrikeThrough(boolean) for the rules about this */ @Override public void setDoubleStrikethrough(boolean value) { CTRPr pr = getRunProperties(true); CTOnOff dstrike = pr.isSetDstrike() ? pr.getDstrike() : pr.addNewDstrike(); dstrike.setVal(value ? STOnOff.TRUE : STOnOff.FALSE); }
CTRPr rPr = ctr.getRPr(); boolean hasTexStyles = rPr != null && (rPr.getHighlight() != null || rPr.getStrike() != null || rPr.getDstrike() != null || rPr.getVertAlign() != null ) ; StringBuilder text = new StringBuilder();
CTRPr rPr = ctr.getRPr(); boolean hasTexStyles = rPr != null && (rPr.getHighlight() != null || rPr.getStrike() != null || rPr.getDstrike() != null || rPr.getVertAlign() != null ) ; StringBuilder text = new StringBuilder();
if(color != null) cssStyle.addProperty(CSSStylePropertyConstants.BACKGROUND_COLOR, StringUtils.toHexString(color)); if(Boolean.TRUE.equals(RunFontStyleStrikeValueProvider.INSTANCE.getValue(rPr, getStylesDocument())) || rPr.getDstrike() != null) cssStyle.addProperty("text-decoration", "line-through"); if(rPr.getVertAlign() != null) {
if(color != null) cssStyle.addProperty(CSSStylePropertyConstants.BACKGROUND_COLOR, StringUtils.toHexString(color)); if(Boolean.TRUE.equals(RunFontStyleStrikeValueProvider.INSTANCE.getValue(rPr, getStylesDocument())) || rPr.getDstrike() != null) cssStyle.addProperty("text-decoration", "line-through"); if(rPr.getVertAlign() != null) {