* @param pPrDirectIndent
* @param numberingIndent
*/
public Indent(Ind pPrDirectIndent, Ind numberingIndent) {
Ind val=Context.getWmlObjectFactory().createPPrBaseInd();
if (pPrDirectIndent!=null) {
StyleUtil.apply(pPrDirectIndent, val);
}
if (numberingIndent!=null) {
// Use anything not specifically set already
if (val.getHanging()==null
&& val.getFirstLine()==null // since these are mutually exclusive
&& numberingIndent.getHanging()!=null) {
val.setHanging(numberingIndent.getHanging());
}
if (val.getFirstLine()==null
&& numberingIndent.getFirstLine()!=null) {
val.setFirstLine(numberingIndent.getFirstLine());
}
if (val.getLeft()==null
&& numberingIndent.getLeft()!=null) {
val.setLeft(numberingIndent.getLeft());
}
}
this.setObject(val);