25#include <svx/strings.hrc>
35#include <osl/diagnose.h>
36#include <rtl/ustrbuf.hxx>
69 sal_Int32 nLen =
aStr.getLength() - 1;
72 Insert(std::make_unique<XHatchEntry>(
XHatch(
COL_RED ,css::drawing::HatchStyle_DOUBLE, 80,450_deg10),
aStr.toString()));
74 Insert(std::make_unique<XHatchEntry>(
XHatch(
COL_BLUE ,css::drawing::HatchStyle_TRIPLE,120, 0_deg10),
aStr.toString()));
82 OSL_ENSURE(
nIndex <
Count(),
"OOps, access out of range (!)");
98 case css::drawing::HatchStyle_SINGLE :
103 case css::drawing::HatchStyle_DOUBLE :
117 const double fScaleValue(aScaleVector.
getLength());
121 static_cast<double>(rHatch.
GetDistance()) * fScaleValue,
132 std::move(aFillHatch)));
136 std::move(aRectangle),
143 pVirtualDevice->SetOutputSizePixel(rSize);
145 ? DrawModeFlags::SettingsLine | DrawModeFlags::SettingsFill | DrawModeFlags::SettingsText | DrawModeFlags::SettingsGradient
146 : DrawModeFlags::Default);
150 const Point aNull(0, 0);
151 static const sal_uInt32 nLen(8);
153 static const Color aG(0xef, 0xef, 0xef);
154 pVirtualDevice->DrawCheckered(aNull, rSize, nLen, aW, aG);
158 pVirtualDevice->SetBackground(rStyleSettings.
GetFieldColor());
159 pVirtualDevice->Erase();
165 aNewViewInformation2D));
169 aSequence[0] = aHatchPrimitive;
170 aSequence[1] = aBlackRectanglePrimitive;
171 pProcessor2D->process(aSequence);
172 pProcessor2D.reset();
175 aRetval = pVirtualDevice->GetBitmapEx(
Point(0, 0), pVirtualDevice->GetOutputSizePixel());
uno::Reference< container::XNameContainer > SvxUnoXHatchTable_createInstance(XPropertyList &rTable) noexcept
const StyleSettings & GetStyleSettings() const
static const AllSettings & GetSettings()
basegfx::BColor getBColor() const
SAL_WARN_UNUSED_RESULT Point LogicToLogic(const Point &rPtSource, const MapMode *pMapModeSource, const MapMode *pMapModeDest) const
constexpr tools::Long Height() const
constexpr tools::Long Width() const
bool GetPreviewUsesCheckeredBackground() const
bool GetHighContrastMode() const
const Color & GetFieldColor() const
const Size & GetListBoxPreviewDefaultPixelSize() const
const XHatch & GetHatch() const
virtual BitmapEx CreateBitmapForUI(tools::Long nIndex) override
BitmapEx GetBitmapForPreview(tools::Long nIndex, const Size &rSize)
virtual ~XHatchList() override
BitmapEx CreateBitmap(tools::Long nIndex, const Size &rSize) const
XHatchEntry * GetHatch(tools::Long nIndex) const
void Replace(std::unique_ptr< XHatchEntry > pEntry, tools::Long nIndex)
XHatchList(const OUString &rPath, const OUString &rReferer)
virtual css::uno::Reference< css::container::XNameContainer > createInstance() override
virtual bool Create() override
const Color & GetColor() const
tools::Long GetDistance() const
css::drawing::HatchStyle GetHatchStyle() const
Degree10 GetAngle() const
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
constexpr ::Color COL_WHITE(0xFF, 0xFF, 0xFF)
constexpr ::Color COL_RED(0x80, 0x00, 0x00)
constexpr ::Color COL_BLUE(0x00, 0x00, 0x80)
constexpr ::Color COL_BLACK(0x00, 0x00, 0x00)
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)