]> source.dussan.org Git - poi.git/commitdiff
output styles information in more compact (and precise) format
authorSergey Vladimirov <sergey@apache.org>
Wed, 21 Sep 2011 21:16:35 +0000 (21:16 +0000)
committerSergey Vladimirov <sergey@apache.org>
Wed, 21 Sep 2011 21:16:35 +0000 (21:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1173865 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hwpf/dev/HWPFLister.java

index 5c4c554e9c2d8d8558ca5b8893a4a9388859a159..caed3ad41c050374a97fb68cf1bfa4ab532c3391 100644 (file)
@@ -689,7 +689,6 @@ public final class HWPFLister
             return;
         }
         HWPFDocument hwpfDocument = (HWPFDocument) _doc;
-        ListTables listTables = hwpfDocument.getListTables();
 
         for ( int s = 0; s < hwpfDocument.getStyleSheet().numStyles(); s++ )
         {
@@ -702,13 +701,13 @@ public final class HWPFLister
                     + styleDescription.getName() + "' ===" );
             System.out.println( styleDescription );
 
-            ParagraphProperties paragraph = styleDescription.getPAP();
-            System.out.println( "PAP: " + paragraph );
-            if ( paragraph != null )
-            {
-                dumpParagraphLevels( listTables, paragraph );
-            }
-            System.out.println( "CHP: " + styleDescription.getCHP() );
+            if ( styleDescription.getPAPX() != null )
+                dumpSprms( new SprmIterator( styleDescription.getPAPX(), 2 ),
+                        "Style's PAP SPRM: " );
+
+            if ( styleDescription.getCHPX() != null )
+                dumpSprms( new SprmIterator( styleDescription.getCHPX(), 0 ),
+                        "Style's CHP SPRM: " );
         }
     }