public XDDFHyperlink linkToAction(String action) { XDDFHyperlink link = new XDDFHyperlink("", action); getOrCreateProperties().setHyperlink(link); return link; }
/** * @param underline * which underline style this run of text is formatted with. */ public void setUnderline(UnderlineType underline) { getOrCreateProperties().setUnderline(underline); }
/** * @param strike * which strike style this run of text is formatted with. */ public void setStrikeThrough(StrikeType strike) { getOrCreateProperties().setStrikeThrough(strike); }
public XDDFTextParagraph initialize() { _body.addNewLstStyle(); _body.addNewBodyPr(); XDDFBodyProperties bp = getBodyProperties(); bp.setAnchoring(AnchorType.TOP); bp.setRightToLeft(false); XDDFTextParagraph p = addNewParagraph(); p.setTextAlignment(TextAlignment.LEFT); XDDFRunProperties end = p.addAfterLastRunProperties(); end.setLanguage(Locale.US); end.setFontSize(11.0); return p; }
public XDDFHyperlink createMouseOver(String action) { XDDFHyperlink link = new XDDFHyperlink("", action); getOrCreateProperties().setMouseOver(link); return link; }
/** * Specifies whether this run of text will be formatted as bold text. * * @param bold * whether this run of text will be formatted as bold text. */ public void setBold(Boolean bold) { getOrCreateProperties().setBold(bold); }
/** * @param italic * whether this run of text is formatted as italic text. */ public void setItalic(Boolean italic) { getOrCreateProperties().setItalic(italic); }
public XDDFAutoFit getAutoFit() { if (props.isSetNoAutofit()) { return new XDDFNoAutoFit(props.getNoAutofit()); } else if (props.isSetNormAutofit()) { return new XDDFNormalAutoFit(props.getNormAutofit()); } else if (props.isSetSpAutoFit()) { return new XDDFShapeAutoFit(props.getSpAutoFit()); } return new XDDFNormalAutoFit(); }
protected static void initTextBody(XDDFTextBody body) { XDDFTextParagraph p = body.getParagraph(0); p.appendRegularRun(""); }
/** * <em>Note</em>: In order to get fonts to unset the property for a given font family use * {@link XDDFFont#unsetFontForGroup(FontGroup)} * * @param fonts * to set or unset on the run. */ public void setFonts(XDDFFont[] fonts) { getOrCreateProperties().setFonts(fonts); }
/** * @param size * font size in points. The value <code>null</code> unsets the * size for this run. * <dl> * <dt>Minimum inclusive =</dt> * <dd>1</dd> * <dt>Maximum inclusive =</dt> * <dd>400</dd></dt> * */ public void setFontSize(Double size) { getOrCreateProperties().setFontSize(size); }
public XDDFBulletSize getBulletSize() { if (props.isSetBuSzPct()) { return new XDDFBulletSizePercent(props.getBuSzPct(), null); } else if (props.isSetBuSzPts()) { return new XDDFBulletSizePoints(props.getBuSzPts()); } else if (props.isSetBuSzTx()) { return new XDDFBulletSizeFollowText(props.getBuSzTx()); } else { return null; } }
/** * @param caps * which caps style this run of text is formatted with. */ public void setCapitals(CapsType caps) { getOrCreateProperties().setCapitals(caps); }
/** * Specifies the color to be used on bullet characters has to follow text * color within a given paragraph. */ public void setBulletColorFollowText() { getOrCreateBulletProperties().setBulletColorFollowText(); }
/** * Specifies the font to be used on bullet characters has to follow text * font within a given paragraph. */ public void setBulletFontFollowText() { getOrCreateBulletProperties().setBulletFontFollowText(); }
/** * @since 4.0.1 */ public XDDFRunProperties addDefaultRunProperties() { return getOrCreateProperties().addDefaultRunProperties(); }
public void setBookmark(String bookmark) { getOrCreateProperties().setBookmark(bookmark); }
public void setAlternativeLanguage(Locale lang) { getOrCreateProperties().setAlternativeLanguage(lang); }
public void setSpellError(Boolean error) { getOrCreateProperties().setSpellError(error); }
public XDDFParagraphBulletProperties getOrCreateBulletProperties() { return getOrCreateProperties().getBulletProperties(); }