From: Nick Burch Date: Sun, 14 Sep 2008 22:19:06 +0000 (+0000) Subject: Make a start on exposing the StyleRecord details into HSSFCellStyle, but not fully... X-Git-Tag: REL_3_2_FINAL~56 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d514f9b689602c73110d5c73b8941829af4c6ec0;p=poi.git Make a start on exposing the StyleRecord details into HSSFCellStyle, but not fully there yet git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@695303 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/hssf/model/Workbook.java b/src/java/org/apache/poi/hssf/model/Workbook.java index f8a426108a..1e37a80ca2 100644 --- a/src/java/org/apache/poi/hssf/model/Workbook.java +++ b/src/java/org/apache/poi/hssf/model/Workbook.java @@ -773,6 +773,61 @@ public final class Workbook implements Model { numxfs++; return xf; } + + /** + * Returns the StyleRecord for the given + * xfIndex, or null if that ExtendedFormat doesn't + * have a Style set. + */ + public StyleRecord getStyleRecord(int xfIndex) { + // Style records always follow after + // the ExtendedFormat records + boolean done = false; + for(int i=records.getXfpos(); i