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

#include <itrtxt.hxx>

Inheritance diagram for SwTextIter:
[legend]
Collaboration diagram for SwTextIter:
[legend]

Public Member Functions

 SwTextIter (SwTextFrame *pTextFrame, SwTextInfo *pTextInf)
 
const SwLineLayoutGetCurr () const
 
const SwLineLayoutGetNext () const
 
const SwLineLayoutGetPrev ()
 
TextFrameIndex GetLength () const
 
sal_Int32 GetLineNr () const
 
TextFrameIndex GetStart () const
 
TextFrameIndex GetEnd () const
 
SwTwips Y () const
 
SwTwips RegStart () const
 
sal_uInt16 RegDiff () const
 
bool IsRegisterOn () const
 
SwTextInfoGetInfo ()
 
const SwTextInfoGetInfo () const
 
void Top ()
 
void Bottom ()
 
const SwLineLayoutNext ()
 
const SwLineLayoutPrev ()
 
const SwLineLayoutNextLine ()
 
const SwLineLayoutPrevLine ()
 
const SwLineLayoutGetNextLine () const
 
const SwLineLayoutGetPrevLine ()
 
void CharToLine (TextFrameIndex)
 
void TwipsToLine (const SwTwips)
 
void TruncLines (bool bNoteFollow=false)
 
SwTwips GetLineHeight () const
 
void CalcAscentAndHeight (SwTwips &rAscent, SwTwips &rHeight) const
 
bool IsFirstTextLine () const
 
bool IsParaLine () const
 
const SwLineInfoGetLineInfo () const
 
SwTwips GetFirstPos () const
 
bool SeekAndChg (SwTextSizeInfo &rInf)
 
bool SeekAndChgBefore (SwTextSizeInfo &rInf)
 
bool SeekStartAndChg (SwTextSizeInfo &rInf, const bool bPara=false)
 
SwTextFrameGetTextFrame ()
 
const SwTextFrameGetTextFrame () const
 
void CntHyphens (sal_uInt8 &nEndCnt, sal_uInt8 &nMidCnt) const
 
- Public Member Functions inherited from SwAttrIter
 SwAttrIter (SwTextNode &rTextNode, SwScriptInfo &rScrInf, SwTextFrame const *const pFrame=nullptr)
 All subclasses of this always have a SwTextFrame passed to the constructor, but SwAttrIter itself may be created without a SwTextFrame in certain special cases via this ctor here. More...
 
virtual ~SwAttrIter ()
 
SwRedlineItrGetRedln ()
 
TextFrameIndex GetNextAttr () const
 
bool Seek (TextFrameIndex nPos)
 Enables the attributes used at char pos nPos in the logical font. More...
 
bool IsSymbol (TextFrameIndex nPos)
 
bool SeekAndChgAttrIter (TextFrameIndex nPos, OutputDevice *pOut)
 Executes ChgPhysFnt if Seek() returns true and change font to merge character border with neighbours. More...
 
bool SeekStartAndChgAttrIter (OutputDevice *pOut, const bool bParaFont)
 
bool MaybeHasHints () const
 
SwTextAttrGetAttr (TextFrameIndex nPos) const
 Returns the attribute for a position. More...
 
SwFontGetFnt ()
 
const SwFontGetFnt () const
 
sal_uInt8 GetPropFont () const
 
void SetPropFont (const sal_uInt8 nNew)
 
SwAttrHandlerGetAttrHandler ()
 

Protected Member Functions

SwLineLayoutGetPrev_ ()
 
void Init ()
 
void CtorInitTextIter (SwTextFrame *pFrame, SwTextInfo *pInf)
 
 SwTextIter (SwTextNode const *pTextNode)
 
- Protected Member Functions inherited from SwAttrIter
void Chg (SwTextAttr const *pHt)
 
void Rst (SwTextAttr const *pHt)
 
void CtorInitAttrIter (SwTextNode &rTextNode, SwScriptInfo &rScrInf, SwTextFrame const *pFrame=nullptr)
 
 SwAttrIter (SwTextNode const *pTextNode)
 

