20#ifndef INCLUDED_SW_SOURCE_CORE_INC_DRAWFONT_HXX
21#define INCLUDED_SW_SOURCE_CORE_INC_DRAWFONT_HXX
23#include <osl/diagnose.h>
33namespace sw {
class WrongListIterator; }
38 class TextLayoutCache;
112 const OUString &rText, sal_Int32
const nIdx, sal_Int32
const nLen,
113 sal_uInt16 nWidth = 0,
bool bBullet =
false)
119 sal_uInt16 nWidth = 0,
bool bBullet =
false,
121 : m_pCachedVclData(pCachedVclData)
136 m_nCursorBidiLevel = 0;
138 m_pUnderFnt =
nullptr;
140 m_bSpaceStop =
false;
141 m_bSnapToGrid =
false;
142 m_bIgnoreFrameRTL =
false;
143 m_bPosMatchesBounds =
false;
148 m_pGrammarCheck =
nullptr;
149 m_pSmartTags =
nullptr;
151 m_pHyphPos =
nullptr;
155 m_nCharacterSpacing = 0;
158 m_bDrawSpace =
false;
164 m_bPos = m_bWrong = m_bGrammarCheck = m_bSize = m_bFnt = m_bAscent =
165 m_bSpace = m_bNumberOfBlanks = m_bUppr =
166 m_bDrawSp = m_bKana = m_bOfst = m_bHyph =
167 m_bCharacterSpacing =
false;
178 m_pFrame = pNewFrame;
198 return m_pScriptInfo;
204 OSL_ENSURE( m_bPos,
"DrawTextInfo: Undefined Position" );
212 OSL_ENSURE( m_bHyph,
"DrawTextInfo: Undefined Hyph Position" );
219 return m_pCachedVclData;
230 OSL_ENSURE( m_bWrong,
"DrawTextInfo: Undefined WrongList" );
238 OSL_ENSURE( m_bGrammarCheck,
"DrawTextInfo: Undefined GrammarCheck List" );
240 return m_pGrammarCheck;
251 OSL_ENSURE( m_bSize,
"DrawTextInfo: Undefined Size" );
259 OSL_ENSURE( m_bFnt,
"DrawTextInfo: Undefined Font" );
281 return m_nMeasureLen;
287 OSL_ENSURE( m_bOfst,
"DrawTextInfo: Undefined Offset" );
294 return m_nIdx + m_nLen;
300 OSL_ENSURE( m_bKana,
"DrawTextInfo: Undefined kana difference" );
313 OSL_ENSURE( m_bAscent,
"DrawTextInfo: Undefined Ascent" );
326 OSL_ENSURE( m_bCharacterSpacing,
"DrawTextInfo: Undefined CharacterSpacing" );
328 return m_nCharacterSpacing;
339 OSL_ENSURE( m_bSpace,
"DrawTextInfo: Undefined Spacing" );
347 OSL_ENSURE( m_bNumberOfBlanks,
"DrawTextInfo::Undefined NumberOfBlanks" );
349 return m_nNumberOfBlanks;
354 return m_nCursorBidiLevel;
365 OSL_ENSURE( m_bUppr,
"DrawTextInfo: Undefined Upperflag" );
373 OSL_ENSURE( m_bDrawSp,
"DrawTextInfo: Undefined DrawSpaceflag" );
390 return m_bSnapToGrid;
395 return m_bIgnoreFrameRTL;
400 return m_bPosMatchesBounds;
428 m_pCachedVclData =
nullptr;
438 m_pCachedVclData =
nullptr;
459 m_pGrammarCheck = pNew;
461 m_bGrammarCheck =
true;
501 m_nMeasureLen = nNew;
542 m_nCharacterSpacing = -nNew;
548 m_nCharacterSpacing = 0;
552 m_bCharacterSpacing =
true;
559 m_bNumberOfBlanks =
true;
561 m_nNumberOfBlanks = nNew;
566 m_nCursorBidiLevel = nNew;
581 m_pUnderFnt = pULFnt;
612 m_bSnapToGrid = bNew;
617 m_bIgnoreFrameRTL = bNew;
622 m_bPosMatchesBounds = bNew;
630 bool ApplyAutoColor(
vcl::Font* pFnt =
nullptr );
o3tl::strong_int< sal_Int32, struct Tag_TextFrameIndex > TextFrameIndex
Denotes a character index in a text frame at a layout level, after extent mapping from a text node at...
void SetKern(tools::Long nNew)
VclPtr< OutputDevice > m_pOut
void SetCursorBidiLevel(sal_uInt8 nNew)
bool IsPosMatchesBounds() const
void SetBullet(bool bNew)
void SetDrawSpace(bool bNew)
void SetAscent(sal_uInt16 nNew)
TextFrameIndex m_nNumberOfBlanks
void SetPosMatchesBounds(bool bNew)
void SetSpaceStop(bool bNew)
void SetGreyWave(bool bNew)
void SetNumberOfBlanks(TextFrameIndex const nNew)
TextFrameIndex GetIdx() const
bool GetDrawSpace() const
sal_Int32 m_nOfst
this is not a string index
void SetSnapToGrid(bool bNew)
SwDrawTextInfo(SwViewShell const *pSh, OutputDevice &rOut, const SwScriptInfo *pSI, const OUString &rText, TextFrameIndex const nIdx, TextFrameIndex const nLen, sal_uInt16 nWidth=0, bool bBullet=false, vcl::text::TextLayoutCache const *const pCachedVclData=nullptr)
constructor for text frame contents
void SetHyphPos(TextFrameIndex *const pNew)
const SwScriptInfo * m_pScriptInfo
void SetPos(const Point &rNew)
void SetOffset(sal_Int32 nNew)
TextFrameIndex GetLen() const
void SetSize(const Size &rNew)
const OUString & GetText() const
sw::WrongListIterator * GetSmartTags() const
sal_uInt8 GetCursorBidiLevel() const
SwViewShell const * m_pSh
TextFrameIndex * m_pHyphPos
void SetFont(SwFont *pNew)
sal_uInt16 GetKanaComp() const
TextFrameIndex * GetHyphPos() const
void SetSmartTags(sw::WrongListIterator *const pNew)
sw::WrongListIterator * GetGrammarCheck() const
SwUnderlineFont * m_pUnderFnt
tools::Long m_nCharacterSpacing
void SetIgnoreFrameRTL(bool bNew)
void SetMeasureLen(TextFrameIndex const nNew)
SwViewShell const * GetShell() const
tools::Long GetKern() const
sw::WrongListIterator * GetWrong() const
void SetKanaDiff(tools::Long nNew)
tools::Long GetCharacterSpacing() const
SwDrawTextInfo(SwViewShell const *pSh, OutputDevice &rOut, const OUString &rText, sal_Int32 const nIdx, sal_Int32 const nLen, sal_uInt16 nWidth=0, bool bBullet=false)
constructor for simple strings
void SetKanaComp(short nNew)
sal_uInt16 GetAscent() const
void SetText(const OUString &rNew)
const SwScriptInfo * GetScriptInfo() const
vcl::RenderContext & GetOut() const
void SetWidth(sal_uInt16 nNew)
const SwTextFrame * m_pFrame
sw::WrongListIterator * m_pSmartTags
tools::Long GetKanaDiff() const
TextFrameIndex GetMeasureLen() const
sal_uInt8 m_nCursorBidiLevel
void SetIdx(TextFrameIndex const nNew)
SwUnderlineFont * GetUnderFnt() const
vcl::RenderContext * GetpOut() const
void SetTextIdxLen(const OUString &rNewStr, TextFrameIndex const nNewIdx, TextFrameIndex const nNewLen)
const SwTextFrame * GetFrame() const
sw::WrongListIterator * m_pGrammarCheck
void SetLen(TextFrameIndex const nNew)
vcl::text::TextLayoutCache const * m_pCachedVclData
void SetIdxLen(TextFrameIndex const nNewIdx, TextFrameIndex const nNewLen)
sal_uInt16 GetWidth() const
TextFrameIndex GetEnd() const
void SetFrame(const SwTextFrame *pNewFrame)
void SetGrammarCheck(sw::WrongListIterator *const pNew)
const Point & GetPos() const
sal_Int32 GetOffset() const
const Size & GetSize() const
bool IsIgnoreFrameRTL() const
void SetOut(OutputDevice &rNew)
TextFrameIndex m_nMeasureLen
void SetUnderFnt(SwUnderlineFont *pULFnt)
TextFrameIndex GetNumberOfBlanks() const
void SetSpace(tools::Long nNew)
tools::Long GetSpace() const
sw::WrongListIterator * m_pWrong
void SetWrong(sw::WrongListIterator *const pNew)
vcl::text::TextLayoutCache const * GetVclCache() const
To take Asian or other languages into consideration, an SwFont object consists of 3 SwSubFonts (Latin...
Represents the visualization of a paragraph.
Dialog to specify the properties of date form field.
OutputDevice RenderContext
UNDERLYING_TYPE get() const
constexpr sal_Int32 COMPLETE_STRING