LibreOffice Module sw (master)  1
Public Member Functions | Public Attributes | Private Attributes | List of all members
SwDrawTextInfo Class Reference

#include <drawfont.hxx>

Collaboration diagram for SwDrawTextInfo:
[legend]

Public Member Functions

 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 More...
 
 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 More...
 
const SwTextFrameGetFrame () const
 
void SetFrame (const SwTextFrame *pNewFrame)
 
SwViewShell const * GetShell () const
 
vcl::RenderContextGetOut () const
 
vcl::RenderContextGetpOut () const
 
const SwScriptInfoGetScriptInfo () const
 
const PointGetPos () const
 
TextFrameIndexGetHyphPos () const
 
vcl::TextLayoutCache const * GetVclCache () const
 
const OUString & GetText () const
 
sw::WrongListIteratorGetWrong () const
 
sw::WrongListIteratorGetGrammarCheck () const
 
sw::WrongListIteratorGetSmartTags () const
 
const SizeGetSize () const
 
SwFontGetFont () const
 
SwUnderlineFontGetUnderFnt () const
 
TextFrameIndex GetIdx () const
 
TextFrameIndex GetLen () const
 
sal_Int32 GetOfst () const
 
TextFrameIndex GetEnd () const
 
long GetKanaDiff () const
 
sal_uInt16 GetWidth () const
 
sal_uInt16 GetAscent () const
 
sal_uInt16 GetKanaComp () const
 
long GetSperren () const
 
long GetKern () const
 
long GetSpace () const
 
TextFrameIndex GetNumberOfBlanks () const
 
sal_uInt8 GetCursorBidiLevel () const
 
bool GetBullet () const
 
bool GetUpper () const
 
bool GetDrawSpace () const
 
bool GetGreyWave () const
 
bool IsSpaceStop () const
 
bool SnapToGrid () const
 
bool IsIgnoreFrameRTL () const
 
bool IsPosMatchesBounds () const
 
void SetOut (OutputDevice &rNew)
 
void SetPos (const Point &rNew)
 
void SetHyphPos (TextFrameIndex *const pNew)
 
void SetText (const OUString &rNew)
 
void SetWrong (sw::WrongListIterator *const pNew)
 
void SetGrammarCheck (sw::WrongListIterator *const pNew)
 
void SetSmartTags (sw::WrongListIterator *const pNew)
 
void SetSize (const Size &rNew)
 
void SetFont (SwFont *pNew)
 
void SetIdx (TextFrameIndex const nNew)
 
void SetLen (TextFrameIndex const nNew)
 
void SetOfst (sal_Int32 nNew)
 
void SetKanaDiff (long nNew)
 
void SetWidth (sal_uInt16 nNew)
 
void SetAscent (sal_uInt16 nNew)
 
void SetKern (long nNew)
 
void SetSpace (long nNew)
 
void SetNumberOfBlanks (TextFrameIndex const nNew)
 
void SetCursorBidiLevel (sal_uInt8 nNew)
 
void SetKanaComp (short nNew)
 
void SetBullet (bool bNew)
 
void SetUnderFnt (SwUnderlineFont *pULFnt)
 
void SetUpper (bool bNew)
 
void SetDrawSpace (bool bNew)
 
void SetGreyWave (bool bNew)
 
void SetSpaceStop (bool bNew)
 
void SetSnapToGrid (bool bNew)
 
void SetIgnoreFrameRTL (bool bNew)
 
void SetPosMatchesBounds (bool bNew)
 
void Shift (sal_uInt16 nDir)
 
bool ApplyAutoColor (vcl::Font *pFnt=nullptr)
 

Public Attributes

bool m_bPos: 1
 
bool m_bWrong: 1
 
bool m_bGrammarCheck: 1
 
bool m_bSize: 1
 
bool m_bFnt: 1
 
bool m_bHyph: 1
 
bool m_bKana: 1
 
bool m_bOfst: 1
 
bool m_bAscent: 1
 
bool m_bSperr: 1
 
bool m_bSpace: 1
 
bool m_bNumberOfBlanks: 1
 
bool m_bUppr: 1
 
bool m_bDrawSp: 1
 

Private Attributes

const SwTextFramem_pFrame
 
VclPtr< OutputDevicem_pOut
 
SwViewShell const * m_pSh
 
const SwScriptInfom_pScriptInfo
 
Point m_aPos
 
vcl::TextLayoutCache const * m_pCachedVclData
 
OUString m_aText
 
sw::WrongListIteratorm_pWrong
 
sw::WrongListIteratorm_pGrammarCheck
 
sw::WrongListIteratorm_pSmartTags
 
