All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.poi.xwpf.converter.core.openxmlformats.styles.paragraph.ParagraphIndentationRightValueProvider 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 ParagraphIndentationRightValueProvider
    extends AbstractIndentationParagraphValueProvider
{

    public static final ParagraphIndentationRightValueProvider INSTANCE = new ParagraphIndentationRightValueProvider();

    @Override
    public Float getValue( CTInd ind )
    {
        BigInteger right = ind.getRight();
        if ( right != null )
        {
            return DxaUtil.dxa2points( right );
        }
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy