org.jopendocument.model
Class OpenDocument

java.lang.Object
  extended by org.jopendocument.model.OpenDocument

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
 
Method Summary
 OfficeAutomaticStyles getAutomaticStyles()
           
 OfficeBody getBody()
           
 Image getImage(String xlinkHref)
           
 Image getImage(String xlinkHref, int width, int height)
           
 OfficeMasterStyles getMasterStyles()
           
 PrintedPage getPrintedPage(int i)
           
 int getPrintedPageCount()
           
 int getSplitEveryRow(int indexOfSheet)
           
 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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

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 PrintedPage 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)


Copyright © 2010 jOpenDocument All Rights Reserved.