@Test public final void testPrintOrientationH() throws IOException { final PageStyle pageStyle = PageStyle.builder("test").printOrientationHorizontal() .writingMode(PageWritingMode.PAGE).build(); this.assertMasterXMLEquals(PageStyleTest.MASTER, pageStyle); this.assertLayoutXMLEquals("<style:page-layout style:name=\"test\">" + "<style:page-layout-properties fo:page-width=\"29.7cm\" " + "fo:page-height=\"21cm\" style:num-format=\"1\" style:writing-mode=\"page\" " + "style:print-orientation=\"landscape\" fo:margin=\"1.5cm\"/>" + "<style:header-style>" + "<style:header-footer-properties fo:min-height=\"0cm\" fo:margin=\"0cm\"/>" + "</style:header-style>" + "<style:footer-style>" + "<style:header-footer-properties " + "fo:min-height=\"0cm\" fo:margin=\"0cm\"/>" + "</style:footer-style>" + "</style:page-layout>", pageStyle); }
public static PageStyleBuilder builder(final String name) { return new PageStyleBuilder(name); }
PageStyle implements AddableToOdsElements, ElementWithEmbeddedStyles, Hidable { public static PageStyleBuilder builder(final String name) { return new PageStyleBuilder(name); } }
PageStyle implements AddableToOdsElements, ElementWithEmbeddedStyles, Hidable { public static PageStyleBuilder builder(final String name) { return new PageStyleBuilder(name); } PageStyle(final boolean hidden, final MasterPageStyle masterPageStyle,
              final PageLayoutStyle pageLayoutStyle); }
PageStyle implements AddableToOdsElements, ElementWithEmbeddedStyles, Hidable { public static PageStyleBuilder builder(final String name) { return new PageStyleBuilder(name); } PageStyle(final boolean hidden, final MasterPageStyle masterPageStyle,
              final PageLayoutStyle pageLayoutStyle); static PageStyleBuilder builder(final String name); @Override boolean isHidden(); MasterPageStyle getMasterPageStyle(); PageLayoutStyle getPageLayoutStyle(); String getMasterName(); @Override void addEmbeddedStyles(final StylesContainer stylesContainer); @Override void addToElements(final OdsElements odsElements); void appendXMLToAutomaticStyle(final XMLUtil util, final Appendable appendable); void appendXMLToMasterStyle(final XMLUtil util, final Appendable appendable); }
PageStyle implements AddableToOdsElements, ElementWithEmbeddedStyles, Hidable { public static PageStyleBuilder builder(final String name) { return new PageStyleBuilder(name); } PageStyle(final boolean hidden, final MasterPageStyle masterPageStyle,
              final PageLayoutStyle pageLayoutStyle); static PageStyleBuilder builder(final String name); @Override boolean isHidden(); MasterPageStyle getMasterPageStyle(); PageLayoutStyle getPageLayoutStyle(); String getMasterName(); @Override void addEmbeddedStyles(final StylesContainer stylesContainer); @Override void addToElements(final OdsElements odsElements); void appendXMLToAutomaticStyle(final XMLUtil util, final Appendable appendable); void appendXMLToMasterStyle(final XMLUtil util, final Appendable appendable); static final String DEFAULT_MASTER_PAGE_NAME; static final PaperFormat DEFAULT_FORMAT; static final PagePrintOrientation DEFAULT_PRINT_ORIENTATION; static final PageWritingMode DEFAULT_WRITING_MODE; static final PageStyle DEFAULT_MASTER_PAGE_STYLE; static final PageStyle DEFAULT_PAGE_STYLE; }