LibreOffice Module vcl (master)
1
|
#include <ImageTree.hxx>
Public Member Functions | |
ImageTree () | |
VCL_DLLPUBLIC OUString | getImageUrl (OUString const &name, OUString const &style, OUString const &lang) |
VCL_DLLPUBLIC std::shared_ptr< SvMemoryStream > | getImageStream (OUString const &rName, OUString const &rStyle, OUString const &rLang) |
VCL_DLLPUBLIC bool | loadImage (OUString const &name, OUString const &style, BitmapEx &bitmap, bool localized, const ImageLoadFlags eFlags=ImageLoadFlags::NONE) |
VCL_DLLPUBLIC bool | loadImage (OUString const &name, OUString const &style, BitmapEx &bitmap, bool localized, sal_Int32 nScalePercentage, const ImageLoadFlags eFlags=ImageLoadFlags::NONE) |
VCL_DLLPUBLIC css::uno::Reference< css::container::XNameAccess > const & | getNameAccess () |
VCL_DLLPUBLIC void | shutdown () |
a crude form of life cycle control (called from DeInitVCL; otherwise, if the ImplImageTree singleton were destroyed during exit that would be too late for the destructors of the bitmaps in maIconCache) More... | |
Static Public Member Functions | |
static VCL_DLLPUBLIC ImageTree & | get () |
Private Attributes | |
std::unique_ptr< ImplImageTree > | mpImplImageTree |
Definition at line 50 of file ImageTree.hxx.
ImageTree::ImageTree | ( | ) |
Definition at line 21 of file ImageTree.cxx.
|
static |
Definition at line 16 of file ImageTree.cxx.
Referenced by DeInitVCL(), BitmapEx::loadFromIconTheme(), vcl::bitmap::loadFromName(), vcl::ImageRepository::loadImage(), and ImplImage::loadStockAtScale().
std::shared_ptr< SvMemoryStream > ImageTree::getImageStream | ( | OUString const & | rName, |
OUString const & | rStyle, | ||
OUString const & | rLang | ||
) |
Definition at line 32 of file ImageTree.cxx.
References mpImplImageTree.
OUString ImageTree::getImageUrl | ( | OUString const & | name, |
OUString const & | style, | ||
OUString const & | lang | ||
) |
Definition at line 26 of file ImageTree.cxx.
References mpImplImageTree.
css::uno::Reference< css::container::XNameAccess > const & ImageTree::getNameAccess | ( | ) |
Definition at line 52 of file ImageTree.cxx.
References mpImplImageTree.
bool ImageTree::loadImage | ( | OUString const & | name, |
OUString const & | style, | ||
BitmapEx & | bitmap, | ||
bool | localized, | ||
const ImageLoadFlags | eFlags = ImageLoadFlags::NONE |
||
) |
Definition at line 45 of file ImageTree.cxx.
Referenced by BitmapEx::loadFromIconTheme(), vcl::bitmap::loadFromName(), and vcl::ImageRepository::loadImage().
bool ImageTree::loadImage | ( | OUString const & | name, |
OUString const & | style, | ||
BitmapEx & | bitmap, | ||
bool | localized, | ||
sal_Int32 | nScalePercentage, | ||
const ImageLoadFlags | eFlags = ImageLoadFlags::NONE |
||
) |
Definition at line 37 of file ImageTree.cxx.
References mpImplImageTree.
void ImageTree::shutdown | ( | ) |
a crude form of life cycle control (called from DeInitVCL; otherwise, if the ImplImageTree singleton were destroyed during exit that would be too late for the destructors of the bitmaps in maIconCache)
Definition at line 57 of file ImageTree.cxx.
References mpImplImageTree.
Referenced by DeInitVCL().
|
private |
Definition at line 53 of file ImageTree.hxx.
Referenced by getImageStream(), getImageUrl(), getNameAccess(), loadImage(), and shutdown().