| Method from org.apache.poi.hpsf.DocumentSummaryInformation Detail: |
public int getByteCount() {
return getPropertyIntValue(PropertyIDMap.PID_BYTECOUNT);
}
|
public String getCategory() {
return (String) getProperty(PropertyIDMap.PID_CATEGORY);
}
|
public String getCompany() {
return (String) getProperty(PropertyIDMap.PID_COMPANY);
}
|
public CustomProperties getCustomProperties() {
CustomProperties cps = null;
if (getSectionCount() >= 2)
{
cps = new CustomProperties();
final Section section = (Section) getSections().get(1);
final Map dictionary = section.getDictionary();
final Property[] properties = section.getProperties();
int propertyCount = 0;
for (int i = 0; i < properties.length; i++)
{
final Property p = properties[i];
final long id = p.getID();
if (id != 0 && id != 1)
{
propertyCount++;
final CustomProperty cp = new CustomProperty(p,
(String) dictionary.get(new Long(id)));
cps.put(cp.getName(), cp);
}
}
if (cps.size() != propertyCount)
cps.setPure(false);
}
return cps;
}
|
public byte[] getDocparts() {
notYetImplemented("Reading byte arrays");
return (byte[]) getProperty(PropertyIDMap.PID_DOCPARTS);
}
Returns the doc parts (or null)
when this method is implemented. Please note that the
return type is likely to change!
|
public byte[] getHeadingPair() {
notYetImplemented("Reading byte arrays ");
return (byte[]) getProperty(PropertyIDMap.PID_HEADINGPAIR);
}
Returns the heading pair (or null)
when this method is implemented. Please note that the
return type is likely to change!
|
public int getHiddenCount() {
return getPropertyIntValue(PropertyIDMap.PID_HIDDENCOUNT);
}
|
public int getLineCount() {
return getPropertyIntValue(PropertyIDMap.PID_LINECOUNT);
}
|
public boolean getLinksDirty() {
return getPropertyBooleanValue(PropertyIDMap.PID_LINKSDIRTY);
}
|
public int getMMClipCount() {
return getPropertyIntValue(PropertyIDMap.PID_MMCLIPCOUNT);
}
|
public String getManager() {
return (String) getProperty(PropertyIDMap.PID_MANAGER);
}
|
public int getNoteCount() {
return getPropertyIntValue(PropertyIDMap.PID_NOTECOUNT);
}
|
public int getParCount() {
return getPropertyIntValue(PropertyIDMap.PID_PARCOUNT);
}
|
public String getPresentationFormat() {
return (String) getProperty(PropertyIDMap.PID_PRESFORMAT);
}
|
public boolean getScale() {
return getPropertyBooleanValue(PropertyIDMap.PID_SCALE);
}
Returns true when scaling of the thumbnail is
desired, false if cropping is desired.
|
public int getSlideCount() {
return getPropertyIntValue(PropertyIDMap.PID_SLIDECOUNT);
}
|
public void removeByteCount() {
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_BYTECOUNT);
}
|
public void removeCategory() {
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_CATEGORY);
}
|
public void removeCompany() {
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_COMPANY);
}
|
public void removeCustomProperties() {
if (getSectionCount() >= 2)
getSections().remove(1);
else
throw new HPSFRuntimeException("Illegal internal format of Document SummaryInformation stream: second section is missing.");
}
|
public void removeDocparts() {
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_DOCPARTS);
}
|
public void removeHeadingPair() {
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_HEADINGPAIR);
}
|
public void removeHiddenCount() {
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_HIDDENCOUNT);
}
|
public void removeLineCount() {
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_LINECOUNT);
}
|
public void removeLinksDirty() {
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_LINKSDIRTY);
}
|
public void removeMMClipCount() {
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_MMCLIPCOUNT);
}
|
public void removeManager() {
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_MANAGER);
}
|
public void removeNoteCount() {
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_NOTECOUNT);
}
|
public void removeParCount() {
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_PARCOUNT);
}
|
public void removePresentationFormat() {
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_PRESFORMAT);
}
|
public void removeScale() {
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_SCALE);
}
|
public void removeSlideCount() {
final MutableSection s = (MutableSection) getFirstSection();
s.removeProperty(PropertyIDMap.PID_SLIDECOUNT);
}
|
public void setByteCount(int byteCount) {
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_BYTECOUNT, byteCount);
}
|
public void setCategory(String category) {
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_CATEGORY, category);
}
|
public void setCompany(String company) {
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_COMPANY, company);
}
|
public void setCustomProperties(CustomProperties customProperties) {
ensureSection2();
final MutableSection section = (MutableSection) getSections().get(1);
final Map dictionary = customProperties.getDictionary();
section.clear();
/* Set the codepage. If both custom properties and section have a
* codepage, the codepage from the custom properties wins, else take the
* one that is defined. If none is defined, take Unicode. */
int cpCodepage = customProperties.getCodepage();
if (cpCodepage < 0)
cpCodepage = section.getCodepage();
if (cpCodepage < 0)
cpCodepage = Constants.CP_UNICODE;
customProperties.setCodepage(cpCodepage);
section.setCodepage(cpCodepage);
section.setDictionary(dictionary);
for (final Iterator i = customProperties.values().iterator(); i.hasNext();)
{
final Property p = (Property) i.next();
section.setProperty(p);
}
}
|
public void setDocparts(byte[] docparts) {
notYetImplemented("Writing byte arrays");
}
|
public void setHeadingPair(byte[] headingPair) {
notYetImplemented("Writing byte arrays ");
}
|
public void setHiddenCount(int hiddenCount) {
final MutableSection s = (MutableSection) getSections().get(0);
s.setProperty(PropertyIDMap.PID_HIDDENCOUNT, hiddenCount);
}
|
public void setLineCount(int lineCount) {
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_LINECOUNT, lineCount);
}
|
public void setLinksDirty(boolean linksDirty) {
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_LINKSDIRTY, linksDirty);
}
|
public void setMMClipCount(int mmClipCount) {
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_MMCLIPCOUNT, mmClipCount);
}
|
public void setManager(String manager) {
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_MANAGER, manager);
}
|
public void setNoteCount(int noteCount) {
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_NOTECOUNT, noteCount);
}
|
public void setParCount(int parCount) {
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_PARCOUNT, parCount);
}
|
public void setPresentationFormat(String presentationFormat) {
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_PRESFORMAT, presentationFormat);
}
|
public void setScale(boolean scale) {
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_SCALE, scale);
}
|
public void setSlideCount(int slideCount) {
final MutableSection s = (MutableSection) getFirstSection();
s.setProperty(PropertyIDMap.PID_SLIDECOUNT, slideCount);
}
|