org.openoffice.ide.eclipse.core.office
Class TypesGetter
java.lang.Object
org.openoffice.ide.eclipse.core.office.TypesGetter
public class TypesGetter
- extends java.lang.Object
Facade class loading all the methods using an OpenOffice.org instance.
- Author:
- cedricbosdo
Method Summary |
IOOo |
getOOo()
|
java.util.Map<java.lang.String,java.util.List<InternalUnoType>> |
getTypes(java.lang.String pRoot,
int pMask)
Get the UNO types from an office instance. |
void |
setLocalRegs(java.util.List<java.lang.String> pLocalRegs)
|
void |
setOOo(IOOo pOOo)
Set the OOo instance to use for the different operations. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypesGetter
public TypesGetter()
setOOo
public void setOOo(IOOo pOOo)
- Set the OOo instance to use for the different operations.
- Parameters:
pOOo
- the OpenOffice.org instance to set.
getOOo
public IOOo getOOo()
- Returns:
- the OpenOffice.org to use for the different operations.
setLocalRegs
public void setLocalRegs(java.util.List<java.lang.String> pLocalRegs)
- Parameters:
pLocalRegs
- the local registries to search
getTypes
public java.util.Map<java.lang.String,java.util.List<InternalUnoType>> getTypes(java.lang.String pRoot,
int pMask)
- Get the UNO types from an office instance.
- Parameters:
pRoot
- the root registry key where to look for the types. If the value is
null
the whole registry will be searchedpMask
- the bit-ORed types to search. The types are defined in the
IUnoFactoryConstants
class.
- Returns:
- the list of types available in the office