/** * Get the size of the bottom margin of this * <code>PageLayoutProperties</code> * * @return the size of the bottom margin (in Millimeter) */ public double getMarginBottom() { // get the value String valueString = mElement.getFoMarginBottomAttribute(); // check if a value was returned if (valueString == null) { // if not use the default length valueString = DEFAULT_LENGTH; } // return the converted value return Length.parseDouble(valueString, Unit.MILLIMETER); }
/** * Get the size of the left margin of this <code>PageLayoutProperties</code> * <p> * If the size is set to zero, the left margin definition will be removed. * * @return the size of the left margin (in Millimeter) */ public double getMarginLeft() { // get the value String valueString = mElement.getFoMarginLeftAttribute(); // check if a value was returned if (valueString == null) { // if not use the default length valueString = DEFAULT_LENGTH; } // return the converted value return Length.parseDouble(valueString, Unit.MILLIMETER); }
/** * Get the size of the right margin of this * <code>PageLayoutProperties</code> * * @return the size of the right margin (in Millimeter) */ public double getMarginRight() { // get the value String valueString = mElement.getFoMarginRightAttribute(); // check if a value was returned if (valueString == null) { // if not use the default length valueString = DEFAULT_LENGTH; } // return the converted value return Length.parseDouble(valueString, Unit.MILLIMETER); }
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)) { styleMargin.setMargin(ODFUtils.getDimensionAsPoint(margin)); String marginBottom = ele.getFoMarginBottomAttribute(); if (StringUtils.isNotEmpty(marginBottom)) { styleMargin.setMarginBottom(ODFUtils String marginLeft = ele.getFoMarginLeftAttribute(); if (StringUtils.isNotEmpty(marginLeft)) { styleMargin.setMarginLeft(ODFUtils.getDimensionAsPoint(marginLeft));
if (parentNode instanceof StylePageLayoutPropertiesElement) { StylePageLayoutPropertiesElement layout = (StylePageLayoutPropertiesElement) parentNode; String svgWidth = layout.getFoPageWidthAttribute(); if (StringUtils.isNotEmpty(svgWidth)) builder.setPageWidth(ODFUtils.getDimensionAsPoint(svgWidth)); String svgHeight = layout.getFoPageHeightAttribute(); if (StringUtils.isNotEmpty(svgHeight)) builder.setPageHeight(ODFUtils.getDimensionAsPoint(svgHeight)); String leftMargin = layout.getFoMarginLeftAttribute(); if (StringUtils.isNotEmpty(leftMargin)) builder.setLeftMargin(ODFUtils.getDimensionAsPoint(leftMargin)); String rightMargin = layout.getFoMarginRightAttribute(); if (StringUtils.isNotEmpty(rightMargin)) builder.setRightMargin(ODFUtils.getDimensionAsPoint(rightMargin)); String topMargin = layout.getFoMarginTopAttribute(); if (StringUtils.isNotEmpty(topMargin)) builder.setTopMargin(ODFUtils.getDimensionAsPoint(topMargin)); String bottomMargin = layout.getFoMarginBottomAttribute(); if (StringUtils.isNotEmpty(bottomMargin)) builder.setBottomMargin(ODFUtils.getDimensionAsPoint(bottomMargin));
/** * Get the page width of this <code>PageLayoutProperties</code> * * @return the size of page width (in Millimeter) */ public double getPageWidth() { // get the value String valueString = mElement.getFoPageWidthAttribute(); // check if a value was returned if (valueString == null) { // if not use the default length valueString = DEFAULT_LENGTH; } // return the converted value return Length.parseDouble(valueString, Unit.MILLIMETER); }
/** * Get the size of the top margin of this <code>PageLayoutProperties</code> * * @return the size of the top margin (in Millimeter) */ public double getMarginTop() { // get the value String valueString = mElement.getFoMarginTopAttribute(); // check if a value was returned if (valueString == null) { // if not use the default length valueString = DEFAULT_LENGTH; } // return the converted value return Length.parseDouble(valueString, Unit.MILLIMETER); }
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 ) )
if (parentNode instanceof StylePageLayoutPropertiesElement) { StylePageLayoutPropertiesElement layout = (StylePageLayoutPropertiesElement) parentNode; String svgWidth = layout.getFoPageWidthAttribute(); if (StringUtils.isNotEmpty(svgWidth)) builder.setPageWidth(ODFUtils.getDimensionAsPoint(svgWidth)); String svgHeight = layout.getFoPageHeightAttribute(); if (StringUtils.isNotEmpty(svgHeight)) builder.setPageHeight(ODFUtils.getDimensionAsPoint(svgHeight)); String leftMargin = layout.getFoMarginLeftAttribute(); if (StringUtils.isNotEmpty(leftMargin)) builder.setLeftMargin(ODFUtils.getDimensionAsPoint(leftMargin)); String rightMargin = layout.getFoMarginRightAttribute(); if (StringUtils.isNotEmpty(rightMargin)) builder.setRightMargin(ODFUtils.getDimensionAsPoint(rightMargin)); String topMargin = layout.getFoMarginTopAttribute(); if (StringUtils.isNotEmpty(topMargin)) builder.setTopMargin(ODFUtils.getDimensionAsPoint(topMargin)); String bottomMargin = layout.getFoMarginBottomAttribute(); if (StringUtils.isNotEmpty(bottomMargin)) builder.setBottomMargin(ODFUtils.getDimensionAsPoint(bottomMargin));
/** * Get the page width of this <code>PageLayoutProperties</code> * * @return the size of page width (in Millimeter) */ public double getPageWidth() { // get the value String valueString = mElement.getFoPageWidthAttribute(); // check if a value was returned if (valueString == null) { // if not use the default length valueString = DEFAULT_LENGTH; } // return the converted value return Length.parseDouble(valueString, Unit.MILLIMETER); }
/** * Get the size of the top margin of this <code>PageLayoutProperties</code> * * @return the size of the top margin (in Millimeter) */ public double getMarginTop() { // get the value String valueString = mElement.getFoMarginTopAttribute(); // check if a value was returned if (valueString == null) { // if not use the default length valueString = DEFAULT_LENGTH; } // return the converted value return Length.parseDouble(valueString, Unit.MILLIMETER); }
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 ) )
/** * Get the size of the bottom margin of this * <code>PageLayoutProperties</code> * * @return the size of the bottom margin (in Millimeter) */ public double getMarginBottom() { // get the value String valueString = mElement.getFoMarginBottomAttribute(); // check if a value was returned if (valueString == null) { // if not use the default length valueString = DEFAULT_LENGTH; } // return the converted value return Length.parseDouble(valueString, Unit.MILLIMETER); }
/** * Get the size of the right margin of this * <code>PageLayoutProperties</code> * * @return the size of the right margin (in Millimeter) */ public double getMarginRight() { // get the value String valueString = mElement.getFoMarginRightAttribute(); // check if a value was returned if (valueString == null) { // if not use the default length valueString = DEFAULT_LENGTH; } // return the converted value return Length.parseDouble(valueString, Unit.MILLIMETER); }
/** * Get the size of the left margin of this <code>PageLayoutProperties</code> * <p> * If the size is set to zero, the left margin definition will be removed. * * @return the size of the left margin (in Millimeter) */ public double getMarginLeft() { // get the value String valueString = mElement.getFoMarginLeftAttribute(); // check if a value was returned if (valueString == null) { // if not use the default length valueString = DEFAULT_LENGTH; } // return the converted value return Length.parseDouble(valueString, Unit.MILLIMETER); }
String styleFamilyName = null; OdfStyleBase styleBase = null; Node parentNode = ele.getParentNode(); if (parentNode instanceof StylePageLayoutElement) { styleName = ((StylePageLayoutElement) parentNode) 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 styleFamilyName = null; OdfStyleBase styleBase = null; Node parentNode = ele.getParentNode(); if ( parentNode instanceof StylePageLayoutElement ) 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 ) )