|
LibreOffice Module framework (master) 1
|
#include <ImageList.hxx>
Public Member Functions | |
| ImageList () | |
| ImageList (const std::vector< OUString > &rNameVector, const OUString &rPrefix) | |
| void | InsertFromHorizontalStrip (const BitmapEx &rBitmapEx, const std::vector< OUString > &rNameVector) |
| BitmapEx | GetAsHorizontalStrip () const |
| sal_uInt16 | GetImageCount () const |
| void | AddImage (const OUString &rImageName, const Image &rImage) |
| void | ReplaceImage (const OUString &rImageName, const Image &rImage) |
| void | RemoveImage (sal_uInt16 nId) |
| Image | GetImage (const OUString &rImageName) const |
| sal_uInt16 | GetImagePos (std::u16string_view rImageName) const |
| sal_uInt16 | GetImageId (sal_uInt16 nPos) const |
| const OUString & | GetImageName (sal_uInt16 nPos) const |
| void | GetImageNames (::std::vector< OUString > &rNames) const |
Private Member Functions | |
| sal_uInt16 | ImplGetImageId (const OUString &rImageName) const |
| void | ImplAddImage (std::u16string_view aPrefix, const OUString &aName, sal_uInt16 nId, const Image &aImage) |
| void | ImplRemoveImage (sal_uInt16 nPos) |
Private Attributes | |
| std::vector< std::unique_ptr< ImageAryData > > | maImages |
| std::unordered_map< OUString, ImageAryData * > | maNameHash |
| OUString | maPrefix |
Definition at line 37 of file ImageList.hxx.
|
explicit |
Definition at line 25 of file ImageList.cxx.
| ImageList::ImageList | ( | const std::vector< OUString > & | rNameVector, |
| const OUString & | rPrefix | ||
| ) |
Definition at line 29 of file ImageList.cxx.
References i, ImplAddImage(), maImages, maPrefix, and SAL_INFO.
| void ImageList::AddImage | ( | const OUString & | rImageName, |
| const Image & | rImage | ||
| ) |
Definition at line 97 of file ImageList.cxx.
References GetImageCount(), GetImagePos(), IMAGELIST_IMAGE_NOTFOUND, ImplAddImage(), maPrefix, and SAL_WARN_IF.
Referenced by framework::ImageManagerImpl::replaceImages().
| BitmapEx ImageList::GetAsHorizontalStrip | ( | ) | const |
Definition at line 42 of file ImageList.cxx.
References BitmapEx::CopyPixel(), BitmapEx::GetSizePixel(), Size::Height(), maImages, nCount, pData, and Size::Width().
Referenced by framework::ImageManagerImpl::implts_storeUserImages().
| Image ImageList::GetImage | ( | const OUString & | rImageName | ) | const |
Definition at line 129 of file ImageList.cxx.
References maNameHash.
Referenced by vcl::CommandImageResolver::getImageFromCommandURL(), framework::ImageManagerImpl::getImages(), and framework::ImageManagerImpl::reload().
| sal_uInt16 ImageList::GetImageCount | ( | ) | const |
Definition at line 137 of file ImageList.cxx.
References maImages.
Referenced by AddImage(), and framework::ImageManagerImpl::implts_storeUserImages().
| sal_uInt16 ImageList::GetImageId | ( | sal_uInt16 | nPos | ) | const |
Definition at line 156 of file ImageList.cxx.
References maImages, and nPos.
Referenced by framework::ImageManagerImpl::removeImages().
| const OUString & ImageList::GetImageName | ( | sal_uInt16 | nPos | ) | const |
Definition at line 161 of file ImageList.cxx.
References maImages, and nPos.
Referenced by framework::ImageManagerImpl::implts_storeUserImages().
| void ImageList::GetImageNames | ( | ::std::vector< OUString > & | rNames | ) | const |
Definition at line 166 of file ImageList.cxx.
References maImages, and SAL_INFO.
Referenced by framework::ImageManagerImpl::getAllImageNames(), framework::ImageManagerImpl::reload(), and framework::ImageManagerImpl::reset().
| sal_uInt16 ImageList::GetImagePos | ( | std::u16string_view | rImageName | ) | const |
Definition at line 142 of file ImageList.cxx.
References i, IMAGELIST_IMAGE_NOTFOUND, maImages, and maName.
Referenced by AddImage(), framework::ImageManagerImpl::hasImage(), framework::ImageManagerImpl::removeImages(), and framework::ImageManagerImpl::replaceImages().
|
private |
Definition at line 180 of file ImageList.cxx.
References aName, maImages, maNameHash, and nId.
Referenced by AddImage(), ImageList(), and InsertFromHorizontalStrip().
|
private |
|
private |
Definition at line 193 of file ImageList.cxx.
References maImages, ImageAryData::maName, maNameHash, and nPos.
Referenced by RemoveImage().
| void ImageList::InsertFromHorizontalStrip | ( | const BitmapEx & | rBitmapEx, |
| const std::vector< OUString > & | rNameVector | ||
| ) |
Definition at line 65 of file ImageList.cxx.
References DBG_ASSERT, BitmapEx::GetSizePixel(), ImplAddImage(), maImages, maNameHash, maPrefix, Size::setWidth(), and Size::Width().
| void ImageList::RemoveImage | ( | sal_uInt16 | nId | ) |
Definition at line 117 of file ImageList.cxx.
References i, ImplRemoveImage(), maImages, mnId, and nId.
Referenced by framework::ImageManagerImpl::removeImages().
| void ImageList::ReplaceImage | ( | const OUString & | rImageName, |
| const Image & | rImage | ||
| ) |
Definition at line 104 of file ImageList.cxx.
References ImplGetImageId(), ImageAryData::maImage, maNameHash, and nId.
Referenced by framework::ImageManagerImpl::replaceImages().
|
private |
Definition at line 66 of file ImageList.hxx.
Referenced by GetAsHorizontalStrip(), GetImageCount(), GetImageId(), GetImageName(), GetImageNames(), GetImagePos(), ImageList(), ImplAddImage(), ImplRemoveImage(), InsertFromHorizontalStrip(), and RemoveImage().
|
private |
Definition at line 67 of file ImageList.hxx.
Referenced by GetImage(), ImplAddImage(), ImplGetImageId(), ImplRemoveImage(), InsertFromHorizontalStrip(), and ReplaceImage().
|
private |
Definition at line 68 of file ImageList.hxx.
Referenced by AddImage(), ImageList(), and InsertFromHorizontalStrip().