What Is poi-ooxml-5.2.3.jar?

What Is poi-ooxml-5.2.3.jar?

✍: FYIcenter.com

poi-ooxml-5.2.3.jar is one of the JAR files for Apache POI 5.2.3, which provides an API for Microsoft document files of Word, Excel, PowerPoint, and Visio.

poi-ooxml-5.2.3.jar supports Apache POI components that read and write Microsoft's Open Office XML document format, which is used in recent versions of Microsoft Office tools like Word 2007, Excel 2007, PowerPoint 2007, etc.

poi-ooxml-5.2.3.jar is distributed as part of the poi-bin-5.2.3-20220909.zip download file.

JAR File Size and Download Location:

JAR name: poi-ooxml-5.2.3.jar
Target JDK version: 9
Dependency:
   poi.jar
   xmlbeans.jar
   ooxml-schemas.jar
   commons-collections.jar
   junit.jar   

File name: poi-ooxml.jar, poi-ooxml-5.2.3.jar
File size: 2010497 bytes
Release date: 09-09-2022
Download: Apache POI Website

Here are Java Source Code files for poi-ooxml-5.2.3.jar:

org/apache/poi/xddf/usermodel/text/XDDFParagraphProperties.java

/* ====================================================================
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
==================================================================== */

package org.apache.poi.xddf.usermodel.text;

import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;

import org.apache.poi.util.Beta;
import org.apache.poi.util.Internal;
import org.apache.poi.util.Units;
import org.apache.poi.xddf.usermodel.XDDFExtensionList;
import org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraphProperties;

@Beta
public class XDDFParagraphProperties {
    private CTTextParagraphProperties props;
    private XDDFParagraphBulletProperties bullet;

    @Internal
    protected XDDFParagraphProperties(CTTextParagraphProperties properties) {
        this.props = properties;
        this.bullet = new XDDFParagraphBulletProperties(properties);
    }

    @Internal
    protected CTTextParagraphProperties getXmlObject() {
        return props;
    }

    public XDDFParagraphBulletProperties getBulletProperties() {
        return bullet;
    }

    public int getLevel() {
        if (props.isSetLvl()) {
            return 1 + props.getLvl();
        } else {
            return 0;
        }
    }

    public void setLevel(Integer level) {
        if (level == null) {
            if (props.isSetLvl()) {
                props.unsetLvl();
            }
        } else if (level < 1 || 9 < level) {
            throw new IllegalArgumentException("Minimum inclusive: 1. Maximum inclusive: 9.");
        } else {
            props.setLvl(level - 1);
        }
    }

    /**
     * @since 4.0.1
     */
    public XDDFRunProperties addDefaultRunProperties() {
        if (!props.isSetDefRPr()) {
            props.addNewDefRPr();
        }
        return getDefaultRunProperties();
    }

    public XDDFRunProperties getDefaultRunProperties() {
        if (props.isSetDefRPr()) {
            return new XDDFRunProperties(props.getDefRPr());
        } else {
            return null;
        }
    }

    public void setDefaultRunProperties(XDDFRunProperties properties) {
        if (properties == null) {
            if (props.isSetDefRPr()) {
                props.unsetDefRPr();
            }
        } else {
            props.setDefRPr(properties.getXmlObject());
        }
    }

    public void setEastAsianLineBreak(Boolean value) {
        if (value == null) {
            if (props.isSetEaLnBrk()) {
                props.unsetEaLnBrk();
            }
        } else {
            props.setEaLnBrk(value);
        }
    }

    public void setLatinLineBreak(Boolean value) {
        if (value == null) {
            if (props.isSetLatinLnBrk()) {
                props.unsetLatinLnBrk();
            }
        } else {
            props.setLatinLnBrk(value);
        }
    }

    public void setHangingPunctuation(Boolean value) {
        if (value == null) {
            if (props.isSetHangingPunct()) {
                props.unsetHangingPunct();
            }
        } else {
            props.setHangingPunct(value);
        }
    }

    public void setRightToLeft(Boolean value) {
        if (value == null) {
            if (props.isSetRtl()) {
                props.unsetRtl();
            }
        } else {
            props.setRtl(value);
        }
    }

    public void setFontAlignment(FontAlignment align) {
        if (align == null) {
            if (props.isSetFontAlgn()) {
                props.unsetFontAlgn();
            }
        } else {
            props.setFontAlgn(align.underlying);
        }
    }

