|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.star.lib.uno.helper.WeakBase org.geotools.openoffice.Formulas
Base class for methods to export as formulas in the OpenOffice spread sheet.
Field Summary | |
protected static long |
DAY_TO_MILLIS
Factor for conversions of days to milliseconds. |
protected java.util.Map |
methods
Informations about exported methods. |
Fields inherited from class com.sun.star.lib.uno.helper.WeakBase |
_mapImplementationIds, _mapTypes |
Fields inherited from interface com.sun.star.sheet.XAddIn |
UNOTYPEINFO |
Fields inherited from interface com.sun.star.lang.XServiceName |
UNOTYPEINFO |
Fields inherited from interface com.sun.star.lang.XServiceInfo |
UNOTYPEINFO |
Fields inherited from interface com.sun.star.uno.XWeak |
UNOTYPEINFO |
Fields inherited from interface com.sun.star.lang.XTypeProvider |
UNOTYPEINFO |
Constructor Summary | |
protected |
Formulas()
Default constructor. |
Method Summary | |
java.lang.String |
getArgumentDescription(java.lang.String function,
int argument)
Returns the description of the specified argument. |
java.lang.String |
getDisplayArgumentName(java.lang.String function,
int argument)
Returns the user-visible name of the specified argument. |
java.lang.String |
getDisplayCategoryName(java.lang.String function)
Returns the user-visible name of the category the function belongs to. |
java.lang.String |
getDisplayFunctionName(java.lang.String function)
Returns the user-visible function name for an internal name. |
protected java.util.Date |
getEpoch(com.sun.star.beans.XPropertySet xOptions)
Returns the spreadsheet epoch. |
java.lang.String |
getFunctionDescription(java.lang.String function)
Returns the description of a function. |
java.lang.String |
getImplementationName()
Provides the implementation name of the service implementation. |
protected java.util.Locale |
getJavaLocale()
Returns the locale as an object from the Java standard SDK. |
com.sun.star.lang.Locale |
getLocale()
Returns the locale, which is used by this object. |
protected static java.lang.String |
getLocalizedMessage(java.lang.Throwable exception)
Returns the localized message from the specified exception. |
protected java.util.logging.Logger |
getLogger()
Returns the logger to use for logging warnings. |
java.lang.String |
getProgrammaticCategoryName(java.lang.String function)
Returns the programmatic name of the category the function belongs to. |
java.lang.String |
getProgrammaticFuntionName(java.lang.String display)
Returns the internal function name for an user-visible name. |
abstract java.lang.String |
getServiceName()
The service name that can be used to create such an object by a factory. |
protected void |
reportException(java.lang.String method,
java.lang.Throwable exception)
Reports an exception. |
void |
setLocale(com.sun.star.lang.Locale locale)
Sets the locale to be used by this object. |
protected void |
setTimeZone(java.lang.String timezone)
Sets the timezone for time values to be provided to toDate(com.sun.star.beans.XPropertySet, double) .
|
protected java.util.Date |
toDate(com.sun.star.beans.XPropertySet xOptions,
double time)
Converts a date from a spreadsheet value to a Java Date object.
|
protected double |
toDouble(com.sun.star.beans.XPropertySet xOptions,
java.util.Date time)
Converts a date from a Java Date object to a spreadsheet value.
|
Methods inherited from class com.sun.star.lib.uno.helper.WeakBase |
finalize, getImplementationId, getTypes, queryAdapter |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sun.star.lang.XServiceInfo |
getSupportedServiceNames, supportsService |
Field Detail |
protected static final long DAY_TO_MILLIS
toDate(com.sun.star.beans.XPropertySet, double)
.
protected final java.util.Map methods
Constructor Detail |
protected Formulas()
methods
map.
Method Detail |
public void setLocale(com.sun.star.lang.Locale locale)
setLocale
in interface com.sun.star.lang.XLocalizable
public com.sun.star.lang.Locale getLocale()
getLocale
in interface com.sun.star.lang.XLocalizable
protected final java.util.Locale getJavaLocale()
public abstract java.lang.String getServiceName()
private static final String __serviceName;
getServiceName
in interface com.sun.star.lang.XServiceName
public java.lang.String getImplementationName()
getImplementationName
in interface com.sun.star.lang.XServiceInfo
public java.lang.String getProgrammaticCategoryName(java.lang.String function)
getProgrammaticCategoryName
in interface com.sun.star.sheet.XAddIn
function
- The exact name of a method within its interface.
public java.lang.String getDisplayCategoryName(java.lang.String function)
getDisplayCategoryName
in interface com.sun.star.sheet.XAddIn
function
- The exact name of a method within its interface.
public java.lang.String getProgrammaticFuntionName(java.lang.String display)
Attention: The method name contains a spelling error. Due to compatibility reasons the name cannot be changed.
getProgrammaticFuntionName
in interface com.sun.star.sheet.XAddIn
display
- The user-visible name of a function.
public java.lang.String getDisplayFunctionName(java.lang.String function)
getDisplayFunctionName
in interface com.sun.star.sheet.XAddIn
function
- The exact name of a method within its interface.
public java.lang.String getFunctionDescription(java.lang.String function)
getFunctionDescription
in interface com.sun.star.sheet.XAddIn
function
- The exact name of a method within its interface.
public java.lang.String getDisplayArgumentName(java.lang.String function, int argument)
getDisplayArgumentName
in interface com.sun.star.sheet.XAddIn
function
- The exact name of a method within its interface.argument
- The index of the argument (0-based).
public java.lang.String getArgumentDescription(java.lang.String function, int argument)
getArgumentDescription
in interface com.sun.star.sheet.XAddIn
function
- The exact name of a method within its interface.argument
- The index of the argument (0-based).
protected void setTimeZone(java.lang.String timezone)
toDate(com.sun.star.beans.XPropertySet, double)
.
If this method is never invoked, then the default timezone is the locale one.
protected java.util.Date getEpoch(com.sun.star.beans.XPropertySet xOptions)
setTimeZone(java.lang.String)
. The epoch is used for date conversions
as in toDate(com.sun.star.beans.XPropertySet, double)
.
xOptions
- Provided by OpenOffice.
protected java.util.Date toDate(com.sun.star.beans.XPropertySet xOptions, double time)
Date
object.
The timezone is the one specified during the last invocation of setTimeZone(java.lang.String)
.
xOptions
- Provided by OpenOffice.time
- The spreadsheet numerical value for a date, by default in the local timezone.
protected double toDouble(com.sun.star.beans.XPropertySet xOptions, java.util.Date time)
Date
object to a spreadsheet value.
The timezone is the one specified during the last invocation of setTimeZone(java.lang.String)
.
protected static java.lang.String getLocalizedMessage(java.lang.Throwable exception)
protected void reportException(java.lang.String method, java.lang.Throwable exception)
String
object. This method log the stack trace at the FINE level. We don't use
the WARNING level since this is not a program disfunction; the failure is probably caused
by wrong user-specified parameters.
protected java.util.logging.Logger getLogger()
org.geotools.openoffice
logger. Subclasses should override this method if they
want to use a different logger.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |