if (typeValue != OfficeValueTypeAttribute.Value.CURRENCY) {
throw new IllegalArgumentException();
}
OdfNumberCurrencyStyle currencyStyle = new OdfNumberCurrencyStyle((OdfFileDom) mCellElement.getOwnerDocument(),
currencySymbol, format, getUniqueCurrencyStyleName());
mCellElement.getAutomaticStyles().appendChild(currencyStyle);
setDataDisplayStyleName(currencyStyle.getStyleNameAttribute());
Double value = getCurrencyValue();
// set display text
if (value != null) {
setDisplayTextContent(formatCurrency(currencyStyle, value.doubleValue()), null);