/** * Create an instance of {@link CTDefault } * */ public CTDefault createCTDefault() { return new CTDefault(); }
/** * Create an instance of {@link CTTypes } * */ public CTTypes createCTTypes() { return new CTTypes(); }
/** * Create an instance of {@link CTOverride } * */ public CTOverride createCTOverride() { return new CTOverride(); }
public void addOverrideContentType(URI partUri, String contentType) { CTOverride overrideCT = ctFactory.createCTOverride(); overrideCT.setPartName( partUri.toASCIIString() ); overrideCT.setContentType(contentType ); overrideContentType.put(partUri, overrideCT); }
/** * Constructor. * * @param pack * Parent package. * @param partName * The part name, relative to the parent Package root. * @param contentType * The Multipurpose Internet Mail Extensions (MIME) content type * of the part's data stream. */ public Part(PartName partName, String contentType) throws InvalidFormatException { this(partName); this.contentType = new ContentType(contentType); }
public ContentTypeManager() { init(); }
/** * @param partName * @param contentType * @since 6.1.0 */ public void addOverrideContentType(PartName partName, String contentType) { CTOverride defaultCT = ctFactory.createCTOverride(); defaultCT.setPartName(partName.getName()); defaultCT.setContentType(contentType); overrideContentType.put(partName.getURI(), defaultCT); }
/** * Constructor. * * @param contentTypeManager * The content type manager to use */ public WordprocessingMLTemplatePackage(ContentTypeManager contentTypeManager) { super(contentTypeManager); setContentType(new ContentType(ContentTypes.WORDPROCESSINGML_TEMPLATE)); }
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.PRESENTATIONML_PRES_PROPS)); // Used when this Part is added to a rels setRelationshipType(Namespaces.PRESENTATIONML_PRES_PROPS); }
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.SPREADSHEETML_WORKBOOK)); // Used when this Part is added to a rels setRelationshipType(Namespaces.SPREADSHEETML_WORKBOOK); }
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.DRAWINGML_DIAGRAM_LAYOUT_HEADER)); // Used when this Part is added to a rels setRelationshipType(Namespaces.DRAWINGML_DIAGRAM_LAYOUT_HEADER); }
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.SPREADSHEETML_TABLE)); // Used when this Part is added to a rels setRelationshipType(Namespaces.SPREADSHEETML_TABLE); }
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.PRESENTATIONML_HANDOUT_MASTER)); // Used when this Part is added to a rels setRelationshipType(Namespaces.PRESENTATIONML_HANDOUT_MASTER); }
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.PRESENTATIONML_NOTES_MASTER)); // Used when this Part is added to a rels setRelationshipType(Namespaces.PRESENTATIONML_NOTES_MASTER); }
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.OFFICEDOCUMENT_CUSTOMXML_DATASTORAGE)); // Used when this Part is added to a rels setRelationshipType(Namespaces.CUSTOM_XML_DATA_STORAGE); }
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.DRAWINGML_CHART_SHAPES)); // Used when this Part is added to a rels setRelationshipType(Namespaces.CHART_USER_SHAPES); }
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.PRESENTATIONML_SLIDE_MASTER)); // Used when this Part is added to a rels setRelationshipType(Namespaces.PRESENTATIONML_SLIDE_MASTER); }
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.DRAWINGML_CHART)); // Used when this Part is added to a rels setRelationshipType(Namespaces.SPREADSHEETML_CHART); }
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.SPREADSHEETML_EXTERNAL_LINK)); // Used when this Part is added to a rels setRelationshipType(Namespaces.SPREADSHEETML_EXTERNAL_LINK); }
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.DRAWINGML_DIAGRAM_LAYOUT)); // Used when this Part is added to a rels setRelationshipType(Namespaces.DRAWINGML_DIAGRAM_LAYOUT); }