LibreOffice Module vcl (master) 1
|
Public Member Functions | |
ReferenceDeviceTextLayout (const Control &_rControl, OutputDevice &_rTargetDevice, OutputDevice &_rReferenceDevice) | |
virtual | ~ReferenceDeviceTextLayout () |
virtual tools::Long | GetTextWidth (const OUString &rStr, sal_Int32 nIndex, sal_Int32 nLen) const override |
virtual void | DrawText (const Point &_rStartPoint, const OUString &_rText, sal_Int32 _nStartIndex, sal_Int32 _nLength, std::vector< tools::Rectangle > *_pVector, OUString *_pDisplayText) override |
virtual tools::Long | GetTextArray (const OUString &_rText, KernArray *_pDXAry, sal_Int32 _nStartIndex, sal_Int32 _nLength, bool bCaret=false) const override |
virtual sal_Int32 | GetTextBreak (const OUString &_rText, tools::Long _nMaxTextWidth, sal_Int32 _nStartIndex, sal_Int32 _nLength) const override |
virtual bool | DecomposeTextRectAction () const override |
tools::Rectangle | DrawText (const tools::Rectangle &_rRect, const OUString &_rText, DrawTextFlags _nStyle, std::vector< tools::Rectangle > *_pVector, OUString *_pDisplayText, const Size *i_pDeviceSize) |
tools::Rectangle | GetTextRect (const tools::Rectangle &_rRect, const OUString &_rText, DrawTextFlags _nStyle, Size *o_pDeviceSize) |
virtual tools::Long | GetTextWidth (const OUString &_rText, sal_Int32 _nStartIndex, sal_Int32 _nLength) const =0 |
virtual void | DrawText (const Point &_rStartPoint, const OUString &_rText, sal_Int32 _nStartIndex, sal_Int32 _nLength, std::vector< tools::Rectangle > *_pVector, OUString *_pDisplayText)=0 |
virtual tools::Long | GetTextArray (const OUString &_rText, KernArray *_pDXArray, sal_Int32 _nStartIndex, sal_Int32 _nLength, bool bCaret=false) const =0 |
virtual sal_Int32 | GetTextBreak (const OUString &_rText, tools::Long _nMaxTextWidth, sal_Int32 _nStartIndex, sal_Int32 _nLength) const =0 |
virtual bool | DecomposeTextRectAction () const =0 |
Private Attributes | |
OutputDevice & | m_rTargetDevice |
OutputDevice & | m_rReferenceDevice |
const bool | m_bRTLEnabled |
tools::Rectangle | m_aCompleteTextRect |
Additional Inherited Members | |
Protected Member Functions inherited from vcl::ITextLayout | |
~ITextLayout () COVERITY_NOEXCEPT_FALSE | |
Definition at line 71 of file textlayout.cxx.
vcl::ReferenceDeviceTextLayout::ReferenceDeviceTextLayout | ( | const Control & | _rControl, |
OutputDevice & | _rTargetDevice, | ||
OutputDevice & | _rReferenceDevice | ||
) |
Definition at line 98 of file textlayout.cxx.
References vcl::FONT, vcl::Font::GetFontSize(), OutputDevice::GetMapMode(), MapMode::GetMapUnit(), MapMode::GetOrigin(), Control::GetUnzoomedControlPointFont(), vcl::Window::GetZoom(), OutputDevice::LogicToLogic(), m_rReferenceDevice, m_rTargetDevice, vcl::MAPMODE, OutputDevice::Push(), OutputDevice::SetFont(), vcl::Font::SetFontSize(), OutputDevice::SetMapMode(), MapMode::SetMapUnit(), MapMode::SetScaleX(), MapMode::SetScaleY(), and vcl::TEXTLAYOUTMODE.
|
virtual |
Definition at line 143 of file textlayout.cxx.
References m_rReferenceDevice, m_rTargetDevice, and OutputDevice::Pop().
|
overridevirtual |
Implements vcl::ITextLayout.
Definition at line 225 of file textlayout.cxx.
|
overridevirtual |
Implements vcl::ITextLayout.
Definition at line 196 of file textlayout.cxx.
References OutputDevice::DrawTextArray(), OutputDevice::GetGlyphBoundRects(), GetTextArray(), OutputDevice::GetTextHeight(), m_aCompleteTextRect, m_rReferenceDevice, m_rTargetDevice, and tools::Rectangle::Union().
tools::Rectangle vcl::ReferenceDeviceTextLayout::DrawText | ( | const tools::Rectangle & | _rRect, |
const OUString & | _rText, | ||
DrawTextFlags | _nStyle, | ||
std::vector< tools::Rectangle > * | _pVector, | ||
OUString * | _pDisplayText, | ||
const Size * | i_pDeviceSize | ||
) |
Definition at line 230 of file textlayout.cxx.
References vcl::text::BiDiRtl, vcl::text::Default, OutputDevice::DrawText(), tools::Rectangle::GetSize(), OutputDevice::GetTextRect(), Size::Height(), tools::Rectangle::IsEmpty(), OutputDevice::LogicToPixel(), m_aCompleteTextRect, m_bRTLEnabled, m_rReferenceDevice, m_rTargetDevice, OutputDevice::PixelToLogic(), SAL_WARN_IF, tools::Rectangle::SetEmpty(), OutputDevice::SetLayoutMode(), tools::Rectangle::SetSize(), vcl::text::TextOriginLeft, and Size::Width().
|
overridevirtual |
Implements vcl::ITextLayout.
Definition at line 162 of file textlayout.cxx.
References OutputDevice::GetTextArray(), i, m_rReferenceDevice, OUStringToOString(), and SAL_INFO.
Referenced by DrawText(), and GetTextWidth().
|
overridevirtual |
Implements vcl::ITextLayout.
Definition at line 217 of file textlayout.cxx.
References OutputDevice::GetTextBreak(), and m_rReferenceDevice.
tools::Rectangle vcl::ReferenceDeviceTextLayout::GetTextRect | ( | const tools::Rectangle & | _rRect, |
const OUString & | _rText, | ||
DrawTextFlags | _nStyle, | ||
Size * | o_pDeviceSize | ||
) |
Definition at line 285 of file textlayout.cxx.
References vcl::text::BiDiRtl, vcl::text::Default, tools::Rectangle::GetSize(), OutputDevice::GetTextRect(), OutputDevice::LogicToPixel(), m_bRTLEnabled, m_rReferenceDevice, m_rTargetDevice, OutputDevice::PixelToLogic(), OutputDevice::SetLayoutMode(), and vcl::text::TextOriginLeft.
|
overridevirtual |
Implements vcl::ITextLayout.
Definition at line 191 of file textlayout.cxx.
References GetTextArray().
|
private |
Definition at line 95 of file textlayout.cxx.
Referenced by DrawText().
|
private |
Definition at line 93 of file textlayout.cxx.
Referenced by DrawText(), and GetTextRect().
|
private |
Definition at line 92 of file textlayout.cxx.
Referenced by DrawText(), GetTextArray(), GetTextBreak(), GetTextRect(), ReferenceDeviceTextLayout(), and ~ReferenceDeviceTextLayout().
|
private |
Definition at line 91 of file textlayout.cxx.
Referenced by DrawText(), GetTextRect(), ReferenceDeviceTextLayout(), and ~ReferenceDeviceTextLayout().