org.docx4j.openpackaging.parts.WordprocessingML.ChartStylePart Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docx4j-core Show documentation
Show all versions of docx4j-core Show documentation
docx4j is a library which helps you to work with the Office Open
XML file format as used in docx
documents, pptx presentations, and xlsx spreadsheets.
package org.docx4j.openpackaging.parts.WordprocessingML;
import org.docx4j.openpackaging.exceptions.InvalidFormatException;
import org.docx4j.openpackaging.parts.JaxbXmlPart;
import org.docx4j.openpackaging.parts.PartName;
import org.docx4j.openpackaging.parts.relationships.Namespaces;
public class ChartStylePart extends JaxbXmlPart {
public ChartStylePart(PartName partName) throws InvalidFormatException {
super(partName);
init();
}
public ChartStylePart() throws InvalidFormatException {
super(new PartName("/word/charts/style1.xml"));
init();
}
public void init() {
// Used if this Part is added to [Content_Types].xml
setContentType(new org.docx4j.openpackaging.contenttype.ContentType(
org.docx4j.openpackaging.contenttype.ContentTypes.CHART_STYLE));
// Used when this Part is added to a rels
setRelationshipType(Namespaces.CHART_STYLE);
}
}