Package com.sun.star.comp.beans
Interface OfficeConnection
-
- All Superinterfaces:
com.sun.star.lang.XComponent,com.sun.star.uno.XInterface
- All Known Implementing Classes:
LocalOfficeConnection
@Deprecated public interface OfficeConnection extends com.sun.star.lang.XComponentDeprecated.This abstract class represents a connection to the office application.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description OfficeWindowcreateOfficeWindow(java.awt.Container container)Deprecated.Creates an office java.awt.Canvas based window.com.sun.star.uno.XComponentContextgetComponentContext()Deprecated.Retrieves the UNO component context.voidsetContainerFactory(ContainerFactory containerFactory)Deprecated.Sets an AWT container factory.voidsetUnoUrl(java.lang.String url)Deprecated.Sets a connection URL.
-
-
-
Method Detail
-
setUnoUrl
void setUnoUrl(java.lang.String url) throws java.net.MalformedURLExceptionDeprecated.Sets a connection URL.- Parameters:
url- This is UNO URL which describes the type of a connection.- Throws:
java.net.MalformedURLException
-
setContainerFactory
void setContainerFactory(ContainerFactory containerFactory)
Deprecated.Sets an AWT container factory.- Parameters:
containerFactory- This is an application provided AWT container factory.
-
getComponentContext
com.sun.star.uno.XComponentContext getComponentContext()
Deprecated.Retrieves the UNO component context. Establishes a connection if necessary and initialises the UNO service manager if it has not already been initialised.- Returns:
- The office UNO component context.
-
createOfficeWindow
OfficeWindow createOfficeWindow(java.awt.Container container)
Deprecated.Creates an office java.awt.Canvas based window. This method does not add the office window to its container.- Parameters:
container- This is an AWT container.- Returns:
- The office window instance.
-
-