Lines Matching refs:rDev

138 void SmRect::BuildRect(const OutputDevice &rDev, const SmFormat *pFormat,  in BuildRect()  argument
143 aSize = Size(rDev.GetTextWidth(rText), rDev.GetTextHeight()); in BuildRect()
145 const FontMetric aFM (rDev.GetFontMetric()); in BuildRect()
148 const long nFontHeight = rDev.GetFont().GetSize().Height(); in BuildRect()
163 if (aFM.GetIntLeading() < 5 && rDev.GetOutDevType() == OUTDEV_PRINTER) in BuildRect()
169 pWindow->SetMapMode(rDev.GetMapMode()); in BuildRect()
170 pWindow->SetFont(rDev.GetFontMetric()); in BuildRect()
188 SmGetGlyphBoundRect(rDev, rText, aGlyphRect); in BuildRect()
205 nDist = (rDev.GetFont().GetSize().Height() in BuildRect()
233 void SmRect::Init(const OutputDevice &rDev, const SmFormat *pFormat, in Init() argument
237 BuildRect(rDev, pFormat, rText, nEBorderWidth); in Init()
241 SmRect::SmRect(const OutputDevice &rDev, const SmFormat *pFormat, in SmRect() argument
247 Init(rDev, pFormat, rText, (sal_uInt16) nEBorderWidth); in SmRect()
616 void SmDrawFrame(OutputDevice &rDev, const Rectangle &rRec,
619 void SmRect::Draw(OutputDevice &rDev, const Point &rPosition, int nFlags) const in Draw() argument
624 rDev.Push(PUSH_LINECOLOR); in Draw()
640 rDev.SetLineColor(COL_LIGHTBLUE); in Draw()
641 rDev.DrawLine(Point(nLeft, GetAlignB()) += aOffset, in Draw()
643 rDev.DrawLine(Point(nLeft, GetAlignT()) += aOffset, in Draw()
646 rDev.DrawLine(Point(nLeft, GetBaseline()) += aOffset, in Draw()
649 rDev.SetLineColor(COL_GRAY); in Draw()
650 rDev.DrawLine(Point(nLeft, GetHiAttrFence()) += aOffset, in Draw()
660 rDev.SetLineColor(COL_LIGHTGREEN); in Draw()
661 rDev.DrawLine(aCenter - aLenX, aCenter + aLenX); in Draw()
662 rDev.DrawLine(aCenter - aLenY, aCenter + aLenY); in Draw()
666 SmDrawFrame(rDev, Rectangle(rPosition - Point(GetItalicLeftSpace(), 0), in Draw()
670 SmDrawFrame(rDev, Rectangle(rPosition, GetSize()), COL_LIGHTRED); in Draw()
672 rDev.Pop(); in Draw()
676 void SmDrawFrame(OutputDevice &rDev, const Rectangle &rRec, in SmDrawFrame() argument
679 rDev.Push(PUSH_LINECOLOR); in SmDrawFrame()
681 rDev.SetLineColor(aCol); in SmDrawFrame()
683 rDev.DrawLine(rRec.TopLeft(), rRec.BottomLeft()); in SmDrawFrame()
684 rDev.DrawLine(rRec.BottomLeft(), rRec.BottomRight()); in SmDrawFrame()
685 rDev.DrawLine(rRec.BottomRight(), rRec.TopRight()); in SmDrawFrame()
686 rDev.DrawLine(rRec.TopRight(), rRec.TopLeft()); in SmDrawFrame()
688 rDev.Pop(); in SmDrawFrame()
694 sal_Bool SmGetGlyphBoundRect(const OutputDevice &rDev, in SmGetGlyphBoundRect() argument
708 if (rDev.GetOutDevType() != OUTDEV_PRINTER) in SmGetGlyphBoundRect()
709 pGlyphDev = (OutputDevice *) &rDev; in SmGetGlyphBoundRect()
717 const FontMetric aDevFM (rDev.GetFontMetric()); in SmGetGlyphBoundRect()
720 Font aFnt(rDev.GetFont()); in SmGetGlyphBoundRect()
736 long nTextWidth = rDev.GetTextWidth(rText); in SmGetGlyphBoundRect()
738 Rectangle aResult (aPoint, Size(nTextWidth, rDev.GetTextHeight())), in SmGetGlyphBoundRect()
749 if (&rDev != pGlyphDev) /* only when rDev is a printer... */ in SmGetGlyphBoundRect()