20 #ifndef INCLUDED_SW_SOURCE_CORE_INC_DRAWFONT_HXX
21 #define INCLUDED_SW_SOURCE_CORE_INC_DRAWFONT_HXX
23 #include <osl/diagnose.h>
33 namespace sw {
class WrongListIterator; }
38 class TextLayoutCache;
76 bool m_bDrawSpace : 1;
80 bool m_bSpaceStop : 1;
81 bool m_bSnapToGrid : 1;
83 bool m_bIgnoreFrameRTL : 1;
86 bool m_bPosMatchesBounds :1;
95 bool m_bGrammarCheck : 1;
102 bool m_bCharacterSpacing : 1;
104 bool m_bNumberOfBlanks : 1;
111 const OUString &rText, sal_Int32
const nIdx, sal_Int32
const nLen,
112 sal_uInt16 nWidth = 0,
bool bBullet =
false)
118 sal_uInt16 nWidth = 0,
bool bBullet =
false,
120 : m_pCachedVclData(pCachedVclData)
134 m_nCursorBidiLevel = 0;
136 m_pUnderFnt =
nullptr;
138 m_bSpaceStop =
false;
139 m_bSnapToGrid =
false;
140 m_bIgnoreFrameRTL =
false;
141 m_bPosMatchesBounds =
false;
146 m_pGrammarCheck =
nullptr;
147 m_pSmartTags =
nullptr;
149 m_pHyphPos =
nullptr;
153 m_nCharacterSpacing = 0;
156 m_bDrawSpace =
false;
162 m_bPos = m_bWrong = m_bGrammarCheck = m_bSize = m_bFnt = m_bAscent =
163 m_bSpace = m_bNumberOfBlanks = m_bUppr =
164 m_bDrawSp = m_bKana = m_bOfst = m_bHyph =
165 m_bCharacterSpacing =
false;
176 m_pFrame = pNewFrame;
196 return m_pScriptInfo;
202 OSL_ENSURE( m_bPos,
"DrawTextInfo: Undefined Position" );
210 OSL_ENSURE( m_bHyph,
"DrawTextInfo: Undefined Hyph Position" );
217 return m_pCachedVclData;
228 OSL_ENSURE( m_bWrong,
"DrawTextInfo: Undefined WrongList" );
236 OSL_ENSURE( m_bGrammarCheck,
"DrawTextInfo: Undefined GrammarCheck List" );
238 return m_pGrammarCheck;
249 OSL_ENSURE( m_bSize,
"DrawTextInfo: Undefined Size" );
257 OSL_ENSURE( m_bFnt,
"DrawTextInfo: Undefined Font" );
280 OSL_ENSURE( m_bOfst,
"DrawTextInfo: Undefined Offset" );
287 return m_nIdx + m_nLen;
293 OSL_ENSURE( m_bKana,
"DrawTextInfo: Undefined kana difference" );
306 OSL_ENSURE( m_bAscent,
"DrawTextInfo: Undefined Ascent" );
319 OSL_ENSURE( m_bCharacterSpacing,
"DrawTextInfo: Undefined CharacterSpacing" );
321 return m_nCharacterSpacing;
332 OSL_ENSURE( m_bSpace,
"DrawTextInfo: Undefined Spacing" );
340 OSL_ENSURE( m_bNumberOfBlanks,
"DrawTextInfo::Undefined NumberOfBlanks" );
342 return m_nNumberOfBlanks;
347 return m_nCursorBidiLevel;
358 OSL_ENSURE( m_bUppr,
"DrawTextInfo: Undefined Upperflag" );
366 OSL_ENSURE( m_bDrawSp,
"DrawTextInfo: Undefined DrawSpaceflag" );
383 return m_bSnapToGrid;
388 return m_bIgnoreFrameRTL;
393 return m_bPosMatchesBounds;
421 m_pCachedVclData =
nullptr;
431 m_pCachedVclData =
nullptr;
452 m_pGrammarCheck = pNew;
454 m_bGrammarCheck =
true;
529 m_nCharacterSpacing = -nNew;
535 m_nCharacterSpacing = 0;
539 m_bCharacterSpacing =
true;
546 m_bNumberOfBlanks =
true;
548 m_nNumberOfBlanks = nNew;
553 m_nCursorBidiLevel = nNew;
568 m_pUnderFnt = pULFnt;
599 m_bSnapToGrid = bNew;
604 m_bIgnoreFrameRTL = bNew;
609 m_bPosMatchesBounds = bNew;
617 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
tools::Long GetCharacterSpacing() 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 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
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
void SetHyphPos(TextFrameIndex *const pNew)
sal_uInt16 GetKanaComp() const
void SetWrong(sw::WrongListIterator *const pNew)
void SetLen(TextFrameIndex const nNew)
const OUString & GetText() const
sw::WrongListIterator * GetSmartTags() const
void SetNumberOfBlanks(TextFrameIndex const nNew)
exports com.sun.star. text
void SetAscent(sal_uInt16 nNew)
void SetPosMatchesBounds(bool bNew)
UNDERLYING_TYPE get() const
tools::Long GetKanaDiff() const
bool IsIgnoreFrameRTL() const
void SetOffset(sal_Int32 nNew)
const SwTextFrame * m_pFrame
tools::Long m_nCharacterSpacing
vcl::text::TextLayoutCache const * GetVclCache() const
void SetBullet(bool bNew)
void SetSpace(tools::Long nNew)
void SetGrammarCheck(sw::WrongListIterator *const pNew)
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
void SetTextIdxLen(const OUString &rNewStr, TextFrameIndex const nNewIdx, TextFrameIndex const nNewLen)
TextFrameIndex GetLen() const
const Size & GetSize() const
void SetSnapToGrid(bool bNew)
SwViewShell const * m_pSh
vcl::text::TextLayoutCache const * m_pCachedVclData
vcl::RenderContext & GetOut() const
tools::Long GetKern() const
constexpr sal_Int32 COMPLETE_STRING
void SetText(const OUString &rNew)
TextFrameIndex GetIdx() const
void SetFont(SwFont *pNew)
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
void SetIdxLen(TextFrameIndex const nNewIdx, TextFrameIndex const nNewLen)