LibreOffice Module vcl (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ImplImage Class Reference

#include <image.h>

Collaboration diagram for ImplImage:
[legend]

Public Member Functions

 ImplImage (const BitmapEx &rBitmapEx)
 
 ImplImage (const OUString &aStockName, Size const &rPreferedSize)
 
bool isStock () 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...
 
Size maPreferedSizePixel
 
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
 

Detailed Description

Definition at line 25 of file image.h.

Constructor & Destructor Documentation

ImplImage::ImplImage ( const BitmapEx rBitmapEx)

Definition at line 31 of file ImplImage.cxx.

ImplImage::ImplImage ( const OUString &  aStockName,
Size const &  rPreferedSize 
)

Definition at line 39 of file ImplImage.cxx.

Member Function Documentation

BitmapEx const & ImplImage::getBitmapEx ( bool  bDisabled = false)

Legacy - the original bitmap.

non-HiDPI compatibility method.

Definition at line 112 of file ImplImage.cxx.

References BitmapFilter::Filter(), BitmapEx::GetChecksum(), getSizePixel(), BitmapEx::GetSizePixel(), maBitmapChecksum, maBitmapEx, and maDisabledBitmapEx.

Referenced by getBitmapExForHiDPI().

BitmapEx const & ImplImage::getBitmapExForHiDPI ( bool  bDisabled = false)
Size ImplImage::getSizePixel ( )

get size in co-ordinates not scaled for HiDPI

Definition at line 91 of file ImplImage.cxx.

References BitmapEx::GetSizePixel(), isSizeEmpty(), isStock(), loadStockAtScale(), maBitmapChecksum, maBitmapEx, maDisabledBitmapEx, maSizePixel, maStockName, and SAL_WARN.

Referenced by getBitmapEx().

OUString ImplImage::getStock ( ) const
inline

Definition at line 51 of file image.h.

References maStockName.

bool ImplImage::isEqual ( const ImplImage ref) const

Definition at line 132 of file ImplImage.cxx.

References isStock(), maBitmapEx, and maStockName.

bool ImplImage::isSizeEmpty ( ) const
inline

Definition at line 64 of file image.h.

Referenced by getSizePixel().

bool ImplImage::isStock ( ) const
inline

Definition at line 46 of file image.h.

Referenced by getBitmapExForHiDPI(), getSizePixel(), and isEqual().

bool ImplImage::loadStockAtScale ( double  fScale,
BitmapEx rBitmapEx 
)
private

Member Data Documentation

BitmapChecksum ImplImage::maBitmapChecksum
private

Definition at line 28 of file image.h.

Referenced by getBitmapEx(), and getSizePixel().

BitmapEx ImplImage::maBitmapEx
private

Original bitmap - or cache of a potentially scaled bitmap.

Definition at line 37 of file image.h.

Referenced by getBitmapEx(), getBitmapExForHiDPI(), getSizePixel(), and isEqual().

BitmapEx ImplImage::maDisabledBitmapEx
private

Definition at line 38 of file image.h.

Referenced by getBitmapEx(), and getSizePixel().

Size ImplImage::maPreferedSizePixel
private

Definition at line 31 of file image.h.

Referenced by loadStockAtScale().

Size ImplImage::maSizePixel
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().

OUString ImplImage::maStockName
private

If set - defines the bitmap via images.zip*.

Definition at line 33 of file image.h.

Referenced by getSizePixel(), getStock(), isEqual(), and loadStockAtScale().


The documentation for this class was generated from the following files: