Lines Matching refs:rSt

3307 sal_Bool SvxMSDffManager::SeekToShape( SvStream& rSt, void* /* pClientData */, sal_uInt32 nId ) con…  in SeekToShape()  argument
3312 sal_uInt32 nMerk = rSt.Tell(); in SeekToShape()
3319 rSt.Seek( nOfs ); in SeekToShape()
3321 rSt >> aEscherF002Hd; in SeekToShape()
3324 while ( ( rSt.GetError() == 0 ) && ( rSt.Tell() < nEscherF002End ) ) in SeekToShape()
3326 rSt >> aEscherObjListHd; in SeekToShape()
3328 aEscherObjListHd.SeekToEndOfRecord( rSt ); in SeekToShape()
3332 if ( SeekToRec( rSt, DFF_msofbtSp, aEscherObjListHd.GetRecEndFilePos(), &aShapeHd ) ) in SeekToShape()
3334 rSt >> nShapeId; in SeekToShape()
3337 aEscherObjListHd.SeekToBegOfRecord( rSt ); in SeekToShape()
3342 aEscherObjListHd.SeekToEndOfRecord( rSt ); in SeekToShape()
3348 rSt.Seek( nMerk ); in SeekToShape()
3353 FASTBOOL SvxMSDffManager::SeekToRec( SvStream& rSt, sal_uInt16 nRecId, sal_uLong nMaxFilePos, DffRe… in SeekToRec() argument
3356 sal_uLong nFPosMerk = rSt.Tell(); // store FilePos to restore it later if necessary in SeekToRec()
3360 rSt >> aHd; in SeekToRec()
3364 if ( rSt.GetError() || ( aHd.GetRecEndFilePos() > nMaxFilePos ) ) in SeekToRec()
3380 aHd.SeekToBegOfRecord( rSt ); in SeekToRec()
3384 aHd.SeekToEndOfRecord( rSt ); in SeekToRec()
3386 while ( rSt.GetError() == 0 && rSt.Tell() < nMaxFilePos && !bRet ); in SeekToRec()
3388 rSt.Seek( nFPosMerk ); // restore original FilePos in SeekToRec()
3922 SdrObject* SvxMSDffManager::ImportGraphic( SvStream& rSt, SfxItemSet& rSet, const DffObjData& rObjD… in ImportGraphic() argument
3937 if( SeekToContent( DFF_Prop_pibName, rSt ) ) in ImportGraphic()
3938 MSDFFReadZString( rSt, aFileName, GetPropertyValue( DFF_Prop_pibName ), sal_True ); in ImportGraphic()
3950 rObjData.rSpHd.SeekToEndOfRecord( rSt ); in ImportGraphic()
3952 rSt >> aHd; in ImportGraphic()
3963 rSt.SeekRel(nSkip); in ImportGraphic()
3964 if (0 == rSt.GetError()) in ImportGraphic()
3965 bGrfRead = GetBLIPDirect( rSt, aGraf, &aVisArea ); in ImportGraphic()
4171 SdrObject* SvxMSDffManager::ImportObj( SvStream& rSt, void* pClientData, in ImportObj() argument
4176 rSt >> aObjHd; in ImportObj()
4179 …pRet = ImportGroup( aObjHd, rSt, pClientData, rClientRect, rGlobalChildRect, nCalledByGroup, pShap… in ImportObj()
4183 …pRet = ImportShape( aObjHd, rSt, pClientData, rClientRect, rGlobalChildRect, nCalledByGroup, pShap… in ImportObj()
4185 aObjHd.SeekToBegOfRecord( rSt ); // FilePos restaurieren in ImportObj()
4189 SdrObject* SvxMSDffManager::ImportGroup( const DffRecordHeader& rHd, SvStream& rSt, void* pClientDa… in ImportGroup() argument
4198 rHd.SeekToContent( rSt ); in ImportGroup()
4200 rSt >> aRecHd; in ImportGroup()
4206 …pRet = ImportShape( aRecHd, rSt, pClientData, rClientRect, rGlobalChildRect, nCalledByGroup + 1, p… in ImportGroup()
4216 aGlobalChildRect = GetGlobalChildAnchor( rHd, rSt, aClientRect ); in ImportGroup()
4233 aRecHd.SeekToEndOfRecord( rSt ); in ImportGroup()
4234 while ( ( rSt.GetError() == 0 ) && ( rSt.Tell() < rHd.GetRecEndFilePos() ) ) in ImportGroup()
4237 rSt >> aRecHd2; in ImportGroup()
4241 …GetGroupAnchors( aRecHd2, rSt, aGroupClientAnchor, aGroupChildAnchor, aClientRect, aGlobalChildRec… in ImportGroup()
4242 aRecHd2.SeekToBegOfRecord( rSt ); in ImportGroup()
4244 …SdrObject* pTmp = ImportGroup( aRecHd2, rSt, pClientData, aGroupClientAnchor, aGroupChildAnchor, n… in ImportGroup()
4254 aRecHd2.SeekToBegOfRecord( rSt ); in ImportGroup()
4256 …SdrObject* pTmp = ImportShape( aRecHd2, rSt, pClientData, aClientRect, aGlobalChildRect, nCalledBy… in ImportGroup()
4264 aRecHd2.SeekToEndOfRecord( rSt ); in ImportGroup()
4290 SdrObject* SvxMSDffManager::ImportShape( const DffRecordHeader& rHd, SvStream& rSt, void* pClientDa… in ImportShape() argument
4299 rHd.SeekToBegOfRecord( rSt ); in ImportShape()
4302 maShapeRecords.Consume( rSt, sal_False ); in ImportShape()
4303 if( maShapeRecords.SeekToContent( rSt, in ImportShape()
4312 rSt >> nPID; in ImportShape()
4313 if ( rSt.GetError() != 0 ) in ImportShape()
4315 rSt >> nUDData; in ImportShape()
4316 if ( rSt.GetError() != 0 ) in ImportShape()
4326 aObjData.bShapeType = maShapeRecords.SeekToContent( rSt, DFF_msofbtSp, SEEK_FROM_BEGINNING ); in ImportShape()
4329 rSt >> aObjData.nShapeId in ImportShape()
4352 aObjData.bOpt = maShapeRecords.SeekToContent( rSt, DFF_msofbtOPT, SEEK_FROM_CURRENT_AND_RESTART ); in ImportShape()
4355 maShapeRecords.Current()->SeekToBegOfRecord( rSt ); in ImportShape()
4357 ReadPropSet( rSt, pClientData, (sal_uInt32)aObjData.eShapeType ); in ImportShape()
4359 ReadPropSet( rSt, pClientData ); in ImportShape()
4367 …aObjData.bOpt2 = maShapeRecords.SeekToContent( rSt, DFF_msofbtUDefProp, SEEK_FROM_CURRENT_AND_REST… in ImportShape()
4370 maShapeRecords.Current()->SeekToBegOfRecord( rSt ); in ImportShape()
4372 pSecPropSet->ReadPropSet( rSt, NULL ); in ImportShape()
4375 …aObjData.bChildAnchor = maShapeRecords.SeekToContent( rSt, DFF_msofbtChildAnchor, SEEK_FROM_CURREN… in ImportShape()
4379 rSt >> l >> o >> r >> u; in ImportShape()
4401 …aObjData.bClientAnchor = maShapeRecords.SeekToContent( rSt, DFF_msofbtClientAnchor, SEEK_FROM_CURR… in ImportShape()
4403 ProcessClientAnchor2( rSt, *maShapeRecords.Current(), pClientData, aObjData ); in ImportShape()
4455 … pRet = ImportGraphic( rSt, aSet, aObjData ); // SJ: #68396# is no longer true (fixed in ppt2000) in ImportShape()
4456 ApplyAttributes( rSt, aSet, aObjData ); in ImportShape()
4466 ApplyAttributes( rSt, aSet, aObjData ); in ImportShape()
4474 ApplyAttributes( rSt, aSet, aObjData ); in ImportShape()
4490 if ( SeekToContent( DFF_Prop_gtextFont, rSt ) ) in ImportShape()
4495 MSDFFReadZString( rSt, aFontName, GetPropertyValue( DFF_Prop_gtextFont ), sal_True ); in ImportShape()
4516 if ( SeekToContent( DFF_Prop_gtextUNICODE, rSt ) ) in ImportShape()
4518 MSDFFReadZString( rSt, aObjectText, GetPropertyValue( DFF_Prop_gtextUNICODE ), sal_True ); in ImportShape()
4828 ApplyAttributes( rSt, aSet, aObjData ); in ImportShape()
4942 ::rtl::OUString aObjName = GetPropertyString( DFF_Prop_wzName, rSt ); in ImportShape()
4948 pRet = ProcessObj( rSt, aObjData, pClientData, aTextRect, pRet); in ImportShape()
4962 if ( pRet && SeekToContent( DFF_Prop_wzDescription, rSt ) ) in ImportShape()
4965 MSDFFReadZString( rSt, aAltText, GetPropertyValue( DFF_Prop_wzDescription ), sal_True ); in ImportShape()
4972 Rectangle SvxMSDffManager::GetGlobalChildAnchor( const DffRecordHeader& rHd, SvStream& rSt, Rectang… in GetGlobalChildAnchor() argument
4975 rHd.SeekToContent( rSt ); in GetGlobalChildAnchor()
4977 while ( ( rSt.GetError() == 0 ) && ( rSt.Tell() < rHd.GetRecEndFilePos() ) ) in GetGlobalChildAnchor()
4980 rSt >> aShapeHd; in GetGlobalChildAnchor()
4986 rSt >> aShapeHd2; in GetGlobalChildAnchor()
4987 while( ( rSt.GetError() == 0 ) && ( rSt.Tell() < aShapeHd2.GetRecEndFilePos() ) ) in GetGlobalChildAnchor()
4990 rSt >> aShapeAtom; in GetGlobalChildAnchor()
4999 rSt >> l >> t >> r >> b; in GetGlobalChildAnchor()
5004 rSt >> ts >> ls >> rs >> bs; // etwas seltsame Koordinatenreihenfolge ... in GetGlobalChildAnchor()
5027 rSt >> l >> o >> r >> u; in GetGlobalChildAnchor()
5036 aShapeAtom.SeekToEndOfRecord( rSt ); in GetGlobalChildAnchor()
5039 aShapeHd.SeekToEndOfRecord( rSt ); in GetGlobalChildAnchor()
5044 void SvxMSDffManager::GetGroupAnchors( const DffRecordHeader& rHd, SvStream& rSt, in GetGroupAnchors() argument
5049 rHd.SeekToContent( rSt ); in GetGroupAnchors()
5051 while ( ( rSt.GetError() == 0 ) && ( rSt.Tell() < rHd.GetRecEndFilePos() ) ) in GetGroupAnchors()
5053 rSt >> aShapeHd; in GetGroupAnchors()
5059 rSt >> aShapeHd2; in GetGroupAnchors()
5060 while( ( rSt.GetError() == 0 ) && ( rSt.Tell() < aShapeHd2.GetRecEndFilePos() ) ) in GetGroupAnchors()
5063 rSt >> aShapeAtom; in GetGroupAnchors()
5067 rSt >> l >> o >> r >> u; in GetGroupAnchors()
5096 aShapeAtom.SeekToEndOfRecord( rSt ); in GetGroupAnchors()
5099 aShapeHd.SeekToEndOfRecord( rSt ); in GetGroupAnchors()
5103 SdrObject* SvxMSDffManager::ProcessObj(SvStream& rSt, in ProcessObj() argument
5123 rObjData.bClientAnchor = maShapeRecords.SeekToContent( rSt, in ProcessObj()
5127 ProcessClientAnchor( rSt, in ProcessObj()
5131 rObjData.bClientData = maShapeRecords.SeekToContent( rSt, in ProcessObj()
5135 ProcessClientData( rSt, in ProcessObj()
5141 if( maShapeRecords.SeekToContent( rSt, in ProcessObj()
5151 rSt >> nPID; in ProcessObj()
5152 if ( rSt.GetError() != 0 ) in ProcessObj()
5154 rSt >> nUDData; in ProcessObj()
5163 if ( rSt.GetError() != 0 ) in ProcessObj()
5314 ApplyAttributes( rSt, aSet, rObjData ); in ProcessObj()
5478 ApplyAttributes( rSt, aSet, rObjData ); in ProcessObj()
5517 if (SeekToContent(DFF_Prop_pWrapPolygonVertices, rSt)) in ProcessObj()
5521 rSt >> nNumElemVert >> nNumElemMemVert >> nElemSizeVert; in ProcessObj()
5529 rSt >> nX >> nY; in ProcessObj()
5533 rSt >> nSmallX >> nSmallY; in ProcessObj()
5826 void SvxMSDffManager::SetDgContainer( SvStream& rSt ) in SetDgContainer() argument
5828 sal_uInt32 nFilePos = rSt.Tell(); in SetDgContainer()
5830 rSt >> aDgContHd; in SetDgContainer()
5832 if ( SeekToRec( rSt, DFF_msofbtDg, aDgContHd.GetRecEndFilePos() ) ) in SetDgContainer()
5835 rSt >> aRecHd; in SetDgContainer()
5838 rSt.Seek( nFilePos ); in SetDgContainer()
6023 void SvxMSDffManager::GetDrawingGroupContainerData( SvStream& rSt, sal_uLong nLenDgg ) in GetDrawingGroupContainerData() argument
6035 if(!this->ReadCommonRecordHeader( rSt, nVer, nInst, nFbt, nLength)) return; in GetDrawingGroupContainerData()
6041 rSt.SeekRel( nLength ); in GetDrawingGroupContainerData()
6059 if(!this->ReadCommonRecordHeader( rSt, nVer, nInst, nFbt, nLength)) return; in GetDrawingGroupContainerData()
6070 rSt.SeekRel(nSkipBLIPLen); in GetDrawingGroupContainerData()
6071 rSt >> nBLIPLen; in GetDrawingGroupContainerData()
6076 rSt >> nBLIPPos; in GetDrawingGroupContainerData()
6084 rSt >> nBLIPPos; in GetDrawingGroupContainerData()
6085 bOk = rSt.GetError() == 0; in GetDrawingGroupContainerData()
6110 nBLIPPos = rSt.Tell() + 4; in GetDrawingGroupContainerData()
6115 nBLIPPos = Calc_nBLIPPos(nBLIPPos, rSt.Tell()); in GetDrawingGroupContainerData()
6127 rSt.SeekRel( nLength ); in GetDrawingGroupContainerData()
6136 void SvxMSDffManager::GetDrawingContainerData( SvStream& rSt, sal_uLong nLenDg, in GetDrawingContainerData() argument
6148 if(!this->ReadCommonRecordHeader( rSt, nVer, nInst, nFbt, nLength)) return; in GetDrawingContainerData()
6153 … if(!this->GetShapeGroupContainerData( rSt, nLength, sal_True, nDrawingContainerId )) return; in GetDrawingContainerData()
6159 if(!this->GetShapeContainerData( rSt, nLength, ULONG_MAX, nDrawingContainerId )) return; in GetDrawingContainerData()
6162 rSt.SeekRel( nLength ); in GetDrawingContainerData()
6168 sal_Bool SvxMSDffManager::GetShapeGroupContainerData( SvStream& rSt, in GetShapeGroupContainerData() argument
6174 long nStartShapeGroupCont = rSt.Tell(); in GetShapeGroupContainerData()
6182 if( !this->ReadCommonRecordHeader( rSt, nVer, nInst, nFbt, nLength ) ) in GetShapeGroupContainerData()
6189 if ( !this->GetShapeContainerData( rSt, nLength, nGroupOffs, nDrawingContainerId ) ) in GetShapeGroupContainerData()
6197 if ( !this->GetShapeGroupContainerData( rSt, nLength, sal_False, nDrawingContainerId ) ) in GetShapeGroupContainerData()
6201 rSt.SeekRel( nLength ); in GetShapeGroupContainerData()
6206 rSt.Seek( nStartShapeGroupCont + nLenShapeGroupCont ); in GetShapeGroupContainerData()
6210 sal_Bool SvxMSDffManager::GetShapeContainerData( SvStream& rSt, in GetShapeContainerData() argument
6216 long nStartShapeCont = rSt.Tell(); in GetShapeContainerData()
6244 if(!this->ReadCommonRecordHeader( rSt, nVer, nInst, nFbt, nLength)) return sal_False; in GetShapeContainerData()
6251 rSt >> aInfo.nShapeId; in GetShapeContainerData()
6252 rSt.SeekRel( nLength - 4 ); in GetShapeContainerData()
6264 long nStartShapePropTbl = rSt.Tell(); in GetShapeContainerData()
6268 rSt >> nPropId in GetShapeContainerData()
6391 rSt.Seek( nStartShapePropTbl + nLenShapePropTbl ); in GetShapeContainerData()
6396 rSt >> aInfo.nTxBxComp; in GetShapeContainerData()
6409 rSt.SeekRel( nLength ); in GetShapeContainerData()
6439 rSt.Seek( nStartShapeCont + nLenShapeCont ); in GetShapeContainerData()
6762 sal_Bool SvxMSDffManager::ReadCommonRecordHeader( SvStream& rSt, in ReadCommonRecordHeader() argument
6769 rSt >> nTmp >> rFbt >> rLength; in ReadCommonRecordHeader()
6772 if ( rLength > ( SAL_MAX_UINT32 - rSt.Tell() ) ) // preserving overflow, optimal would be to check in ReadCommonRecordHeader()
6773 rSt.SetError( SVSTREAM_FILEFORMAT_ERROR ); // the record size against the parent header in ReadCommonRecordHeader()
6774 return rSt.GetError() == 0; in ReadCommonRecordHeader()