/** * Create child element {@odf.element style:background-image}. * * Child element is new in Odf 1.2 * * @return the element {@odf.element style:background-image} */ public StyleBackgroundImageElement newStyleBackgroundImageElement() { StyleBackgroundImageElement styleBackgroundImage = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleBackgroundImageElement.class); this.appendChild(styleBackgroundImage); return styleBackgroundImage; }
String backgroundColor = ele.getFoBackgroundColorAttribute(); if (StringUtils.isNotEmpty(backgroundColor)) { cssStyleSheet.setCSSProperty(BACKGROUND_COLOR, backgroundColor); String border = ele.getFoBorderAttribute(); if (StringUtils.isNotEmpty(border)) { cssStyleSheet.setCSSProperty(BORDER, border); String borderBottom = ele.getFoBorderBottomAttribute(); if (StringUtils.isNotEmpty(borderBottom)) { cssStyleSheet.setCSSProperty(BORDER_BOTTOM, borderBottom); String borderLeft = ele.getFoBorderLeftAttribute(); if (StringUtils.isNotEmpty(borderLeft)) { cssStyleSheet.setCSSProperty(BORDER_LEFT, borderLeft); String borderRight = ele.getFoBorderRightAttribute(); if (StringUtils.isNotEmpty(borderRight)) { cssStyleSheet.setCSSProperty(BORDER_RIGHT, borderRight); String borderTop = ele.getFoBorderTopAttribute(); if (StringUtils.isNotEmpty(borderTop)) { cssStyleSheet.setCSSProperty(BORDER_TOP, borderTop); String margin = ele.getFoMarginAttribute(); if (StringUtils.isNotEmpty(margin)) { cssStyleSheet.setCSSProperty(MARGIN, margin); String marginBottom = ele.getFoMarginBottomAttribute();
public void visit( StyleHeaderFooterPropertiesElement ele ) Node parentNode = ele.getParentNode(); boolean footer = StyleFooterStyleElement.ELEMENT_NAME.getLocalName().equals( parentNode.getLocalName() ); String minHeight = ele.getFoMinHeightAttribute(); if ( StringUtils.isNotEmpty( minHeight ) ) String margin = ele.getFoMarginAttribute(); if ( StringUtils.isNotEmpty( margin ) ) String marginBottom = ele.getFoMarginBottomAttribute(); if ( StringUtils.isNotEmpty( marginBottom ) ) String marginLeft = ele.getFoMarginLeftAttribute(); if ( StringUtils.isNotEmpty( marginLeft ) ) String marginRight = ele.getFoMarginRightAttribute(); if ( StringUtils.isNotEmpty( marginRight ) ) String marginTop = ele.getFoMarginTopAttribute(); if ( StringUtils.isNotEmpty( marginTop ) ) String height = ele.getSvgHeightAttribute(); if ( StringUtils.isNotEmpty( height ) )
public void visit(StyleHeaderFooterPropertiesElement ele) { Node parentNode = ele.getParentNode(); boolean footer = StyleFooterStyleElement.ELEMENT_NAME.getLocalName() .equals(parentNode.getLocalName()); StyleHeaderFooterProperties headerFooterProperties = null; if (!footer) { headerFooterProperties = currentStyle.getHeaderProperties(); if (headerFooterProperties == null) { headerFooterProperties = new StyleHeaderFooterProperties(); currentStyle.setHeaderProperties(headerFooterProperties); } } else { headerFooterProperties = currentStyle.getFooterProperties(); if (headerFooterProperties == null) { headerFooterProperties = new StyleHeaderFooterProperties(); currentStyle.setFooterProperties(headerFooterProperties); } } // min-height String minHeight = ele.getFoMinHeightAttribute(); if (StringUtils.isNotEmpty(minHeight)) { headerFooterProperties.setMinHeight(ODFUtils .getDimensionAsPoint(minHeight)); } }
String backgroundColor = ele.getFoBackgroundColorAttribute(); if ( StringUtils.isNotEmpty( backgroundColor ) ) String border = ele.getFoBorderAttribute(); if ( StringUtils.isNotEmpty( border ) ) String borderBottom = ele.getFoBorderBottomAttribute(); if ( StringUtils.isNotEmpty( borderBottom ) ) String borderLeft = ele.getFoBorderLeftAttribute(); if ( StringUtils.isNotEmpty( borderLeft ) ) String borderRight = ele.getFoBorderRightAttribute(); if ( StringUtils.isNotEmpty( borderRight ) ) String borderTop = ele.getFoBorderTopAttribute(); if ( StringUtils.isNotEmpty( borderTop ) ) String margin = ele.getFoMarginAttribute(); if ( StringUtils.isNotEmpty( margin ) ) String marginBottom = ele.getFoMarginBottomAttribute(); if ( StringUtils.isNotEmpty( marginBottom ) ) String marginLeft = ele.getFoMarginLeftAttribute(); if ( StringUtils.isNotEmpty( marginLeft ) ) String marginRight = ele.getFoMarginRightAttribute(); if ( StringUtils.isNotEmpty( marginRight ) )
public void visit( StyleHeaderFooterPropertiesElement ele ) Node parentNode = ele.getParentNode(); boolean footer = StyleFooterStyleElement.ELEMENT_NAME.getLocalName().equals( parentNode.getLocalName() ); String minHeight = ele.getFoMinHeightAttribute(); if ( StringUtils.isNotEmpty( minHeight ) ) String margin = ele.getFoMarginAttribute(); if ( StringUtils.isNotEmpty( margin ) ) String marginBottom = ele.getFoMarginBottomAttribute(); if ( StringUtils.isNotEmpty( marginBottom ) ) String marginLeft = ele.getFoMarginLeftAttribute(); if ( StringUtils.isNotEmpty( marginLeft ) ) String marginRight = ele.getFoMarginRightAttribute(); if ( StringUtils.isNotEmpty( marginRight ) ) String marginTop = ele.getFoMarginTopAttribute(); if ( StringUtils.isNotEmpty( marginTop ) ) String height = ele.getSvgHeightAttribute(); if ( StringUtils.isNotEmpty( height ) )
/** * Create child element {@odf.element style:background-image}. * * Child element is new in Odf 1.2 * * @return the element {@odf.element style:background-image} */ public StyleBackgroundImageElement newStyleBackgroundImageElement() { StyleBackgroundImageElement styleBackgroundImage = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleBackgroundImageElement.class); this.appendChild(styleBackgroundImage); return styleBackgroundImage; }
/** * Create child element {@odf.element style:background-image}. * * Child element is new in Odf 1.2 * * @return the element {@odf.element style:background-image} */ public StyleBackgroundImageElement newStyleBackgroundImageElement() { StyleBackgroundImageElement styleBackgroundImage = ((OdfFileDom) this.ownerDocument).newOdfElement(StyleBackgroundImageElement.class); this.appendChild(styleBackgroundImage); return styleBackgroundImage; }