/** * Sets the total time spent in editing the document. * * @param time The time to set. */ public void setLastSaveDateTime(final Date time) { final Section s = getFirstSection(); s .setProperty(PropertyIDMap.PID_LASTSAVE_DTM, Variant.VT_FILETIME, time); }
/** * Sets the thumbnail. * * @param thumbnail The thumbnail to set. */ public void setThumbnail(final byte[] thumbnail) { getFirstSection().setProperty(PropertyIDMap.PID_THUMBNAIL, /* FIXME: */ Variant.VT_LPSTR, thumbnail); }
/** * Sets the creation time. * * @param createDateTime The creation time to set. */ public void setCreateDateTime(final Date createDateTime) { getFirstSection().setProperty(PropertyIDMap.PID_CREATE_DTM, Variant.VT_FILETIME, createDateTime); }
/** * Creates an empty {@link SummaryInformation}. */ public SummaryInformation() { getFirstSection().setFormatID(FORMAT_ID); }
/** * Sets the lastPrinted. * * @param lastPrinted The lastPrinted to set. */ public void setLastPrinted(final Date lastPrinted) { getFirstSection().setProperty(PropertyIDMap.PID_LASTPRINTED, Variant.VT_FILETIME, lastPrinted); }
/** * Sets the total time spent in editing the document. * * @param time The time to set. */ public void setEditTime(final long time) { final Date d = Filetime.filetimeToDate(time); getFirstSection().setProperty(PropertyIDMap.PID_EDITTIME, Variant.VT_FILETIME, d); }
/** * <p>Removes the title.</p> */ public void removeTitle() { final MutableSection s = (MutableSection) getFirstSection(); s.removeProperty(PropertyIDMap.PID_TITLE); }
/** * <p>Removes the author.</p> */ public void removeAuthor() { final MutableSection s = (MutableSection) getFirstSection(); s.removeProperty(PropertyIDMap.PID_AUTHOR); }
/** * <p>Sets the comments.</p> * * @param comments The comments to set. */ public void setComments(final String comments) { final MutableSection s = (MutableSection) getFirstSection(); s.setProperty(PropertyIDMap.PID_COMMENTS, comments); }
/** * <p>Removes the comments.</p> */ public void removeComments() { final MutableSection s = (MutableSection) getFirstSection(); s.removeProperty(PropertyIDMap.PID_COMMENTS); }
/** * <p>Sets the template.</p> * * @param template The template to set. */ public void setTemplate(final String template) { final MutableSection s = (MutableSection) getFirstSection(); s.setProperty(PropertyIDMap.PID_TEMPLATE, template); }
/** * <p>Remove the total time spent in editing the document.</p> */ public void removeEditTime() { final MutableSection s = (MutableSection) getFirstSection(); s.removeProperty(PropertyIDMap.PID_EDITTIME); }
/** * <p>Sets the word count.</p> * * @param wordCount The word count to set. */ public void setWordCount(final int wordCount) { final MutableSection s = (MutableSection) getFirstSection(); s.setProperty(PropertyIDMap.PID_WORDCOUNT, wordCount); }
/** * <p>Sets the character count.</p> * * @param charCount The character count to set. */ public void setCharCount(final int charCount) { final MutableSection s = (MutableSection) getFirstSection(); s.setProperty(PropertyIDMap.PID_CHARCOUNT, charCount); }
/** * <p>Sets the keywords.</p> * * @param keywords The keywords to set. */ public void setKeywords(final String keywords) { final MutableSection s = (MutableSection) getFirstSection(); s.setProperty(PropertyIDMap.PID_KEYWORDS, keywords); }
/** * <p>Sets the template.</p> * * @param template The template to set. */ public void setTemplate(final String template) { final MutableSection s = (MutableSection) getFirstSection(); s.setProperty(PropertyIDMap.PID_TEMPLATE, template); }
/** * <p>Removes the word count.</p> */ public void removeWordCount() { final MutableSection s = (MutableSection) getFirstSection(); s.removeProperty(PropertyIDMap.PID_WORDCOUNT); }
/** * <p>Sets the thumbnail.</p> * * @param thumbnail The thumbnail to set. */ public void setThumbnail(final byte[] thumbnail) { final MutableSection s = (MutableSection) getFirstSection(); s.setProperty(PropertyIDMap.PID_THUMBNAIL, /* FIXME: */ Variant.VT_LPSTR, thumbnail); }
/** * <p>Removes the lastPrinted.</p> */ public void removeLastPrinted() { final MutableSection s = (MutableSection) getFirstSection(); s.removeProperty(PropertyIDMap.PID_LASTPRINTED); }
/** * <p>Sets the security code.</p> * * @param security The security code to set. */ public void setSecurity(final int security) { final MutableSection s = (MutableSection) getFirstSection(); s.setProperty(PropertyIDMap.PID_SECURITY, security); }