From ba5d5a7de68d252506ad07879a56df1669995dc4 Mon Sep 17 00:00:00 2001 From: Jason Height Date: Sun, 27 Aug 2006 12:03:14 +0000 Subject: [PATCH] Removed EXPERIMENTAL indication on the formula support. git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@437371 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/poi/hssf/record/FormulaRecord.java | 6 --- .../apache/poi/hssf/record/RecordFactory.java | 38 ------------------- 2 files changed, 44 deletions(-) diff --git a/src/java/org/apache/poi/hssf/record/FormulaRecord.java b/src/java/org/apache/poi/hssf/record/FormulaRecord.java index bddd4e4db0..89ab4dade2 100644 --- a/src/java/org/apache/poi/hssf/record/FormulaRecord.java +++ b/src/java/org/apache/poi/hssf/record/FormulaRecord.java @@ -44,8 +44,6 @@ public class FormulaRecord implements CellValueRecordInterface, Comparable { - public static final boolean EXPERIMENTAL_FORMULA_SUPPORT_ENABLED=true; - public static final short sid = 0x06; // docs say 406...because of a bug Microsoft support site article #Q184647) @@ -473,7 +471,6 @@ public class FormulaRecord public String toString() { StringBuffer buffer = new StringBuffer(); - if (EXPERIMENTAL_FORMULA_SUPPORT_ENABLED) { buffer.append("[FORMULA]\n"); buffer.append(" .row = ") .append(Integer.toHexString(getRow())).append("\n"); @@ -523,9 +520,6 @@ public class FormulaRecord buffer.append("[/FORMULA]\n"); - } else { - buffer.append(super.toString()); - } return buffer.toString(); } diff --git a/src/java/org/apache/poi/hssf/record/RecordFactory.java b/src/java/org/apache/poi/hssf/record/RecordFactory.java index 5224f3bbc9..89ce3ba254 100644 --- a/src/java/org/apache/poi/hssf/record/RecordFactory.java +++ b/src/java/org/apache/poi/hssf/record/RecordFactory.java @@ -40,7 +40,6 @@ public class RecordFactory private static final Class[] records; static { - if (FormulaRecord.EXPERIMENTAL_FORMULA_SUPPORT_ENABLED) { records = new Class[] { BOFRecord.class, InterfaceHdrRecord.class, MMSRecord.class, @@ -75,43 +74,6 @@ public class RecordFactory HorizontalPageBreakRecord.class, VerticalPageBreakRecord.class, WriteProtectRecord.class, FilePassRecord.class }; - } else { - records = new Class[] - { - BOFRecord.class, InterfaceHdrRecord.class, MMSRecord.class, - InterfaceEndRecord.class, WriteAccessRecord.class, - CodepageRecord.class, DSFRecord.class, TabIdRecord.class, - FnGroupCountRecord.class, WindowProtectRecord.class, - ProtectRecord.class, PasswordRecord.class, ProtectionRev4Record.class, - PasswordRev4Record.class, WindowOneRecord.class, BackupRecord.class, - HideObjRecord.class, DateWindow1904Record.class, - PrecisionRecord.class, RefreshAllRecord.class, BookBoolRecord.class, - FontRecord.class, FormatRecord.class, ExtendedFormatRecord.class, - StyleRecord.class, UseSelFSRecord.class, BoundSheetRecord.class, - CountryRecord.class, SSTRecord.class, ExtSSTRecord.class, - EOFRecord.class, IndexRecord.class, CalcModeRecord.class, - CalcCountRecord.class, RefModeRecord.class, IterationRecord.class, - DeltaRecord.class, SaveRecalcRecord.class, PrintHeadersRecord.class, - PrintGridlinesRecord.class, GridsetRecord.class, GutsRecord.class, - DefaultRowHeightRecord.class, WSBoolRecord.class, HeaderRecord.class, - FooterRecord.class, HCenterRecord.class, VCenterRecord.class, - PrintSetupRecord.class, DefaultColWidthRecord.class, - DimensionsRecord.class, RowRecord.class, LabelSSTRecord.class, - RKRecord.class, NumberRecord.class, DBCellRecord.class, - WindowTwoRecord.class, SelectionRecord.class, ContinueRecord.class, - LabelRecord.class, BlankRecord.class, ColumnInfoRecord.class, - MulRKRecord.class, MulBlankRecord.class, MergeCellsRecord.class, - BoolErrRecord.class, ExternSheetRecord.class, NameRecord.class, - LeftMarginRecord.class, RightMarginRecord.class, - TopMarginRecord.class, BottomMarginRecord.class, - PaletteRecord.class, StringRecord.class, RecalcIdRecord.class, SharedFormulaRecord.class, - DrawingRecord.class, DrawingGroupRecord.class, DrawingSelectionRecord.class, - ObjRecord.class, TextObjectRecord.class, - HorizontalPageBreakRecord.class, VerticalPageBreakRecord.class, - WriteProtectRecord.class, FilePassRecord.class - }; - - } } private static Map recordsMap = recordsToMap(records); -- 2.39.5