fixed BiffViewer to add some missing record types. Formatted switch/case for readability
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@682229 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3150399136
commit
a6275bcf99
@ -113,262 +113,138 @@ public final class BiffViewer {
|
|||||||
{
|
{
|
||||||
switch ( in.getSid() )
|
switch ( in.getSid() )
|
||||||
{
|
{
|
||||||
case ChartRecord.sid:
|
case AreaFormatRecord.sid: return new AreaFormatRecord(in);
|
||||||
return new ChartRecord( in );
|
case AreaRecord.sid: return new AreaRecord(in);
|
||||||
case ChartFormatRecord.sid:
|
case AxisLineFormatRecord.sid: return new AxisLineFormatRecord(in);
|
||||||
return new ChartFormatRecord( in );
|
case AxisOptionsRecord.sid: return new AxisOptionsRecord(in);
|
||||||
case SeriesRecord.sid:
|
case AxisParentRecord.sid: return new AxisParentRecord(in);
|
||||||
return new SeriesRecord( in );
|
case AxisRecord.sid: return new AxisRecord(in);
|
||||||
case BeginRecord.sid:
|
case AxisUsedRecord.sid: return new AxisUsedRecord(in);
|
||||||
return new BeginRecord( in );
|
case BOFRecord.sid: return new BOFRecord(in);
|
||||||
case EndRecord.sid:
|
case BackupRecord.sid: return new BackupRecord(in);
|
||||||
return new EndRecord( in );
|
case BarRecord.sid: return new BarRecord(in);
|
||||||
case BOFRecord.sid:
|
case BeginRecord.sid: return new BeginRecord(in);
|
||||||
return new BOFRecord( in );
|
case BlankRecord.sid: return new BlankRecord(in);
|
||||||
case InterfaceHdrRecord.sid:
|
case BookBoolRecord.sid: return new BookBoolRecord(in);
|
||||||
return new InterfaceHdrRecord( in );
|
case BoolErrRecord.sid: return new BoolErrRecord(in);
|
||||||
case MMSRecord.sid:
|
case BottomMarginRecord.sid: return new BottomMarginRecord(in);
|
||||||
return new MMSRecord( in );
|
case BoundSheetRecord.sid: return new BoundSheetRecord(in);
|
||||||
case InterfaceEndRecord.sid:
|
case CalcCountRecord.sid: return new CalcCountRecord(in);
|
||||||
return new InterfaceEndRecord( in );
|
case CalcModeRecord.sid: return new CalcModeRecord(in);
|
||||||
case WriteAccessRecord.sid:
|
case CategorySeriesAxisRecord.sid: return new CategorySeriesAxisRecord(in);
|
||||||
return new WriteAccessRecord( in );
|
case ChartFormatRecord.sid: return new ChartFormatRecord(in);
|
||||||
case CodepageRecord.sid:
|
case ChartRecord.sid: return new ChartRecord(in);
|
||||||
return new CodepageRecord( in );
|
case CodepageRecord.sid: return new CodepageRecord(in);
|
||||||
case DSFRecord.sid:
|
case ColumnInfoRecord.sid: return new ColumnInfoRecord(in);
|
||||||
return new DSFRecord( in );
|
case ContinueRecord.sid: return new ContinueRecord(in);
|
||||||
case TabIdRecord.sid:
|
case CountryRecord.sid: return new CountryRecord(in);
|
||||||
return new TabIdRecord( in );
|
case DBCellRecord.sid: return new DBCellRecord(in);
|
||||||
case FnGroupCountRecord.sid:
|
case DSFRecord.sid: return new DSFRecord(in);
|
||||||
return new FnGroupCountRecord( in );
|
case DatRecord.sid: return new DatRecord(in);
|
||||||
case WindowProtectRecord.sid:
|
case DataFormatRecord.sid: return new DataFormatRecord(in);
|
||||||
return new WindowProtectRecord( in );
|
case DateWindow1904Record.sid: return new DateWindow1904Record(in);
|
||||||
case ProtectRecord.sid:
|
case DefaultColWidthRecord.sid:return new DefaultColWidthRecord(in);
|
||||||
return new ProtectRecord( in );
|
case DefaultDataLabelTextPropertiesRecord.sid: return new DefaultDataLabelTextPropertiesRecord(in);
|
||||||
case PasswordRecord.sid:
|
case DefaultRowHeightRecord.sid: return new DefaultRowHeightRecord(in);
|
||||||
return new PasswordRecord( in );
|
case DeltaRecord.sid: return new DeltaRecord(in);
|
||||||
case ProtectionRev4Record.sid:
|
case DimensionsRecord.sid: return new DimensionsRecord(in);
|
||||||
return new ProtectionRev4Record( in );
|
case DrawingGroupRecord.sid: return new DrawingGroupRecord(in);
|
||||||
case PasswordRev4Record.sid:
|
case DrawingRecordForBiffViewer.sid: return new DrawingRecordForBiffViewer(in);
|
||||||
return new PasswordRev4Record( in );
|
case DrawingSelectionRecord.sid: return new DrawingSelectionRecord(in);
|
||||||
case WindowOneRecord.sid:
|
case DVRecord.sid: return new DVRecord(in);
|
||||||
return new WindowOneRecord( in );
|
case DVALRecord.sid: return new DVALRecord(in);
|
||||||
case BackupRecord.sid:
|
case EOFRecord.sid: return new EOFRecord(in);
|
||||||
return new BackupRecord( in );
|
case EndRecord.sid: return new EndRecord(in);
|
||||||
case HideObjRecord.sid:
|
case ExtSSTRecord.sid: return new ExtSSTRecord(in);
|
||||||
return new HideObjRecord( in );
|
case ExtendedFormatRecord.sid: return new ExtendedFormatRecord(in);
|
||||||
case DateWindow1904Record.sid:
|
case ExternSheetRecord.sid: return new ExternSheetRecord(in);
|
||||||
return new DateWindow1904Record( in );
|
case FilePassRecord.sid: return new FilePassRecord(in);
|
||||||
case PrecisionRecord.sid:
|
case FileSharingRecord.sid: return new FileSharingRecord(in);
|
||||||
return new PrecisionRecord( in );
|
case FnGroupCountRecord.sid: return new FnGroupCountRecord(in);
|
||||||
case RefreshAllRecord.sid:
|
case FontBasisRecord.sid: return new FontBasisRecord(in);
|
||||||
return new RefreshAllRecord( in );
|
case FontIndexRecord.sid: return new FontIndexRecord(in);
|
||||||
case BookBoolRecord.sid:
|
case FontRecord.sid: return new FontRecord(in);
|
||||||
return new BookBoolRecord( in );
|
case FooterRecord.sid: return new FooterRecord(in);
|
||||||
case FontRecord.sid:
|
case FormatRecord.sid: return new FormatRecord(in);
|
||||||
return new FontRecord( in );
|
case FormulaRecord.sid: return new FormulaRecord(in);
|
||||||
case FormatRecord.sid:
|
case FrameRecord.sid: return new FrameRecord(in);
|
||||||
return new FormatRecord( in );
|
case GridsetRecord.sid: return new GridsetRecord(in);
|
||||||
case ExtendedFormatRecord.sid:
|
case GutsRecord.sid: return new GutsRecord(in);
|
||||||
return new ExtendedFormatRecord( in );
|
case HCenterRecord.sid: return new HCenterRecord(in);
|
||||||
case StyleRecord.sid:
|
case HeaderRecord.sid: return new HeaderRecord(in);
|
||||||
return new StyleRecord( in );
|
case HideObjRecord.sid: return new HideObjRecord(in);
|
||||||
case UseSelFSRecord.sid:
|
case HorizontalPageBreakRecord.sid: return new HorizontalPageBreakRecord(in);
|
||||||
return new UseSelFSRecord( in );
|
case HyperlinkRecord.sid: return new HyperlinkRecord(in);
|
||||||
case BoundSheetRecord.sid:
|
case IndexRecord.sid: return new IndexRecord(in);
|
||||||
return new BoundSheetRecord( in );
|
case InterfaceEndRecord.sid: return new InterfaceEndRecord(in);
|
||||||
case CountryRecord.sid:
|
case InterfaceHdrRecord.sid: return new InterfaceHdrRecord(in);
|
||||||
return new CountryRecord( in );
|
case IterationRecord.sid: return new IterationRecord(in);
|
||||||
case SSTRecord.sid:
|
case LabelRecord.sid: return new LabelRecord(in);
|
||||||
return new SSTRecord( in );
|
case LabelSSTRecord.sid: return new LabelSSTRecord(in);
|
||||||
case ExtSSTRecord.sid:
|
case LeftMarginRecord.sid: return new LeftMarginRecord(in);
|
||||||
return new ExtSSTRecord( in );
|
case LegendRecord.sid: return new LegendRecord(in);
|
||||||
case EOFRecord.sid:
|
case LineFormatRecord.sid: return new LineFormatRecord(in);
|
||||||
return new EOFRecord( in );
|
case LinkedDataRecord.sid: return new LinkedDataRecord(in);
|
||||||
case IndexRecord.sid:
|
case MMSRecord.sid: return new MMSRecord(in);
|
||||||
return new IndexRecord( in );
|
case MergeCellsRecord.sid: return new MergeCellsRecord(in);
|
||||||
case CalcModeRecord.sid:
|
case MulBlankRecord.sid: return new MulBlankRecord(in);
|
||||||
return new CalcModeRecord( in );
|
case MulRKRecord.sid: return new MulRKRecord(in);
|
||||||
case CalcCountRecord.sid:
|
case NameRecord.sid: return new NameRecord(in);
|
||||||
return new CalcCountRecord( in );
|
case NoteRecord.sid: return new NoteRecord(in);
|
||||||
case RefModeRecord.sid:
|
case NumberRecord.sid: return new NumberRecord(in);
|
||||||
return new RefModeRecord( in );
|
case ObjRecord.sid: return new ObjRecord(in);
|
||||||
case IterationRecord.sid:
|
case ObjectLinkRecord.sid: return new ObjectLinkRecord(in);
|
||||||
return new IterationRecord( in );
|
case PaletteRecord.sid: return new PaletteRecord(in);
|
||||||
case DeltaRecord.sid:
|
case PaneRecord.sid: return new PaneRecord(in);
|
||||||
return new DeltaRecord( in );
|
case PasswordRecord.sid: return new PasswordRecord(in);
|
||||||
case SaveRecalcRecord.sid:
|
case PasswordRev4Record.sid: return new PasswordRev4Record(in);
|
||||||
return new SaveRecalcRecord( in );
|
case PlotAreaRecord.sid: return new PlotAreaRecord(in);
|
||||||
case PrintHeadersRecord.sid:
|
case PlotGrowthRecord.sid: return new PlotGrowthRecord(in);
|
||||||
return new PrintHeadersRecord( in );
|
case PrecisionRecord.sid: return new PrecisionRecord(in);
|
||||||
case PrintGridlinesRecord.sid:
|
case PrintGridlinesRecord.sid: return new PrintGridlinesRecord(in);
|
||||||
return new PrintGridlinesRecord( in );
|
case PrintHeadersRecord.sid: return new PrintHeadersRecord(in);
|
||||||
case GridsetRecord.sid:
|
case PrintSetupRecord.sid: return new PrintSetupRecord(in);
|
||||||
return new GridsetRecord( in );
|
case ProtectRecord.sid: return new ProtectRecord(in);
|
||||||
case DrawingGroupRecord.sid:
|
case ProtectionRev4Record.sid: return new ProtectionRev4Record(in);
|
||||||
return new DrawingGroupRecord( in );
|
case RKRecord.sid: return new RKRecord(in);
|
||||||
case DrawingRecordForBiffViewer.sid:
|
case RefModeRecord.sid: return new RefModeRecord(in);
|
||||||
return new DrawingRecordForBiffViewer( in );
|
case RefreshAllRecord.sid: return new RefreshAllRecord(in);
|
||||||
case DrawingSelectionRecord.sid:
|
case RightMarginRecord.sid: return new RightMarginRecord(in);
|
||||||
return new DrawingSelectionRecord( in );
|
case RowRecord.sid: return new RowRecord(in);
|
||||||
case GutsRecord.sid:
|
case SCLRecord.sid: return new SCLRecord(in);
|
||||||
return new GutsRecord( in );
|
case SSTRecord.sid: return new SSTRecord(in);
|
||||||
case DefaultRowHeightRecord.sid:
|
case SaveRecalcRecord.sid: return new SaveRecalcRecord(in);
|
||||||
return new DefaultRowHeightRecord( in );
|
case SelectionRecord.sid: return new SelectionRecord(in);
|
||||||
case WSBoolRecord.sid:
|
case SeriesIndexRecord.sid: return new SeriesIndexRecord(in);
|
||||||
return new WSBoolRecord( in );
|
case SeriesListRecord.sid: return new SeriesListRecord(in);
|
||||||
case HeaderRecord.sid:
|
case SeriesRecord.sid: return new SeriesRecord(in);
|
||||||
return new HeaderRecord( in );
|
case SeriesTextRecord.sid: return new SeriesTextRecord(in);
|
||||||
case FooterRecord.sid:
|
case SeriesToChartGroupRecord.sid: return new SeriesToChartGroupRecord(in);
|
||||||
return new FooterRecord( in );
|
case SharedFormulaRecord.sid: return new SharedFormulaRecord(in);
|
||||||
case HCenterRecord.sid:
|
case SheetPropertiesRecord.sid:return new SheetPropertiesRecord(in);
|
||||||
return new HCenterRecord( in );
|
case StringRecord.sid: return new StringRecord(in);
|
||||||
case VCenterRecord.sid:
|
case StyleRecord.sid: return new StyleRecord(in);
|
||||||
return new VCenterRecord( in );
|
case SupBookRecord.sid: return new SupBookRecord(in);
|
||||||
case PrintSetupRecord.sid:
|
case TabIdRecord.sid: return new TabIdRecord(in);
|
||||||
return new PrintSetupRecord( in );
|
case TableRecord.sid: return new TableRecord(in);
|
||||||
case DefaultColWidthRecord.sid:
|
case TextObjectRecord.sid: return new TextObjectRecord(in);
|
||||||
return new DefaultColWidthRecord( in );
|
case TextRecord.sid: return new TextRecord(in);
|
||||||
case DimensionsRecord.sid:
|
case TickRecord.sid: return new TickRecord(in);
|
||||||
return new DimensionsRecord( in );
|
case TopMarginRecord.sid: return new TopMarginRecord(in);
|
||||||
case RowRecord.sid:
|
case UnitsRecord.sid: return new UnitsRecord(in);
|
||||||
return new RowRecord( in );
|
case UseSelFSRecord.sid: return new UseSelFSRecord(in);
|
||||||
case LabelSSTRecord.sid:
|
case VCenterRecord.sid: return new VCenterRecord(in);
|
||||||
return new LabelSSTRecord( in );
|
case ValueRangeRecord.sid: return new ValueRangeRecord(in);
|
||||||
case RKRecord.sid:
|
case VerticalPageBreakRecord.sid: return new VerticalPageBreakRecord(in);
|
||||||
return new RKRecord( in );
|
case WSBoolRecord.sid: return new WSBoolRecord(in);
|
||||||
case NumberRecord.sid:
|
case WindowOneRecord.sid: return new WindowOneRecord(in);
|
||||||
return new NumberRecord( in );
|
case WindowProtectRecord.sid: return new WindowProtectRecord(in);
|
||||||
case DBCellRecord.sid:
|
case WindowTwoRecord.sid: return new WindowTwoRecord(in);
|
||||||
return new DBCellRecord( in );
|
case WriteAccessRecord.sid: return new WriteAccessRecord(in);
|
||||||
case WindowTwoRecord.sid:
|
case WriteProtectRecord.sid: return new WriteProtectRecord(in);
|
||||||
return new WindowTwoRecord( in );
|
|
||||||
case SelectionRecord.sid:
|
|
||||||
return new SelectionRecord( in );
|
|
||||||
case ContinueRecord.sid:
|
|
||||||
return new ContinueRecord( in );
|
|
||||||
case LabelRecord.sid:
|
|
||||||
return new LabelRecord( in );
|
|
||||||
case MulRKRecord.sid:
|
|
||||||
return new MulRKRecord( in );
|
|
||||||
case MulBlankRecord.sid:
|
|
||||||
return new MulBlankRecord( in );
|
|
||||||
case BlankRecord.sid:
|
|
||||||
return new BlankRecord( in );
|
|
||||||
case BoolErrRecord.sid:
|
|
||||||
return new BoolErrRecord( in );
|
|
||||||
case ColumnInfoRecord.sid:
|
|
||||||
return new ColumnInfoRecord( in );
|
|
||||||
case MergeCellsRecord.sid:
|
|
||||||
return new MergeCellsRecord( in );
|
|
||||||
case AreaRecord.sid:
|
|
||||||
return new AreaRecord( in );
|
|
||||||
case DataFormatRecord.sid:
|
|
||||||
return new DataFormatRecord( in );
|
|
||||||
case BarRecord.sid:
|
|
||||||
return new BarRecord( in );
|
|
||||||
case DatRecord.sid:
|
|
||||||
return new DatRecord( in );
|
|
||||||
case PlotGrowthRecord.sid:
|
|
||||||
return new PlotGrowthRecord( in );
|
|
||||||
case UnitsRecord.sid:
|
|
||||||
return new UnitsRecord( in );
|
|
||||||
case FrameRecord.sid:
|
|
||||||
return new FrameRecord( in );
|
|
||||||
case ValueRangeRecord.sid:
|
|
||||||
return new ValueRangeRecord( in );
|
|
||||||
case SeriesListRecord.sid:
|
|
||||||
return new SeriesListRecord( in );
|
|
||||||
case FontBasisRecord.sid:
|
|
||||||
return new FontBasisRecord( in );
|
|
||||||
case FontIndexRecord.sid:
|
|
||||||
return new FontIndexRecord( in );
|
|
||||||
case LineFormatRecord.sid:
|
|
||||||
return new LineFormatRecord( in );
|
|
||||||
case AreaFormatRecord.sid:
|
|
||||||
return new AreaFormatRecord( in );
|
|
||||||
case LinkedDataRecord.sid:
|
|
||||||
return new LinkedDataRecord( in );
|
|
||||||
case FormulaRecord.sid:
|
|
||||||
return new FormulaRecord( in );
|
|
||||||
case SheetPropertiesRecord.sid:
|
|
||||||
return new SheetPropertiesRecord( in );
|
|
||||||
case DefaultDataLabelTextPropertiesRecord.sid:
|
|
||||||
return new DefaultDataLabelTextPropertiesRecord( in );
|
|
||||||
case TextRecord.sid:
|
|
||||||
return new TextRecord( in );
|
|
||||||
case AxisParentRecord.sid:
|
|
||||||
return new AxisParentRecord( in );
|
|
||||||
case AxisLineFormatRecord.sid:
|
|
||||||
return new AxisLineFormatRecord( in );
|
|
||||||
case SupBookRecord.sid:
|
|
||||||
return new SupBookRecord( in );
|
|
||||||
case ExternSheetRecord.sid:
|
|
||||||
return new ExternSheetRecord( in );
|
|
||||||
case SCLRecord.sid:
|
|
||||||
return new SCLRecord( in );
|
|
||||||
case SeriesToChartGroupRecord.sid:
|
|
||||||
return new SeriesToChartGroupRecord( in );
|
|
||||||
case AxisUsedRecord.sid:
|
|
||||||
return new AxisUsedRecord( in );
|
|
||||||
case AxisRecord.sid:
|
|
||||||
return new AxisRecord( in );
|
|
||||||
case CategorySeriesAxisRecord.sid:
|
|
||||||
return new CategorySeriesAxisRecord( in );
|
|
||||||
case AxisOptionsRecord.sid:
|
|
||||||
return new AxisOptionsRecord( in );
|
|
||||||
case TickRecord.sid:
|
|
||||||
return new TickRecord( in );
|
|
||||||
case SeriesTextRecord.sid:
|
|
||||||
return new SeriesTextRecord( in );
|
|
||||||
case ObjectLinkRecord.sid:
|
|
||||||
return new ObjectLinkRecord( in );
|
|
||||||
case PlotAreaRecord.sid:
|
|
||||||
return new PlotAreaRecord( in );
|
|
||||||
case SeriesIndexRecord.sid:
|
|
||||||
return new SeriesIndexRecord( in );
|
|
||||||
case LegendRecord.sid:
|
|
||||||
return new LegendRecord( in );
|
|
||||||
case LeftMarginRecord.sid:
|
|
||||||
return new LeftMarginRecord( in );
|
|
||||||
case RightMarginRecord.sid:
|
|
||||||
return new RightMarginRecord( in );
|
|
||||||
case TopMarginRecord.sid:
|
|
||||||
return new TopMarginRecord( in );
|
|
||||||
case BottomMarginRecord.sid:
|
|
||||||
return new BottomMarginRecord( in );
|
|
||||||
case PaletteRecord.sid:
|
|
||||||
return new PaletteRecord( in );
|
|
||||||
case StringRecord.sid:
|
|
||||||
return new StringRecord( in );
|
|
||||||
case NameRecord.sid:
|
|
||||||
return new NameRecord( in );
|
|
||||||
case PaneRecord.sid:
|
|
||||||
return new PaneRecord( in );
|
|
||||||
case SharedFormulaRecord.sid:
|
|
||||||
return new SharedFormulaRecord( in);
|
|
||||||
case ObjRecord.sid:
|
|
||||||
return new ObjRecord( in);
|
|
||||||
case TextObjectRecord.sid:
|
|
||||||
return new TextObjectRecord( in);
|
|
||||||
case HorizontalPageBreakRecord.sid:
|
|
||||||
return new HorizontalPageBreakRecord( in);
|
|
||||||
case VerticalPageBreakRecord.sid:
|
|
||||||
return new VerticalPageBreakRecord( in);
|
|
||||||
case WriteProtectRecord.sid:
|
|
||||||
return new WriteProtectRecord( in);
|
|
||||||
case FilePassRecord.sid:
|
|
||||||
return new FilePassRecord(in);
|
|
||||||
case NoteRecord.sid:
|
|
||||||
return new NoteRecord( in );
|
|
||||||
case FileSharingRecord.sid:
|
|
||||||
return new FileSharingRecord( in );
|
|
||||||
case HyperlinkRecord.sid:
|
|
||||||
return new HyperlinkRecord( in );
|
|
||||||
case TableRecord.sid:
|
|
||||||
return new TableRecord( in );
|
|
||||||
}
|
}
|
||||||
return new UnknownRecord( in );
|
return new UnknownRecord(in);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user