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_uInt16 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)
 
sal_uInt16 GetLineHeight () const
 
void CalcAscentAndHeight (sal_uInt16 &rAscent, sal_uInt16 &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_uInt16 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::SwTextIter ( SwTextNode const *  pTextNode)
inlineexplicitprotected

Definition at line 55 of file itrtxt.hxx.

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

Definition at line 75 of file itrtxt.hxx.

References CtorInitTextIter().

Member Function Documentation

void SwTextIter::Bottom ( )
void SwTextIter::CalcAscentAndHeight ( sal_uInt16 &  rAscent,
sal_uInt16 &  rHeight 
) const
void SwTextIter::CharToLine ( TextFrameIndex  nChar)
void SwTextIter::CntHyphens ( sal_uInt8 nEndCnt,
sal_uInt8 nMidCnt 
) const
void SwTextIter::CtorInitTextIter ( SwTextFrame pFrame,
SwTextInfo pInf 
)
protected
const SwLineLayout* SwTextIter::GetCurr ( ) const
inline
TextFrameIndex SwTextIter::GetEnd ( ) const
inline
SwTwips SwTextIter::GetFirstPos ( ) const
inline

Definition at line 129 of file itrtxt.hxx.

References m_nFrameStart.

Referenced by SwTextFrame::FormatLine().

SwTextInfo& SwTextIter::GetInfo ( )
inline
const SwTextInfo& SwTextIter::GetInfo ( ) const
inline

Definition at line 97 of file itrtxt.hxx.

References m_pInf.

TextFrameIndex SwTextIter::GetLength ( ) const
inline
sal_uInt16 SwTextIter::GetLineHeight ( ) const
inline
const SwLineInfo& SwTextIter::GetLineInfo ( ) const
inline
sal_uInt16 SwTextIter::GetLineNr ( ) const
inline
const SwLineLayout* SwTextIter::GetNext ( ) const
inline
const SwLineLayout * SwTextIter::GetNextLine ( ) const
const SwLineLayout * SwTextIter::GetPrev ( )
SwLineLayout * SwTextIter::GetPrev_ ( )
protected

Definition at line 72 of file itrtxt.cxx.

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

Referenced by GetPrev(), and Prev().

const SwLineLayout * SwTextIter::GetPrevLine ( )
TextFrameIndex SwTextIter::GetStart ( ) const
inline
SwTextFrame* SwTextIter::GetTextFrame ( )
inline
const SwTextFrame* SwTextIter::GetTextFrame ( ) const
inline

Definition at line 135 of file itrtxt.hxx.

References m_pFrame.

void SwTextIter::Init ( void  )
protected
bool SwTextIter::IsFirstTextLine ( ) const
inline
bool SwTextIter::IsParaLine ( ) const
inline
bool SwTextIter::IsRegisterOn ( ) const
inline

Definition at line 94 of file itrtxt.hxx.

References m_bRegisterOn.

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

const SwLineLayout * SwTextIter::Next ( void  )
const SwLineLayout * SwTextIter::NextLine ( )
const SwLineLayout * SwTextIter::Prev ( )
const SwLineLayout * SwTextIter::PrevLine ( )
sal_uInt16 SwTextIter::RegDiff ( ) const
inline

Definition at line 93 of file itrtxt.hxx.

References m_nRegDiff.

Referenced by SwTextFormatter::CalcRealHeight().

SwTwips SwTextIter::RegStart ( ) const
inline

Definition at line 92 of file itrtxt.hxx.

References m_nRegStart.

Referenced by SwTextFormatter::CalcRealHeight().

bool SwTextIter::SeekAndChg ( SwTextSizeInfo rInf)
inline
bool SwTextIter::SeekAndChgBefore ( SwTextSizeInfo rInf)
inline
bool SwTextIter::SeekStartAndChg ( SwTextSizeInfo rInf,
const bool  bPara = false 
)
inline
void SwTextIter::Top ( )
inline
void SwTextIter::TruncLines ( bool  bNoteFollow = false)
void SwTextIter::TwipsToLine ( const SwTwips  y)

Definition at line 301 of file itrtxt.cxx.

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

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

SwTwips SwTextIter::Y ( ) const
inline

Member Data Documentation

SwLineInfo SwTextIter::m_aLineInf
protected
bool SwTextIter::m_bLastBlock
protected

Definition at line 47 of file itrtxt.hxx.

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

bool SwTextIter::m_bLastCenter
protected

Definition at line 48 of file itrtxt.hxx.

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

bool SwTextIter::m_bOneBlock
protected

Definition at line 46 of file itrtxt.hxx.

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

bool SwTextIter::m_bPrev
protected

Definition at line 44 of file itrtxt.hxx.

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

bool SwTextIter::m_bRegisterOn
protected

Definition at line 45 of file itrtxt.hxx.

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

SwTwips SwTextIter::m_nFrameStart
protected

Definition at line 38 of file itrtxt.hxx.

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

sal_uInt16 SwTextIter::m_nLineNr
protected

Definition at line 43 of file itrtxt.hxx.

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

sal_uInt16 SwTextIter::m_nRegDiff
protected

Definition at line 42 of file itrtxt.hxx.

Referenced by CtorInitTextIter(), and RegDiff().

SwTwips SwTextIter::m_nRegStart
protected

Definition at line 40 of file itrtxt.hxx.

Referenced by CtorInitTextIter(), and RegStart().

TextFrameIndex SwTextIter::m_nStart
protected
SwTwips SwTextIter::m_nY
protected
SwLineLayout* SwTextIter::m_pCurr
protected

Definition at line 36 of file itrtxt.hxx.

Referenced by 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::GetCursorOfst(), SwTextCursor::GetEndCharRect(), SwTextFormatter::GetFrameRstHeight(), SwTextMargin::GetLineStart(), GetNextLine(), GetPrev_(), GetPrevLine(), SwTextMargin::GetTextEnd(), SwTextMargin::GetTextStart(), SwTextFormatter::Hyphenate(), Init(), SwTextFormatter::Insert(), SwTextFormatter::InsertPortion(), 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().

SwTextFrame* SwTextIter::m_pFrame
protected
SwTextInfo* SwTextIter::m_pInf
protected
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: