/** * Specifies the additional indentation which shall be applied to the first * line of the parent paragraph. This additional indentation is specified * relative to the paragraph indentation which is specified for all other * lines in the parent paragraph. * The firstLine and hanging attributes are * mutually exclusive, if both are specified, then the firstLine value is * ignored. * If the firstLineChars attribute is also specified, then this * value is ignored. * If this attribute is omitted, then its value shall be * assumed to be zero (if needed). * * @return indentation or null if indentation is not set */ public int getIndentationFirstLine() { CTInd indentation = getCTInd(false); return (indentation != null && indentation.isSetFirstLine()) ? indentation.getFirstLine().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; }
/** * Specifies the indentation which shall be placed between the right text * margin for this paragraph and the right 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 getIndentationRight() { CTInd indentation = getCTInd(false); return (indentation != null && indentation.isSetRight()) ? indentation.getRight().intValue() : -1; }
/** * Specifies the indentation which shall be removed from the first line of * the parent paragraph, by moving the indentation on the first line back * towards the beginning of the direction of text flow. * This indentation is * specified relative to the paragraph indentation which is specified for * all other lines in the parent paragraph. * The firstLine and hanging * attributes are mutually exclusive, if both are specified, then the * firstLine value is ignored. * * @return indentation or null if indentation is not set */ public int getIndentationHanging() { CTInd indentation = getCTInd(false); return (indentation != null && indentation.isSetHanging()) ? indentation.getHanging().intValue() : -1; }
if (tmpInd != null) { CTInd cellInd = cellPPr.getInd() != null ? cellPPr.getInd() : cellPPr.addNewInd(); if (tmpInd.getFirstLine() != null) { cellInd.setFirstLine(tmpInd.getFirstLine()); if (tmpInd.getFirstLineChars() != null) { cellInd.setFirstLineChars(tmpInd.getFirstLineChars()); if (tmpInd.getHanging() != null) { cellInd.setHanging(tmpInd.getHanging()); if (tmpInd.getHangingChars() != null) { cellInd.setHangingChars(tmpInd.getHangingChars()); if (tmpInd.getLeft() != null) { cellInd.setLeft(tmpInd.getLeft()); if (tmpInd.getLeftChars() != null) { cellInd.setLeftChars(tmpInd.getLeftChars()); if (tmpInd.getRight() != null) { cellInd.setRight(tmpInd.getRight()); if (tmpInd.getRightChars() != null) { cellInd.setRightChars(tmpInd.getRightChars());
BigInteger left = ind.getLeft(); if ( left != null ) BigInteger right = ind.getRight(); if ( right != null ) BigInteger firstLine = ind.getFirstLine(); if ( firstLine != 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 ); }
@Override public Float getValue( CTInd ind ) { BigInteger right = ind.getRight(); if ( right != null ) { return DxaUtil.dxa2points( right ); } return null; }
@Override public Float getValue( CTInd ind ) { BigInteger firstLine = ind.getFirstLine(); if ( firstLine != null ) { return DxaUtil.dxa2points( firstLine ); } 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 hanging = ind.getHanging(); if ( hanging != null ) { return DxaUtil.dxa2points( hanging ); } return null; } }
/** * Specifies the indentation which shall be removed from the first line of * the parent paragraph, by moving the indentation on the first line back * towards the beginning of the direction of text flow. * This indentation is specified relative to the paragraph indentation which is specified for * all other lines in the parent paragraph. * <p> * The firstLine and hanging attributes are mutually exclusive, if both are specified, then the * firstLine value is ignored. * </p> * * @param indentation */ public void setIndentationHanging(int indentation) { CTInd indent = getCTInd(true); BigInteger bi = new BigInteger(Integer.toString(indentation)); indent.setHanging(bi); }
/** * 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> * * @param indentation */ public void setIndentationLeft(int indentation) { CTInd indent = getCTInd(true); BigInteger bi = new BigInteger(Integer.toString(indentation)); indent.setLeft(bi); }
/** * Specifies the indentation which shall be placed between the right text * margin for this paragraph and the right 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> * * @param indentation */ public void setIndentationRight(int indentation) { CTInd indent = getCTInd(true); BigInteger bi = new BigInteger(Integer.toString(indentation)); indent.setRight(bi); }
/** * Specifies the additional indentation which shall be applied to the first * line of the parent paragraph. This additional indentation is specified * relative to the paragraph indentation which is specified for all other * lines in the parent paragraph. * The firstLine and hanging attributes are * mutually exclusive, if both are specified, then the firstLine value is * ignored. * If the firstLineChars attribute is also specified, then this * value is ignored. If this attribute is omitted, then its value shall be * assumed to be zero (if needed). * * @param indentation */ public void setIndentationFirstLine(int indentation) { CTInd indent = getCTInd(true); BigInteger bi = new BigInteger(Integer.toString(indentation)); indent.setFirstLine(bi); }
if ( ctInd != null ) BigInteger firstLine = ctInd.getFirstLine(); if ( firstLine != null ) 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" );
/** * Specifies the indentation which shall be removed from the first line of * the parent paragraph, by moving the indentation on the first line back * towards the beginning of the direction of text flow. * This indentation is * specified relative to the paragraph indentation which is specified for * all other lines in the parent paragraph. * The firstLine and hanging * attributes are mutually exclusive, if both are specified, then the * firstLine value is ignored. * * @return indentation or null if indentation is not set */ public int getIndentationHanging() { CTInd indentation = getCTInd(false); return (indentation != null && indentation.isSetHanging()) ? indentation.getHanging().intValue() : -1; }
@Override public Float getValue( CTInd ind ) { BigInteger right = ind.getRight(); if ( right != null ) { return DxaUtil.dxa2points( right ); } return null; } }
@Override public Float getValue( CTInd ind ) { BigInteger firstLine = ind.getFirstLine(); if ( firstLine != null ) { return DxaUtil.dxa2points( firstLine ); } return null; } }
@Override public Float getValue( CTInd ind ) { BigInteger left = ind.getLeft(); if ( left != null ) { return DxaUtil.dxa2points( left ); } return null; }