22#include <osl/diagnose.h>
48 OSL_ENSURE(
nIndex <
Count(),
"Access out of range" );
54 pVirtualDevice->SetOutputSizePixel(rSize);
62 const Point aNull(0, 0);
63 static const sal_uInt32 nLen(8);
65 static const Color aG(0xef, 0xef, 0xef);
67 pVirtualDevice->DrawCheckered(aNull, rSize, nLen, aW, aG);
71 pVirtualDevice->SetBackground(rStyleSettings.
GetFieldColor());
72 pVirtualDevice->Erase();
78 rBitmapEx.
Scale(rSize);
79 pVirtualDevice->DrawBitmapEx(
Point(0, 0), rBitmapEx);
89 pVirtualDevice->DrawBitmapEx(
95 rBitmapEx = pVirtualDevice->GetBitmapEx(
Point(0, 0), rSize);
uno::Reference< container::XNameContainer > SvxUnoXBitmapTable_createInstance(XPropertyList &rTable) noexcept
const StyleSettings & GetStyleSettings() const
static const AllSettings & GetSettings()
bool Scale(const Size &rNewSize, BmpScaleFlag nScaleFlag=BmpScaleFlag::Default)
const Size & GetSizePixel() const
const Graphic & GetGraphic() const
BitmapEx GetBitmapEx(const GraphicConversionParameters &rParameters=GraphicConversionParameters()) const
constexpr tools::Long Height() const
constexpr tools::Long Width() const
bool GetPreviewUsesCheckeredBackground() const
const Color & GetFieldColor() const
const Size & GetListBoxPreviewDefaultPixelSize() const
const GraphicObject & GetGraphicObject() const
virtual BitmapEx CreateBitmapForUI(tools::Long nIndex) override
XBitmapEntry * GetBitmap(tools::Long nIndex) const
virtual css::uno::Reference< css::container::XNameContainer > createInstance() override
BitmapEx GetBitmapForPreview(tools::Long nIndex, const Size &rSize)
BitmapEx CreateBitmap(tools::Long nIndex, const Size &rSize) const
virtual bool Create() override
tools::Long Count() const
XPropertyEntry * Get(tools::Long nIndex) const
constexpr ::Color COL_WHITE(0xFF, 0xFF, 0xFF)