Package org.apache.sis.openoffice
Class CalcAddins
Object
WeakBase
CalcAddins
- All Implemented Interfaces:
- XLocalizable,- XServiceInfo,- XServiceName,- XTypeProvider,- XInterface,- XWeak
- Direct Known Subclasses:
- ReferencingFunctions
public abstract class CalcAddins
extends WeakBase
implements XServiceName, XServiceInfo, XLocalizable
Base class for methods to export as formulas in the Apache OpenOffice spread sheet.
- Since:
- 0.8
Defined in the sis-openoffice module
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final XComponentContextIndirectly provides access to the service manager.Fields inherited from class WeakBase_mapTypesFields inherited from interface XLocalizableUNOTYPEINFOFields inherited from interface XServiceInfoUNOTYPEINFOFields inherited from interface XServiceNameUNOTYPEINFOFields inherited from interface XTypeProviderUNOTYPEINFOFields inherited from interface XWeakUNOTYPEINFO
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedCalcAddins(XComponentContext context) Constructs add-ins for Calc.
- 
Method SummaryModifier and TypeMethodDescriptionprotected final LocaleReturns the locale as an object from the Java standard SDK.final LocaleReturns the current locale used by this instance.protected final StringgetLocalizedMessage(Throwable exception) Returns the localized message from the specified exception.protected final LoggerReturns the logger to use for logging warnings.abstract StringThe service name that can be used to create such an object by a factory.final String[]Provides the supported service names of the implementation, including also indirect service names.final voidsetLocale(Locale locale) Sets the locale to be used by this object.final booleansupportsService(String name) Tests whether the specified service is supported, i.e. implemented by the implementation.Methods inherited from class WeakBasefinalize, getImplementationId, getTypes, queryAdapterMethods inherited from class Objectclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface XServiceInfogetImplementationName
- 
Field Details- 
contextprotected final XComponentContext contextIndirectly provides access to the service manager. For example,com.sun.star.sdb.DatabaseContextholds databases registered with OpenOffice.
 
- 
- 
Constructor Details- 
CalcAddinsprotected CalcAddins(XComponentContext context) Constructs add-ins for Calc.- Parameters:
- context- the value to assign to the- contextfield.
 
 
- 
- 
Method Details- 
getServiceNameThe service name that can be used to create such an object by a factory.- Specified by:
- getServiceNamein interface- XServiceName
- Returns:
- the service name.
 
- 
getSupportedServiceNamesProvides the supported service names of the implementation, including also indirect service names.- Specified by:
- getSupportedServiceNamesin interface- XServiceInfo
- Returns:
- sequence of service names that are supported.
 
- 
supportsServiceTests whether the specified service is supported, i.e. implemented by the implementation.- Specified by:
- supportsServicein interface- XServiceInfo
- Parameters:
- name- name of service to be tested.
- Returns:
- trueif the service is supported,- falseotherwise.
 
- 
setLocalepublic final void setLocale(Locale locale) Sets the locale to be used by this object.- Specified by:
- setLocalein interface- XLocalizable
- Parameters:
- locale- the new locale.
 
- 
getLocalepublic final Locale getLocale()Returns the current locale used by this instance.- Specified by:
- getLocalein interface- XLocalizable
- Returns:
- the current locale.
 
- 
getJavaLocaleReturns the locale as an object from the Java standard SDK.- Returns:
- the current locale.
 
- 
getLocalizedMessageReturns the localized message from the specified exception. If no message is available, returns a default string. This method never return a null value.- Parameters:
- exception- the exception for which to get the localized message.
- Returns:
- an error message to report to the user.
 
- 
getLoggerReturns the logger to use for logging warnings.- Returns:
- the logger to use.
 
 
-