org.jopendocument.model
Class TextDocument

java.lang.Object
  extended by org.jopendocument.model.OpenDocument
      extended by 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
 
Method Summary
 void dumpPages()
           
 OfficeAutomaticStyles getAutomaticStyles()
           
 OfficeBody getBody()
           
 Image getImage(String xlinkHref)
           
 Image getImage(String xlinkHref, int width, int height)
           
 OfficeMasterStyles getMasterStyles()
           
 Page getPrintedPage(int i)
           
 int getPrintedPageCount()
           
 OfficeStyles getStyles()
           
 ZipFile getZipFile()
           
 void importAutoStylesFrom(OfficeAutomaticStyles stylesToAdd)
           
 void init(OfficeBody aBody, OfficeAutomaticStyles bodyAutoStyles, OfficeStyles s, OfficeAutomaticStyles auto, OfficeMasterStyles masters)
           
 void loadFrom(File f)
           
 void loadFrom(String fileName)
           
 void loadFrom(URL url)
           
 void preloadImage(String xlinkHref)
           
 void setAutomaticStyles(OfficeAutomaticStyles autostyles)
           
 void setMasterStyles(OfficeMasterStyles masterStyles)
           
 
Methods inherited from class org.jopendocument.model.OpenDocument
getSplitEveryRow, getStyle, getStyleResolver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.