&& (styleElement.getPropertiesElement(OdfStylePropertiesSet.TextProperties) == null)) {
styleElement = ((Document) ((OdfFileDom) styleElement.getOwnerDocument()).getDocument())
.getDocumentStyles().getDefaultStyle(styleElement.getFamily());
}
TreeMap<OdfStyleProperty, String> result = new TreeMap<OdfStyleProperty, String>();
OdfStyleFamily family = OdfStyleFamily.Text;
if (family != null) {
for (OdfStyleProperty property : family.getProperties()) {
if (styleElement.hasProperty(property)) {
result.put(property, styleElement.getProperty(property));
}
}
}