From 73b614dcd0c763ed5488acf9acd52c99adf0b8c9 Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Thu, 7 Jul 2011 15:59:20 +0000 Subject: [PATCH] dump text run properties git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1143895 13f79535-47bb-0310-9956-ffa450edef68 --- src/scratchpad/src/org/apache/poi/hwpf/dev/HWPFLister.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/scratchpad/src/org/apache/poi/hwpf/dev/HWPFLister.java b/src/scratchpad/src/org/apache/poi/hwpf/dev/HWPFLister.java index f85e2f1c54..2ceeb4713e 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/dev/HWPFLister.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/dev/HWPFLister.java @@ -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(); -- 2.39.5