Lines Matching refs:rObj

66 				GraphicID( const GraphicObject& rObj );
81 GraphicID::GraphicID( const GraphicObject& rObj ) in GraphicID() argument
83 const Graphic& rGraphic = rObj.GetGraphic(); in GraphicID()
181 sal_Bool ImplInit( const GraphicObject& rObj );
182 sal_Bool ImplMatches( const GraphicObject& rObj ) const { return( GraphicID( rObj ) == maID ); } in ImplMatches()
187 GraphicCacheEntry( const GraphicObject& rObj );
192 void AddGraphicObjectReference( const GraphicObject& rObj, Graphic& rSubstitute );
193 sal_Bool ReleaseGraphicObjectReference( const GraphicObject& rObj );
195 sal_Bool HasGraphicObjectReference( const GraphicObject& rObj );
198 void GraphicObjectWasSwappedOut( const GraphicObject& rObj );
199 sal_Bool FillSwappedGraphicObject( const GraphicObject& rObj, Graphic& rSubstitute );
200 void GraphicObjectWasSwappedIn( const GraphicObject& rObj );
205 GraphicCacheEntry::GraphicCacheEntry( const GraphicObject& rObj ) : in GraphicCacheEntry() argument
206 maID ( rObj ), in GraphicCacheEntry()
212 mbSwappedAll = !ImplInit(rObj); in GraphicCacheEntry()
213 maGraphicObjectList.Insert( (void*) &rObj, LIST_APPEND ); in GraphicCacheEntry()
229 sal_Bool GraphicCacheEntry::ImplInit( const GraphicObject& rObj ) in ImplInit() argument
233 if( !rObj.IsSwappedOut() ) in ImplInit()
235 const Graphic& rGraphic = rObj.GetGraphic(); in ImplInit()
347 void GraphicCacheEntry::AddGraphicObjectReference( const GraphicObject& rObj, Graphic& rSubstitute ) in AddGraphicObjectReference() argument
350 mbSwappedAll = !ImplInit( rObj ); in AddGraphicObjectReference()
353 maGraphicObjectList.Insert( (void*) &rObj, LIST_APPEND ); in AddGraphicObjectReference()
358 sal_Bool GraphicCacheEntry::ReleaseGraphicObjectReference( const GraphicObject& rObj ) in ReleaseGraphicObjectReference() argument
364 if( &rObj == (GraphicObject*) pObj ) in ReleaseGraphicObjectReference()
376 sal_Bool GraphicCacheEntry::HasGraphicObjectReference( const GraphicObject& rObj ) in HasGraphicObjectReference() argument
381 if( &rObj == (GraphicObject*) pObj ) in HasGraphicObjectReference()
418 sal_Bool GraphicCacheEntry::FillSwappedGraphicObject( const GraphicObject& rObj, Graphic& rSubstitu… in FillSwappedGraphicObject() argument
422 if( !mbSwappedAll && rObj.IsSwappedOut() ) in FillSwappedGraphicObject()
435 void GraphicCacheEntry::GraphicObjectWasSwappedIn( const GraphicObject& rObj ) in GraphicObjectWasSwappedIn() argument
438 mbSwappedAll = !ImplInit( rObj ); in GraphicObjectWasSwappedIn()
462 const GraphicObject& rObj, const GraphicAttr& rAttr );
468 const GraphicObject& rObj, const GraphicAttr& rAttr, in GraphicDisplayCacheEntry() argument
473 mnCacheSize( GetNeededSize( pOut, rPt, rSz, rObj, rAttr ) ), in GraphicDisplayCacheEntry()
481 const GraphicObject& rObj, const GraphicAttr& rAttr, in GraphicDisplayCacheEntry() argument
486 mnCacheSize( GetNeededSize( pOut, rPt, rSz, rObj, rAttr ) ), in GraphicDisplayCacheEntry()
527 const GraphicObject& rObj, const GraphicAttr& rAttr ) in GetNeededSize() argument
529 const Graphic& rGraphic = rObj.GetGraphic(); in GetNeededSize()
547 if( rObj.IsTransparent() || ( rAttr.GetRotation() % 3600 ) ) in GetNeededSize()
622 void GraphicCache::AddGraphicObject( const GraphicObject& rObj, Graphic& rSubstitute, in AddGraphicObject() argument
627 if( !rObj.IsSwappedOut() && in AddGraphicObject()
628 …( pID || ( pCopyObj && ( pCopyObj->GetType() != GRAPHIC_NONE ) ) || ( rObj.GetType() != GRAPHIC_NO… in AddGraphicObject()
638 pEntry->AddGraphicObjectReference( rObj, rSubstitute ); in AddGraphicObject()
655 apID.reset( new GraphicID( rObj ) ); in AddGraphicObject()
679 pEntry->AddGraphicObjectReference( rObj, rSubstitute ); in AddGraphicObject()
686 maGraphicCache.Insert( new GraphicCacheEntry( rObj ), LIST_APPEND ); in AddGraphicObject()
695 pEntry->AddGraphicObjectReference( rObj, rSubstitute ); in AddGraphicObject()
707 maGraphicCache.Insert( new GraphicCacheEntry( rObj ), LIST_APPEND ); in AddGraphicObject()
712 void GraphicCache::ReleaseGraphicObject( const GraphicObject& rObj ) in ReleaseGraphicObject() argument
720 bRemoved = pEntry->ReleaseGraphicObjectReference( rObj ); in ReleaseGraphicObject()
757 void GraphicCache::GraphicObjectWasSwappedOut( const GraphicObject& rObj ) in GraphicObjectWasSwappedOut() argument
761 GraphicCacheEntry* pEntry = ImplGetCacheEntry( rObj ); in GraphicObjectWasSwappedOut()
764 pEntry->GraphicObjectWasSwappedOut( rObj ); in GraphicObjectWasSwappedOut()
769 sal_Bool GraphicCache::FillSwappedGraphicObject( const GraphicObject& rObj, Graphic& rSubstitute ) in FillSwappedGraphicObject() argument
771 GraphicCacheEntry* pEntry = ImplGetCacheEntry( rObj ); in FillSwappedGraphicObject()
776 return pEntry->FillSwappedGraphicObject( rObj, rSubstitute ); in FillSwappedGraphicObject()
781 void GraphicCache::GraphicObjectWasSwappedIn( const GraphicObject& rObj ) in GraphicObjectWasSwappedIn() argument
783 GraphicCacheEntry* pEntry = ImplGetCacheEntry( rObj ); in GraphicObjectWasSwappedIn()
789 ReleaseGraphicObject( rObj ); in GraphicObjectWasSwappedIn()
790 AddGraphicObject( rObj, (Graphic&) rObj.GetGraphic(), NULL, NULL ); in GraphicObjectWasSwappedIn()
793 pEntry->GraphicObjectWasSwappedIn( rObj ); in GraphicObjectWasSwappedIn()
871 const GraphicObject& rObj, const GraphicAttr& rAttr ) const in IsDisplayCacheable() argument
873 return( GraphicDisplayCacheEntry::GetNeededSize( pOut, rPt, rSz, rObj, rAttr ) <= in IsDisplayCacheable()
880 const GraphicObject& rObj, const GraphicAttr& rAttr ) const in IsInDisplayCache() argument
884 const GraphicCacheEntry* pCacheEntry = ( (GraphicCache*) this )->ImplGetCacheEntry( rObj ); in IsInDisplayCache()
900 ByteString GraphicCache::GetUniqueID( const GraphicObject& rObj ) const in GetUniqueID()
903 GraphicCacheEntry* pEntry = ( (GraphicCache*) this )->ImplGetCacheEntry( rObj ); in GetUniqueID()
910 pEntry = ( (GraphicCache*) this )->ImplGetCacheEntry( rObj ); in GetUniqueID()
921 const GraphicObject& rObj, const GraphicAttr& rAttr, in CreateDisplayCacheObj() argument
924 …const sal_uLong nNeededSize = GraphicDisplayCacheEntry::GetNeededSize( pOut, rPt, rSz, rObj, rAttr… in CreateDisplayCacheObj()
932 GraphicDisplayCacheEntry* pNewEntry = new GraphicDisplayCacheEntry( ImplGetCacheEntry( rObj ), in CreateDisplayCacheObj()
933 pOut, rPt, rSz, rObj, rAttr, rBmpEx ); in CreateDisplayCacheObj()
955 const GraphicObject& rObj, const GraphicAttr& rAttr, in CreateDisplayCacheObj() argument
958 …const sal_uLong nNeededSize = GraphicDisplayCacheEntry::GetNeededSize( pOut, rPt, rSz, rObj, rAttr… in CreateDisplayCacheObj()
966 GraphicDisplayCacheEntry* pNewEntry = new GraphicDisplayCacheEntry( ImplGetCacheEntry( rObj ), in CreateDisplayCacheObj()
967 pOut, rPt, rSz, rObj, rAttr, rMtf ); in CreateDisplayCacheObj()
989 const GraphicObject& rObj, const GraphicAttr& rAttr ) in DrawDisplayCacheObj() argument
993 const GraphicCacheEntry* pCacheEntry = ImplGetCacheEntry( rObj ); in DrawDisplayCacheObj()
1059 GraphicCacheEntry* GraphicCache::ImplGetCacheEntry( const GraphicObject& rObj ) in ImplGetCacheEntry() argument
1064 if( ( (GraphicCacheEntry*) pObj )->HasGraphicObjectReference( rObj ) ) in ImplGetCacheEntry()