30 const OUString& rPrefix)
32 SAL_INFO(
"vcl",
"vcl: ImageList::ImageList(const vector< OUString >& ..." );
34 maImages.reserve( rNameVector.size() );
37 for(
size_t i = 0;
i < rNameVector.size(); ++
i )
54 for (sal_uInt16 nIdx = 0; nIdx <
nCount; nIdx++)
59 aResult.
CopyPixel( aDestRect, aSrcRect, &aTmp);
66 const std::vector< OUString > &rNameVector )
68 sal_uInt16 nItems = sal::static_int_cast< sal_uInt16 >( rNameVector.size() );
75 "ImageList::InsertFromHorizontalStrip - very odd size");
82 for (sal_uInt16 nIdx = 0; nIdx < nItems; nIdx++)
94 return it->second->mnId;
134 return it->second->maImage;
139 return static_cast< sal_uInt16
>(
maImages.size() );
144 if( !rImageName.empty() )
149 return static_cast< sal_uInt16
>(
i );
168 SAL_INFO(
"vcl",
"vcl: ImageList::GetImageNames" );
170 rNames = std::vector< OUString >();
174 const OUString& rName( pImage->maName );
175 if( !rName.isEmpty())
176 rNames.push_back( rName );
181 sal_uInt16 nId,
const Image &aImage )
183 Image aInsert = aImage;
185 aInsert =
Image( OUString::Concat(
"private:graphicrepository/") + aPrefix +
aName );
189 if( !
aName.isEmpty() )
196 if( !pImg->
maName.isEmpty() )
bool CopyPixel(const tools::Rectangle &rRectDst, const tools::Rectangle &rRectSrc, const BitmapEx *pBmpExSrc)
const Size & GetSizePixel() const
void AddImage(const OUString &rImageName, const Image &rImage)
void ReplaceImage(const OUString &rImageName, const Image &rImage)
sal_uInt16 ImplGetImageId(const OUString &rImageName) const
sal_uInt16 GetImagePos(std::u16string_view rImageName) const
Image GetImage(const OUString &rImageName) const
sal_uInt16 GetImageId(sal_uInt16 nPos) const
const OUString & GetImageName(sal_uInt16 nPos) const
std::unordered_map< OUString, ImageAryData * > maNameHash
BitmapEx GetAsHorizontalStrip() const
void ImplAddImage(std::u16string_view aPrefix, const OUString &aName, sal_uInt16 nId, const Image &aImage)
void GetImageNames(::std::vector< OUString > &rNames) const
void RemoveImage(sal_uInt16 nId)
void ImplRemoveImage(sal_uInt16 nPos)
std::vector< std::unique_ptr< ImageAryData > > maImages
void InsertFromHorizontalStrip(const BitmapEx &rBitmapEx, const std::vector< OUString > &rNameVector)
sal_uInt16 GetImageCount() const
constexpr tools::Long Height() const
void setWidth(tools::Long nWidth)
constexpr tools::Long Width() const
#define DBG_ASSERT(sCon, aError)
#define IMAGELIST_IMAGE_NOTFOUND
#define SAL_WARN_IF(condition, area, stream)
#define SAL_INFO(area, stream)
std::unique_ptr< sal_Int32[]> pData