124 if ( !nHorzRound && !nVertRound )
132 if ( aRoundRectPoly.
GetSize() >= 2 )
183 sal_uInt16 nPoints = rPoly.
GetSize();
213 const sal_uInt32 nMaxX(rPos.X() + rSize.
Width());
214 const sal_uInt32 nMaxY(rPos.Y() + rSize.
Height());
219 for(sal_uInt32
x(0), nX(rPos.X()); nX < nMaxX;
x++, nX += nLen)
221 const sal_uInt32 nRight(std::min(nMaxX, nX + nLen));
223 for(sal_uInt32
y(0), nY(rPos.Y()); nY < nMaxY;
y++, nY += nLen)
225 const sal_uInt32 nBottom(std::min(nMaxY, nY + nLen));
267 std::vector< sal_Int32 > aVertBuf;
268 std::vector< sal_Int32 > aHorzBuf;
272 aVertBuf.resize( aDstRect.
GetHeight() / nDistY + 2 );
273 aVertBuf[ nVertCount++ ] = nStartY;
274 while( ( nY += nDistY ) <= nBottom )
282 aHorzBuf.resize( aDstRect.
GetWidth() / nDistX + 2 );
283 aHorzBuf[ nHorzCount++ ] = nStartX;
284 while( ( nX += nDistX ) <= nRight )
296 const bool bOldMap =
mbMap;
299 if( nFlags & DrawGridFlags::Dots )
303 for(
tools::Long j = 0,
Y = aVertBuf[
i ]; j < nHorzCount; j++ )
311 if( nFlags & DrawGridFlags::HorzLines )
320 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)
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)
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.
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
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
tools::Long Width() 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)
Point PixelToLogic(const Point &rDevicePt) const
VclPtr< VirtualDevice > mpAlphaVDev
void DrawGrid(const tools::Rectangle &rRect, const Size &rDist, DrawGridFlags nFlags)
tools::Long Height() const
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
void Push(PushFlags nFlags=PushFlags::ALL)
SAL_DLLPRIVATE tools::Long ImplLogicHeightToDevicePixel(tools::Long nHeight) const
Convert a logical height to a height in units of device pixels.