Package com.independentsoft.office
Class SharedObjects
java.lang.Object
com.independentsoft.office.SharedObjects
The Class SharedObjects.
-
Method Summary
Modifier and TypeMethodDescriptionaddAltChunk(RelationshipItem relationship, byte[] buffer, String contentType)Adds an altChunk part (an embedded HTML/RTF/XML document chunk), de-duplicating by relationship target.addChart(RelationshipItem relationship, Object obj)Adds the chart.addDiagram(RelationshipItem relationship, Object obj)Adds the diagram.addEmbeddedOleObject(RelationshipItem relationship, Object obj)Adds the embedded ole object.addFont(RelationshipItem relationship, byte[] buffer)Adds the font.addImage(RelationshipItem relationship, byte[] buffer)Adds the image.static SharedObjectscreate()Creates the.static voiddispose()Dispose.Gets the altChunk content types.HashMap<RelationshipItem,byte[]>Gets the altChunk parts.Gets the attached template relationship item.Gets the charts.Gets the data source file path relationship item.Gets the diagrams.HashMap<RelationshipItem,byte[]>Gets the embedded chart objects.Gets the embedded documents.Gets the embedded ole objects.HashMap<RelationshipItem,byte[]>getFonts()Gets the fonts.Gets the footers.Gets the header footer embedded ole objects.HashMap<RelationshipItem,byte[]>Gets the header footer images.Gets the headers.Gets the hyperlinks.HashMap<RelationshipItem,byte[]>Gets the images.static SharedObjectsGets the single instance of SharedObjects.Gets the manifest.Gets the odf images.Gets the ole objects.Gets the recipients.Gets the recipients relationship item.Gets the source relationship item.booleanChecks if is header footer embedded ole object.booleanChecks if is header footer image.voidsetAttachedTemplateRelationshipItem(Object attachedTemplateRelationshipItem)Sets the attached template relationship item.voidsetDataSourceFilePathRelationshipItem(Object dataSourceFilePathRelationshipItem)Sets the data source file path relationship item.voidsetHeaderFooterEmbeddedOleObject(boolean isHeaderFooterEmbeddedOleObject)Sets the header footer embedded ole object.voidsetHeaderFooterImage(boolean isHeaderFooterImage)Sets the header footer image.voidsetManifest(Object manifest)Sets the manifest.voidsetRecipients(Object recipients)Sets the recipients.voidsetRecipientsRelationshipItem(Object recipientsRelationshipItem)Sets the recipients relationship item.voidsetSourceRelationshipItem(Object sourceRelationshipItem)Sets the source relationship item.
-
Method Details
-
getInstance
Gets the single instance of SharedObjects.- Returns:
- single instance of SharedObjects
-
create
Creates the.- Returns:
- the shared objects
-
dispose
public static void dispose()Dispose. -
addImage
Adds the image.- Parameters:
relationship- the relationshipbuffer- the buffer- Returns:
- the string
-
addAltChunk
Adds an altChunk part (an embedded HTML/RTF/XML document chunk), de-duplicating by relationship target.- Parameters:
relationship- the relationshipbuffer- the content bytescontentType- the content type- Returns:
- the relationship id
-
addFont
Adds the font.- Parameters:
relationship- the relationshipbuffer- the buffer- Returns:
- the string
-
addChart
Adds the chart.- Parameters:
relationship- the relationshipobj- the obj- Returns:
- the string
-
addDiagram
Adds the diagram.- Parameters:
relationship- the relationshipobj- the obj- Returns:
- the string
-
addEmbeddedOleObject
Adds the embedded ole object.- Parameters:
relationship- the relationshipobj- the obj- Returns:
- the string
-
getHyperlinks
Gets the hyperlinks.- Returns:
- the hyperlinks
-
getEmbeddedChartObjects
Gets the embedded chart objects.- Returns:
- the embedded chart objects
-
getEmbeddedOleObjects
Gets the embedded ole objects.- Returns:
- the embedded ole objects
-
getCharts
Gets the charts.- Returns:
- the charts
-
getDiagrams
Gets the diagrams.- Returns:
- the diagrams
-
getFonts
Gets the fonts.- Returns:
- the fonts
-
getImages
Gets the images.- Returns:
- the images
-
getAltChunks
Gets the altChunk parts.- Returns:
- the altChunks
-
getAltChunkContentTypes
Gets the altChunk content types.- Returns:
- the altChunk content types
-
getHeaders
Gets the headers.- Returns:
- the headers
-
getRecipients
Gets the recipients.- Returns:
- the recipients
-
setRecipients
Sets the recipients.- Parameters:
recipients- the new recipients
-
getRecipientsRelationshipItem
Gets the recipients relationship item.- Returns:
- the recipients relationship item
-
setRecipientsRelationshipItem
Sets the recipients relationship item.- Parameters:
recipientsRelationshipItem- the new recipients relationship item
-
getSourceRelationshipItem
Gets the source relationship item.- Returns:
- the source relationship item
-
setSourceRelationshipItem
Sets the source relationship item.- Parameters:
sourceRelationshipItem- the new source relationship item
-
getDataSourceFilePathRelationshipItem
Gets the data source file path relationship item.- Returns:
- the data source file path relationship item
-
setDataSourceFilePathRelationshipItem
Sets the data source file path relationship item.- Parameters:
dataSourceFilePathRelationshipItem- the new data source file path relationship item
-
getAttachedTemplateRelationshipItem
Gets the attached template relationship item.- Returns:
- the attached template relationship item
-
setAttachedTemplateRelationshipItem
Sets the attached template relationship item.- Parameters:
attachedTemplateRelationshipItem- the new attached template relationship item
-
getManifest
Gets the manifest.- Returns:
- the manifest
-
setManifest
Sets the manifest.- Parameters:
manifest- the new manifest
-
getOdfImages
Gets the odf images.- Returns:
- the odf images
-
getOleObjects
Gets the ole objects.- Returns:
- the ole objects
-
getEmbeddedDocuments
Gets the embedded documents.- Returns:
- the embedded documents
-