org.apache.poi.xwpf.converter.core.openxmlformats.styles.paragraph.ParagraphIndentationLeftValueProvider Maven / Gradle / Ivy
package org.apache.poi.xwpf.converter.core.openxmlformats.styles.paragraph;
import java.math.BigInteger;
import org.apache.poi.xwpf.converter.core.utils.DxaUtil;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTInd;
public class ParagraphIndentationLeftValueProvider
extends AbstractIndentationParagraphValueProvider
{
public static final ParagraphIndentationLeftValueProvider INSTANCE = new ParagraphIndentationLeftValueProvider();
@Override
public Float getValue( CTInd ind )
{
BigInteger left = ind.getLeft();
if ( left != null )
{
return DxaUtil.dxa2points( left );
}
return null;
}
}