Protected Attributes

SwLineInfo m_aLineInf
 
SwTextFramem_pFrame
 
SwTextInfom_pInf
 
SwLineLayoutm_pCurr
 
SwLineLayoutm_pPrev
 
SwTwips m_nFrameStart
 
SwTwips m_nY
 
SwTwips m_nRegStart
 
TextFrameIndex m_nStart
 
sal_uInt16 m_nRegDiff
 
sal_Int32 m_nLineNr
 
bool m_bPrev: 1
 
bool m_bRegisterOn: 1
 
bool m_bOneBlock: 1
 
bool m_bLastBlock: 1
 
bool m_bLastCenter: 1
 
- Protected Attributes inherited from SwAttrIter
SwAttrHandler m_aAttrHandler
 
SwViewShellm_pViewShell
 
SwFontm_pFont
 
SwScriptInfom_pScriptInfo
 

Detailed Description

Definition at line 30 of file itrtxt.hxx.

Constructor & Destructor Documentation

◆ SwTextIter() [1/2]

SwTextIter::SwTextIter ( SwTextNode const *  pTextNode)
inlineexplicitprotected

Definition at line 55 of file itrtxt.hxx.

◆ SwTextIter() [2/2]

SwTextIter::SwTextIter ( SwTextFrame pTextFrame,
SwTextInfo pTextInf 
)
inline

Definition at line 75 of file itrtxt.hxx.

References CtorInitTextIter().

Member Function Documentation

◆ Bottom()

void SwTextIter::Bottom ( )

◆ CalcAscentAndHeight()

void SwTextIter::CalcAscentAndHeight ( SwTwips rAscent,
SwTwips rHeight 
) const

◆ CharToLine()

void SwTextIter::CharToLine ( TextFrameIndex  nChar)

◆ CntHyphens()

void SwTextIter::CntHyphens ( sal_uInt8 nEndCnt,
sal_uInt8 nMidCnt 
) const

◆ CtorInitTextIter()

void SwTextIter::CtorInitTextIter ( SwTextFrame pFrame,
SwTextInfo pInf 
)
protected

◆ GetCurr()

const SwLineLayout * SwTextIter::GetCurr ( ) const
inline

◆ GetEnd()

TextFrameIndex SwTextIter::GetEnd ( ) const
inline

◆ GetFirstPos()

SwTwips SwTextIter::GetFirstPos ( ) const
inline

Definition at line 129 of file itrtxt.hxx.

References m_nFrameStart.

Referenced by SwTextFrame::FormatLine().

◆ GetInfo() [1/2]

SwTextInfo & SwTextIter::GetInfo ( )
inline

◆ GetInfo() [2/2]

const SwTextInfo & SwTextIter::GetInfo ( ) const
inline

Definition at line 97 of file itrtxt.hxx.

References m_pInf.

◆ GetLength()

TextFrameIndex SwTextIter::GetLength ( ) const
inline

◆ GetLineHeight()

SwTwips SwTextIter::GetLineHeight ( ) const
inline

◆ GetLineInfo()

const SwLineInfo & SwTextIter::GetLineInfo ( ) const
inline

◆ GetLineNr()

sal_Int32 SwTextIter::GetLineNr ( ) const
inline

◆ GetNext()

const SwLineLayout * SwTextIter::GetNext ( ) const
inline

◆ GetNextLine()

const SwLineLayout * SwTextIter::GetNextLine ( ) const

◆ GetPrev()

const SwLineLayout * SwTextIter::GetPrev ( )

◆ GetPrev_()

SwLineLayout * SwTextIter::GetPrev_ ( )
protected

Definition at line 70 of file itrtxt.cxx.

References SwLineLayout::GetNext(), SwTextInfo::GetParaPortion(), m_bPrev, m_pCurr, m_pInf, and m_pPrev.

Referenced by GetPrev(), and Prev().

◆ GetPrevLine()

const SwLineLayout * SwTextIter::GetPrevLine ( )

◆ GetStart()

TextFrameIndex SwTextIter::GetStart ( ) const
inline

