43 int nHeight = (aTextRect.
Bottom() - aTextRect.
Top()) >> 2;
47 rRenderContext.
DrawText(aTextRect,
SdResId(STR_HTMLATTR_TEXT), DrawTextFlags::Center | DrawTextFlags::VCenter);
49 aTextRect.
Move(0,nHeight);
51 rRenderContext.
DrawText(aTextRect,
SdResId(STR_HTMLATTR_LINK), DrawTextFlags::Center | DrawTextFlags::VCenter);
53 aTextRect.
Move(0,nHeight);
55 rRenderContext.
DrawText(aTextRect,
SdResId(STR_HTMLATTR_ALINK), DrawTextFlags::Center | DrawTextFlags::VCenter);
57 aTextRect.
Move(0,nHeight);
59 rRenderContext.
DrawText(aTextRect,
SdResId(STR_HTMLATTR_VLINK), DrawTextFlags::Center | DrawTextFlags::VCenter);
void DrawRect(const tools::Rectangle &rRect)
void SetTextColor(const Color &rColor)
void DrawText(const Point &rStartPt, const OUString &rStr, sal_Int32 nIndex=0, sal_Int32 nLen=-1, std::vector< tools::Rectangle > *pVector=nullptr, OUString *pDisplayText=nullptr, const SalLayoutGlyphs *pLayoutCache=nullptr)
virtual void Paint(vcl::RenderContext &rRenderContext, const ::tools::Rectangle &rRect) override
void SetColors(Color const &aBack, Color const &aText, Color const &aLink, Color const &aVLink, Color const &aALink)
virtual ~SdHtmlAttrPreview() override
OUString SdResId(TranslateId aId)