23#include <svx/strings.hrc>
27#include <rtl/ustrbuf.hxx>
30#include <osl/diagnose.h>
69 OUStringBuffer
aStr(
SvxResId(RID_SVXSTR_GRADIENT) +
" 1");
70 sal_Int32 nLen =
aStr.getLength() - 1;
93 OSL_ENSURE(
nIndex <
Count(),
"OOps, access out of range (!)");
117 static_cast<double>(rGradient.
GetBorder()) * 0.01,
118 static_cast<double>(rGradient.
GetXOffset()) * 0.01,
119 static_cast<double>(rGradient.
GetYOffset()) * 0.01,
126 std::move(aFillGradient)));
131 std::move(aRectangle),
138 pVirtualDevice->SetOutputSizePixel(rSize);
140 ? DrawModeFlags::SettingsLine | DrawModeFlags::SettingsFill | DrawModeFlags::SettingsText | DrawModeFlags::SettingsGradient
141 : DrawModeFlags::Default);
146 aNewViewInformation2D));
150 aSequence[0] = aGradientPrimitive;
151 aSequence[1] = aBlackRectanglePrimitive;
153 pProcessor2D->process(aSequence);
154 pProcessor2D.reset();
157 aRetval = pVirtualDevice->GetBitmapEx(
Point(0, 0), pVirtualDevice->GetOutputSizePixel());
uno::Reference< container::XNameContainer > SvxUnoXGradientTable_createInstance(XPropertyList &rTable) noexcept
const StyleSettings & GetStyleSettings() const
static const AllSettings & GetSettings()
basegfx::BColor getBColor() const
constexpr tools::Long Height() const
constexpr tools::Long Width() const
bool GetHighContrastMode() const
const Size & GetListBoxPreviewDefaultPixelSize() const
const basegfx::BGradient & GetGradient() const
void Replace(std::unique_ptr< XGradientEntry > pEntry, tools::Long nIndex)
virtual ~XGradientList() override
XGradientList(const OUString &rPath, const OUString &rReferer)
virtual bool Create() override
BitmapEx GetBitmapForPreview(tools::Long nIndex, const Size &rSize)
BitmapEx CreateBitmap(tools::Long nIndex, const Size &rSize) const
XGradientEntry * GetGradient(tools::Long nIndex) const
virtual css::uno::Reference< css::container::XNameContainer > createInstance() override
virtual BitmapEx CreateBitmapForUI(tools::Long nIndex) override
tools::Long Count() const
void Insert(std::unique_ptr< XPropertyEntry > pEntry, tools::Long nIndex=std::numeric_limits< tools::Long >::max())
void Replace(std::unique_ptr< XPropertyEntry > pEntry, tools::Long nIndex)
XPropertyEntry * Get(tools::Long nIndex) const
void blendToIntensity(double fStartIntensity, double fEndIntensity, const BColor &rBlendColor)
sal_uInt16 GetBorder() const
sal_uInt16 GetStartIntens() const
sal_uInt16 GetXOffset() const
const basegfx::BColorStops & GetColorStops() const
sal_uInt16 GetEndIntens() const
Degree10 GetAngle() const
css::awt::GradientStyle GetGradientStyle() const
sal_uInt16 GetYOffset() const
constexpr ::Color COL_GREEN(0x00, 0x80, 0x00)
constexpr ::Color COL_MAGENTA(0x80, 0x00, 0x80)
constexpr ::Color COL_YELLOW(0xFF, 0xFF, 0x00)
constexpr ::Color COL_RED(0x80, 0x00, 0x00)
constexpr ::Color COL_BLUE(0x00, 0x00, 0x80)
OUString SvxResId(TranslateId aId)
B2DPolygon createPolygonFromRect(const B2DRectangle &rRect, double fRadiusX, double fRadiusY)
std::unique_ptr< BaseProcessor2D > createPixelProcessor2DFromOutputDevice(OutputDevice &rTargetOutDev, const drawinglayer::geometry::ViewInformation2D &rViewInformation2D)