20 #include <overlayobject.hxx>
35 #define HINT_LINESPACE 2
40 : OverlayObject(rColor)
73 double nTextOffsetY = nTop + aHintMargin.
Height() + aFontMetric.
GetAscent();
74 Point aTextPos(nLeft + aHintMargin.
Width() , nTextOffsetY);
79 aTextPos.X(), aTextPos.Y()));
84 std::vector<double>(), aFontAttr, css::lang::Locale(),
106 Point aLineStart = aTextStart;
109 OUString aLine =
m_aMessage.getToken( 0,
'\r', nIndex );
113 aLineStart.X(), aLineStart.Y() + nTextOffsetY);
118 aTextMatrix, aLine, 0, aLine.getLength(),
119 std::vector<double>(), aFontAttr, css::lang::Locale(),
122 rRange.expand(pMessage->getB2DRange(aDummy));
125 aSeq.push_back(aMessage);
127 aLineStart.AdjustY(nLineHeight );
131 rRange.getMaxY() + aHintMargin.
Height()));
141 aPoly, aBorderColor));
void SetFontSize(const Size &)
TOOLS_DLLPUBLIC OString convertLineEnd(const OString &rIn, LineEnd eLineEnd)
const vcl::Font m_aTextFont
const StyleSettings & GetStyleSettings() const
static const AllSettings & GetSettings()
void SetWeight(FontWeight)
const MapMode & GetMapMode() const
const Color & GetLabelTextColor() const
attribute::FontAttribute getFontAttributeFromVclFont(basegfx::B2DVector &o_rSize, const vcl::Font &rFont, bool bRTL, bool bBiDiStrong)
static OutputDevice * GetDefaultDevice()
tools::Long GetAscent() const
B2DHomMatrix createScaleTranslateB2DHomMatrix(double fScaleX, double fScaleY, double fTranslateX, double fTranslateY)
FontMetric GetFontMetric() const
void SetPos(const Point &rPos, const MapMode &rMode)
B2DPolygon createPolygonFromRect(const B2DRectangle &rRect, double fRadiusX, double fRadiusY)
tools::Long Width() const
const Size & GetFontSize() const
drawinglayer::primitive2d::Primitive2DContainer createOverlaySequence(sal_Int32 nLeft, sal_Int32 nTop, const MapMode &rMapMode, basegfx::B2DRange &rRange) const
virtual basegfx::B2DRange getB2DRange(const geometry::ViewInformation2D &rViewInformation) const override
Point PixelToLogic(const Point &rDevicePt) const
const Color & getBaseColor() const
css::uno::Reference< css::graphic::XPrimitive2D > Primitive2DReference
tools::Long Height() const
Sequence< sal_Int8 > aSeq
basegfx::BColor getBColor() const
Size GetSizePixel() const
const OUString m_aMessage
virtual drawinglayer::primitive2d::Primitive2DContainer createOverlayObjectPrimitive2DSequence() override
ScOverlayHint(const OUString &rTit, const OUString &rMsg, const Color &rColor, const vcl::Font &rFont)
tools::Long GetLineHeight() const