dump text run properties
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1143895 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8f6a4fd533
commit
296583c971
@ -32,6 +32,7 @@ import org.apache.poi.hwpf.OldWordFileFormatException;
|
||||
import org.apache.poi.hwpf.model.CHPX;
|
||||
import org.apache.poi.hwpf.model.FileInformationBlock;
|
||||
import org.apache.poi.hwpf.model.PAPX;
|
||||
import org.apache.poi.hwpf.model.StyleSheet;
|
||||
import org.apache.poi.hwpf.model.TextPiece;
|
||||
import org.apache.poi.hwpf.sprm.SprmIterator;
|
||||
import org.apache.poi.hwpf.sprm.SprmOperation;
|
||||
@ -242,9 +243,12 @@ public final class HWPFLister
|
||||
{
|
||||
System.out.println( chpx );
|
||||
|
||||
System.out.println( chpx.getCharacterProperties(
|
||||
_doc.getStyleSheet(), (short) StyleSheet.NIL_STYLE ) );
|
||||
|
||||
if ( withSprms )
|
||||
{
|
||||
SprmIterator sprmIt = new SprmIterator( chpx.getGrpprl(), 2 );
|
||||
SprmIterator sprmIt = new SprmIterator( chpx.getGrpprl(), 0 );
|
||||
while ( sprmIt.hasNext() )
|
||||
{
|
||||
SprmOperation sprm = sprmIt.next();
|
||||
|
Loading…
Reference in New Issue
Block a user