Lines Matching refs:rStrm
255 …tHandlerRef SheetDataContext::onCreateRecordContext( sal_Int32 nRecId, SequenceInputStream& rStrm ) in onCreateRecordContext() argument
260 if( nRecId == BIFF12_ID_ROW ) { importRow( rStrm ); return this; } in onCreateRecordContext()
266 … case BIFF12_ID_ARRAY: importArray( rStrm ); break; in onCreateRecordContext()
267 … case BIFF12_ID_CELL_BOOL: importCellBool( rStrm, CELLTYPE_VALUE ); break; in onCreateRecordContext()
268 … case BIFF12_ID_CELL_BLANK: importCellBlank( rStrm, CELLTYPE_VALUE ); break; in onCreateRecordContext()
269 … case BIFF12_ID_CELL_DOUBLE: importCellDouble( rStrm, CELLTYPE_VALUE ); break; in onCreateRecordContext()
270 … case BIFF12_ID_CELL_ERROR: importCellError( rStrm, CELLTYPE_VALUE ); break; in onCreateRecordContext()
271 … case BIFF12_ID_CELL_RK: importCellRk( rStrm, CELLTYPE_VALUE ); break; in onCreateRecordContext()
272 … case BIFF12_ID_CELL_RSTRING: importCellRString( rStrm, CELLTYPE_VALUE ); break; in onCreateRecordContext()
273 … case BIFF12_ID_CELL_SI: importCellSi( rStrm, CELLTYPE_VALUE ); break; in onCreateRecordContext()
274 … case BIFF12_ID_CELL_STRING: importCellString( rStrm, CELLTYPE_VALUE ); break; in onCreateRecordContext()
275 … case BIFF12_ID_DATATABLE: importDataTable( rStrm ); break; in onCreateRecordContext()
276 … case BIFF12_ID_FORMULA_BOOL: importCellBool( rStrm, CELLTYPE_FORMULA ); break; in onCreateRecordContext()
277 … case BIFF12_ID_FORMULA_DOUBLE: importCellDouble( rStrm, CELLTYPE_FORMULA ); break; in onCreateRecordContext()
278 … case BIFF12_ID_FORMULA_ERROR: importCellError( rStrm, CELLTYPE_FORMULA ); break; in onCreateRecordContext()
279 … case BIFF12_ID_FORMULA_STRING: importCellString( rStrm, CELLTYPE_FORMULA ); break; in onCreateRecordContext()
280 … case BIFF12_ID_MULTCELL_BOOL: importCellBool( rStrm, CELLTYPE_MULTI ); break; in onCreateRecordContext()
281 … case BIFF12_ID_MULTCELL_BLANK: importCellBlank( rStrm, CELLTYPE_MULTI ); break; in onCreateRecordContext()
282 … case BIFF12_ID_MULTCELL_DOUBLE: importCellDouble( rStrm, CELLTYPE_MULTI ); break; in onCreateRecordContext()
283 … case BIFF12_ID_MULTCELL_ERROR: importCellError( rStrm, CELLTYPE_MULTI ); break; in onCreateRecordContext()
284 … case BIFF12_ID_MULTCELL_RK: importCellRk( rStrm, CELLTYPE_MULTI ); break; in onCreateRecordContext()
285 … case BIFF12_ID_MULTCELL_RSTRING:importCellRString( rStrm, CELLTYPE_MULTI ); break; in onCreateRecordContext()
286 … case BIFF12_ID_MULTCELL_SI: importCellSi( rStrm, CELLTYPE_MULTI ); break; in onCreateRecordContext()
287 … case BIFF12_ID_MULTCELL_STRING: importCellString( rStrm, CELLTYPE_MULTI ); break; in onCreateRecordContext()
288 … case BIFF12_ID_SHAREDFMLA: importSharedFmla( rStrm ); break; in onCreateRecordContext()
392 void SheetDataContext::importRow( SequenceInputStream& rStrm ) in importRow() argument
398 rStrm >> maCurrPos.mnRow >> aModel.mnXfId >> nHeight >> nFlags1 >> nFlags2 >> nSpanCount; in importRow()
416 for( sal_Int32 nSpanIdx = 0; (nSpanIdx < nSpanCount) && !rStrm.isEof(); ++nSpanIdx ) in importRow()
419 rStrm >> nFirstCol >> nLastCol; in importRow()
427 bool SheetDataContext::readCellHeader( SequenceInputStream& rStrm, CellType eCellType ) in readCellHeader() argument
432 case CELLTYPE_FORMULA: rStrm >> maCurrPos.mnCol; break; in readCellHeader()
437 rStrm >> nXfId; in readCellHeader()
449 ApiTokenSequence SheetDataContext::readCellFormula( SequenceInputStream& rStrm ) in readCellFormula() argument
451 rStrm.skip( 2 ); in readCellFormula()
452 return mrFormulaParser.importFormula( maCellData.maCellAddr, FORMULATYPE_CELL, rStrm ); in readCellFormula()
455 bool SheetDataContext::readFormulaRef( SequenceInputStream& rStrm ) in readFormulaRef() argument
458 rStrm >> aRange; in readFormulaRef()
462 void SheetDataContext::importCellBool( SequenceInputStream& rStrm, CellType eCellType ) in importCellBool() argument
464 if( readCellHeader( rStrm, eCellType ) ) in importCellBool()
467 bool bValue = rStrm.readuInt8() != 0; in importCellBool()
469 mrSheetData.setFormulaCell( maCellData, readCellFormula( rStrm ) ); in importCellBool()
475 void SheetDataContext::importCellBlank( SequenceInputStream& rStrm, CellType eCellType ) in importCellBlank() argument
478 if( readCellHeader( rStrm, eCellType ) ) in importCellBlank()
482 void SheetDataContext::importCellDouble( SequenceInputStream& rStrm, CellType eCellType ) in importCellDouble() argument
484 if( readCellHeader( rStrm, eCellType ) ) in importCellDouble()
487 double fValue = rStrm.readDouble(); in importCellDouble()
489 mrSheetData.setFormulaCell( maCellData, readCellFormula( rStrm ) ); in importCellDouble()
495 void SheetDataContext::importCellError( SequenceInputStream& rStrm, CellType eCellType ) in importCellError() argument
497 if( readCellHeader( rStrm, eCellType ) ) in importCellError()
500 sal_uInt8 nErrorCode = rStrm.readuInt8(); in importCellError()
502 mrSheetData.setFormulaCell( maCellData, readCellFormula( rStrm ) ); in importCellError()
508 void SheetDataContext::importCellRk( SequenceInputStream& rStrm, CellType eCellType ) in importCellRk() argument
511 if( readCellHeader( rStrm, eCellType ) ) in importCellRk()
514 mrSheetData.setValueCell( maCellData, BiffHelper::calcDoubleFromRk( rStrm.readInt32() ) ); in importCellRk()
518 void SheetDataContext::importCellRString( SequenceInputStream& rStrm, CellType eCellType ) in importCellRString() argument
521 if( readCellHeader( rStrm, eCellType ) ) in importCellRString()
525 xString->importString( rStrm, true ); in importCellRString()
531 void SheetDataContext::importCellSi( SequenceInputStream& rStrm, CellType eCellType ) in importCellSi() argument
534 if( readCellHeader( rStrm, eCellType ) ) in importCellSi()
537 mrSheetData.setStringCell( maCellData, rStrm.readInt32() ); in importCellSi()
541 void SheetDataContext::importCellString( SequenceInputStream& rStrm, CellType eCellType ) in importCellString() argument
543 if( readCellHeader( rStrm, eCellType ) ) in importCellString()
548 xString->importString( rStrm, false ); in importCellString()
551 mrSheetData.setFormulaCell( maCellData, readCellFormula( rStrm ) ); in importCellString()
557 void SheetDataContext::importArray( SequenceInputStream& rStrm ) in importArray() argument
559 if( readFormulaRef( rStrm ) && maFmlaData.isValidArrayRef( maCellData.maCellAddr ) ) in importArray()
561 rStrm.skip( 1 ); in importArray()
562 …equence aTokens = mrFormulaParser.importFormula( maCellData.maCellAddr, FORMULATYPE_ARRAY, rStrm ); in importArray()
567 void SheetDataContext::importDataTable( SequenceInputStream& rStrm ) in importDataTable() argument
569 if( readFormulaRef( rStrm ) ) in importDataTable()
573 rStrm >> aRef1 >> aRef2 >> nFlags; in importDataTable()
584 void SheetDataContext::importSharedFmla( SequenceInputStream& rStrm ) in importSharedFmla() argument
586 if( readFormulaRef( rStrm ) && maFmlaData.isValidSharedRef( maCellData.maCellAddr ) ) in importSharedFmla()
588 …aTokens = mrFormulaParser.importFormula( maCellData.maCellAddr, FORMULATYPE_SHAREDFORMULA, rStrm ); in importSharedFmla()
621 void BiffSheetDataContext::importRecord( BiffInputStream& rStrm ) in importRecord() argument
623 sal_uInt16 nRecId = rStrm.getRecId(); in importRecord()
628 case BIFF3_ID_ARRAY: importArray( rStrm ); break; in importRecord()
630 case BIFF3_ID_BLANK: importBlank( rStrm ); break; in importRecord()
632 case BIFF3_ID_BOOLERR: importBoolErr( rStrm ); break; in importRecord()
633 case BIFF2_ID_INTEGER: importInteger( rStrm ); break; in importRecord()
634 case BIFF_ID_IXFE: rStrm >> mnBiff2XfId; break; in importRecord()
636 case BIFF3_ID_LABEL: importLabel( rStrm ); break; in importRecord()
638 case BIFF3_ID_NUMBER: importNumber( rStrm ); break; in importRecord()
639 case BIFF_ID_RK: importRk( rStrm ); break; in importRecord()
646 case BIFF2_ID_DATATABLE: importDataTable( rStrm ); break; in importRecord()
647 case BIFF2_ID_DATATABLE2: importDataTable( rStrm ); break; in importRecord()
648 case BIFF2_ID_FORMULA: importFormula( rStrm ); break; in importRecord()
649 case BIFF2_ID_ROW: importRow( rStrm ); break; in importRecord()
655 case BIFF3_ID_DATATABLE: importDataTable( rStrm ); break; in importRecord()
656 case BIFF3_ID_FORMULA: importFormula( rStrm ); break; in importRecord()
657 case BIFF3_ID_ROW: importRow( rStrm ); break; in importRecord()
663 case BIFF3_ID_DATATABLE: importDataTable( rStrm ); break; in importRecord()
664 case BIFF4_ID_FORMULA: importFormula( rStrm ); break; in importRecord()
665 case BIFF3_ID_ROW: importRow( rStrm ); break; in importRecord()
671 case BIFF3_ID_DATATABLE: importDataTable( rStrm ); break; in importRecord()
674 case BIFF5_ID_FORMULA: importFormula( rStrm ); break; in importRecord()
675 case BIFF_ID_MULTBLANK: importMultBlank( rStrm ); break; in importRecord()
676 case BIFF_ID_MULTRK: importMultRk( rStrm ); break; in importRecord()
677 case BIFF3_ID_ROW: importRow( rStrm ); break; in importRecord()
678 case BIFF_ID_RSTRING: importLabel( rStrm ); break; in importRecord()
679 case BIFF_ID_SHAREDFMLA: importSharedFmla( rStrm ); break; in importRecord()
685 case BIFF3_ID_DATATABLE: importDataTable( rStrm ); break; in importRecord()
688 case BIFF5_ID_FORMULA: importFormula( rStrm ); break; in importRecord()
689 case BIFF_ID_LABELSST: importLabelSst( rStrm ); break; in importRecord()
690 case BIFF_ID_MULTBLANK: importMultBlank( rStrm ); break; in importRecord()
691 case BIFF_ID_MULTRK: importMultRk( rStrm ); break; in importRecord()
692 case BIFF3_ID_ROW: importRow( rStrm ); break; in importRecord()
693 case BIFF_ID_RSTRING: importLabel( rStrm ); break; in importRecord()
694 case BIFF_ID_SHAREDFMLA: importSharedFmla( rStrm ); break; in importRecord()
706 void BiffSheetDataContext::importRow( BiffInputStream& rStrm ) in importRow() argument
710 rStrm >> nRow >> nFirstUsedCol >> nFirstFreeCol >> nHeight; in importRow()
713 rStrm.skip( 2 ); in importRow()
714 aModel.mbCustomFormat = rStrm.readuInt8() == BIFF2_ROW_CUSTOMFORMAT; in importRow()
717 rStrm.skip( 5 ); in importRow()
718 aModel.mnXfId = rStrm.readuInt16(); in importRow()
723 rStrm.skip( 4 ); in importRow()
724 sal_uInt32 nFlags = rStrm.readuInt32(); in importRow()
751 bool BiffSheetDataContext::readCellXfId( BiffInputStream& rStrm, const BinAddress& rAddr, bool bBif… in readCellXfId() argument
770 rStrm >> nFlags1 >> nFlags2 >> nFlags3; in readCellXfId()
794 maCellData.mnXfId = rStrm.readuInt16(); in readCellXfId()
800 bool BiffSheetDataContext::readCellHeader( BiffInputStream& rStrm, bool bBiff2 ) in readCellHeader() argument
803 rStrm >> aAddr; in readCellHeader()
804 return readCellXfId( rStrm, aAddr, bBiff2 ); in readCellHeader()
807 bool BiffSheetDataContext::readFormulaRef( BiffInputStream& rStrm ) in readFormulaRef() argument
810 aRange.read( rStrm, false ); // columns always 8-bit in readFormulaRef()
814 void BiffSheetDataContext::importBlank( BiffInputStream& rStrm ) in importBlank() argument
816 if( readCellHeader( rStrm, rStrm.getRecId() == BIFF2_ID_BLANK ) ) in importBlank()
820 void BiffSheetDataContext::importBoolErr( BiffInputStream& rStrm ) in importBoolErr() argument
822 if( readCellHeader( rStrm, rStrm.getRecId() == BIFF2_ID_BOOLERR ) ) in importBoolErr()
825 rStrm >> nValue >> nType; in importBoolErr()
844 void BiffSheetDataContext::importFormula( BiffInputStream& rStrm ) in importFormula() argument
846 if( readCellHeader( rStrm, getBiff() == BIFF2 ) ) in importFormula()
849 rStrm.skip( mnFormulaSkipSize ); in importFormula()
850 …Sequence aTokens = mrFormulaParser.importFormula( maCellData.maCellAddr, FORMULATYPE_CELL, rStrm ); in importFormula()
855 void BiffSheetDataContext::importInteger( BiffInputStream& rStrm ) in importInteger() argument
857 if( readCellHeader( rStrm, true ) ) in importInteger()
860 mrSheetData.setValueCell( maCellData, rStrm.readuInt16() ); in importInteger()
864 void BiffSheetDataContext::importLabel( BiffInputStream& rStrm ) in importLabel() argument
873 bool bBiff2Xf = rStrm.getRecId() == BIFF2_ID_LABEL; in importLabel()
874 if( readCellHeader( rStrm, bBiff2Xf ) ) in importLabel()
881 xString->importUniString( rStrm ); in importLabel()
892 if( rStrm.getRecId() == BIFF_ID_RSTRING ) in importLabel()
898 xString->importByteString( rStrm, eTextEnc, nFlags ); in importLabel()
905 OUString aText = rStrm.readByteStringUC( !bBiff2Xf, eTextEnc ); in importLabel()
912 void BiffSheetDataContext::importLabelSst( BiffInputStream& rStrm ) in importLabelSst() argument
914 if( readCellHeader( rStrm, false ) ) in importLabelSst()
917 mrSheetData.setStringCell( maCellData, rStrm.readInt32() ); in importLabelSst()
921 void BiffSheetDataContext::importMultBlank( BiffInputStream& rStrm ) in importMultBlank() argument
925 for( rStrm >> aAddr; bValidAddr && (rStrm.getRemaining() > 2); ++aAddr.mnCol ) in importMultBlank()
926 if( (bValidAddr = readCellXfId( rStrm, aAddr, false )) == true ) in importMultBlank()
930 void BiffSheetDataContext::importMultRk( BiffInputStream& rStrm ) in importMultRk() argument
934 for( rStrm >> aAddr; bValidAddr && (rStrm.getRemaining() > 2); ++aAddr.mnCol ) in importMultRk()
936 if( (bValidAddr = readCellXfId( rStrm, aAddr, false )) == true ) in importMultRk()
939 sal_Int32 nRkValue = rStrm.readInt32(); in importMultRk()
945 void BiffSheetDataContext::importNumber( BiffInputStream& rStrm ) in importNumber() argument
947 if( readCellHeader( rStrm, rStrm.getRecId() == BIFF2_ID_NUMBER ) ) in importNumber()
950 mrSheetData.setValueCell( maCellData, rStrm.readDouble() ); in importNumber()
954 void BiffSheetDataContext::importRk( BiffInputStream& rStrm ) in importRk() argument
956 if( readCellHeader( rStrm, false ) ) in importRk()
959 mrSheetData.setValueCell( maCellData, BiffHelper::calcDoubleFromRk( rStrm.readInt32() ) ); in importRk()
963 void BiffSheetDataContext::importArray( BiffInputStream& rStrm ) in importArray() argument
965 if( readFormulaRef( rStrm ) && maFmlaData.isValidArrayRef( maCellData.maCellAddr ) ) in importArray()
967 rStrm.skip( mnArraySkipSize ); in importArray()
968 …equence aTokens = mrFormulaParser.importFormula( maCellData.maCellAddr, FORMULATYPE_ARRAY, rStrm ); in importArray()
973 void BiffSheetDataContext::importDataTable( BiffInputStream& rStrm ) in importDataTable() argument
975 if( readFormulaRef( rStrm ) ) in importDataTable()
979 switch( rStrm.getRecId() ) in importDataTable()
982 rStrm.skip( 1 ); in importDataTable()
983 aModel.mbRowTable = rStrm.readuInt8() != 0; in importDataTable()
985 rStrm >> aRef1; in importDataTable()
988 rStrm.skip( 2 ); in importDataTable()
990 rStrm >> aRef1 >> aRef2; in importDataTable()
995 rStrm >> nFlags >> aRef1 >> aRef2; in importDataTable()
1011 void BiffSheetDataContext::importSharedFmla( BiffInputStream& rStrm ) in importSharedFmla() argument
1013 if( readFormulaRef( rStrm ) && maFmlaData.isValidSharedRef( maCellData.maCellAddr ) ) in importSharedFmla()
1015 rStrm.skip( 2 ); // flags in importSharedFmla()
1016 …aTokens = mrFormulaParser.importFormula( maCellData.maCellAddr, FORMULATYPE_SHAREDFORMULA, rStrm ); in importSharedFmla()