Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15
OOoRunner test harness

util
Class SOfficeFactory

java.lang.Object
  |
  +--util.SOfficeFactory

public class SOfficeFactory
extends Object


Field Summary
protected  XComponentLoader oCLoader
           
 
Method Summary
static util.XTextContent createBookmark(XTextDocument xTextDoc)
          the method createBookmark
 util.XSpreadsheetDocument createCalcDoc(String frameName)
          method which opens a new SpreadsheetDocument
 util.XChartDocument createChartDoc(String frameName)
          method which opens a new ChartDocument
 XInterface createControl(XComponent oDoc, String kind)
           
 util.XControlShape createControlShape(XComponent oDoc, int height, int width, int x, int y, String kind)
           
 util.XDiagram createDiagram(XComponent oDoc, String kind)
          creates a Diagram wich specified in kind(String)
 XComponent createDrawDoc(String frameName)
          method which opens a new DrawDocument
static util.XTextContent createFootnote(XTextDocument xTextDoc)
          the method createFootnote
 XComponent createImpressDoc(String frameName)
          method which opens a new ImpressDocument
static util.XTextContent createIndex(XTextDocument xTextDoc, String kind)
          the method create Index
 Object createInstance(XComponent oDoc, String kind)
           
 XComponent createMathDoc(String frameName)
          method which opens a new MathDocument
static util.XTextContent createReferenceMark(XTextDocument xTextDoc)
          the method createReferenceMark
 util.XShape createShape(XComponent oDoc, int height, int width, int x, int y, String kind)
           
static util.XSpreadsheet createSpreadsheet(util.XSpreadsheetDocument oDoc)
           
 XTextDocument createTextDoc(String frameName)
          method which opens a new TextDocument
static util.XTextFrame createTextFrame(XTextDocument xTextDoc)
          creates a simple TextFrame ...
static util.XTextFrame createTextFrame(XTextDocument xTextDoc, int height, int width)
          creates a simple TextFrame ...
static XTextTable createTextTable(XTextDocument xTextDoc)
          creates a simple TextTable defaultet to 2 rows and 2 columns
static XTextTable createTextTable(XTextDocument xTextDoc, int rows, int columns)
          creates a TextTable with a specified count of rows and columns
static SOfficeFactory getFactory(XMultiServiceFactory xMSF)
           
static XCell getFirstTableCell(util.XTextContent oTable)
           
static XIndexAccess getTableCollection(XTextDocument oDoc)
           
static String getUniqueName(XInterface oInterface, String prefix)
           
static void insertString(XTextDocument xTextDoc, String cString)
           
static void insertTextContent(XTextDocument xTextDoc, util.XTextContent xCont)
           
 XComponent loadDocument(String fileName)
           
 XComponent loadDocument(String fileName, PropertyValue[] Args)
           
 XComponent openDoc(String kind, String frameName)
           
 Object queryXServiceInfo(Object oObj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

oCLoader

protected XComponentLoader oCLoader
Method Detail

getFactory

public static SOfficeFactory getFactory(XMultiServiceFactory xMSF)

createTextDoc

public XTextDocument createTextDoc(String frameName)
                            throws Exception
method which opens a new TextDocument
See Also:
XTextDocument

createCalcDoc

public util.XSpreadsheetDocument createCalcDoc(String frameName)
                                        throws Exception
method which opens a new SpreadsheetDocument
See Also:
XSpreadsheetDocument

createDrawDoc

public XComponent createDrawDoc(String frameName)
                         throws Exception
method which opens a new DrawDocument

createImpressDoc

public XComponent createImpressDoc(String frameName)
                            throws Exception
method which opens a new ImpressDocument

createMathDoc

public XComponent createMathDoc(String frameName)
                         throws Exception
method which opens a new MathDocument

createChartDoc

public util.XChartDocument createChartDoc(String frameName)
                                   throws Exception
method which opens a new ChartDocument
See Also:
XChartDocument

createTextTable

public static XTextTable createTextTable(XTextDocument xTextDoc)
                                  throws Exception
creates a simple TextTable defaultet to 2 rows and 2 columns

createTextTable

public static XTextTable createTextTable(XTextDocument xTextDoc,
                                         int rows,
                                         int columns)
                                  throws Exception
creates a TextTable with a specified count of rows and columns

createTextFrame

public static util.XTextFrame createTextFrame(XTextDocument xTextDoc)
                                       throws Exception
creates a simple TextFrame ... to be continued

createTextFrame

public static util.XTextFrame createTextFrame(XTextDocument xTextDoc,
                                              int height,
                                              int width)
creates a simple TextFrame ... to be continued

insertString

public static void insertString(XTextDocument xTextDoc,
                                String cString)
                         throws Exception

insertTextContent

public static void insertTextContent(XTextDocument xTextDoc,
                                     util.XTextContent xCont)
                              throws IllegalArgumentException

getFirstTableCell

public static XCell getFirstTableCell(util.XTextContent oTable)

createBookmark

public static util.XTextContent createBookmark(XTextDocument xTextDoc)
                                        throws Exception
the method createBookmark

createReferenceMark

public static util.XTextContent createReferenceMark(XTextDocument xTextDoc)
                                             throws Exception
the method createReferenceMark

createFootnote

public static util.XTextContent createFootnote(XTextDocument xTextDoc)
                                        throws Exception
the method createFootnote

createIndex

public static util.XTextContent createIndex(XTextDocument xTextDoc,
                                            String kind)
                                     throws Exception
the method create Index

createSpreadsheet

public static util.XSpreadsheet createSpreadsheet(util.XSpreadsheetDocument oDoc)
                                           throws Exception

getTableCollection

public static XIndexAccess getTableCollection(XTextDocument oDoc)

getUniqueName

public static String getUniqueName(XInterface oInterface,
                                   String prefix)

createShape

public util.XShape createShape(XComponent oDoc,
                               int height,
                               int width,
                               int x,
                               int y,
                               String kind)

createDiagram

public util.XDiagram createDiagram(XComponent oDoc,
                                   String kind)
creates a Diagram wich specified in kind(String)

createControl

public XInterface createControl(XComponent oDoc,
                                String kind)

createInstance

public Object createInstance(XComponent oDoc,
                             String kind)

createControlShape

public util.XControlShape createControlShape(XComponent oDoc,
                                             int height,
                                             int width,
                                             int x,
                                             int y,
                                             String kind)

loadDocument

public XComponent loadDocument(String fileName)
                        throws IllegalArgumentException,
                               IOException,
                               Exception

loadDocument

public XComponent loadDocument(String fileName,
                               PropertyValue[] Args)
                        throws IllegalArgumentException,
                               IOException,
                               Exception

openDoc

public XComponent openDoc(String kind,
                          String frameName)
                   throws IllegalArgumentException,
                          IOException,
                          Exception

queryXServiceInfo

public Object queryXServiceInfo(Object oObj)

OOoRunner test harness

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.