file-transformer-docx/core/src/main/java/org/opencdmp/filetransformer/docx/service/wordfiletransformer/word/WordBuilder.java

26 lines
1.3 KiB
Java

package org.opencdmp.filetransformer.docx.service.wordfiletransformer.word;
import org.opencdmp.commonmodels.models.description.DescriptionModel;
import org.opencdmp.commonmodels.models.description.PropertyDefinitionModel;
import org.opencdmp.commonmodels.models.descriptiotemplate.DescriptionTemplateModel;
import org.opencdmp.commonmodels.models.dmp.DmpModel;
import org.opencdmp.filetransformer.docx.model.enums.ParagraphStyle;
import org.opencdmp.filetransformer.docx.service.wordfiletransformer.visibility.VisibilityService;
import org.apache.poi.xwpf.usermodel.XWPFDocument;
import org.apache.poi.xwpf.usermodel.XWPFParagraph;
import java.io.IOException;
import java.math.BigInteger;
public interface WordBuilder {
void build(XWPFDocument document, DescriptionTemplateModel descriptionTemplate, PropertyDefinitionModel propertyDefinitionModel, VisibilityService visibilityService) throws IOException;
XWPFParagraph addParagraphContent(Object content, XWPFDocument mainDocumentPart, ParagraphStyle style, BigInteger numId, int indent);
int findPosOfPoweredBy(XWPFDocument document);
void fillFirstPage(DmpModel dmpEntity, DescriptionModel descriptionModel, XWPFDocument document, boolean isDescription);
void fillFooter(DmpModel dmpEntity, DescriptionModel descriptionModel, XWPFDocument document);
}