public Indent(CSSValue value) { debug(CSS_NAME, value); Ind ind = Context.getWmlObjectFactory().createPPrBaseInd(); CSSPrimitiveValue cssPrimitiveValue = (CSSPrimitiveValue)value; int twip = getTwip(cssPrimitiveValue); ind.setLeft(BigInteger.valueOf(twip) ); this.setObject(ind); }
Ind val=Context.getWmlObjectFactory().createPPrBaseInd(); if (pPrDirectIndent!=null) { StyleUtil.apply(pPrDirectIndent, val);
public static Ind apply(Ind source, Ind destination) { if (!isEmpty(source)) { if (destination == null) destination = Context.getWmlObjectFactory().createPPrBaseInd(); destination.setFirstLine(apply(source.getFirstLine(), destination.getFirstLine())); destination.setFirstLineChars(apply(source.getFirstLineChars(), destination.getFirstLineChars())); destination.setHanging(apply(source.getHanging(), destination.getHanging())); destination.setHangingChars(apply(source.getHangingChars(), destination.getHangingChars())); destination.setLeft(apply(source.getLeft(), destination.getLeft())); destination.setLeftChars(apply(source.getLeftChars(), destination.getLeftChars())); destination.setRight(apply(source.getRight(), destination.getRight())); destination.setRightChars(apply(source.getRightChars(), destination.getRightChars())); } return destination; }
public PPrBase.Ind ensureInd(PPrBase pPrBase) { if (pPrBase.getInd() == null) { PPrBase.Ind ind = myFactory.createPPrBaseInd(); pPrBase.setInd(ind); } return pPrBase.getInd(); }
public PPrBase.Ind getCopy(PPrBase.Ind copy, boolean whenNull) { if (copy != null) { PPrBase.Ind result = myFactory.createPPrBaseInd(); result.setLeft(copy.getLeft()); result.setLeftChars(copy.getLeftChars()); result.setRight(copy.getRight()); result.setRightChars(copy.getRightChars()); result.setHanging(copy.getHanging()); result.setHangingChars(copy.getHangingChars()); result.setFirstLine(copy.getFirstLine()); result.setFirstLineChars(copy.getFirstLineChars()); return result; } if (whenNull) { return myFactory.createPPrBaseInd(); } return null; }
/** * Create an Ind object. For the list item itself, * we'll want it hanging. For any additional * paragraphs in the list item, it should be a simple * indent (ie not hanging) * @param twip * @return */ protected Ind createIndent(int twip, boolean hanging) { if (twip < 40) twip = 40; // TMP FIXME! Ind ind = Context.getWmlObjectFactory().createPPrBaseInd(); if (hanging) { ind.setLeft(BigInteger.valueOf(twip+360) ); ind.setHanging(BigInteger.valueOf(360) ); } else { ind.setLeft(BigInteger.valueOf(twip) ); } return ind; }
public Indent(CSSValue value) { debug(CSS_NAME, value); Ind ind = Context.getWmlObjectFactory().createPPrBaseInd(); CSSPrimitiveValue cssPrimitiveValue = (CSSPrimitiveValue)value; int twip = getTwip(cssPrimitiveValue); ind.setLeft(BigInteger.valueOf(twip) ); this.setObject(ind); }
Ind ind = Context.getWmlObjectFactory().createPPrBaseInd(); ind.setLeft(BigInteger.valueOf(getAncestorIndentation(styleable)) ); pPr.setInd(ind);
Ind val=Context.getWmlObjectFactory().createPPrBaseInd(); if (pPrDirectIndent!=null) { StyleUtil.apply(pPrDirectIndent, val);
public static Ind apply(Ind source, Ind destination) { if (!isEmpty(source)) { if (destination == null) destination = Context.getWmlObjectFactory().createPPrBaseInd(); destination.setFirstLine(apply(source.getFirstLine(), destination.getFirstLine())); destination.setFirstLineChars(apply(source.getFirstLineChars(), destination.getFirstLineChars())); destination.setHanging(apply(source.getHanging(), destination.getHanging())); destination.setHangingChars(apply(source.getHangingChars(), destination.getHangingChars())); destination.setLeft(apply(source.getLeft(), destination.getLeft())); destination.setLeftChars(apply(source.getLeftChars(), destination.getLeftChars())); destination.setRight(apply(source.getRight(), destination.getRight())); destination.setRightChars(apply(source.getRightChars(), destination.getRightChars())); } return destination; }
stylePPrInd = Context.getWmlObjectFactory().createPPrBaseInd(); stylePPrInd.setLeft(BigInteger.ZERO); stylePPrInd.setRight(BigInteger.ZERO);