]> source.dussan.org Git - poi.git/commitdiff
Added conditional format records to BiffViewer
authorJosh Micich <josh@apache.org>
Wed, 6 Aug 2008 08:42:40 +0000 (08:42 +0000)
committerJosh Micich <josh@apache.org>
Wed, 6 Aug 2008 08:42:40 +0000 (08:42 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@683167 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/dev/BiffViewer.java

index 175b920881c5eb8774e7b3bf6a7c8bb5796ae629..15177d0d95ab5069926aa37b36c07c9ddc8c9996 100644 (file)
@@ -129,6 +129,8 @@ public final class BiffViewer {
             case BoolErrRecord.sid:        return new BoolErrRecord(in);
             case BottomMarginRecord.sid:   return new BottomMarginRecord(in);
             case BoundSheetRecord.sid:     return new BoundSheetRecord(in);
+            case CFHeaderRecord.sid:       return new CFHeaderRecord(in);
+            case CFRuleRecord.sid:         return new CFRuleRecord(in);
             case CalcCountRecord.sid:      return new CalcCountRecord(in);
             case CalcModeRecord.sid:       return new CalcModeRecord(in);
             case CategorySeriesAxisRecord.sid: return new CategorySeriesAxisRecord(in);
@@ -288,10 +290,10 @@ public final class BiffViewer {
             }
             PrintStream ps;
             if (false) { // set to true to output to file
-               OutputStream os = new FileOutputStream(inFileName + ".out");
-               ps = new PrintStream(os);
+                OutputStream os = new FileOutputStream(inFileName + ".out");
+                ps = new PrintStream(os);
             } else {
-               ps = System.out;
+                ps = System.out;
             }
             BiffViewer viewer = new BiffViewer(inputFile, ps);