Size m_aSize
 
SwFontm_pFnt
 
SwUnderlineFontm_pUnderFnt
 
TextFrameIndexm_pHyphPos
 
long m_nKanaDiff
 
TextFrameIndex m_nIdx
 
TextFrameIndex m_nLen
 
sal_Int32 m_nOfst
 this is not a string index More...
 
sal_uInt16 m_nWidth
 
sal_uInt16 m_nAscent
 
sal_uInt16 m_nCompress
 
long m_nSperren
 
long m_nSpace
 
long m_nKern
 
TextFrameIndex m_nNumberOfBlanks
 
sal_uInt8 m_nCursorBidiLevel
 
bool m_bBullet: 1
 
bool m_bUpper: 1
 
bool m_bDrawSpace: 1
 
bool m_bGreyWave: 1
 
bool m_bSpaceStop: 1
 
bool m_bSnapToGrid: 1
 
bool m_bIgnoreFrameRTL: 1
 
bool m_bPosMatchesBounds:1
 

Detailed Description

Definition at line 42 of file drawfont.hxx.

Constructor & Destructor Documentation

SwDrawTextInfo::SwDrawTextInfo ( SwViewShell const *  pSh,
OutputDevice rOut,
const OUString &  rText,
sal_Int32 const  nIdx,
sal_Int32 const  nLen,
sal_uInt16  nWidth = 0,
bool  bBullet = false 
)
inline

constructor for simple strings

Definition at line 107 of file drawfont.hxx.

SwDrawTextInfo::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 
)
inline

constructor for text frame contents

Definition at line 113 of file drawfont.hxx.

Member Function Documentation

bool SwDrawTextInfo::ApplyAutoColor ( vcl::Font pFnt = nullptr)

OD 21.08.2002 consider, that [GetBackgroundBrush(...)] can set <pCol>

  • see implementation in /core/layout/paintfrm.cxx OD 21.08.2002 #99657# There is a user defined setting for the background, if there is a background brush and its color is not "no fill"/"auto fill".

OD 30.08.2002 #99657# determined color <pCol> can be <COL_TRANSPARENT>. Thus, check it.

Definition at line 2575 of file fntcache.cxx.

References aGlobalRetoucheColor, COL_AUTO(), COL_BLACK(), COL_TRANSPARENT(), COL_WHITE(), SwViewShell::GetAccessibilityOptions(), SwFont::GetBackColor(), Color::getBColor(), vcl::Font::GetColor(), SvxBrushItem::GetColor(), OutputDevice::GetFont(), GetFont(), SwViewOption::GetFontColor(), GetFrame(), GetOut(), OutputDevice::GetOverlineColor(), GetShell(), SwViewShell::GetViewOptions(), SwViewShell::GetWin(), SwAccessibilityOptions::IsAlwaysAutoColor(), Color::IsBright(), Color::IsDark(), SwViewOption::IsPagePreview(), vcl::Font::SetColor(), OutputDevice::SetFont(), OutputDevice::SetLineColor(), OutputDevice::SetOverlineColor(), and SW_MOD.

Referenced by SwDoDrawStretchCapital::Do(), SwDoDrawCapital::DrawSpace(), SwSubFont::DrawStretchText_(), and SwFntObj::DrawText().

sal_uInt16 SwDrawTextInfo::GetAscent ( ) const
inline

Definition at line 299 of file drawfont.hxx.

Referenced by SwTextFly::DrawTextOpaque().

bool SwDrawTextInfo::GetBullet ( ) const
inline

Definition at line 346 of file drawfont.hxx.

Referenced by SwDoDrawCapital::Do(), and SwFntObj::DrawText().

sal_uInt8 SwDrawTextInfo::GetCursorBidiLevel ( ) const
inline

Definition at line 341 of file drawfont.hxx.

bool SwDrawTextInfo::GetDrawSpace ( ) const
inline

Definition at line 359 of file drawfont.hxx.

Referenced by SwSubFont::DoOnCapitals().

TextFrameIndex SwDrawTextInfo::GetEnd ( ) const
inline

Definition at line 281 of file drawfont.hxx.

Referenced by SwDoGetCapitalBreak::Do().

SwFont* SwDrawTextInfo::GetFont ( ) const
inline
const SwTextFrame* SwDrawTextInfo::GetFrame ( ) const
inline
sw::WrongListIterator* SwDrawTextInfo::GetGrammarCheck ( ) const
inline

Definition at line 229 of file drawfont.hxx.

Referenced by SwFntObj::DrawText().

bool SwDrawTextInfo::GetGreyWave ( ) const
inline

