dateStyle.setNumberCountryAttribute(locale.getCountry());
drawingShape.getOdfElement().getAutomaticStyles().appendChild(
dateStyle);
setDataDisplayStyleName(dateStyle.getStyleNameAttribute());
} else if (type == OfficeValueTypeAttribute.Value.TIME) {
OdfNumberTimeStyle timeStyle = new OdfNumberTimeStyle(
(OdfFileDom) mElement.getOwnerDocument(), formatStr,
getUniqueDateStyleName());
timeStyle.setNumberLanguageAttribute(locale.getLanguage());
timeStyle.setNumberCountryAttribute(locale.getCountry());
drawingShape.getOdfElement().getAutomaticStyles().appendChild(
timeStyle);
setDataDisplayStyleName(timeStyle.getStyleNameAttribute());
} else if (type == OfficeValueTypeAttribute.Value.PERCENTAGE) {
OdfNumberPercentageStyle dateStyle = new OdfNumberPercentageStyle(
(OdfFileDom) mElement.getOwnerDocument(), formatStr,
getUniquePercentageStyleName());
dateStyle.setNumberLanguageAttribute(locale.getLanguage());