    public void setTextAlignment(TextAlignment align) {
        if (align == null) {
            if (props.isSetAlgn()) {
                props.unsetAlgn();
            }
        } else {
            props.setAlgn(align.underlying);
        }
    }

    public void setDefaultTabSize(Double points) {
        if (points == null) {
            if (props.isSetDefTabSz()) {
                props.unsetDefTabSz();
            }
        } else {
            props.setDefTabSz(Units.toEMU(points));
        }
    }

    public void setIndentation(Double points) {
        if (points == null) {
            if (props.isSetIndent()) {
                props.unsetIndent();
            }
        } else if (points < -4032 || 4032 < points) {
            throw new IllegalArgumentException("Minimum inclusive = -4032. Maximum inclusive = 4032.");
        } else {
            props.setIndent(Units.toEMU(points));
        }
    }

    public void setMarginLeft(Double points) {
        if (points == null) {
            if (props.isSetMarL()) {
                props.unsetMarL();
            }
        } else if (points < 0 || 4032 < points) {
            throw new IllegalArgumentException("Minimum inclusive = 0. Maximum inclusive = 4032.");
        } else {
            props.setMarL(Units.toEMU(points));
        }
    }

    public void setMarginRight(Double points) {
        if (points == null) {
            if (props.isSetMarR()) {
                props.unsetMarR();
            }
        } else if (points < 0 || 4032 < points) {
            throw new IllegalArgumentException("Minimum inclusive = 0. Maximum inclusive = 4032.");
        } else {
            props.setMarR(Units.toEMU(points));
        }
    }

    public void setLineSpacing(XDDFSpacing spacing) {
        if (spacing == null) {
            if (props.isSetLnSpc()) {
                props.unsetLnSpc();
            }
        } else {
            props.setLnSpc(spacing.getXmlObject());
        }
    }

    public void setSpaceAfter(XDDFSpacing spacing) {
        if (spacing == null) {
            if (props.isSetSpcAft()) {
                props.unsetSpcAft();
            }
        } else {
            props.setSpcAft(spacing.getXmlObject());
        }
    }

    public void setSpaceBefore(XDDFSpacing spacing) {
        if (spacing == null) {
            if (props.isSetSpcBef()) {
                props.unsetSpcBef();
            }
        } else {
            props.setSpcBef(spacing.getXmlObject());
        }
    }

    public XDDFTabStop addTabStop() {
        if (!props.isSetTabLst()) {
            props.addNewTabLst();
        }
        return new XDDFTabStop(props.getTabLst().addNewTab());
    }

    public XDDFTabStop insertTabStop(int index) {
        if (!props.isSetTabLst()) {
            props.addNewTabLst();
        }
        return new XDDFTabStop(props.getTabLst().insertNewTab(index));
    }

    public void removeTabStop(int index) {
        if (props.isSetTabLst()) {
            props.getTabLst().removeTab(index);
        }
    }

    public XDDFTabStop getTabStop(int index) {
        if (props.isSetTabLst()) {
            return new XDDFTabStop(props.getTabLst().getTabArray(index));
        } else {
            return null;
        }
    }

    public List<XDDFTabStop> getTabStops() {
        if (props.isSetTabLst()) {
            return Collections.unmodifiableList(props
                .getTabLst()
                .getTabList()
                .stream()
                .map(gs -> new XDDFTabStop(gs))
                .collect(Collectors.toList()));
        } else {
            return Collections.emptyList();
        }
    }

    public int countTabStops() {
        if (props.isSetTabLst()) {
            return props.getTabLst().sizeOfTabArray();
        } else {
            return 0;
        }
    }

    public XDDFExtensionList getExtensionList() {
        if (props.isSetExtLst()) {
            return new XDDFExtensionList(props.getExtLst());
        } else {
            return null;
        }
    }

    public void setExtensionList(XDDFExtensionList list) {
        if (list == null) {
            if (props.isSetExtLst()) {
                props.unsetExtLst();
            }
        } else {
            props.setExtLst(list.getXmlObject());
        }
    }
}

org/apache/poi/xddf/usermodel/text/XDDFParagraphProperties.java

Or download all of them as a single archive file:

File name: poi-ooxml-5.2.3-src.zip
File size: 1396572 bytes
Release date: 2022-09-09
Download 

 

What Is poi-excelant-5.2.3.jar?

What Is poi-5.2.3.jar?

Downloading and Installing Apache POI Java Library

⇑⇑ FAQ for Apache POI (Poor Obfuscation Implementation)

2017-04-01, 23077👍, 0💬