Definition at line 367 of file drawfont.hxx.

Referenced by SwFntObj::DrawText().

TextFrameIndex* SwDrawTextInfo::GetHyphPos ( ) const
inline

Definition at line 203 of file drawfont.hxx.

Referenced by SwFont::GetTextBreak().

TextFrameIndex SwDrawTextInfo::GetIdx ( ) const
inline
sal_uInt16 SwDrawTextInfo::GetKanaComp ( ) const
inline
long SwDrawTextInfo::GetKanaDiff ( ) const
inline
long SwDrawTextInfo::GetKern ( ) const
inline
TextFrameIndex SwDrawTextInfo::GetLen ( ) const
inline
TextFrameIndex SwDrawTextInfo::GetNumberOfBlanks ( ) const
inline

Definition at line 333 of file drawfont.hxx.

Referenced by SwFntObj::DrawText(), and SwFntObj::GetCursorOfst().

sal_Int32 SwDrawTextInfo::GetOfst ( ) const
inline

Definition at line 273 of file drawfont.hxx.

Referenced by SwSubFont::GetCapitalCursorOfst(), and SwFntObj::GetCursorOfst().

vcl::RenderContext& SwDrawTextInfo::GetOut ( ) const
inline
const Point& SwDrawTextInfo::GetPos ( ) const
inline
vcl::RenderContext* SwDrawTextInfo::GetpOut ( ) const
inline
const SwScriptInfo* SwDrawTextInfo::GetScriptInfo ( ) const
inline
SwViewShell const* SwDrawTextInfo::GetShell ( ) const
inline
const Size& SwDrawTextInfo::GetSize ( ) const
inline
sw::WrongListIterator* SwDrawTextInfo::GetSmartTags ( ) const
inline

Definition at line 237 of file drawfont.hxx.

Referenced by SwFntObj::DrawText(), and lcl_DrawLineForWrongListData().

long SwDrawTextInfo::GetSpace ( ) const
inline
long SwDrawTextInfo::GetSperren ( ) const
inline
const OUString& SwDrawTextInfo::GetText ( ) const
inline
SwUnderlineFont* SwDrawTextInfo::GetUnderFnt ( ) const
inline

Definition at line 258 of file drawfont.hxx.

Referenced by SwSubFont::DrawStretchText_(), and SwSubFont::DrawText_().

bool SwDrawTextInfo::GetUpper ( ) const
inline
vcl::TextLayoutCache const* SwDrawTextInfo::GetVclCache ( ) const
inline

Definition at line 211 of file drawfont.hxx.

Referenced by SwFont::GetTextBreak(), and SwFntObj::GetTextSize().

sal_uInt16 SwDrawTextInfo::GetWidth ( ) const
inline
sw::WrongListIterator* SwDrawTextInfo::GetWrong ( ) const
inline

Definition at line 221 of file drawfont.hxx.

Referenced by SwFntObj::DrawText().

bool SwDrawTextInfo::IsIgnoreFrameRTL ( ) const
inline
bool SwDrawTextInfo::IsPosMatchesBounds ( ) const
inline

Definition at line 387 of file drawfont.hxx.

Referenced by SwFntObj::GetCursorOfst().

bool SwDrawTextInfo::IsSpaceStop ( ) const
inline

Definition at line 372 of file drawfont.hxx.

Referenced by SwFntObj::DrawText(), SwSubFont::DrawText_(), and SwFntObj::GetCursorOfst().

void SwDrawTextInfo::SetAscent ( sal_uInt16  nNew)
inline

Definition at line 487 of file drawfont.hxx.

void SwDrawTextInfo::SetBullet ( bool  bNew)
inline

Definition at line 536 of file drawfont.hxx.

Referenced by SwDoDrawCapital::Do().

void SwDrawTextInfo::SetCursorBidiLevel ( sal_uInt8  nNew)
inline

Definition at line 526 of file drawfont.hxx.

Referenced by SwFntObj::GetCursorOfst().

void SwDrawTextInfo::SetDrawSpace ( bool  bNew)
inline
void SwDrawTextInfo::SetFont ( SwFont pNew)
inline
void SwDrawTextInfo::SetFrame ( const SwTextFrame pNewFrame)
inline

Definition at line 170 of file drawfont.hxx.

Referenced by SwTextSizeInfo::GetTextBreak(), and SwTextSizeInfo::GetTextSize().

void SwDrawTextInfo::SetGrammarCheck ( sw::WrongListIterator *const  pNew)
inline

Definition at line 427 of file drawfont.hxx.

Referenced by SwFont::GetCapitalBreak().

void SwDrawTextInfo::SetGreyWave ( bool  bNew)
inline

