org.jopendocument.model
Class TextDocument
java.lang.Object
org.jopendocument.model.OpenDocument
org.jopendocument.model.TextDocument
public class TextDocument
- extends OpenDocument
Constructor Summary |
TextDocument()
Creates an empty document You may use a loadFrom method on it |
TextDocument(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 |
TextDocument
public TextDocument()
- Creates an empty document You may use a loadFrom method on it
TextDocument
public TextDocument(File f)
- Creates a document from a file
- Parameters:
f
- a spreadsheet file (in Open Document format)
getAutomaticStyles
public OfficeAutomaticStyles getAutomaticStyles()
- Overrides:
getAutomaticStyles
in class OpenDocument
getBody
public OfficeBody getBody()
- Overrides:
getBody
in class OpenDocument
getImage
public Image getImage(String xlinkHref)
- Overrides:
getImage
in class OpenDocument
getImage
public Image getImage(String xlinkHref,
int width,
int height)
- Overrides:
getImage
in class OpenDocument
getMasterStyles
public OfficeMasterStyles getMasterStyles()
- Overrides:
getMasterStyles
in class OpenDocument
getPrintedPage
public Page getPrintedPage(int i)
- Overrides:
getPrintedPage
in class OpenDocument
getPrintedPageCount
public int getPrintedPageCount()
- Overrides:
getPrintedPageCount
in class OpenDocument
getStyles
public OfficeStyles getStyles()
- Overrides:
getStyles
in class OpenDocument
getZipFile
public ZipFile getZipFile()
- Overrides:
getZipFile
in class OpenDocument
importAutoStylesFrom
public void importAutoStylesFrom(OfficeAutomaticStyles stylesToAdd)
- Overrides:
importAutoStylesFrom
in class OpenDocument
init
public void init(OfficeBody aBody,
OfficeAutomaticStyles bodyAutoStyles,
OfficeStyles s,
OfficeAutomaticStyles auto,
OfficeMasterStyles masters)
- Overrides:
init
in class OpenDocument
loadFrom
public void loadFrom(File f)
- Overrides:
loadFrom
in class OpenDocument
loadFrom
public void loadFrom(String fileName)
- Overrides:
loadFrom
in class OpenDocument
loadFrom
public void loadFrom(URL url)
throws IOException
- Overrides:
loadFrom
in class OpenDocument
- Throws:
IOException
preloadImage
public void preloadImage(String xlinkHref)
- Overrides:
preloadImage
in class OpenDocument
setAutomaticStyles
public void setAutomaticStyles(OfficeAutomaticStyles autostyles)
- Overrides:
setAutomaticStyles
in class OpenDocument
setMasterStyles
public void setMasterStyles(OfficeMasterStyles masterStyles)
- Overrides:
setMasterStyles
in class OpenDocument
dumpPages
public void dumpPages()
Copyright © 2010 jOpenDocument All Rights Reserved.