From dbb4386e0bc20d00b01356be4eba78ce3d4e0140 Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Thu, 28 Jul 2011 14:43:18 +0000 Subject: [PATCH] fix compilation error git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1151879 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hslf/model/TextShape.java | 39 ++++++++++++++----- 1 file changed, 29 insertions(+), 10 deletions(-) diff --git a/src/scratchpad/src/org/apache/poi/hslf/model/TextShape.java b/src/scratchpad/src/org/apache/poi/hslf/model/TextShape.java index b1ae68f059..3bf37499c5 100644 --- a/src/scratchpad/src/org/apache/poi/hslf/model/TextShape.java +++ b/src/scratchpad/src/org/apache/poi/hslf/model/TextShape.java @@ -17,19 +17,37 @@ package org.apache.poi.hslf.model; -import org.apache.poi.ddf.*; -import org.apache.poi.hslf.record.*; -import org.apache.poi.hslf.usermodel.RichTextRun; -import org.apache.poi.hslf.exceptions.HSLFException; -import org.apache.poi.util.POILogger; - -import java.awt.*; -import java.awt.geom.Rectangle2D; -import java.awt.geom.AffineTransform; +import java.awt.Font; +import java.awt.Graphics2D; +import java.awt.Rectangle; import java.awt.font.FontRenderContext; import java.awt.font.TextLayout; +import java.awt.geom.AffineTransform; +import java.awt.geom.Rectangle2D; import java.io.IOException; +import org.apache.poi.ddf.EscherContainerRecord; +import org.apache.poi.ddf.EscherOptRecord; +import org.apache.poi.ddf.EscherProperties; +import org.apache.poi.ddf.EscherSimpleProperty; +import org.apache.poi.ddf.EscherSpRecord; +import org.apache.poi.ddf.EscherTextboxRecord; +import org.apache.poi.hslf.exceptions.HSLFException; +import org.apache.poi.hslf.record.EscherTextboxWrapper; +import org.apache.poi.hslf.record.InteractiveInfo; +import org.apache.poi.hslf.record.InteractiveInfoAtom; +import org.apache.poi.hslf.record.OEPlaceholderAtom; +import org.apache.poi.hslf.record.OutlineTextRefAtom; +import org.apache.poi.hslf.record.PPDrawing; +import org.apache.poi.hslf.record.Record; +import org.apache.poi.hslf.record.RecordTypes; +import org.apache.poi.hslf.record.StyleTextPropAtom; +import org.apache.poi.hslf.record.TextCharsAtom; +import org.apache.poi.hslf.record.TextHeaderAtom; +import org.apache.poi.hslf.record.TxInteractiveInfoAtom; +import org.apache.poi.hslf.usermodel.RichTextRun; +import org.apache.poi.util.POILogger; + /** * A common superclass of all shapes that can hold text. * @@ -519,7 +537,8 @@ public abstract class TextShape extends SimpleShape { logger.log(POILogger.WARN, "text run not found for OutlineTextRefAtom.TextIndex=" + idx); } } else { - int shapeId = _escherContainer.getChildById(EscherSpRecord.RECORD_ID).getShapeId(); + EscherSpRecord escherSpRecord = _escherContainer.getChildById(EscherSpRecord.RECORD_ID); + int shapeId = escherSpRecord.getShapeId(); if(runs != null) for (int i = 0; i < runs.length; i++) { if(runs[i].getShapeId() == shapeId){ _txtrun = runs[i]; -- 2.39.5