Definition at line 562 of file drawfont.hxx.

Referenced by SwSubFont::DrawText_().

void SwDrawTextInfo::SetHyphPos ( TextFrameIndex *const  pNew)
inline

Definition at line 405 of file drawfont.hxx.

Referenced by SwTextSizeInfo::GetTextBreak().

void SwDrawTextInfo::SetIdx ( TextFrameIndex const  nNew)
inline
void SwDrawTextInfo::SetIgnoreFrameRTL ( bool  bNew)
inline

Definition at line 577 of file drawfont.hxx.

void SwDrawTextInfo::SetKanaComp ( short  nNew)
inline
void SwDrawTextInfo::SetKanaDiff ( long  nNew)
inline

Definition at line 474 of file drawfont.hxx.

Referenced by SwSubFont::DoOnCapitals(), and SwFntObj::GetTextSize().

void SwDrawTextInfo::SetKern ( long  nNew)
inline
void SwDrawTextInfo::SetLen ( TextFrameIndex const  nNew)
inline
void SwDrawTextInfo::SetNumberOfBlanks ( TextFrameIndex const  nNew)
inline

Definition at line 518 of file drawfont.hxx.

void SwDrawTextInfo::SetOfst ( sal_Int32  nNew)
inline

Definition at line 466 of file drawfont.hxx.

Referenced by SwDoCapitalCursorOfst::Do().

void SwDrawTextInfo::SetOut ( OutputDevice rNew)
inline

Definition at line 392 of file drawfont.hxx.

Referenced by SwSubFont::DoOnCapitals().

void SwDrawTextInfo::SetPos ( const Point rNew)
inline
void SwDrawTextInfo::SetPosMatchesBounds ( bool  bNew)
inline

Definition at line 582 of file drawfont.hxx.

void SwDrawTextInfo::SetSize ( const Size rNew)
inline

Definition at line 440 of file drawfont.hxx.

Referenced by SwSubFont::DoOnCapitals().

void SwDrawTextInfo::SetSmartTags ( sw::WrongListIterator *const  pNew)
inline

Definition at line 435 of file drawfont.hxx.

Referenced by SwFont::GetCapitalBreak().

void SwDrawTextInfo::SetSnapToGrid ( bool  bNew)
inline

Definition at line 572 of file drawfont.hxx.

Referenced by SwTextSizeInfo::GetTextBreak(), and SwTextSizeInfo::GetTextSize().

void SwDrawTextInfo::SetSpace ( long  nNew)
inline
void SwDrawTextInfo::SetSpaceStop ( bool  bNew)
inline

Definition at line 567 of file drawfont.hxx.

void SwDrawTextInfo::SetText ( const OUString &  rNew)
inline
void SwDrawTextInfo::SetUnderFnt ( SwUnderlineFont pULFnt)
inline
void SwDrawTextInfo::SetUpper ( bool  bNew)
inline

Definition at line 546 of file drawfont.hxx.

Referenced by SwSubFont::DoOnCapitals().

void SwDrawTextInfo::SetWidth ( sal_uInt16  nNew)
inline

Definition at line 482 of file drawfont.hxx.

Referenced by SwDoDrawCapital::Do(), and SwSubFont::DrawText_().

void SwDrawTextInfo::SetWrong ( sw::WrongListIterator *const  pNew)
inline

Definition at line 419 of file drawfont.hxx.

Referenced by SwFont::GetCapitalBreak().

void SwDrawTextInfo::Shift ( sal_uInt16  nDir)
bool SwDrawTextInfo::SnapToGrid ( ) const
inline

Member Data Documentation

Point SwDrawTextInfo::m_aPos
private

Definition at line 48 of file drawfont.hxx.

Referenced by Shift().

Size SwDrawTextInfo::m_aSize
private

Definition at line 54 of file drawfont.hxx.

OUString SwDrawTextInfo::m_aText
private

Definition at line 50 of file drawfont.hxx.

bool SwDrawTextInfo::m_bAscent

Definition at line 98 of file drawfont.hxx.

bool SwDrawTextInfo::m_bBullet
private

Definition at line 71 of file drawfont.hxx.

bool SwDrawTextInfo::m_bDrawSp

Definition at line 103 of file drawfont.hxx.

bool SwDrawTextInfo::m_bDrawSpace
private

Definition at line 73 of file drawfont.hxx.

bool SwDrawTextInfo::m_bFnt

Definition at line 94 of file drawfont.hxx.

bool SwDrawTextInfo::m_bGrammarCheck

Definition at line 92 of file drawfont.hxx.

bool SwDrawTextInfo::m_bGreyWave
private

