}
HWPFDocument hwpfDocument = (HWPFDocument) _doc;
for ( int s = 0; s < hwpfDocument.getStyleSheet().numStyles(); s++ )
{
StyleDescription styleDescription = hwpfDocument.getStyleSheet()
.getStyleDescription( s );
if ( styleDescription == null )
continue;
System.out.println( "=== Style #" + s + " '"
+ styleDescription.getName() + "' ===" );
System.out.println( styleDescription );
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: " );
}
}