You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by se...@apache.org on 2011/09/21 23:16:36 UTC
svn commit: r1173865 -
/poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/dev/HWPFLister.java
Author: sergey
Date: Wed Sep 21 21:16:35 2011
New Revision: 1173865
URL: http://svn.apache.org/viewvc?rev=1173865&view=rev
Log:
output styles information in more compact (and precise) format
Modified:
poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/dev/HWPFLister.java
Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/dev/HWPFLister.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/dev/HWPFLister.java?rev=1173865&r1=1173864&r2=1173865&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/dev/HWPFLister.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/dev/HWPFLister.java Wed Sep 21 21:16:35 2011
@@ -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: " );
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org