Lines Matching refs:rStrm

211 void PivotCacheItem::readString( SequenceInputStream& rStrm )  in readString()  argument
213 maValue <<= BiffHelper::readString( rStrm ); in readString()
217 void PivotCacheItem::readDouble( SequenceInputStream& rStrm ) in readDouble() argument
219 maValue <<= rStrm.readDouble(); in readDouble()
223 void PivotCacheItem::readDate( SequenceInputStream& rStrm ) in readDate() argument
226 aDateTime.Year = rStrm.readuInt16(); in readDate()
227 aDateTime.Month = rStrm.readuInt16(); in readDate()
228 aDateTime.Day = rStrm.readuInt8(); in readDate()
229 aDateTime.Hours = rStrm.readuInt8(); in readDate()
230 aDateTime.Minutes = rStrm.readuInt8(); in readDate()
231 aDateTime.Seconds = rStrm.readuInt8(); in readDate()
237 void PivotCacheItem::readBool( SequenceInputStream& rStrm ) in readBool() argument
239 maValue <<= (rStrm.readuInt8() != 0); in readBool()
243 void PivotCacheItem::readError( SequenceInputStream& rStrm ) in readError() argument
245 maValue <<= static_cast< sal_Int32 >( rStrm.readuInt8() ); in readError()
249 void PivotCacheItem::readIndex( SequenceInputStream& rStrm ) in readIndex() argument
251 maValue <<= rStrm.readInt32(); in readIndex()
255 void PivotCacheItem::readString( BiffInputStream& rStrm, const WorkbookHelper& rHelper ) in readString() argument
257 …maValue <<= (rHelper.getBiff() == BIFF8) ? rStrm.readUniString() : rStrm.readByteStringUC( true, r… in readString()
261 void PivotCacheItem::readDouble( BiffInputStream& rStrm ) in readDouble() argument
263 maValue <<= rStrm.readDouble(); in readDouble()
267 void PivotCacheItem::readInteger( BiffInputStream& rStrm ) in readInteger() argument
269 maValue <<= rStrm.readInt16(); in readInteger()
273 void PivotCacheItem::readDate( BiffInputStream& rStrm ) in readDate() argument
276 aDateTime.Year = rStrm.readuInt16(); in readDate()
277 aDateTime.Month = rStrm.readuInt16(); in readDate()
278 aDateTime.Day = rStrm.readuInt8(); in readDate()
279 aDateTime.Hours = rStrm.readuInt8(); in readDate()
280 aDateTime.Minutes = rStrm.readuInt8(); in readDate()
281 aDateTime.Seconds = rStrm.readuInt8(); in readDate()
287 void PivotCacheItem::readBool( BiffInputStream& rStrm ) in readBool() argument
289 maValue <<= (rStrm.readuInt8() != 0); in readBool()
293 void PivotCacheItem::readError( BiffInputStream& rStrm ) in readError() argument
295 maValue <<= static_cast< sal_Int32 >( rStrm.readuInt8() ); in readError()
337 void PivotCacheItemList::importItem( sal_Int32 nRecId, SequenceInputStream& rStrm ) in importItem() argument
341 importArray( rStrm ); in importItem()
351 case BIFF12_ID_PCITEMA_STRING: rItem.readString( rStrm ); break; in importItem()
353 case BIFF12_ID_PCITEMA_DOUBLE: rItem.readDouble( rStrm ); break; in importItem()
355 case BIFF12_ID_PCITEMA_DATE: rItem.readDate( rStrm ); break; in importItem()
357 case BIFF12_ID_PCITEMA_BOOL: rItem.readBool( rStrm ); break; in importItem()
359 case BIFF12_ID_PCITEMA_ERROR: rItem.readError( rStrm ); break; in importItem()
364 void PivotCacheItemList::importItemList( BiffInputStream& rStrm, sal_uInt16 nCount ) in importItemList() argument
369 bLoop = rStrm.startNextRecord(); in importItemList()
370 if( bLoop ) switch( rStrm.getRecId() ) in importItemList()
373 case BIFF_ID_PCITEM_STRING: createItem().readString( rStrm, *this ); break; in importItemList()
374 case BIFF_ID_PCITEM_DOUBLE: createItem().readDouble( rStrm ); break; in importItemList()
375 case BIFF_ID_PCITEM_INTEGER: createItem().readInteger( rStrm ); break; in importItemList()
376 case BIFF_ID_PCITEM_DATE: createItem().readDate( rStrm ); break; in importItemList()
377 case BIFF_ID_PCITEM_BOOL: createItem().readBool( rStrm ); break; in importItemList()
378 case BIFF_ID_PCITEM_ERROR: createItem().readError( rStrm ); break; in importItemList()
379 default: rStrm.rewindRecord(); bLoop = false; in importItemList()
406 void PivotCacheItemList::importArray( SequenceInputStream& rStrm ) in importArray() argument
408 sal_uInt16 nType = rStrm.readuInt16(); in importArray()
409 sal_Int32 nCount = rStrm.readInt32(); in importArray()
410 for( sal_Int32 nIdx = 0; !rStrm.isEof() && (nIdx < nCount); ++nIdx ) in importArray()
414 case BIFF12_PCITEM_ARRAY_DOUBLE: createItem().readDouble( rStrm ); break; in importArray()
415 case BIFF12_PCITEM_ARRAY_STRING: createItem().readString( rStrm ); break; in importArray()
416 case BIFF12_PCITEM_ARRAY_ERROR: createItem().readError( rStrm ); break; in importArray()
417 case BIFF12_PCITEM_ARRAY_DATE: createItem().readDate( rStrm ); break; in importArray()
557 void PivotCacheField::importPCDField( SequenceInputStream& rStrm ) in importPCDField() argument
560 rStrm >> nFlags >> maFieldModel.mnNumFmtId; in importPCDField()
561 maFieldModel.mnSqlType = rStrm.readInt16(); in importPCDField()
562rStrm >> maFieldModel.mnHierarchy >> maFieldModel.mnLevel >> maFieldModel.mnMappingCount >> maFiel… in importPCDField()
564 rStrm >> maFieldModel.maCaption; in importPCDField()
566 rStrm.skip( ::std::max< sal_Int32 >( rStrm.readInt32(), 0 ) ); in importPCDField()
568 rStrm.skip( ::std::max< sal_Int32 >( rStrm.readInt32(), 0 ) ); in importPCDField()
570 rStrm >> maFieldModel.maPropertyName; in importPCDField()
578 void PivotCacheField::importPCDFSharedItems( SequenceInputStream& rStrm ) in importPCDFSharedItems() argument
581 rStrm >> nFlags; in importPCDFSharedItems()
593 void PivotCacheField::importPCDFSharedItem( sal_Int32 nRecId, SequenceInputStream& rStrm ) in importPCDFSharedItem() argument
595 maSharedItems.importItem( nRecId, rStrm ); in importPCDFSharedItem()
598 void PivotCacheField::importPCDFieldGroup( SequenceInputStream& rStrm ) in importPCDFieldGroup() argument
600 rStrm >> maFieldGroupModel.mnParentField >> maFieldGroupModel.mnBaseField; in importPCDFieldGroup()
603 void PivotCacheField::importPCDFRangePr( SequenceInputStream& rStrm ) in importPCDFRangePr() argument
606rStrm >> nGroupBy >> nFlags >> maFieldGroupModel.mfStartValue >> maFieldGroupModel.mfEndValue >> m… in importPCDFRangePr()
622 void PivotCacheField::importPCDFDiscretePrItem( sal_Int32 nRecId, SequenceInputStream& rStrm ) in importPCDFDiscretePrItem() argument
626 maDiscreteItems.push_back( rStrm.readInt32() ); in importPCDFDiscretePrItem()
629 void PivotCacheField::importPCDFGroupItem( sal_Int32 nRecId, SequenceInputStream& rStrm ) in importPCDFGroupItem() argument
631 maGroupItems.importItem( nRecId, rStrm ); in importPCDFGroupItem()
634 void PivotCacheField::importPCDField( BiffInputStream& rStrm ) in importPCDField() argument
637 rStrm >> nFlags; in importPCDField()
638 maFieldGroupModel.mnParentField = rStrm.readuInt16(); in importPCDField()
639 maFieldGroupModel.mnBaseField = rStrm.readuInt16(); in importPCDField()
640 rStrm.skip( 2 ); // number of unique items (either shared or group) in importPCDField()
641 rStrm >> nGroupItems >> nBaseItems >> nSharedItems; in importPCDField()
642 …maFieldModel.maName = (getBiff() == BIFF8) ? rStrm.readUniString() : rStrm.readByteStringUC( true,… in importPCDField()
658 if( (rStrm.getNextRecId() == BIFF_ID_PCDFSQLTYPE) && rStrm.startNextRecord() ) in importPCDField()
659 maFieldModel.mnSqlType = rStrm.readInt16(); in importPCDField()
665 maGroupItems.importItemList( rStrm, nGroupItems ); in importPCDField()
667 sal_uInt16 nNextRecId = rStrm.getNextRecId(); in importPCDField()
673 if( bHasRangePr && rStrm.startNextRecord() ) in importPCDField()
674 importPCDFRangePr( rStrm ); in importPCDField()
675 else if( bHasDiscretePr && rStrm.startNextRecord() ) in importPCDField()
676 importPCDFDiscretePr( rStrm ); in importPCDField()
683 maSharedItems.importItemList( rStrm, nSharedItems ); in importPCDField()
687 void PivotCacheField::importPCDFRangePr( BiffInputStream& rStrm ) in importPCDFRangePr() argument
690 rStrm >> nFlags; in importPCDFRangePr()
702 aLimits.importItemList( rStrm, 3 ); in importPCDFRangePr()
734 void PivotCacheField::importPCDFDiscretePr( BiffInputStream& rStrm ) in importPCDFDiscretePr() argument
736 sal_Int32 nCount = static_cast< sal_Int32 >( rStrm.size() / 2 ); in importPCDFDiscretePr()
737 for( sal_Int32 nIndex = 0; !rStrm.isEof() && (nIndex < nCount); ++nIndex ) in importPCDFDiscretePr()
738 maDiscreteItems.push_back( rStrm.readuInt16() ); in importPCDFDiscretePr()
950 void PivotCacheField::importPCRecordItem( SequenceInputStream& rStrm, WorksheetHelper& rSheetHelper… in importPCRecordItem() argument
954 writeSharedItemToSourceDataCell( rSheetHelper, nCol, nRow, rStrm.readInt32() ); in importPCRecordItem()
960 aItem.readDouble( rStrm ); in importPCRecordItem()
962 aItem.readDate( rStrm ); in importPCRecordItem()
964 aItem.readString( rStrm ); in importPCRecordItem()
969 void PivotCacheField::importPCItemIndex( BiffInputStream& rStrm, WorksheetHelper& rSheetHelper, sal… in importPCItemIndex() argument
972 sal_Int32 nIndex = maSharedItemsModel.mbHasLongIndexes ? rStrm.readuInt16() : rStrm.readuInt8(); in importPCItemIndex()
1088 void PivotCache::importPCDefinition( SequenceInputStream& rStrm ) in importPCDefinition() argument
1091 rStrm.skip( 3 ); // create/refresh version id's in importPCDefinition()
1092rStrm >> nFlags1 >> maDefModel.mnMissItemsLimit >> maDefModel.mfRefreshedDate >> nFlags2 >> maDefM… in importPCDefinition()
1094 rStrm >> maDefModel.maRefreshedBy; in importPCDefinition()
1096 rStrm >> maDefModel.maRelId; in importPCDefinition()
1110 void PivotCache::importPCDSource( SequenceInputStream& rStrm ) in importPCDSource() argument
1113 rStrm >> nSourceType >> maSourceModel.mnConnectionId; in importPCDSource()
1118 void PivotCache::importPCDSheetSource( SequenceInputStream& rStrm, const Relations& rRelations ) in importPCDSheetSource() argument
1121 rStrm >> nIsDefName >> nIsBuiltinName >> nFlags; in importPCDSheetSource()
1123 rStrm >> maSheetSrcModel.maSheet; in importPCDSheetSource()
1125 rStrm >> maSheetSrcModel.maRelId; in importPCDSheetSource()
1131 rStrm >> aBinRange; in importPCDSheetSource()
1137 rStrm >> maSheetSrcModel.maDefName; in importPCDSheetSource()
1146 void PivotCache::importPCDSource( BiffInputStream& rStrm ) in importPCDSource() argument
1148 switch( rStrm.readuInt16() ) in importPCDSource()
1153 sal_uInt16 nNextRecId = rStrm.getNextRecId(); in importPCDSource()
1156 … case BIFF_ID_DCONREF: if( rStrm.startNextRecord() ) importDConRef( rStrm ); break; in importPCDSource()
1157 … case BIFF_ID_DCONNAME: if( rStrm.startNextRecord() ) importDConName( rStrm ); break; in importPCDSource()
1158 … case BIFF_ID_DCONBINAME: if( rStrm.startNextRecord() ) importDConBIName( rStrm ); break; in importPCDSource()
1176 void PivotCache::importPCDefinition( BiffInputStream& rStrm ) in importPCDefinition() argument
1179 rStrm >> maDefModel.mnRecords; in importPCDefinition()
1180 rStrm.skip( 2 ); // repeated cache ID in importPCDefinition()
1181 rStrm >> nFlags; in importPCDefinition()
1182 rStrm.skip( 2 ); // unused in importPCDefinition()
1183 rStrm >> maDefModel.mnDatabaseFields; in importPCDefinition()
1184 rStrm.skip( 6 ); // total field count, report record count, (repeated) cache type in importPCDefinition()
1185 rStrm >> nUserNameLen; in importPCDefinition()
1188 rStrm.readUniString( nUserNameLen ) : in importPCDefinition()
1189 rStrm.readCharArrayUC( nUserNameLen, getTextEncoding() ); in importPCDefinition()
1198 if( (rStrm.getNextRecId() == BIFF_ID_PCDEFINITION2) && rStrm.startNextRecord() ) in importPCDefinition()
1199 rStrm >> maDefModel.mfRefreshedDate; in importPCDefinition()
1295 void PivotCache::importPCRecord( SequenceInputStream& rStrm, WorksheetHelper& rSheetHelper, sal_Int… in importPCRecord() argument
1301 …_iterator aIt = maDatabaseFields.begin(), aEnd = maDatabaseFields.end(); !rStrm.isEof() && (aIt !=… in importPCRecord()
1302 (*aIt)->importPCRecordItem( rStrm, rSheetHelper, nCol, nRow ); in importPCRecord()
1305 void PivotCache::importPCItemIndexList( BiffInputStream& rStrm, WorksheetHelper& rSheetHelper, sal_… in importPCItemIndexList() argument
1311 …_iterator aIt = maDatabaseFields.begin(), aEnd = maDatabaseFields.end(); !rStrm.isEof() && (aIt !=… in importPCItemIndexList()
1313 (*aIt)->importPCItemIndex( rStrm, rSheetHelper, nCol, nRow ); in importPCItemIndexList()
1318 void PivotCache::importDConRef( BiffInputStream& rStrm ) in importDConRef() argument
1321 aBinRange.read( rStrm, false ); // always 8-bit column indexes in importDConRef()
1326 importDConUrl( rStrm ); in importDConRef()
1330 void PivotCache::importDConName( BiffInputStream& rStrm ) in importDConName() argument
1332 …maSheetSrcModel.maDefName = (getBiff() == BIFF8) ? rStrm.readUniString() : rStrm.readByteStringUC(… in importDConName()
1334 importDConUrl( rStrm ); in importDConName()
1337 void PivotCache::importDConBIName( BiffInputStream& rStrm ) in importDConBIName() argument
1339 sal_uInt8 nNameId = rStrm.readuInt8(); in importDConBIName()
1340 rStrm.skip( 3 ); in importDConBIName()
1342 importDConUrl( rStrm ); in importDConBIName()
1345 void PivotCache::importDConUrl( BiffInputStream& rStrm ) in importDConUrl() argument
1352 sal_uInt16 nChars = rStrm.readuInt16(); in importDConUrl()
1354 aEncodedUrl = rStrm.readUniString( nChars ); in importDConUrl()
1358 aEncodedUrl = rStrm.readByteStringUC( false, getTextEncoding() ); in importDConUrl()
1464 void PivotCacheBuffer::importPivotCacheRef( BiffInputStream& rStrm ) in importPivotCacheRef() argument
1467 sal_Int32 nCacheId = rStrm.readuInt16(); in importPivotCacheRef()
1477 sal_uInt16 nNextRecId = rStrm.getNextRecId(); in importPivotCacheRef()
1479 if( (nNextRecId == BIFF_ID_PCDSOURCE) && rStrm.startNextRecord() ) in importPivotCacheRef()
1480 createPivotCache( nCacheId ).importPCDSource( rStrm ); in importPivotCacheRef()