org.jopendocument.model
Class OpenDocument
java.lang.Object
org.jopendocument.model.OpenDocument
- Direct Known Subclasses:
- TextDocument
public class OpenDocument
- extends Object
Constructor Summary |
OpenDocument()
Creates an empty document You may use a loadFrom method on it |
OpenDocument(File f)
Creates a document from a file |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OpenDocument
public OpenDocument()
- Creates an empty document You may use a loadFrom method on it
OpenDocument
public OpenDocument(File f)
- Creates a document from a file
- Parameters:
f
- a spreadsheet file (in Open Document format)
getAutomaticStyles
public OfficeAutomaticStyles getAutomaticStyles()
getBody
public OfficeBody getBody()
getImage
public Image getImage(String xlinkHref)
getImage
public Image getImage(String xlinkHref,
int width,
int height)
getMasterStyles
public OfficeMasterStyles getMasterStyles()
getPrintedPage
public Page getPrintedPage(int i)
getPrintedPageCount
public int getPrintedPageCount()
getSplitEveryRow
public int getSplitEveryRow(int indexOfSheet)
getStyles
public OfficeStyles getStyles()
getZipFile
public ZipFile getZipFile()
importAutoStylesFrom
public void importAutoStylesFrom(OfficeAutomaticStyles stylesToAdd)
init
public void init(OfficeBody aBody,
OfficeAutomaticStyles bodyAutoStyles,
OfficeStyles s,
OfficeAutomaticStyles auto,
OfficeMasterStyles masters)
loadFrom
public void loadFrom(File f)
loadFrom
public void loadFrom(String fileName)
loadFrom
public void loadFrom(URL url)
throws IOException
- Throws:
IOException
preloadImage
public void preloadImage(String xlinkHref)
setAutomaticStyles
public void setAutomaticStyles(OfficeAutomaticStyles autostyles)
setMasterStyles
public void setMasterStyles(OfficeMasterStyles masterStyles)
getStyleResolver
public StyleResolver getStyleResolver()
getStyle
public StyleStyle getStyle(String name,
String family)
Copyright © 2010 jOpenDocument All Rights Reserved.