20#ifndef INCLUDED_VCL_INC_TEXTLAYOUT_HXX
21#define INCLUDED_VCL_INC_TEXTLAYOUT_HXX
33 virtual void DrawText(
const Point& _rStartPoint,
const OUString& _rText, sal_Int32 _nStartIndex, sal_Int32 _nLength,
34 std::vector< tools::Rectangle >* _pVector, OUString* _pDisplayText ) = 0;
36 virtual sal_Int32
GetTextBreak(
const OUString& _rText,
tools::Long _nMaxTextWidth, sal_Int32 _nStartIndex, sal_Int32 _nLength )
const = 0;
57 sal_Int32 _nStartIndex,
58 sal_Int32 _nLength )
const override;
61 const OUString& _rText,
62 sal_Int32 _nStartIndex,
64 std::vector< tools::Rectangle >* _pVector,
65 OUString* _pDisplayText )
override;
69 sal_Int32 _nStartIndex,
71 bool bCaret =
false )
const override;
75 sal_Int32 _nStartIndex,
76 sal_Int32 _nLength )
const override;
96 std::vector< tools::Rectangle >* _pVector, OUString* _pDisplayText,
const Size* i_pDeviceSize );
106 ::std::unique_ptr< ReferenceDeviceTextLayout >
m_pImpl;
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
a class which allows rendering text of a Control onto a device, by taking into account the metrics of...
::std::unique_ptr< ReferenceDeviceTextLayout > m_pImpl
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)
ControlTextRenderer(const Control &_rControl, OutputDevice &_rTargetDevice, OutputDevice &_rReferenceDevice)
ControlTextRenderer & operator=(const ControlTextRenderer &)=delete
ControlTextRenderer(const ControlTextRenderer &)=delete
is an implementation of the ITextLayout interface which simply delegates its calls to the respective ...
DefaultTextLayout(OutputDevice &_rTargetDevice)
virtual tools::Long GetTextArray(const OUString &_rText, KernArray *_pDXArray, sal_Int32 _nStartIndex, sal_Int32 _nLength, bool bCaret=false) 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 ~DefaultTextLayout()
virtual bool DecomposeTextRectAction() const override
virtual tools::Long GetTextWidth(const OUString &_rText, sal_Int32 _nStartIndex, sal_Int32 _nLength) const override
virtual sal_Int32 GetTextBreak(const OUString &_rText, tools::Long _nMaxTextWidth, sal_Int32 _nStartIndex, sal_Int32 _nLength) const override
OutputDevice & m_rTargetDevice
virtual bool DecomposeTextRectAction() 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 GetTextWidth(const OUString &_rText, sal_Int32 _nStartIndex, sal_Int32 _nLength) const =0
virtual tools::Long GetTextArray(const OUString &_rText, KernArray *_pDXArray, sal_Int32 _nStartIndex, sal_Int32 _nLength, bool bCaret=false) const =0
~ITextLayout() COVERITY_NOEXCEPT_FALSE
virtual sal_Int32 GetTextBreak(const OUString &_rText, tools::Long _nMaxTextWidth, sal_Int32 _nStartIndex, sal_Int32 _nLength) const =0