26#include <svx/strings.hrc>
70 Insert(std::make_unique<XDashEntry>(
XDash(css::drawing::DashStyle_RECT,1, 50,1, 50, 50),
aStr +
" 1"));
71 Insert(std::make_unique<XDashEntry>(
XDash(css::drawing::DashStyle_RECT,1,500,1,500,500),
aStr +
" 2"));
72 Insert(std::make_unique<XDashEntry>(
XDash(css::drawing::DashStyle_RECT,2, 50,3,250,120),
aStr +
" 3"));
86 const sal_uInt32 nFactor(2);
87 const Size aSize((rSize.
Width() * 5 * 2) / 2, rSize.
Height() * nFactor);
97 const double fLineWidth(fLineThickness * nFactor);
103 ::std::vector< double > aDotDashArray;
104 double fFullDotDashLen(0.0);
110 const double fScaleValue(aScaleVector.
getLength() * (nFactor * (1.4 / 2.0)));
111 const double fLineWidthInUnits(fLineWidth / fScaleValue);
115 if(!aDotDashArray.empty())
117 for(
double &
a : aDotDashArray)
125 fFullDotDashLen *= fScaleValue;
130 std::move(aDotDashArray),
138 std::move(aStrokeAttribute)));
144 pVirtualDevice->SetOutputSizePixel(aSize);
146 ? DrawModeFlags::SettingsLine | DrawModeFlags::SettingsFill | DrawModeFlags::SettingsText | DrawModeFlags::SettingsGradient
147 : DrawModeFlags::Default);
151 const Point aNull(0, 0);
152 static const sal_uInt32 nLen(8 * nFactor);
154 static const Color aG(0xef, 0xef, 0xef);
156 pVirtualDevice->DrawCheckered(aNull, aSize, nLen, aW, aG);
160 pVirtualDevice->SetBackground(rStyleSettings.
GetFieldColor());
161 pVirtualDevice->Erase();
167 aNewViewInformation2D));
171 pProcessor2D->process(aSequence);
172 pProcessor2D.reset();
175 BitmapEx aRetval(pVirtualDevice->GetBitmapEx(
Point(0, 0), pVirtualDevice->GetOutputSizePixel()));
uno::Reference< container::XNameContainer > SvxUnoXDashTable_createInstance(XPropertyList &rTable) noexcept
const StyleSettings & GetStyleSettings() const
static const AllSettings & GetSettings()
bool Scale(const Size &rNewSize, BmpScaleFlag nScaleFlag=BmpScaleFlag::Default)
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
const Color & GetFieldTextColor() const
bool GetHighContrastMode() const
const Color & GetFieldColor() const
static sal_uInt16 GetListBoxPreviewDefaultLineWidth()
const Size & GetListBoxPreviewDefaultPixelSize() const
const XDash & GetDash() const
static BitmapEx CreateBitmapForXDash(const XDash *pDash, double fLineThickness)
XDashEntry * GetDash(tools::Long nIndex) const
virtual BitmapEx CreateBitmapForUI(tools::Long nIndex) override
OUString const & GetStringForUiSolidLine() const
virtual bool Create() override
static double ImpGetDefaultLineThickness()
XDashList(const OUString &rPath, const OUString &rReferer)
void Replace(std::unique_ptr< XDashEntry > pEntry, tools::Long nIndex)
BitmapEx const & GetBitmapForUISolidLine() const
virtual ~XDashList() override
OUString maStringSolidLine
BitmapEx maBitmapSolidLine
virtual css::uno::Reference< css::container::XNameContainer > createInstance() override
OUString const & GetStringForUiNoLine() const
double CreateDotDashArray(::std::vector< double > &rDotDashArray, double fLineWidth) const
sal_uInt16 GetDots() const
sal_uInt16 GetDashes() 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 append(const basegfx::B2DPoint &rPoint, sal_uInt32 nCount)
constexpr ::Color COL_WHITE(0xFF, 0xFF, 0xFF)
OUString SvxResId(TranslateId aId)
std::unique_ptr< BaseProcessor2D > createPixelProcessor2DFromOutputDevice(OutputDevice &rTargetOutDev, const drawinglayer::geometry::ViewInformation2D &rViewInformation2D)