/** * Specifies the indentation which shall be placed between the left text * margin for this paragraph and the left edge of that paragraph's content * in a left to right paragraph, and the right text margin and the right * edge of that paragraph's text in a right to left paragraph * <p> * If this attribute is omitted, its value shall be assumed to be zero. * Negative values are defined such that the text is moved past the text margin, * positive values move the text inside the text margin. * </p> * * @return indentation or null if indentation is not set */ public int getIndentationLeft() { CTInd indentation = getCTInd(false); return (indentation != null && indentation.isSetLeft()) ? indentation.getLeft().intValue() : -1; }
@Override public Float getValue( CTInd ind ) { BigInteger left = ind.getLeft(); if ( left != null ) { return DxaUtil.dxa2points( left ); } return null; } }
@Override public Float getValue( CTInd ind ) { BigInteger left = ind.getLeft(); if ( left != null ) { return DxaUtil.dxa2points( left ); } return null; }
@Override public Float getValue( CTInd ind ) { BigInteger left = ind.getLeft(); if ( left != null ) { return DxaUtil.dxa2points( left ); } return null; } }
@Override public Float getValue( CTInd ind ) { BigInteger left = ind.getLeft(); if ( left != null ) { return DxaUtil.dxa2points( left ); } return null; }
private void processIndent( StyleParagraphProperties paragraphProperties, CTInd ctInd ) { BigInteger firstLine = ctInd.getFirstLine(); if ( firstLine != null ) paragraphProperties.setIndentationFirstLine( firstLine.intValue() ); BigInteger left = ctInd.getLeft(); if ( left != null ) paragraphProperties.setIndentationLeft( left.intValue() ); BigInteger right = ctInd.getLeft(); if ( right != null ) paragraphProperties.setIndentationRight( right ); }
/** * Specifies the indentation which shall be placed between the left text * margin for this paragraph and the left edge of that paragraph's content * in a left to right paragraph, and the right text margin and the right * edge of that paragraph's text in a right to left paragraph * <p> * If this attribute is omitted, its value shall be assumed to be zero. * Negative values are defined such that the text is moved past the text margin, * positive values move the text inside the text margin. * </p> * * @return indentation or null if indentation is not set */ public int getIndentationLeft() { CTInd indentation = getCTInd(false); return (indentation != null && indentation.isSetLeft()) ? indentation.getLeft().intValue() : -1; }
/** * Specifies the indentation which shall be placed between the left text * margin for this paragraph and the left edge of that paragraph's content * in a left to right paragraph, and the right text margin and the right * edge of that paragraph's text in a right to left paragraph * <p/> * If this attribute is omitted, its value shall be assumed to be zero. * Negative values are defined such that the text is moved past the text margin, * positive values move the text inside the text margin. * </p> * * @return indentation or null if indentation is not set */ public int getIndentationLeft() { CTInd indentation = getCTInd(false); return (indentation != null && indentation.isSetLeft()) ? indentation.getLeft().intValue() : -1; }
cssStyleSheet.setCSSProperty( TEXT_INDENT, dxa2points( firstLine ) + "pt" ); BigInteger left = ctInd.getLeft(); if ( left != null ) cssStyleSheet.setCSSProperty( MARGIN_LEFT, dxa2points( left ) + "pt" ); BigInteger right = ctInd.getLeft(); if ( right != null ) cssStyleSheet.setCSSProperty( MARGIN_RIGHT, dxa2points( right ) + "pt" );
BigInteger left = ind.getLeft(); if ( left != null )