Definition at line 74 of file drawfont.hxx.

bool SwDrawTextInfo::m_bHyph

Definition at line 95 of file drawfont.hxx.

bool SwDrawTextInfo::m_bIgnoreFrameRTL
private

Definition at line 80 of file drawfont.hxx.

bool SwDrawTextInfo::m_bKana

Definition at line 96 of file drawfont.hxx.

bool SwDrawTextInfo::m_bNumberOfBlanks

Definition at line 101 of file drawfont.hxx.

bool SwDrawTextInfo::m_bOfst

Definition at line 97 of file drawfont.hxx.

bool SwDrawTextInfo::m_bPos

Definition at line 90 of file drawfont.hxx.

Referenced by Shift().

bool SwDrawTextInfo::m_bPosMatchesBounds
private

Definition at line 83 of file drawfont.hxx.

bool SwDrawTextInfo::m_bSize

Definition at line 93 of file drawfont.hxx.

Referenced by Shift().

bool SwDrawTextInfo::m_bSnapToGrid
private

Definition at line 78 of file drawfont.hxx.

bool SwDrawTextInfo::m_bSpace

Definition at line 100 of file drawfont.hxx.

bool SwDrawTextInfo::m_bSpaceStop
private

Definition at line 77 of file drawfont.hxx.

bool SwDrawTextInfo::m_bSperr

Definition at line 99 of file drawfont.hxx.

bool SwDrawTextInfo::m_bUpper
private

Definition at line 72 of file drawfont.hxx.

bool SwDrawTextInfo::m_bUppr

Definition at line 102 of file drawfont.hxx.

bool SwDrawTextInfo::m_bWrong

Definition at line 91 of file drawfont.hxx.

sal_uInt16 SwDrawTextInfo::m_nAscent
private

Definition at line 64 of file drawfont.hxx.

sal_uInt16 SwDrawTextInfo::m_nCompress
private

Definition at line 65 of file drawfont.hxx.

sal_uInt8 SwDrawTextInfo::m_nCursorBidiLevel
private

Definition at line 70 of file drawfont.hxx.

TextFrameIndex SwDrawTextInfo::m_nIdx
private

Definition at line 59 of file drawfont.hxx.

long SwDrawTextInfo::m_nKanaDiff
private

Definition at line 58 of file drawfont.hxx.

long SwDrawTextInfo::m_nKern
private

Definition at line 68 of file drawfont.hxx.

TextFrameIndex SwDrawTextInfo::m_nLen
private

Definition at line 60 of file drawfont.hxx.

TextFrameIndex SwDrawTextInfo::m_nNumberOfBlanks
private

Definition at line 69 of file drawfont.hxx.

sal_Int32 SwDrawTextInfo::m_nOfst
private

this is not a string index

Definition at line 62 of file drawfont.hxx.

long SwDrawTextInfo::m_nSpace
private

Definition at line 67 of file drawfont.hxx.

long SwDrawTextInfo::m_nSperren
private

Definition at line 66 of file drawfont.hxx.

sal_uInt16 SwDrawTextInfo::m_nWidth
private

Definition at line 63 of file drawfont.hxx.

vcl::TextLayoutCache const* SwDrawTextInfo::m_pCachedVclData
private

Definition at line 49 of file drawfont.hxx.

SwFont* SwDrawTextInfo::m_pFnt
private

Definition at line 55 of file drawfont.hxx.

const SwTextFrame* SwDrawTextInfo::m_pFrame
private

Definition at line 44 of file drawfont.hxx.

sw::WrongListIterator* SwDrawTextInfo::m_pGrammarCheck
private

Definition at line 52 of file drawfont.hxx.

TextFrameIndex* SwDrawTextInfo::m_pHyphPos
private

Definition at line 57 of file drawfont.hxx.

VclPtr<OutputDevice> SwDrawTextInfo::m_pOut
private

Definition at line 45 of file drawfont.hxx.

const SwScriptInfo* SwDrawTextInfo::m_pScriptInfo
private

Definition at line 47 of file drawfont.hxx.

SwViewShell const* SwDrawTextInfo::m_pSh
private

Definition at line 46 of file drawfont.hxx.

sw::WrongListIterator* SwDrawTextInfo::m_pSmartTags
private

Definition at line 53 of file drawfont.hxx.

SwUnderlineFont* SwDrawTextInfo::m_pUnderFnt
private

Definition at line 56 of file drawfont.hxx.

sw::WrongListIterator* SwDrawTextInfo::m_pWrong
private

Definition at line 51 of file drawfont.hxx.


The documentation for this class was generated from the following files: