LibreOffice Module canvas (master) 1
|
#include <dx_textlayout_drawhelper.hxx>
Public Member Functions | |
TextLayoutDrawHelper (const css::uno::Reference< css::rendering::XGraphicDevice > &xGraphicDevice) | |
~TextLayoutDrawHelper () | |
void | drawText (const std::shared_ptr< Gdiplus::Graphics > &rGraphics, const css::rendering::ViewState &rViewState, const css::rendering::RenderState &rRenderState, const ::basegfx::B2ISize &rOutputOffset, const css::rendering::StringContext &rText, const css::uno::Sequence< double > &rLogicalAdvancements, const css::uno::Sequence< sal_Bool > &rKashidaPositions, const css::uno::Reference< css::rendering::XCanvasFont > &rCanvasFont, const css::geometry::Matrix2D &rFontMatrix, bool bAlphaSurface, bool bIsRTL) |
css::geometry::RealRectangle2D | queryTextBounds (const css::rendering::StringContext &rText, const css::uno::Sequence< double > &rLogicalAdvancements, const css::uno::Reference< css::rendering::XCanvasFont > &rCanvasFont, const css::geometry::Matrix2D &rFontMatrix) |
void | test () |
Protected Attributes | |
css::uno::Reference< css::rendering::XGraphicDevice > | mxGraphicDevice |
Definition at line 41 of file dx_textlayout_drawhelper.hxx.
|
explicit |
Definition at line 54 of file dx_textlayout_drawhelper.cxx.
dxcanvas::TextLayoutDrawHelper::~TextLayoutDrawHelper | ( | ) |
Definition at line 60 of file dx_textlayout_drawhelper.cxx.
void dxcanvas::TextLayoutDrawHelper::drawText | ( | const std::shared_ptr< Gdiplus::Graphics > & | rGraphics, |
const css::rendering::ViewState & | rViewState, | ||
const css::rendering::RenderState & | rRenderState, | ||
const ::basegfx::B2ISize & | rOutputOffset, | ||
const css::rendering::StringContext & | rText, | ||
const css::uno::Sequence< double > & | rLogicalAdvancements, | ||
const css::uno::Sequence< sal_Bool > & | rKashidaPositions, | ||
const css::uno::Reference< css::rendering::XCanvasFont > & | rCanvasFont, | ||
const css::geometry::Matrix2D & | rFontMatrix, | ||
bool | bAlphaSurface, | ||
bool | bIsRTL | ||
) |
Definition at line 64 of file dx_textlayout_drawhelper.cxx.
References ALIGN_BASELINE, dxcanvas::tools::canvasFontFromXFont(), COL_WHITE(), LanguageTag::convertToLanguageType(), vcl::unotools::doubleSequenceToColor(), ENSURE_OR_THROW, FLOAT, basegfx::fround(), basegfx::B2DHomMatrix::get(), GM_ADVANCED, i, ITALIC_NONE, ITALIC_NORMAL, canvas::tools::mergeViewAndRenderTransform(), mxGraphicDevice, SystemGraphicsData::nSize, PITCH_FIXED, PITCH_VARIABLE, dxcanvas::tools::polyPolygonFromXPolyPolygon2D(), KernArray::push_back(), KernArray::reserve(), vcl::Font::SetAlignment(), Color::SetAlpha(), vcl::Font::SetAverageFontWidth(), vcl::Font::SetCharSet(), vcl::Font::SetColor(), vcl::Font::SetEmphasisMark(), vcl::Font::SetFillColor(), vcl::Font::SetItalic(), vcl::Font::SetLanguage(), vcl::Font::SetPitch(), vcl::Font::SetVertical(), vcl::Font::SetWeight(), TA_BASELINE, basegfx::B2DPolyPolygon::transform(), basegfx::B2DHomMatrix::translate(), Size::Width(), and XFORM.
geometry::RealRectangle2D dxcanvas::TextLayoutDrawHelper::queryTextBounds | ( | const css::rendering::StringContext & | rText, |
const css::uno::Sequence< double > & | rLogicalAdvancements, | ||
const css::uno::Reference< css::rendering::XCanvasFont > & | rCanvasFont, | ||
const css::geometry::Matrix2D & | rFontMatrix | ||
) |
Definition at line 239 of file dx_textlayout_drawhelper.cxx.
References ALIGN_BASELINE, dxcanvas::tools::canvasFontFromXFont(), GetDC, ITALIC_NONE, ITALIC_NORMAL, SystemGraphicsData::nSize, PITCH_FIXED, PITCH_VARIABLE, vcl::Font::SetAlignment(), vcl::Font::SetAverageFontWidth(), vcl::Font::SetCharSet(), vcl::Font::SetEmphasisMark(), vcl::Font::SetItalic(), vcl::Font::SetPitch(), vcl::Font::SetVertical(), vcl::Font::SetWeight(), and Size::Width().
Referenced by dxcanvas::TextLayout::queryTextBounds().
void dxcanvas::TextLayoutDrawHelper::test | ( | ) |
|
protected |
Definition at line 74 of file dx_textlayout_drawhelper.hxx.
Referenced by drawText().