LibreOffice Module vcl (master)
1
|
#include <image.h>
Public Member Functions | |
ImplImage (const BitmapEx &rBitmapEx) | |
ImplImage (const OUString &aStockName) | |
bool | isStock () const |
const OUString & | getStock () const |
Size | getSizePixel () |
get size in co-ordinates not scaled for HiDPI More... | |
BitmapEx const & | getBitmapEx (bool bDisabled=false) |
Legacy - the original bitmap. More... | |
BitmapEx const & | getBitmapExForHiDPI (bool bDisabled=false) |
Taking account of HiDPI scaling. More... | |
bool | isEqual (const ImplImage &ref) const |
bool | isSizeEmpty () const |
Private Member Functions | |
bool | loadStockAtScale (double fScale, BitmapEx &rBitmapEx) |
Private Attributes | |
BitmapChecksum | maBitmapChecksum |
Size | maSizePixel |
if non-empty: cached original size of maStockName else Size of maBitmap More... | |
OUString | maStockName |
If set - defines the bitmap via images.zip*. More... | |
BitmapEx | maBitmapEx |
Original bitmap - or cache of a potentially scaled bitmap. More... | |
BitmapEx | maDisabledBitmapEx |
ImplImage::ImplImage | ( | const BitmapEx & | rBitmapEx | ) |
Definition at line 31 of file ImplImage.cxx.
ImplImage::ImplImage | ( | const OUString & | aStockName | ) |
Definition at line 38 of file ImplImage.cxx.
Legacy - the original bitmap.
non-HiDPI compatibility method.
Definition at line 110 of file ImplImage.cxx.
References BitmapFilter::Filter(), BitmapEx::GetChecksum(), getSizePixel(), BitmapEx::GetSizePixel(), maBitmapChecksum, maBitmapEx, and maDisabledBitmapEx.
Referenced by getBitmapExForHiDPI().
Taking account of HiDPI scaling.
Definition at line 140 of file ImplImage.cxx.
References getBitmapEx(), comphelper::LibreOfficeKit::getDPIScale(), BitmapEx::GetSizePixel(), Size::Height(), isStock(), loadStockAtScale(), maBitmapEx, maSizePixel, and Size::Width().
Size ImplImage::getSizePixel | ( | ) |
get size in co-ordinates not scaled for HiDPI
Definition at line 89 of file ImplImage.cxx.
References BitmapEx::GetSizePixel(), BitmapEx::IsEmpty(), isSizeEmpty(), isStock(), loadStockAtScale(), maBitmapChecksum, maBitmapEx, maDisabledBitmapEx, maSizePixel, maStockName, and SAL_WARN.
Referenced by getBitmapEx().
|
inline |
Definition at line 50 of file image.h.
References maStockName.
bool ImplImage::isEqual | ( | const ImplImage & | ref | ) | const |
Definition at line 130 of file ImplImage.cxx.
References isStock(), maBitmapEx, and maStockName.
|
inline |
Definition at line 63 of file image.h.
Referenced by getSizePixel().
|
inline |
Definition at line 45 of file image.h.
Referenced by getBitmapExForHiDPI(), getSizePixel(), and isEqual().
|
private |
Definition at line 44 of file ImplImage.cxx.
References StyleSettings::DetermineIconTheme(), ImageTree::get(), Application::GetSettings(), AllSettings::GetStyleSettings(), IgnoreScalingFactor, comphelper::LibreOfficeKit::isActive(), maStockName, NONE, SAL_WARN, and u.
Referenced by getBitmapExForHiDPI(), and getSizePixel().
|
private |
Definition at line 28 of file image.h.
Referenced by getBitmapEx(), and getSizePixel().
|
private |
Original bitmap - or cache of a potentially scaled bitmap.
Definition at line 36 of file image.h.
Referenced by getBitmapEx(), getBitmapExForHiDPI(), getSizePixel(), and isEqual().
|
private |
Definition at line 37 of file image.h.
Referenced by getBitmapEx(), and getSizePixel().
|
private |
if non-empty: cached original size of maStockName else Size of maBitmap
Definition at line 30 of file image.h.
Referenced by getBitmapExForHiDPI(), and getSizePixel().
|
private |
If set - defines the bitmap via images.zip*.
Definition at line 32 of file image.h.
Referenced by getSizePixel(), getStock(), isEqual(), and loadStockAtScale().