20 #ifndef INCLUDED_SW_SOURCE_CORE_INC_DRAWFONT_HXX
21 #define INCLUDED_SW_SOURCE_CORE_INC_DRAWFONT_HXX
23 #include <osl/diagnose.h>
32 namespace sw {
class WrongListIterator; }
73 bool m_bDrawSpace : 1;
77 bool m_bSpaceStop : 1;
78 bool m_bSnapToGrid : 1;
80 bool m_bIgnoreFrameRTL : 1;
83 bool m_bPosMatchesBounds :1;
92 bool m_bGrammarCheck : 1;
101 bool m_bNumberOfBlanks : 1;
108 const OUString &rText, sal_Int32
const nIdx, sal_Int32
const nLen,
109 sal_uInt16 nWidth = 0,
bool bBullet =
false)
115 sal_uInt16 nWidth = 0,
bool bBullet =
false,
117 : m_pCachedVclData(pCachedVclData)
130 m_nCursorBidiLevel = 0;
132 m_pUnderFnt =
nullptr;
134 m_bSpaceStop =
false;
135 m_bSnapToGrid =
false;
136 m_bIgnoreFrameRTL =
false;
137 m_bPosMatchesBounds =
false;
142 m_pGrammarCheck =
nullptr;
143 m_pSmartTags =
nullptr;
145 m_pHyphPos =
nullptr;
152 m_bDrawSpace =
false;
158 m_bPos = m_bWrong = m_bGrammarCheck = m_bSize = m_bFnt = m_bAscent =
159 m_bSpace = m_bNumberOfBlanks = m_bUppr =
160 m_bDrawSp = m_bKana = m_bOfst = m_bHyph =
172 m_pFrame = pNewFrame;
192 return m_pScriptInfo;
198 OSL_ENSURE( m_bPos,
"DrawTextInfo: Undefined Position" );
206 OSL_ENSURE( m_bHyph,
"DrawTextInfo: Undefined Hyph Position" );
213 return m_pCachedVclData;
224 OSL_ENSURE( m_bWrong,
"DrawTextInfo: Undefined WrongList" );
232 OSL_ENSURE( m_bGrammarCheck,
"DrawTextInfo: Undefined GrammarCheck List" );
234 return m_pGrammarCheck;
245 OSL_ENSURE( m_bSize,
"DrawTextInfo: Undefined Size" );
253 OSL_ENSURE( m_bFnt,
"DrawTextInfo: Undefined Font" );
276 OSL_ENSURE( m_bOfst,
"DrawTextInfo: Undefined Offset" );
283 return m_nIdx + m_nLen;
289 OSL_ENSURE( m_bKana,
"DrawTextInfo: Undefined kana difference" );
302 OSL_ENSURE( m_bAscent,
"DrawTextInfo: Undefined Ascent" );
315 OSL_ENSURE( m_bSperr,
"DrawTextInfo: Undefined >Sperren<" );
328 OSL_ENSURE( m_bSpace,
"DrawTextInfo: Undefined Spacing" );
336 OSL_ENSURE( m_bNumberOfBlanks,
"DrawTextInfo::Undefined NumberOfBlanks" );
338 return m_nNumberOfBlanks;
343 return m_nCursorBidiLevel;
354 OSL_ENSURE( m_bUppr,
"DrawTextInfo: Undefined Upperflag" );
362 OSL_ENSURE( m_bDrawSp,
"DrawTextInfo: Undefined DrawSpaceflag" );
379 return m_bSnapToGrid;
384 return m_bIgnoreFrameRTL;
389 return m_bPosMatchesBounds;
416 m_pCachedVclData =
nullptr;
429 m_pGrammarCheck = pNew;
431 m_bGrammarCheck =
true;
521 m_bNumberOfBlanks =
true;
523 m_nNumberOfBlanks = nNew;
528 m_nCursorBidiLevel = nNew;
543 m_pUnderFnt = pULFnt;
574 m_bSnapToGrid = bNew;
579 m_bIgnoreFrameRTL = bNew;
584 m_bPosMatchesBounds = bNew;
592 bool ApplyAutoColor(
vcl::Font* pFnt =
nullptr );
void SetSmartTags(sw::WrongListIterator *const pNew)
SwViewShell const * GetShell() const
Represents the visualization of a paragraph.
sw::WrongListIterator * GetGrammarCheck() const
VclPtr< OutputDevice > m_pOut
vcl::RenderContext * GetpOut() const
bool GetDrawSpace() const
sw::WrongListIterator * GetWrong() const
TextFrameIndex GetEnd() const
TextFrameIndex * GetHyphPos() const
void SetSize(const Size &rNew)
void SetIdx(TextFrameIndex const nNew)
void SetGreyWave(bool bNew)
void SetKanaComp(short nNew)
void SetPos(const Point &rNew)
bool IsPosMatchesBounds() const
sal_uInt16 GetWidth() const
void SetWidth(sal_uInt16 nNew)
sal_uInt16 GetAscent() const
Dialog to specify the properties of date form field.
void SetFrame(const SwTextFrame *pNewFrame)
TextFrameIndex * m_pHyphPos
sw::WrongListIterator * m_pSmartTags
const SwScriptInfo * GetScriptInfo() const
void SetCursorBidiLevel(sal_uInt8 nNew)
void SetSpaceStop(bool bNew)
const SwTextFrame * GetFrame() const
sal_Int32 m_nOfst
this is not a string index
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 SetUnderFnt(SwUnderlineFont *pULFnt)
void SetOut(OutputDevice &rNew)
void SetKern(tools::Long nNew)
void SetKanaDiff(tools::Long nNew)
SwUnderlineFont * m_pUnderFnt
sal_uInt8 m_nCursorBidiLevel
SwUnderlineFont * GetUnderFnt() const
vcl::TextLayoutCache const * GetVclCache() const
void SetHyphPos(TextFrameIndex *const pNew)
sal_uInt16 GetKanaComp() const
void SetWrong(sw::WrongListIterator *const pNew)
void SetLen(TextFrameIndex const nNew)
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::TextLayoutCache const *const pCachedVclData=nullptr)
constructor for text frame contents
const OUString & GetText() const
sw::WrongListIterator * GetSmartTags() const
void SetNumberOfBlanks(TextFrameIndex const nNew)
void SetAscent(sal_uInt16 nNew)
void SetPosMatchesBounds(bool bNew)
tools::Long GetKanaDiff() const
bool IsIgnoreFrameRTL() const
void SetOffset(sal_Int32 nNew)
const SwTextFrame * m_pFrame
void SetBullet(bool bNew)
void SetSpace(tools::Long nNew)
void SetGrammarCheck(sw::WrongListIterator *const pNew)
tools::Long GetSperren() const
TextFrameIndex m_nNumberOfBlanks
void SetDrawSpace(bool bNew)
sal_uInt8 GetCursorBidiLevel() const
sw::WrongListIterator * m_pWrong
tools::Long GetSpace() const
OutputDevice RenderContext
TextFrameIndex GetNumberOfBlanks() const
const Point & GetPos() const
TextFrameIndex GetLen() const
const Size & GetSize() const
void SetSnapToGrid(bool bNew)
SwViewShell const * m_pSh
vcl::RenderContext & GetOut() const
tools::Long GetKern() const
void SetText(const OUString &rNew)
TextFrameIndex GetIdx() const
void SetFont(SwFont *pNew)
vcl::TextLayoutCache const * m_pCachedVclData
sal_Int32 GetOffset() const
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...
const SwScriptInfo * m_pScriptInfo
void SetIgnoreFrameRTL(bool bNew)
sw::WrongListIterator * m_pGrammarCheck