diff options
Diffstat (limited to 'src/java/org/apache/poi/hssf')
-rw-r--r-- | src/java/org/apache/poi/hssf/dev/BiffViewer.java | 2 | ||||
-rw-r--r-- | src/java/org/apache/poi/hssf/model/TextboxShape.java | 5 | ||||
-rw-r--r-- | src/java/org/apache/poi/hssf/record/TextObjectRecord.java | 4 |
3 files changed, 10 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/hssf/dev/BiffViewer.java b/src/java/org/apache/poi/hssf/dev/BiffViewer.java index 242a85f45f..8263d1b9b9 100644 --- a/src/java/org/apache/poi/hssf/dev/BiffViewer.java +++ b/src/java/org/apache/poi/hssf/dev/BiffViewer.java @@ -122,7 +122,7 @@ public class BiffViewer { private static void dumpNormal(Record record, int startloc, short rectype, short recsize) { - System.out.println("Offset 0x" + Integer.toHexString(startloc) + " (" + startloc + ")"); + //System.out.println("Offset 0x" + Integer.toHexString(startloc) + " (" + startloc + ")"); System.out.println( "recordid = 0x" + Integer.toHexString( rectype ) + ", size = " + recsize ); System.out.println( record.toString() ); diff --git a/src/java/org/apache/poi/hssf/model/TextboxShape.java b/src/java/org/apache/poi/hssf/model/TextboxShape.java index e55fcacbc3..b1d3370fbf 100644 --- a/src/java/org/apache/poi/hssf/model/TextboxShape.java +++ b/src/java/org/apache/poi/hssf/model/TextboxShape.java @@ -103,6 +103,11 @@ public class TextboxShape opt.addEscherProperty( new EscherSimpleProperty( EscherProperties.TEXT__TEXTRIGHT, shape.getMarginRight() ) ); opt.addEscherProperty( new EscherSimpleProperty( EscherProperties.TEXT__TEXTBOTTOM, shape.getMarginBottom() ) ); opt.addEscherProperty( new EscherSimpleProperty( EscherProperties.TEXT__TEXTTOP, shape.getMarginTop() ) ); + + opt.addEscherProperty( new EscherSimpleProperty( EscherProperties.TEXT__WRAPTEXT, 0 ) ); + opt.addEscherProperty( new EscherSimpleProperty( EscherProperties.TEXT__ANCHORTEXT, 0 ) ); + opt.addEscherProperty( new EscherSimpleProperty( EscherProperties.GROUPSHAPE__PRINT, 0x00080000 ) ); + addStandardOptions( shape, opt ); HSSFAnchor userAnchor = shape.getAnchor(); // if (userAnchor.isHorizontallyFlipped()) diff --git a/src/java/org/apache/poi/hssf/record/TextObjectRecord.java b/src/java/org/apache/poi/hssf/record/TextObjectRecord.java index c8f6669b0f..5201a7292b 100644 --- a/src/java/org/apache/poi/hssf/record/TextObjectRecord.java +++ b/src/java/org/apache/poi/hssf/record/TextObjectRecord.java @@ -248,6 +248,10 @@ public class TextObjectRecord buffer.append( " .string = " ).append(str).append('\n'); + for (int i = 0; i < str.numFormattingRuns(); i++) { + buffer.append( " .textrun = " ).append(str.getFontOfFormattingRun(i)).append('\n'); + + } buffer.append( "[/TXO]\n" ); return buffer.toString(); } |