◆ GetTextFrame() [1/2]

SwTextFrame * SwTextIter::GetTextFrame ( )
inline

◆ GetTextFrame() [2/2]

const SwTextFrame * SwTextIter::GetTextFrame ( ) const
inline

Definition at line 135 of file itrtxt.hxx.

References m_pFrame.

◆ Init()

void SwTextIter::Init ( void  )
protected

◆ IsFirstTextLine()

bool SwTextIter::IsFirstTextLine ( ) const
inline

◆ IsParaLine()

bool SwTextIter::IsParaLine ( ) const
inline

◆ IsRegisterOn()

bool SwTextIter::IsRegisterOn ( ) const
inline

Definition at line 94 of file itrtxt.hxx.

References m_bRegisterOn.

Referenced by SwTextFormatter::CalcDropHeight(), and SwTextFormatter::CalcRealHeight().

◆ Next()

const SwLineLayout * SwTextIter::Next ( void  )

◆ NextLine()

const SwLineLayout * SwTextIter::NextLine ( )

◆ Prev()

const SwLineLayout * SwTextIter::Prev ( )

◆ PrevLine()

const SwLineLayout * SwTextIter::PrevLine ( )

◆ RegDiff()

sal_uInt16 SwTextIter::RegDiff ( ) const
inline

Definition at line 93 of file itrtxt.hxx.

References m_nRegDiff.

Referenced by SwTextFormatter::CalcRealHeight().

◆ RegStart()

SwTwips SwTextIter::RegStart ( ) const
inline

Definition at line 92 of file itrtxt.hxx.

References m_nRegStart.

Referenced by SwTextFormatter::CalcRealHeight().

◆ SeekAndChg()

bool SwTextIter::SeekAndChg ( SwTextSizeInfo rInf)
inline

◆ SeekAndChgBefore()

bool SwTextIter::SeekAndChgBefore ( SwTextSizeInfo rInf)
inline

◆ SeekStartAndChg()

bool SwTextIter::SeekStartAndChg ( SwTextSizeInfo rInf,
const bool  bPara = false 
)
inline

◆ Top()

void SwTextIter::Top ( )
inline

◆ TruncLines()

void SwTextIter::TruncLines ( bool  bNoteFollow = false)

◆ TwipsToLine()

void SwTextIter::TwipsToLine ( const SwTwips  y)

Definition at line 342 of file itrtxt.cxx.

References GetLineHeight(), m_nY, Next(), Prev(), and y.

Referenced by SwTextFrame::GetModelPositionForViewPoint_(), and SwTextFrame::PaintSwFrame().

◆ Y()

SwTwips SwTextIter::Y ( ) const
inline

Member Data Documentation

◆ m_aLineInf

SwLineInfo SwTextIter::m_aLineInf
protected

◆ m_bLastBlock

bool SwTextIter::m_bLastBlock
protected

Definition at line 47 of file itrtxt.hxx.

Referenced by SwTextMargin::CtorInitTextMargin(), and SwTextMargin::IsLastBlock().

◆ m_bLastCenter

bool SwTextIter::m_bLastCenter
protected

Definition at line 48 of file itrtxt.hxx.

Referenced by SwTextMargin::CtorInitTextMargin(), and SwTextMargin::IsLastCenter().

◆ m_bOneBlock

bool SwTextIter::m_bOneBlock
protected

Definition at line 46 of file itrtxt.hxx.

Referenced by SwTextMargin::CtorInitTextMargin(), and SwTextMargin::IsOneBlock().

◆ m_bPrev

bool SwTextIter::m_bPrev
protected

Definition at line 44 of file itrtxt.hxx.

Referenced by CntHyphens(), SwTextCursor::GetCharRect_(), GetPrev(), GetPrev_(), Init(), Next(), and Prev().

◆ m_bRegisterOn

bool SwTextIter::m_bRegisterOn
protected

Definition at line 45 of file itrtxt.hxx.

Referenced by SwTextFormatter::CalcDropHeight(), CtorInitTextIter(), and IsRegisterOn().

◆ m_nFrameStart

