126 if ( !nHorzRound && !nVertRound )
134 if ( aRoundRectPoly.
GetSize() >= 2 )
186 sal_uInt16 nPoints = rPoly.
GetSize();
217 const sal_uInt32 nMaxX(rPos.X() + rSize.
Width());
218 const sal_uInt32 nMaxY(rPos.Y() + rSize.
Height());
223 for(sal_uInt32
x(0), nX(rPos.X()); nX < nMaxX;
x++, nX += nLen)
225 const sal_uInt32 nRight(std::min(nMaxX, nX + nLen));
227 for(sal_uInt32
y(0), nY(rPos.Y()); nY < nMaxY;
y++, nY += nLen)
229 const sal_uInt32 nBottom(std::min(nMaxY, nY + nLen));
272 std::vector< sal_Int32 > aVertBuf;
273 std::vector< sal_Int32 > aHorzBuf;
277 aVertBuf.resize( aDstRect.
GetHeight() / nDistY + 2 );
278 aVertBuf[ nVertCount++ ] = nStartY;
279 while( ( nY += nDistY ) <= nBottom )
287 aHorzBuf.resize( aDstRect.
GetWidth() / nDistX + 2 );
288 aHorzBuf[ nHorzCount++ ] = nStartX;
289 while( ( nX += nDistX ) <= nRight )
301 const bool bOldMap =
mbMap;
304 if( nFlags & DrawGridFlags::Dots )
308 for(
tools::Long j = 0,
Y = aVertBuf[
i ]; j < nHorzCount; j++ )
316 if( nFlags & DrawGridFlags::HorzLines )
325 if( nFlags & DrawGridFlags::VertLines )
void DrawPixel(tools::Long nX, tools::Long nY, const OutputDevice &rOutDev)
SAL_DLLPRIVATE bool ImplIsRecordLayout() const
void DrawLine(tools::Long nX1, tools::Long nY1, tools::Long nX2, tools::Long nY2, const OutputDevice &rOutDev)
void Invert(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, SalInvert nFlags, const OutputDevice &rOutDev)
void Push(vcl::PushFlags nFlags=vcl::PushFlags::ALL)
BmpMirrorFlags AdjustTwoRect(SalTwoRect &rTwoRect, const Size &rSizePix)
SAL_DLLPRIVATE bool is_double_buffered_window() const
constexpr::Color COL_LIGHTGRAY(0xC0, 0xC0, 0xC0)
void EnableMapMode(bool bEnable=true)
virtual void DrawBorder(tools::Rectangle aBorderRect)
constexpr tools::Long Width() const
SAL_DLLPRIVATE void InitLineColor()
void Invert(const tools::Rectangle &rRect, InvertFlags nFlags=InvertFlags::NONE)
SAL_DLLPRIVATE tools::Long ImplLogicXToDevicePixel(tools::Long nX) const
Convert a logical X coordinate to a device pixel's X coordinate.
void DrawRect(const tools::Rectangle &rRect)
SalGraphics * mpGraphics
Graphics context to draw on.
void DrawRect(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, const OutputDevice &rOutDev)
SAL_DLLPRIVATE void InitFillColor()
void DrawPolygon(sal_uInt32 nPoints, const Point *pPtAry, const OutputDevice &rOutDev)
tools::Long FRound(double fVal)
virtual bool AcquireGraphics() const =0
Acquire a graphics device that the output device uses to draw on.
Size GetOutputSize() const
const ::std::vector< Color > ImpSvNumberformatScan::StandardColor COL_GRAY
SAL_DLLPRIVATE tools::Long ImplLogicWidthToDevicePixel(tools::Long nWidth) const
Convert a logical width to a width in units of device pixels.
void DrawPolyLine(sal_uInt32 nPoints, Point const *pPtAry, const OutputDevice &rOutDev)
SAL_WARN_UNUSED_RESULT Point PixelToLogic(const Point &rDevicePt) const
VclPtr< VirtualDevice > mpAlphaVDev
constexpr tools::Long Height() const
void DrawGrid(const tools::Rectangle &rRect, const Size &rDist, DrawGridFlags nFlags)
virtual void InitClipRegion()
void DrawCheckered(const Point &rPos, const Size &rSize, sal_uInt32 nLen=8, Color aStart=COL_WHITE, Color aEnd=COL_BLACK)
Fill the given rectangle with checkered rectangles of size nLen x nLen using the colors aStart and aE...
SAL_DLLPRIVATE tools::Rectangle ImplLogicToDevicePixel(const tools::Rectangle &rLogicRect) const
Convert a logical rectangle to a rectangle in physical device pixel units.
SAL_DLLPRIVATE tools::Long ImplLogicYToDevicePixel(tools::Long nY) const
Convert a logical Y coordinate to a device pixel's Y coordinate.
bool IsDeviceOutputNecessary() const
SAL_DLLPRIVATE tools::Long ImplLogicHeightToDevicePixel(tools::Long nHeight) const
Convert a logical height to a height in units of device pixels.