Lines Matching refs:mpImplData
62 mpImplData( NULL ) in Image()
70 mpImplData( NULL ) in Image()
119 mpImplData( rImage.mpImplData ) in Image()
123 if( mpImplData ) in Image()
124 ++mpImplData->mnRefCount; in Image()
130 mpImplData( NULL ) in Image()
140 mpImplData( NULL ) in Image()
150 mpImplData( NULL ) in Image()
162 mpImplData( NULL ) in Image()
174 mpImplData( NULL ) in Image()
188 if( mpImplData && ( 0 == --mpImplData->mnRefCount ) ) in ~Image()
189 delete mpImplData; in ~Image()
198 mpImplData = new ImplImage; in ImplInit()
199 mpImplData->mnRefCount = 1; in ImplInit()
203 mpImplData->meType = IMAGETYPE_BITMAP; in ImplInit()
204 mpImplData->mpData = new Bitmap( rBmpEx.GetBitmap() ); in ImplInit()
208 mpImplData->meType = IMAGETYPE_IMAGE; in ImplInit()
209 mpImplData->mpData = new ImplImageData( rBmpEx ); in ImplInit()
222 if( mpImplData ) in GetSizePixel()
224 switch( mpImplData->meType ) in GetSizePixel()
227 aRet = static_cast< Bitmap* >( mpImplData->mpData )->GetSizePixel(); in GetSizePixel()
231 aRet = static_cast< ImplImageData* >( mpImplData->mpData )->maBmpEx.GetSizePixel(); in GetSizePixel()
247 if( mpImplData ) in GetBitmapEx()
249 switch( mpImplData->meType ) in GetBitmapEx()
252 aRet = *static_cast< Bitmap* >( mpImplData->mpData ); in GetBitmapEx()
256 aRet = static_cast< ImplImageData* >( mpImplData->mpData )->maBmpEx; in GetBitmapEx()
364 if( rImage.mpImplData ) in operator =()
365 ++rImage.mpImplData->mnRefCount; in operator =()
367 if( mpImplData && ( 0 == --mpImplData->mnRefCount ) ) in operator =()
368 delete mpImplData; in operator =()
370 mpImplData = rImage.mpImplData; in operator =()
384 if( rImage.mpImplData == mpImplData ) in operator ==()
386 else if( !rImage.mpImplData || !mpImplData ) in operator ==()
388 else if( rImage.mpImplData->mpData == mpImplData->mpData ) in operator ==()
390 else if( rImage.mpImplData->meType == mpImplData->meType ) in operator ==()
392 switch( mpImplData->meType ) in operator ==()
395 …bRet = ( *static_cast< Bitmap* >( rImage.mpImplData->mpData ) == *static_cast< Bitmap* >( mpImplDa… in operator ==()
399 …= static_cast< ImplImageData* >( rImage.mpImplData->mpData )->IsEqual( *static_cast< ImplImageData… in operator ==()
416 mpImplData( NULL ), in ImageList()
426 mpImplData( NULL ), in ImageList()
465 mpImplData->AddImage( aName, nId, aEmpty ); in ImageList()
478 mpImplData( NULL ), in ImageList()
488 mpImplData->maPrefix = rPrefix; in ImageList()
493 mpImplData->AddImage( rNameVector[ i ], static_cast< sal_uInt16 >( i ) + 1, BitmapEx() ); in ImageList()
500 mpImplData( rImageList.mpImplData ), in ImageList()
506 if( mpImplData ) in ImageList()
507 ++mpImplData->mnRefCount; in ImageList()
516 if( mpImplData && ( 0 == --mpImplData->mnRefCount ) ) in ~ImageList()
517 delete mpImplData; in ~ImageList()
522 mpImplData = new ImplImageList; in ImplInit()
523 mpImplData->mnRefCount = 1; in ImplInit()
524 mpImplData->maImages.reserve( nItems ); in ImplInit()
525 mpImplData->maImageSize = rSize; in ImplInit()
563 if( mpImplData && mpImplData->mnRefCount > 1 ) in ImplMakeUnique()
565 --mpImplData->mnRefCount; in ImplMakeUnique()
566 mpImplData = new ImplImageList( *mpImplData ) ; in ImplMakeUnique()
574 Size aSize( mpImplData->maImageSize ); in GetAsHorizontalStrip()
583 ImageAryData *pData = mpImplData->maImages[ nIdx ]; in GetAsHorizontalStrip()
585 pData->Load( mpImplData->maPrefix ); in GetAsHorizontalStrip()
588 BitmapEx aTempl = mpImplData->maImages[ 0 ]->maBitmapEx; in GetAsHorizontalStrip()
598 Rectangle aSrcRect( Point( 0, 0 ), mpImplData->maImageSize ); in GetAsHorizontalStrip()
601 Rectangle aDestRect( Point( nIdx * mpImplData->maImageSize.Width(), 0 ), in GetAsHorizontalStrip()
602 mpImplData->maImageSize ); in GetAsHorizontalStrip()
603 ImageAryData *pData = mpImplData->maImages[ nIdx ]; in GetAsHorizontalStrip()
631 mpImplData->AddImage( rNameVector[ nIdx ], nIdx + 1, aBitmap ); in InsertFromHorizontalStrip()
665 ImageAryData *pImg = mpImplData->maNameHash[ rImageName ]; in ImplGetImageId()
680 DBG_ASSERT( rImage.mpImplData, "ImageList::AddImage(): Wrong Size" ); in AddImage()
681 …DBG_ASSERT( !mpImplData || (rImage.GetSizePixel() == mpImplData->maImageSize), "ImageList::AddImag… in AddImage()
683 if( !mpImplData ) in AddImage()
686 mpImplData->AddImage( rtl::OUString(), nId, rImage.GetBitmapEx()); in AddImage()
695 if( !mpImplData ) in AddImage()
698 mpImplData->AddImage( rImageName, GetImageCount() + 1, in AddImage()
724 if( !mpImplData ) in ReplaceImage()
726 mpImplData->AddImage( rImageName, nId, rImage.GetBitmapEx()); in ReplaceImage()
744 mpImplData->maImages[nPosDest] = mpImplData->maImages[nPosSrc]; in ReplaceImage()
764 for( sal_uInt32 i = 0; i < mpImplData->maImages.size(); ++i ) in RemoveImage()
766 if( mpImplData->maImages[ i ]->mnId == nId ) in RemoveImage()
768 mpImplData->RemoveImage( static_cast< sal_uInt16 >( i ) ); in RemoveImage()
794 if( mpImplData ) in GetImage()
797 for( aIter = mpImplData->maImages.begin(); in GetImage()
798 aIter != mpImplData->maImages.end(); aIter++) in GetImage()
803 (*aIter)->Load( mpImplData->maPrefix ); in GetImage()
820 if( mpImplData ) in GetImage()
822 ImageAryData *pImg = mpImplData->maNameHash[ rImageName ]; in GetImage()
827 pImg->Load( mpImplData->maPrefix ); in GetImage()
842 if( mpImplData && ( 0 == --mpImplData->mnRefCount ) ) in Clear()
843 delete mpImplData; in Clear()
845 mpImplData = NULL; in Clear()
854 return mpImplData ? static_cast< sal_uInt16 >( mpImplData->maImages.size() ) : 0; in GetImageCount()
863 if( mpImplData && nId ) in GetImagePos()
865 for( sal_uInt32 i = 0; i < mpImplData->maImages.size(); ++i ) in GetImagePos()
867 if (mpImplData->maImages[ i ]->mnId == nId) in GetImagePos()
886 if( mpImplData && rImageName.getLength() ) in GetImagePos()
888 for( sal_uInt32 i = 0; i < mpImplData->maImages.size(); i++ ) in GetImagePos()
890 if (mpImplData->maImages[i]->maName == rImageName) in GetImagePos()
904 if( mpImplData && (nPos < GetImageCount()) ) in GetImageId()
905 return mpImplData->maImages[ nPos ]->mnId; in GetImageId()
920 if( mpImplData ) in GetImageIds()
922 for( sal_uInt32 i = 0; i < mpImplData->maImages.size(); i++ ) in GetImageIds()
923 rIds.push_back( mpImplData->maImages[i]->mnId ); in GetImageIds()
933 if( mpImplData && (nPos < GetImageCount()) ) in GetImageName()
934 return mpImplData->maImages[ nPos ]->maName; in GetImageName()
949 if( mpImplData ) in GetImageNames()
951 for( sal_uInt32 i = 0; i < mpImplData->maImages.size(); i++ ) in GetImageNames()
953 const rtl::OUString& rName( mpImplData->maImages[ i ]->maName ); in GetImageNames()
968 if( mpImplData ) in GetImageSize()
970 aRet = mpImplData->maImageSize; in GetImageSize()
974 !mpImplData->maImages.empty() ) in GetImageSize()
976 Image aTmp = GetImage( mpImplData->maImages[ 0 ]->mnId ); in GetImageSize()
977 aRet = mpImplData->maImageSize = aTmp.GetSizePixel(); in GetImageSize()
993 if( rImageList.mpImplData ) in operator =()
994 ++rImageList.mpImplData->mnRefCount; in operator =()
996 if( mpImplData && ( 0 == --mpImplData->mnRefCount ) ) in operator =()
997 delete mpImplData; in operator =()
999 mpImplData = rImageList.mpImplData; in operator =()
1013 if( rImageList.mpImplData == mpImplData ) in operator ==()
1015 else if( !rImageList.mpImplData || !mpImplData ) in operator ==()
1018 rImageList.mpImplData->maImageSize == mpImplData->maImageSize ) in operator ==()