com.hfg.xml.msofficexml.xlsx.part.WorkbookRelationshipPart Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com_hfg Show documentation
Show all versions of com_hfg Show documentation
com.hfg xml, html, svg, and bioinformatics utility library
package com.hfg.xml.msofficexml.xlsx.part;
import com.hfg.xml.msofficexml.OfficeOpenXmlRelationship;
import com.hfg.xml.msofficexml.RelationshipType;
import com.hfg.xml.msofficexml.part.OfficeOpenXmlRelationshipPart;
import com.hfg.xml.msofficexml.xlsx.Xlsx;
import com.hfg.xml.msofficexml.xlsx.spreadsheetml.SsmlXML;
public class WorkbookRelationshipPart extends OfficeOpenXmlRelationshipPart
{
//---------------------------------------------------------------------------
public WorkbookRelationshipPart(Xlsx inParentDoc)
{
super(inParentDoc);
setFile(SsmlXML.WORKBOOK_RELATIONSHIP_FILE);
}
//---------------------------------------------------------------------------
public String addWorksheet(WorksheetPart inValue)
{
OfficeOpenXmlRelationship relationship = new OfficeOpenXmlRelationship();
relationship.setPart(inValue)
.setType(RelationshipType.WORKSHEET);
return addRelationship(relationship);
}
}