diff options
Diffstat (limited to 'xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/StyleCatalog.java')
-rw-r--r-- | xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/StyleCatalog.java | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/StyleCatalog.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/StyleCatalog.java index 818a4f250db9..bc7696ebe517 100644 --- a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/StyleCatalog.java +++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/StyleCatalog.java @@ -117,7 +117,6 @@ public class StyleCatalog { for (int j = 0; j < families.length; j++) { if (families[j].equals(familyName)) { - Class<?> styleClass = classes[j]; callConstructor(classes[j], child); found = true; } @@ -322,41 +321,6 @@ public class StyleCatalog { /** - * Check whether a given node represents a <code>Style</code> - * that should be added to the catalog, and if so, return the - * class type for it. If <code>Style</code> should not be added, - * or if node is not a <code>Style</code>, return null. - * - * @param node The <code>Node</code> to be checked. - * @param families An array of <code>Style</code> families. - * @param classes An array of class types corresponding to the - * families array. - * @param defaultClass The default class. - * - * @return The class that is appropriate for this node. - */ - private Class<?> getClass(Node node, String[] families, Class<?>[] classes, - Class<?> defaultClass) { - NamedNodeMap attributes = node.getAttributes(); - if (attributes != null) { - int len = attributes.getLength(); - for (int i = 0; i < len; i++) { - Node attr = attributes.item(i); - if (attr.getNodeName().equals("style:family")) { - String familyName = attr.getNodeValue(); - for (int j = 0; j < families.length; j++) { - if (families[j].equals(familyName)) - return classes[j]; - } - return defaultClass; - } - } - } - return null; - } - - - /** * Find the family attribute of a <code>Style</code> <code>Node</code>. * * @param node The <code>Node</code> to check. |