SwTwips SwTextIter::m_nFrameStart
protected

Definition at line 38 of file itrtxt.hxx.

Referenced by CtorInitTextIter(), GetFirstPos(), and Init().

◆ m_nLineNr

sal_Int32 SwTextIter::m_nLineNr
protected

Definition at line 43 of file itrtxt.hxx.

Referenced by GetLineNr(), Init(), SwTextMargin::Left(), Next(), and Prev().

◆ m_nRegDiff

sal_uInt16 SwTextIter::m_nRegDiff
protected

Definition at line 42 of file itrtxt.hxx.

Referenced by CtorInitTextIter(), and RegDiff().

◆ m_nRegStart

SwTwips SwTextIter::m_nRegStart
protected

Definition at line 40 of file itrtxt.hxx.

Referenced by CtorInitTextIter(), and RegStart().

◆ m_nStart

TextFrameIndex SwTextIter::m_nStart
protected

◆ m_nY

SwTwips SwTextIter::m_nY
protected

◆ m_pCurr

SwLineLayout* SwTextIter::m_pCurr
protected

Definition at line 36 of file itrtxt.hxx.

Referenced by SwTextCursor::AddExtraBlankWidth(), SwTextCursor::AdjustBaseLine(), SwTextFormatter::AlignFlyInCntBase(), SwTextFormatter::AllowRepaintOpt(), SwTextFormatter::BuildMultiPortion(), SwTextFormatter::BuildPortions(), SwTextFormatter::CalcAscent(), CalcAscentAndHeight(), SwTextAdjuster::CalcDropAdjust(), SwTextFormatter::CalcFitToContent_(), SwTextAdjuster::CalcFlyPortion(), SwTextFormatter::CalcFlyWidth(), SwTextPainter::CalcPaintOfst(), SwTextFormatter::CalcRealHeight(), SwTextFormatter::CalcUnclipped(), SwTextCursor::CharCursorToLine(), CharToLine(), SwTextPainter::CheckSpecialUnderline(), SwTextFormatter::ChkFlyUnderflow(), CntHyphens(), SwTextMargin::CurrWidth(), SwTextPainter::DrawTextLine(), SwTextFormatter::FeedInf(), SwTextAdjuster::FormatBlock(), SwTextFormatter::FormatLine(), SwTextFormatter::FormatQuoVadis(), SwTextFormatter::FormatReset(), SwTextAdjuster::GetAdjusted(), SwTextCursor::GetCharRect_(), GetCurr(), SwTextCursor::GetEndCharRect(), SwTextFormatter::GetFrameRstHeight(), GetLength(), GetLineHeight(), SwTextMargin::GetLineStart(), SwTextCursor::GetModelPositionForViewPoint(), GetNext(), GetNextLine(), GetPrev_(), GetPrevLine(), SwTextMargin::GetTextEnd(), SwTextMargin::GetTextStart(), SwTextFormatter::Hyphenate(), Init(), SwTextFormatter::Insert(), SwTextFormatter::InsertPortion(), IsFirstTextLine(), IsParaLine(), SwTextFormatter::MakeDummyLine(), SwTextFormatter::NewFlyCntPortion(), SwTextFormatter::NewFootnotePortion(), SwTextFormatter::NewPortion(), SwTextFormatter::NewTabPortion(), Next(), SwTextPainter::PaintDropPortion(), SwTextPainter::PaintMultiPortion(), Prev(), SwTextCursorSave::SwTextCursorSave(), TruncLines(), SwTextFormatter::Underflow(), SwTextFormatter::WhichFirstPortion(), SwTextFormatter::WhichTextPor(), and SwTextCursorSave::~SwTextCursorSave().

◆ m_pFrame

SwTextFrame* SwTextIter::m_pFrame
protected

◆ m_pInf

SwTextInfo* SwTextIter::m_pInf
protected

◆ m_pPrev

SwLineLayout* SwTextIter::m_pPrev
protected

Definition at line 37 of file itrtxt.hxx.

Referenced by CntHyphens(), GetPrev(), GetPrev_(), Init(), Next(), and Prev().


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