LibreOffice Module vcl (master) 1
|
a class which allows rendering text of a Control onto a device, by taking into account the metrics of a reference device. More...
#include <textlayout.hxx>
Public Member Functions | |
ControlTextRenderer (const Control &_rControl, OutputDevice &_rTargetDevice, OutputDevice &_rReferenceDevice) | |
~ControlTextRenderer () | |
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) |
Private Member Functions | |
ControlTextRenderer (const ControlTextRenderer &)=delete | |
ControlTextRenderer & | operator= (const ControlTextRenderer &)=delete |
Private Attributes | |
::std::unique_ptr< ReferenceDeviceTextLayout > | m_pImpl |
a class which allows rendering text of a Control onto a device, by taking into account the metrics of a reference device.
Definition at line 88 of file textlayout.hxx.
vcl::ControlTextRenderer::ControlTextRenderer | ( | const Control & | _rControl, |
OutputDevice & | _rTargetDevice, | ||
OutputDevice & | _rReferenceDevice | ||
) |
Definition at line 316 of file textlayout.cxx.
References m_pImpl.
vcl::ControlTextRenderer::~ControlTextRenderer | ( | ) |
Definition at line 321 of file textlayout.cxx.
|
privatedelete |
tools::Rectangle vcl::ControlTextRenderer::DrawText | ( | const tools::Rectangle & | _rRect, |
const OUString & | _rText, | ||
DrawTextFlags | _nStyle, | ||
std::vector< tools::Rectangle > * | _pVector, | ||
OUString * | _pDisplayText, | ||
const Size * | i_pDeviceSize | ||
) |
Definition at line 325 of file textlayout.cxx.
References m_pImpl.
Referenced by Control::DrawControlText().
tools::Rectangle vcl::ControlTextRenderer::GetTextRect | ( | const tools::Rectangle & | _rRect, |
const OUString & | _rText, | ||
DrawTextFlags | _nStyle, | ||
Size * | o_pDeviceSize = nullptr |
||
) |
Definition at line 331 of file textlayout.cxx.
References m_pImpl.
Referenced by Control::GetControlTextRect().
|
privatedelete |
|
private |
Definition at line 106 of file textlayout.hxx.
Referenced by DrawText(), and GetTextRect().