LibreOffice Module unotest (master) 1
Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
org.openoffice.test.tools.OfficeDocument Class Reference

provides a small wrapper around a document More...

Inheritance diagram for org.openoffice.test.tools.OfficeDocument:
[legend]
Collaboration diagram for org.openoffice.test.tools.OfficeDocument:
[legend]

Public Member Functions

 OfficeDocument (XMultiServiceFactory orb, XComponent document)
 
boolean close ()
 
XComponent getDocument ()
 
OfficeDocumentView getCurrentView ()
 retrieves the current view of the document More...
 
XInterface createInstance (String serviceSpecifier) throws com.sun.star.uno.Exception
 creates a component at the service factory provided by the document More...
 

Static Public Member Functions

static OfficeDocument blankTextDocument (XMultiServiceFactory orb) throws com.sun.star.uno.Exception
 
static OfficeDocument blankDocument (XMultiServiceFactory orb, DocumentType eType) throws com.sun.star.uno.Exception
 

Static Protected Member Functions

static XComponent implLoadAsComponent (XMultiServiceFactory orb, String documentOrFactoryURL) throws com.sun.star.uno.Exception
 

Private Member Functions

DocumentType classify ()
 classifies a document More...
 

Static Private Member Functions

static XComponent implLoadAsComponent (XMultiServiceFactory orb, String documentOrFactoryURL, final PropertyValue[] i_args) throws com.sun.star.uno.Exception
 
static OfficeDocument implLoadDocument (XMultiServiceFactory orb, String documentOrFactoryURL, final PropertyValue[] i_args) throws com.sun.star.uno.Exception
 
static String getDocumentFactoryURL (DocumentType eType)
 returns a URL which can be used to create a document of a certain type More...
 

Private Attributes

final XMultiServiceFactory m_orb
 
XComponent m_documentComponent
 

Detailed Description

provides a small wrapper around a document

Definition at line 41 of file OfficeDocument.java.

Constructor & Destructor Documentation

◆ OfficeDocument()

org.openoffice.test.tools.OfficeDocument.OfficeDocument ( XMultiServiceFactory  orb,
XComponent  document 
)
inline

Member Function Documentation

◆ blankDocument()

static OfficeDocument org.openoffice.test.tools.OfficeDocument.blankDocument ( XMultiServiceFactory  orb,
DocumentType  eType 
) throws com.sun.star.uno.Exception
inlinestatic

◆ blankTextDocument()

static OfficeDocument org.openoffice.test.tools.OfficeDocument.blankTextDocument ( XMultiServiceFactory  orb) throws com.sun.star.uno.Exception
inlinestatic

◆ classify()

DocumentType org.openoffice.test.tools.OfficeDocument.classify ( )
inlineprivate

◆ close()

boolean org.openoffice.test.tools.OfficeDocument.close ( )
inline

◆ createInstance()

XInterface org.openoffice.test.tools.OfficeDocument.createInstance ( String  serviceSpecifier) throws com.sun.star.uno.Exception
inline

creates a component at the service factory provided by the document

Definition at line 181 of file OfficeDocument.java.

References org.openoffice.test.tools.OfficeDocument.m_documentComponent.

◆ getCurrentView()

OfficeDocumentView org.openoffice.test.tools.OfficeDocument.getCurrentView ( )
inline

retrieves the current view of the document

Returns
the view component, queried for the interface described by aInterfaceClass

Definition at line 123 of file OfficeDocument.java.

References org.openoffice.test.tools.DocumentType.CALC, org.openoffice.test.tools.OfficeDocument.classify(), org.openoffice.test.tools.OfficeDocument.m_documentComponent, org.openoffice.test.tools.OfficeDocument.m_orb, and xController.

◆ getDocument()

XComponent org.openoffice.test.tools.OfficeDocument.getDocument ( )
inline

◆ getDocumentFactoryURL()

static String org.openoffice.test.tools.OfficeDocument.getDocumentFactoryURL ( DocumentType  eType)
inlinestaticprivate

◆ implLoadAsComponent() [1/2]

static XComponent org.openoffice.test.tools.OfficeDocument.implLoadAsComponent ( XMultiServiceFactory  orb,
String  documentOrFactoryURL 
) throws com.sun.star.uno.Exception
inlinestaticprotected

◆ implLoadAsComponent() [2/2]

static XComponent org.openoffice.test.tools.OfficeDocument.implLoadAsComponent ( XMultiServiceFactory  orb,
String  documentOrFactoryURL,
final PropertyValue[]  i_args 
) throws com.sun.star.uno.Exception
inlinestaticprivate

Definition at line 58 of file OfficeDocument.java.

◆ implLoadDocument()

static OfficeDocument org.openoffice.test.tools.OfficeDocument.implLoadDocument ( XMultiServiceFactory  orb,
String  documentOrFactoryURL,
final PropertyValue[]  i_args 
) throws com.sun.star.uno.Exception
inlinestaticprivate

Member Data Documentation

◆ m_documentComponent

XComponent org.openoffice.test.tools.OfficeDocument.m_documentComponent
private

◆ m_orb

final XMultiServiceFactory org.openoffice.test.tools.OfficeDocument.m_orb
private

The documentation for this class was generated from the following file: