public interface IOOo
| Modifier and Type | Method and Description |
|---|---|
boolean |
canManagePackages() |
java.lang.String |
createUnoCommand(java.lang.String pImplementationName,
java.lang.String pLibLocation,
java.lang.String[] pRegistriesPaths,
java.lang.String[] pArgs)
Returns a command to execute a
uno component. |
java.lang.String[] |
getBinPath()
Returns the path to any folder containing binaries in the LibreOffice installation.
|
java.lang.String[] |
getClassesPath()
Returns the path to the LibreOffice classes directory.
|
java.lang.String |
getHome()
Returns the path to the LibreOffice home directory.
|
java.lang.String |
getJavaldxPath() |
java.lang.String[] |
getLibsPath()
Returns the path to the LibreOffice shared libraries.
|
java.lang.String |
getName()
Returns the LibreOffice name.
|
java.lang.String[] |
getServicesPath() |
java.lang.String[] |
getTypesPath() |
java.lang.String |
getUnoPath() |
java.lang.String |
getUnorcPath() |
void |
runOffice(IUnoidlProject pPrj,
org.eclipse.debug.core.ILaunch pLaunch,
org.eclipse.core.runtime.IPath pUserInstallation,
IExtraOptionsProvider pExtraOptionsProvider,
org.eclipse.core.runtime.IProgressMonitor pMonitor) |
void |
runUno(IUnoidlProject pPrj,
java.lang.String pMain,
java.lang.String pArgs,
org.eclipse.debug.core.ILaunch pLaunch,
org.eclipse.core.runtime.IProgressMonitor pMonitor)
Run the
uno executable with the given Main implementation, the arguments and the launcher. |
void |
setHome(java.lang.String pHome)
Set the home directory.
|
void |
updatePackage(java.io.File pPackageFile,
org.eclipse.core.runtime.IPath pUserInstallation,
boolean bForceUpdate)
Update a package in the LibreOffice instance if it can manages packages.
|
void setHome(java.lang.String pHome)
throws InvalidConfigException
pHome - the absolute path to the home directoryInvalidConfigException - is thrown if the path doesn't match the implementation requirement for a LibreOffice instance. The
error code will be InvalidConfigException.INVALID_OOO_HOMEjava.lang.String getHome()
java.lang.String getName()
java.lang.String[] getClassesPath()
Returns the path to the LibreOffice classes directory. These strings could be passed to the Path constructor to get the folder object.
This method should be used for future compatibility with URE applications
java.lang.String[] getLibsPath()
Returns the path to the LibreOffice shared libraries. This string could be passed to the Path constructor to get the folder object.
java.lang.String[] getBinPath()
Returns the path to any folder containing binaries in the LibreOffice installation. This string could be passed to the Path constructor to get the folder object.
java.lang.String[] getTypesPath()
types.rdb file of the LibreOffice or URE instance.java.lang.String[] getServicesPath()
services.rdb file of the LibreOffice or URE instance.java.lang.String getUnorcPath()
java.lang.String getUnoPath()
java.lang.String getJavaldxPath()
javaldx executablejava.lang.String createUnoCommand(java.lang.String pImplementationName,
java.lang.String pLibLocation,
java.lang.String[] pRegistriesPaths,
java.lang.String[] pArgs)
uno component.pImplementationName - the name of the component implementation to runpLibLocation - the name of the library containing the implementationpRegistriesPaths - the path to the additional registriespArgs - the argument for the component launchuno binaryvoid runUno(IUnoidlProject pPrj, java.lang.String pMain, java.lang.String pArgs, org.eclipse.debug.core.ILaunch pLaunch, org.eclipse.core.runtime.IProgressMonitor pMonitor)
uno executable with the given Main implementation, the arguments and the launcher.pPrj - the project to runpMain - the main implementationpArgs - the argument to pass to the main implementationpLaunch - the launcherpMonitor - a monitor to follow the progressvoid runOffice(IUnoidlProject pPrj, org.eclipse.debug.core.ILaunch pLaunch, org.eclipse.core.runtime.IPath pUserInstallation, IExtraOptionsProvider pExtraOptionsProvider, org.eclipse.core.runtime.IProgressMonitor pMonitor)
pPrj - the project to runpLaunch - the launcher to which we'll add our processespUserInstallation - the userInstallation folder to use. If null we'll go with the default system one.pExtraOptionsProvider - provider for extra env variables to be set before launching.pMonitor - a monitor to follow the progressboolean canManagePackages()
true if the LibreOffice instance has a package manager.void updatePackage(java.io.File pPackageFile,
org.eclipse.core.runtime.IPath pUserInstallation,
boolean bForceUpdate)
pPackageFile - the package to add or updatepUserInstallation - path to the user profile folder.bForceUpdate - Don't ask when the package already exists, just overwrite it