Lines Matching refs:rStream
85 SvStream &SfxItemPool::Store(SvStream &rStream) const in Store()
152 rStream << ( rStream.GetVersion() >= SOFFICE_FILEFORMAT_50 in Store()
155 rStream << SFX_ITEMPOOL_VER_MAJOR << SFX_ITEMPOOL_VER_MINOR; in Store()
156 rStream << SFX_ITEMPOOL_TAG_TRICK4OLD; in Store()
159 rStream << sal_uInt16(0); // Version in Store()
160 rStream << sal_uInt16(0); // Count (2. Schleife f"allt sonst auf die Fresse) in Store()
164 SfxMiniRecordWriter aPoolRec( &rStream, SFX_ITEMPOOL_REC ); in Store()
169 SfxMiniRecordWriter aPoolHeaderRec( &rStream, SFX_ITEMPOOL_REC_HEADER); in Store()
170 rStream << pImp->nVersion; in Store()
171 SfxPoolItem::writeByteString(rStream, aName); in Store()
176 SfxMultiVarRecordWriter aVerRec( &rStream, SFX_ITEMPOOL_REC_VERSIONMAP, 0 ); in Store()
181 rStream << pVer->_nVer << pVer->_nStart << pVer->_nEnd; in Store()
187 rStream << nNewWhich; in Store()
192 rStream << sal_uInt16(nNewWhich+1); in Store()
198 SfxMultiMixRecordWriter aWhichIdsRec( &rStream, SFX_ITEMPOOL_REC_WHICHIDS, 0 ); in Store()
201 …for ( pImp->bInSetItem = sal_False; pImp->bInSetItem <= sal_True && !rStream.GetError(); ++pImp->b… in Store()
206 for ( size_t i = 0; i < nSize && !rStream.GetError(); ++i, ++pArr, ++ppDefItem ) in Store()
226 rStream << (*ppDefItem)->Which(); in Store()
227 rStream << nItemVersion; in Store()
230 rStream << nCount; in Store()
233 SfxMultiMixRecordWriter aItemsRec( &rStream, SFX_ITEMPOOL_REC_ITEMS, 0 ); in Store()
243 rStream << (sal_uInt16) pItem->GetKind(); in Store()
246 rStream << (sal_uInt16) pItem->GetRefCount(); in Store()
248 rStream.SetError( ERRCODE_IO_NOTSTORABLEINBINARYFORMAT ); in Store()
251 if ( !rStream.GetError() ) in Store()
252 pItem->Store(rStream, nItemVersion); in Store()
258 sal_uLong nMark = rStream.Tell(); in Store()
259 rStream.Seek( nItemStartPos + sizeof(sal_uInt16) ); in Store()
260 SfxPoolItem *pClone = pItem->Create(rStream, nItemVersion ); in Store()
262 SFX_ASSERT( rStream.Tell() == nMark, nWh,"asymmetric store/create" ); in Store()
277 if ( !rStream.GetError() ) in Store()
279 SfxMultiMixRecordWriter aDefsRec( &rStream, SFX_ITEMPOOL_REC_DEFAULTS, 0 ); in Store()
295 rStream << pDefaultItem->Which(); in Store()
296 rStream << nItemVersion; in Store()
299 pDefaultItem->Store( rStream, nItemVersion ); in Store()
307 if ( !rStream.GetError() && pSecondary ) in Store()
308 pSecondary->Store( rStream ); in Store()
311 return rStream; in Store()
381 SvStream & rStream, sal_uInt32 nItemCount, sal_uInt16 nVersion, in readTheItems() argument
384 SfxMultiRecordReader aItemsRec( &rStream, SFX_ITEMPOOL_REC_ITEMS ); in readTheItems()
404 rStream >> nRef; in readTheItems()
406 pItem = pDefItem->Create(rStream, nVersion); in readTheItems()
483 SvStream &SfxItemPool::Load(SvStream &rStream) in Load() argument
531 CHECK_FILEFORMAT2( rStream, in Load()
533 rStream >> pImp->nMajorVer >> pImp->nMinorVer; in Load()
542 return Load1_Impl( rStream ); in Load()
547 rStream.SetError(SVSTREAM_FILEFORMAT_ERROR); in Load()
549 return rStream; in Load()
553 CHECK_FILEFORMAT( rStream, SFX_ITEMPOOL_TAG_TRICK4OLD ); in Load()
554 rStream.SeekRel( 4 ); // Hack-Daten wegen SfxStyleSheetPool-Bug skippen in Load()
558 SfxMiniRecordReader aPoolRec( &rStream, SFX_ITEMPOOL_REC ); in Load()
559 if ( rStream.GetError() ) in Load()
562 return rStream; in Load()
570 SfxMiniRecordReader aPoolHeaderRec( &rStream, SFX_ITEMPOOL_REC_HEADER ); in Load()
571 if ( rStream.GetError() ) in Load()
574 return rStream; in Load()
578 rStream >> pImp->nLoadingVersion; in Load()
579 SfxPoolItem::readByteString(rStream, aExternName); in Load()
585 rStream.SetError(SVSTREAM_FILEFORMAT_ERROR); in Load()
588 return rStream; in Load()
594 SfxMultiRecordReader aVerRec( &rStream, SFX_ITEMPOOL_REC_VERSIONMAP ); in Load()
595 if ( rStream.GetError() ) in Load()
598 return rStream; in Load()
607 rStream >> nVersion >> nHStart >> nHEnd; in Load()
617 rStream >> pMap[n]; in Load()
628 SfxMultiRecordReader aWhichIdsRec( &rStream, SFX_ITEMPOOL_REC_WHICHIDS); in Load()
635 rStream >> nWhich; in Load()
644 rStream >> nVersion; in Load()
645 rStream >> nCount; in Load()
660 sal_uLong nLastPos = rStream.Tell(); in Load()
664 pSecondary->Load( rStream ); in Load()
666 nSecondaryEnd = rStream.Tell(); in Load()
669 rStream.Seek(nLastPos); in Load()
673 readTheItems(rStream, nCount, nVersion, pDefItem, ppArr); in Load()
681 SfxMultiRecordReader aDefsRec( &rStream, SFX_ITEMPOOL_REC_DEFAULTS ); in Load()
688 rStream >> nWhich; in Load()
697 rStream >> nVersion; in Load()
704 ->Create( rStream, nVersion ); in Load()
715 pSecondary->Load( rStream ); in Load()
717 rStream.Seek( nSecondaryEnd ); in Load()
725 return rStream; in Load()
730 SvStream &SfxItemPool::Load1_Impl(SvStream &rStream) in Load1_Impl() argument
736 CHECK_FILEFORMAT( rStream, SFX_ITEMPOOL_TAG_STARTPOOL_4 ); in Load1_Impl()
737 rStream >> pImp->nMajorVer >> pImp->nMinorVer; in Load1_Impl()
743 rStream >> pImp->nLoadingVersion; in Load1_Impl()
744 SfxPoolItem::readByteString(rStream, aExternName); in Load1_Impl()
751 rStream.SetError(SVSTREAM_FILEFORMAT_ERROR); in Load1_Impl()
753 return rStream; in Load1_Impl()
760 rStream.SetError(ERRCODE_IO_WRONGVERSION); in Load1_Impl()
762 return rStream; in Load1_Impl()
766 rStream >> nAttribSize; in Load1_Impl()
769 sal_uLong nStartPos = rStream.Tell(); in Load1_Impl()
770 rStream.SeekRel( nAttribSize ); in Load1_Impl()
771 CHECK_FILEFORMAT( rStream, SFX_ITEMPOOL_TAG_SIZES ); in Load1_Impl()
773 rStream >> nSizeTableLen; in Load1_Impl()
775 rStream.Read( pBuf, nSizeTableLen ); in Load1_Impl()
776 sal_uLong nEndOfSizes = rStream.Tell(); in Load1_Impl()
783 rStream.Seek( nEndOfSizes - sizeof(sal_uInt32) ); in Load1_Impl()
785 rStream >> nVersionMapPos; in Load1_Impl()
786 rStream.Seek( nVersionMapPos ); in Load1_Impl()
789 CHECK_FILEFORMAT( rStream, SFX_ITEMPOOL_TAG_VERSIONMAP ); in Load1_Impl()
791 rStream >> nVerCount; in Load1_Impl()
796 rStream >> nVersion >> nHStart >> nHEnd; in Load1_Impl()
807 rStream >> pMap[n]; in Load1_Impl()
812 rStream.SeekRel( nBytes ); in Load1_Impl()
817 rStream.Seek( nStartPos ); in Load1_Impl()
818 CHECK_FILEFORMAT( rStream, SFX_ITEMPOOL_TAG_ITEMS ); in Load1_Impl()
822 while ( rStream >> nWhich, nWhich ) in Load1_Impl()
828 rStream >> nSlot; in Load1_Impl()
834 rStream >> nVersion >> nCount; in Load1_Impl()
856 sal_uLong nLastPos = rStream.Tell(); in Load1_Impl()
862 rStream.Seek(nEndOfSizes); in Load1_Impl()
863 CHECK_FILEFORMAT_RELEASE( rStream, SFX_ITEMPOOL_TAG_ENDPOOL, pNewArr ); in Load1_Impl()
864 CHECK_FILEFORMAT_RELEASE( rStream, SFX_ITEMPOOL_TAG_ENDPOOL, pNewArr ); in Load1_Impl()
867 pSecondary->Load1_Impl( rStream ); in Load1_Impl()
869 nSecondaryEnd = rStream.Tell(); in Load1_Impl()
872 rStream.Seek(nLastPos); in Load1_Impl()
879 rStream >> nRef; in Load1_Impl()
886 pItem = pDefItem->Create(rStream, nVersion); in Load1_Impl()
903 nLastPos = rStream.Tell(); in Load1_Impl()
914 rStream.Seek( nLastPos ); in Load1_Impl()
968 CHECK_FILEFORMAT( rStream, SFX_ITEMPOOL_TAG_DEFAULTS ); in Load1_Impl()
970 sal_uLong nLastPos = rStream.Tell(); in Load1_Impl()
971 while ( rStream >> nWhich, nWhich ) in Load1_Impl()
977 rStream >> nSlot; in Load1_Impl()
984 rStream >> nVersion; in Load1_Impl()
992 ->Create( rStream, nVersion ); in Load1_Impl()
997 nLastPos = rStream.Tell(); in Load1_Impl()
1002 rStream.Seek( nPos + nSize ); in Load1_Impl()
1006 rStream.Seek(nEndOfSizes); in Load1_Impl()
1007 CHECK_FILEFORMAT( rStream, SFX_ITEMPOOL_TAG_ENDPOOL ); in Load1_Impl()
1008 CHECK_FILEFORMAT( rStream, SFX_ITEMPOOL_TAG_ENDPOOL ); in Load1_Impl()
1013 pSecondary->Load1_Impl( rStream ); in Load1_Impl()
1015 rStream.Seek( nSecondaryEnd ); in Load1_Impl()
1022 return rStream; in Load1_Impl()
1029 SvStream& rStream, // vor einem Surrogat positionierter Stream in LoadSurrogate() argument
1074 rStream >> nSurrogat; in LoadSurrogate()
1156 SvStream& rStream, in StoreSurrogate() argument
1183 rStream << ( bRealSurrogate in StoreSurrogate()
1189 rStream << SFX_ITEMS_NULL; in StoreSurrogate()
1551 FASTBOOL SfxItemPool::StoreItem( SvStream &rStream, const SfxPoolItem &rItem, in StoreItem() argument
1598 rStream << rItem.Which() << nSlotId; in StoreItem()
1599 if ( bDirect || !pPool->StoreSurrogate( rStream, &rItem ) ) in StoreItem()
1601 rStream << nItemVersion; in StoreItem()
1602 rStream << (sal_uInt32) 0L; // Platz fuer Laenge in Bytes in StoreItem()
1603 sal_uLong nIStart = rStream.Tell(); in StoreItem()
1604 rItem.Store(rStream, nItemVersion); in StoreItem()
1605 sal_uLong nIEnd = rStream.Tell(); in StoreItem()
1606 rStream.Seek( nIStart-4 ); in StoreItem()
1607 rStream << (sal_Int32) ( nIEnd-nIStart ); in StoreItem()
1608 rStream.Seek( nIEnd ); in StoreItem()
1617 const SfxPoolItem* SfxItemPool::LoadItem( SvStream &rStream, FASTBOOL bDirect, in LoadItem() argument
1624 rStream >> nWhich >> nSlot; in LoadItem()
1640 rStream >> nSurro; in LoadItem()
1643 rStream >> nVersion >> nLen; in LoadItem()
1644 rStream.SeekRel( nLen ); in LoadItem()
1667 pItem = LoadSurrogate( rStream, nWhich, nSlot, pRefPool ); in LoadItem()
1670 rStream.SeekRel( sizeof(sal_uInt16) ); in LoadItem()
1679 rStream >> nVersion >> nLen; in LoadItem()
1680 sal_uLong nIStart = rStream.Tell(); in LoadItem()
1687 pRefPool->GetDefaultItem(nWhich).Create(rStream, nVersion); in LoadItem()
1698 sal_uLong nIEnd = rStream.Tell(); in LoadItem()
1701 rStream.Seek( nIStart+nLen ); in LoadItem()
1705 rStream.Seek( nIStart+nLen ); in LoadItem()