@Test public final void testItalicBold() throws IOException { final TextStyle prop = TextStyle.builder("ts").fontStyleItalic().fontWeightBold().build(); TestHelper.assertXMLEquals( "<style:style style:name=\"ts\" style:family=\"text\">" + "<style:text-properties fo:font-weight=\"bold\" " + "style:font-weight-asian=\"bold\" style:font-weight-complex=\"bold\" " + "fo:font-style=\"italic\" style:font-style-asian=\"italic\" " + "style:font-style-complex=\"italic\"/>" + "</style:style>", prop); }
public static TextStyleBuilder builder(final String styleName) { return new TextStyleBuilder(styleName); }
TextStyle implements FontFaceContainerStyle { public static TextStyleBuilder builder(final String styleName) { return new TextStyleBuilder(styleName); } }
TextStyle implements FontFaceContainerStyle { public static TextStyleBuilder builder(final String styleName) { return new TextStyleBuilder(styleName); } TextStyle(final String name, final boolean hidden, final TextProperties textProperties); }
TextStyle implements FontFaceContainerStyle { public static TextStyleBuilder builder(final String styleName) { return new TextStyleBuilder(styleName); } TextStyle(final String name, final boolean hidden, final TextProperties textProperties); static TextStyleBuilder builder(final String styleName); @Override void appendXMLContent(final XMLUtil util, final Appendable appendable); @Override FontFace getFontFace(); @Override ObjectStyleFamily getFamily(); @Override String getName(); boolean isNotEmpty(); @Override String getKey(); @Override boolean isHidden(); @Override void addToElements(final OdsElements odsElements); }
TextStyle implements FontFaceContainerStyle { public static TextStyleBuilder builder(final String styleName) { return new TextStyleBuilder(styleName); } TextStyle(final String name, final boolean hidden, final TextProperties textProperties); static TextStyleBuilder builder(final String styleName); @Override void appendXMLContent(final XMLUtil util, final Appendable appendable); @Override FontFace getFontFace(); @Override ObjectStyleFamily getFamily(); @Override String getName(); boolean isNotEmpty(); @Override String getKey(); @Override boolean isHidden(); @Override void addToElements(final OdsElements odsElements); static final TextStyle DEFAULT_TEXT_STYLE; }