Uses of Class
org.odftoolkit.odfdom.doc.OdfDocument
Package
Description
The "Document Layer" exist for usability reasons, it gives a feature based view on the document model.
Provide convenient methods to manipulate table in ODF text and spreadsheet document.
-
Uses of OdfDocument in org.odftoolkit.odfdom.changes
Modifier and TypeMethodDescriptionstatic void
JsonOperationConsumer.addDeleteHeaderFooter
(OdfDocument doc, boolean insert, String id) static void
JsonOperationConsumer.addListStyle
(String listStyleId, org.json.JSONObject listDefinition, OdfDocument doc) static void
JsonOperationConsumer.addStyles
(OdfDocument doc, String type, String styleId, String styleName, org.json.JSONObject attrs, String parent, Boolean hidden, Boolean custom) static void
JsonOperationConsumer.changeStyle
(OdfDocument doc, String type, String styleId, String styleName, org.json.JSONObject attrs) static void
JsonOperationConsumer.deleteStyle
(OdfDocument doc, String styleId, String type) Removes a template style from the documentstatic void
JsonOperationConsumer.mapCharacterProperties
(org.json.JSONObject attrs, StyleTextPropertiesElement propertiesElement, OdfDocument doc) static void
JsonOperationConsumer.mapProperties
(OdfStyleFamily styleFamily, org.json.JSONObject attrs, OdfStyleBase style, OdfDocument doc) static void
JsonOperationConsumer.modifyPages
(OdfDocument doc, org.json.JSONObject attrs) Modifys the page layout (ie. 4 margins, width, height) for all master styles -
Uses of OdfDocument in org.odftoolkit.odfdom.doc
Modifier and TypeClassDescriptionclass
This class represents an empty ODF document , which will be in general embedded in an existing ODF (Spreadsheet) document.class
This class represents an empty ODF graphics document.class
This class represents an ODF image document.class
This class represents an empty ODF presentation.class
This class represents an empty ODF spreadsheet document.class
This class represents an empty ODF text document.Modifier and TypeMethodDescriptionstatic OdfDocument
OdfDocument.loadDocument
(File file) Loads the ODF root document from the ODF package provided as a File.static OdfDocument
OdfDocument.loadDocument
(InputStream inStream) Loads the ODF root document from the ODF package provided by a Stream.static OdfDocument
OdfDocument.loadDocument
(InputStream inStream, Boolean enableCollaboration) Loads the ODF root document from the ODF package provided by a Stream.static OdfDocument
OdfDocument.loadDocument
(InputStream inStream, Map<String, Object> configuration) Loads the ODF root document from the ODF package provided by a Stream.static OdfDocument
OdfDocument.loadDocument
(InputStream inStream, Map<String, Object> configuration, Boolean enableCollaboration) Loads the ODF root document from the ODF package provided by a Stream.static OdfDocument
OdfDocument.loadDocument
(String documentPath) Loads the ODF root document from the ODF package provided by its path.static OdfDocument
OdfDocument.loadDocument
(OdfPackage odfPackage) Loads the ODF root document from the ODF package.static OdfDocument
OdfDocument.loadDocument
(OdfPackage odfPackage, Boolean enableCollaboration) Loads the ODF root document from the ODF package.static OdfDocument
OdfDocument.loadDocument
(OdfPackage odfPackage, String internalPath) Creates an OdfDocument from the OpenDocument provided by an ODF package.static OdfDocument
OdfDocument.loadDocument
(OdfPackage odfPackage, String internalPath, Boolean enableCollaboration) Creates an OdfDocument from the OpenDocument provided by an ODF package.OdfDocument.loadSubDocument
(String documentPath) Returns an embedded OdfPackageDocument from the given package path.protected static OdfDocument
OdfDocument.loadTemplate
(OdfPackageDocument.Resource res, OdfDocument.OdfMediaType odfMediaType) Loads the ODF root document from the given Resource.protected static OdfDocument
OdfDocument.loadTemplate
(OdfPackageDocument.Resource res, OdfDocument.OdfMediaType odfMediaType, Boolean enableCollaboration) Loads the ODF root document from the given Resource.Modifier and TypeMethodDescriptionOdfDocument.loadSubDocuments()
Method returns all embedded OdfPackageDocuments, which match a valid OdfMediaType, of the current OdfPackageDocument.OdfDocument.loadSubDocuments
(OdfDocument.OdfMediaType desiredMediaType) Method returns all embedded OdfPackageDocuments of sthe current OdfPackageDocument matching the according MediaType. -
Uses of OdfDocument in org.odftoolkit.odfdom.doc.table
Modifier and TypeMethodDescriptionstatic OdfTable
OdfTable.newTable
(OdfDocument document) Construct theOdfTable
feature.static OdfTable
OdfTable.newTable
(OdfDocument document, int numRows, int numCols) Construct theOdfTable
feature with a specified row number and column number.static OdfTable
OdfTable.newTable
(OdfDocument document, int numRows, int numCols, int headerRowNumber, int headerColumnNumber) Construct the OdfTable feature with a specified 2 dimension array as the data of this table.static OdfTable
OdfTable.newTable
(OdfDocument document, String[] rowLabel, String[] columnLabel, double[][] data) Construct the OdfTable feature with a specified 2 dimension array as the data of this table.static OdfTable
OdfTable.newTable
(OdfDocument document, String[] rowLabel, String[] columnLabel, String[][] data) Construct the OdfTable feature with a specified 2 dimension array as the data of this table. -
Uses of OdfDocument in org.odftoolkit.odfdom.incubator.doc.text
Modifier and TypeMethodDescriptionstatic OdfEditableTextExtractor
OdfEditableTextExtractor.newOdfEditableTextExtractor
(OdfDocument doc) An instance of OdfEditableTextExtractor will be created to extract the editable text content of an ODF element.