The code below returns some internal style names (or whether) instead of the style names appear on Word's user interface.
public static void main(String args) throws Exception {
WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(new File(args));
MainDocumentPart documentPart = wordMLPackage.getMainDocumentPart();
Map<String,String > styles = documentPart.getStylesInUse();
for (String styleKey : styles.keySet()) {
String value = styles.get(styleKey);
System.out.println("key <" + styleKey + "> value <" + value + ">");
}
}
I get values as below:
key <berschrift1> value <berschrift1> ...