LibreOffice Module sw (master) 1
|
#include <itrtxt.hxx>
Public Member Functions | |
SwTextMargin (SwTextFrame *pTextFrame, SwTextSizeInfo *pTextSizeInf) | |
SwTwips | GetLeftMargin () const |
SwTwips | Left () const |
SwTwips | Right () const |
SwTwips | FirstLeft () const |
SwTwips | CurrWidth () const |
SwTwips | GetLineStart () const |
SwTwips | GetLineEnd () const |
Point | GetTopLeft () const |
bool | IsOneBlock () const |
bool | IsLastBlock () const |
bool | IsLastCenter () const |
SvxAdjust | GetAdjust () const |
sal_uInt16 | GetLineWidth () const |
SwTwips | GetLeftMin () const |
bool | HasNegFirst () const |
SwTwips | GetTabLeft () const |
sal_uInt16 | GetDropLines () const |
void | SetDropLines (const sal_uInt16 nNew) |
sal_uInt16 | GetDropLeft () const |
sal_uInt16 | GetDropHeight () const |
void | SetDropHeight (const sal_uInt16 nNew) |
sal_uInt16 | GetDropDescent () const |
void | SetDropDescent (const sal_uInt16 nNew) |
void | DropInit () |
TextFrameIndex | GetTextStart () const |
TextFrameIndex | GetTextEnd () const |
SwTextSizeInfo & | GetInfo () |
const SwTextSizeInfo & | GetInfo () const |
Public Member Functions inherited from SwTextIter | |
SwTextIter (SwTextFrame *pTextFrame, SwTextInfo *pTextInf) | |
const SwLineLayout * | GetCurr () const |
const SwLineLayout * | GetNext () const |
const SwLineLayout * | GetPrev () |
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 |
SwTextInfo & | GetInfo () |
const SwTextInfo & | GetInfo () const |
void | Top () |
void | Bottom () |
const SwLineLayout * | Next () |
const SwLineLayout * | Prev () |
const SwLineLayout * | NextLine () |
const SwLineLayout * | PrevLine () |
const SwLineLayout * | GetNextLine () const |
const SwLineLayout * | GetPrevLine () |
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 SwLineInfo & | GetLineInfo () const |
SwTwips | GetFirstPos () const |
bool | SeekAndChg (SwTextSizeInfo &rInf) |
bool | SeekAndChgBefore (SwTextSizeInfo &rInf) |
bool | SeekStartAndChg (SwTextSizeInfo &rInf, const bool bPara=false) |
SwTextFrame * | GetTextFrame () |
const SwTextFrame * | GetTextFrame () 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 () |
SwRedlineItr * | GetRedln () |
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 |
SwTextAttr * | GetAttr (TextFrameIndex nPos) const |
Returns the attribute for a position. More... | |
SwFont * | GetFnt () |
const SwFont * | GetFnt () const |
sal_uInt8 | GetPropFont () const |
void | SetPropFont (const sal_uInt8 nNew) |
SwAttrHandler & | GetAttrHandler () |
Protected Member Functions | |
void | Right (const SwTwips nNew) |
void | CtorInitTextMargin (SwTextFrame *pFrame, SwTextSizeInfo *pInf) |
SwTextMargin (SwTextNode const *pTextNode) | |
Protected Member Functions inherited from SwTextIter | |
SwLineLayout * | GetPrev_ () |
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) | |
Private Attributes | |
SwTwips | mnLeft |
SwTwips | mnRight |
SwTwips | mnFirst |
sal_uInt16 | mnDropLeft |
sal_uInt16 | mnDropHeight |
sal_uInt16 | mnDropDescent |
sal_uInt16 | mnDropLines |
SvxAdjust | mnAdjust |
SwTwips | mnTabLeft |
Additional Inherited Members | |
Protected Attributes inherited from SwTextIter | |
SwLineInfo | m_aLineInf |
SwTextFrame * | m_pFrame |
SwTextInfo * | m_pInf |
SwLineLayout * | m_pCurr |
SwLineLayout * | m_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 |
SwViewShell * | m_pViewShell |
SwFont * | m_pFont |
SwScriptInfo * | m_pScriptInfo |
Definition at line 141 of file itrtxt.hxx.
|
inlineexplicitprotected |
Definition at line 160 of file itrtxt.hxx.
|
inline |
Definition at line 174 of file itrtxt.hxx.
References CtorInitTextMargin().
|
protected |
Definition at line 156 of file itrcrsr.cxx.
References SwTextNode::AreListLevelIndentsApplicable(), AUTO_FIRST_LINE_INDENT_DISREGARD_LINE_SPACE, SwTextIter::CtorInitTextIter(), DropInit(), IDocumentSettingAccess::get(), SwTextFrame::GetAdditionalFirstLineOffset(), SvxAdjustItem::GetAdjust(), SwAttrSet::GetAdjust(), SwAttrSet::GetFirstLineIndent(), SwTextNode::GetFirstLineOfsWithNum(), SwAttrIter::GetFnt(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwNode::getIDocumentSettingAccess(), GetInfo(), SvxLineSpacingItem::GetInterLineSpace(), SvxLineSpacingItem::GetInterLineSpaceRule(), SwTextFrame::GetLangOfChar(), SvxAdjustItem::GetLastBlock(), SvxTextLeftMarginItem::GetLeft(), SwTextNode::GetLeftMarginForTabCalculation(), SwTextNode::GetLeftMarginWithNum(), SvxLineSpacingItem::GetLineHeight(), SwTextIter::GetLineHeight(), SvxLineSpacingItem::GetLineSpaceRule(), SwLineInfo::GetLineSpacing(), SwTextFrame::GetOffset(), SvxAdjustItem::GetOneWord(), SvxLineSpacingItem::GetPropLineSpace(), SwFont::GetSize(), SwContentNode::GetSwAttrSet(), SvxTextLeftMarginItem::GetTextLeft(), SwAttrSet::GetTextLeftMargin(), SwTextFrame::GetTextNodeForParaProps(), Size::Height(), IGNORE_FIRST_LINE_INDENT_IN_NUMBERING, SvxFirstLineIndentItem::IsAutoFirst(), SwFrame::IsInTab(), SwFrame::IsRightToLeft(), LANGUAGE_JAPANESE, LANGUAGE_KOREAN, SwRect::Left(), SwTextIter::m_aLineInf, SwTextIter::m_bLastBlock, SwTextIter::m_bLastCenter, SwTextIter::m_bOneBlock, SwTextIter::m_pFrame, SwTextIter::m_pInf, mnAdjust, mnFirst, mnLeft, mnRight, mnTabLeft, sw::No, SwTextSizeInfo::SetFont(), and SwRect::Width().
Referenced by SwTextCursor::CtorInitTextCursor(), and SwTextMargin().
|
inline |
Definition at line 183 of file itrtxt.hxx.
References SwTextIter::m_pCurr, and SwLinePortion::PrtWidth().
Referenced by GetLineEnd(), and GetLineStart().
void SwTextMargin::DropInit | ( | ) |
Definition at line 361 of file itrcrsr.cxx.
References SwParaPortion::FindDropPortion(), SwDropPortion::GetDropDescent(), SwDropPortion::GetDropHeight(), SwDropPortion::GetDropLeft(), GetInfo(), SwDropPortion::GetLines(), SwTextInfo::GetParaPortion(), mnDropDescent, mnDropHeight, mnDropLeft, and mnDropLines.
Referenced by CtorInitTextMargin(), and SwTextFormatter::FormatLine().
|
inline |
Definition at line 182 of file itrtxt.hxx.
References mnFirst.
Referenced by SwTextFormatter::FeedInf(), and SwTextFrame::GetModelPositionForViewPoint_().
|
inline |
Definition at line 190 of file itrtxt.hxx.
References mnAdjust.
Referenced by SwTextFormatter::AllowRepaintOpt(), SwTextFormatter::BuildMultiPortion(), SwTextAdjuster::CalcAdjLine(), SwTextFormatter::CalcAdjustLine(), SwTextAdjuster::CalcDropAdjust(), SwTextAdjuster::CalcFlyAdjust(), SwTextAdjuster::CalcNewBlock(), SwTextFrame::FormatImpl(), SwTextFormatter::FormatQuoVadis(), and GetLineStart().
|
inline |
Definition at line 207 of file itrtxt.hxx.
References mnDropDescent.
Referenced by SwTextFormatter::GuessDropHeight(), and SwTextFormatter::NewDropPortion().
|
inline |
Definition at line 205 of file itrtxt.hxx.
References mnDropHeight.
Referenced by SwTextFormatter::CalcOnceMore(), SwTextCursor::GetCharRect_(), SwTextFrame::GetDropRect_(), and SwTextFormatter::NewDropPortion().
|
inline |
Definition at line 204 of file itrtxt.hxx.
References mnDropLeft.
Referenced by SwTextFormatter::CalcFlyWidth(), SwTextFrame::GetDropRect_(), and SwTextFrame::GetModelPositionForViewPoint_().
|
inline |
Definition at line 202 of file itrtxt.hxx.
References mnDropLines.
Referenced by SwTextAdjuster::CalcDropAdjust(), SwTextFormatter::CalcDropHeight(), SwTextAdjuster::CalcDropRepaint(), SwTextFrame::CalcLineSpace(), SwTextPainter::DrawTextLine(), SwTextFrame::FormatImpl(), SwTextFrame::GetDropRect_(), SwTextFrame::GetModelPositionForViewPoint_(), SwTextFormatter::GuessDropHeight(), SwTextFrameBreak::IsBreakNow(), SwTextFormatter::NewDropPortion(), SwTextFrame::PrepWidows(), and WidowsAndOrphans::WouldFit().
|
inline |
Definition at line 216 of file itrtxt.hxx.
References SwTextIter::GetInfo().
Referenced by SwTextCursor::AdjustBaseLine(), SwTextAdjuster::CalcAdjLine(), SwTextAdjuster::CalcDropRepaint(), SwTextAdjuster::CalcFlyAdjust(), SwTextAdjuster::CalcFlyPortion(), SwTextAdjuster::CalcKanaAdj(), SwTextAdjuster::CalcNewBlock(), SwTextAdjuster::CalcRightMargin(), SwTextCursor::CharCursorToLine(), CtorInitTextMargin(), DropInit(), WidowsAndOrphans::FindBreak(), WidowsAndOrphans::FindWidows(), SwTextAdjuster::FormatBlock(), SwTextCursor::GetCharRect_(), SwTextCursor::GetEndCharRect(), SwTextCursor::GetModelPositionForViewPoint(), SwTextFrameInfo::GetSpaces(), GetTextEnd(), GetTextStart(), and SwTextCursorSave::SwTextCursorSave().
|
inline |
Definition at line 218 of file itrtxt.hxx.
References SwTextIter::GetInfo().
|
inline |
Definition at line 329 of file itrtxt.hxx.
References SwTextIter::IsFirstTextLine(), Left(), and mnFirst.
Referenced by SwTextFormatter::BuildPortions(), SwTextAdjuster::CalcFlyPortion(), SwTextFormatter::CalcFlyWidth(), SwTextAdjuster::CalcKanaAdj(), SwTextAdjuster::CalcRightMargin(), SwTextFormatter::ChkFlyUnderflow(), SwTextFormatter::FeedInf(), SwTextFrame::FormatLine(), GetLineStart(), GetLineWidth(), SwTextFormatter::NewFlyCntPortion(), SwTextFormatter::NewTabPortion(), and SwTextFormatter::Underflow().
|
inline |
Definition at line 193 of file itrtxt.hxx.
References min(), mnFirst, and mnLeft.
Referenced by SwTextFormatter::CalcFlyWidth().
|
inline |
Definition at line 185 of file itrtxt.hxx.
References CurrWidth(), and GetLineStart().
Referenced by SwTextCursor::GetModelPositionForViewPoint().
SwTwips SwTextMargin::GetLineStart | ( | ) | const |
Definition at line 379 of file itrcrsr.cxx.
References CurrWidth(), GetAdjust(), SwLineLayout::GetFirstPortion(), GetLeftMargin(), GetLineWidth(), SwLinePortion::IsMarginPortion(), SwTextIter::m_pCurr, and Right().
Referenced by SwTextAdjuster::CalcDropAdjust(), SwTextFrame::GetDropRect_(), GetLineEnd(), SwTextFrameInfo::GetLineStart(), SwTextCursor::GetModelPositionForViewPoint(), and GetTopLeft().
|
inline |
Definition at line 191 of file itrtxt.hxx.
References GetLeftMargin(), and Right().
Referenced by SwTextAdjuster::CalcRightMargin(), and GetLineStart().
|
inline |
Definition at line 197 of file itrtxt.hxx.
References mnTabLeft.
Referenced by SwTextFormatter::NewTabPortion().
TextFrameIndex SwTextMargin::GetTextEnd | ( | ) | const |
Definition at line 39 of file frminf.cxx.
References CH_BREAK, CH_TAB, GetInfo(), SwLinePortion::GetLen(), SwTextSizeInfo::GetText(), i, SwTextIter::m_nStart, and SwTextIter::m_pCurr.
Referenced by SwTextFrameInfo::GetSpaces().
TextFrameIndex SwTextMargin::GetTextStart | ( | ) | const |
Definition at line 25 of file frminf.cxx.
References CH_TAB, GetInfo(), SwLinePortion::GetLen(), SwTextSizeInfo::GetText(), i, SwTextIter::m_nStart, and SwTextIter::m_pCurr.
Referenced by SwTextFrameInfo::GetLineStart(), and SwTextFrameInfo::GetSpaces().
|
inline |
Definition at line 186 of file itrtxt.hxx.
References GetLineStart(), and SwTextIter::Y().
Referenced by SwTextFormatter::CalcAdjustLine(), SwTextPainter::DrawTextLine(), SwTextFormatter::FormatLine(), SwTextCursor::GetCharRect(), SwTextCursor::GetEndCharRect(), SwTextFrame::GetTabStopInfo(), and SwTextPainter::PaintDropPortion().
|
inline |
Definition at line 194 of file itrtxt.hxx.
References mnFirst, and mnLeft.
Referenced by SwTextFormatter::CalcFlyWidth().
|
inline |
Definition at line 188 of file itrtxt.hxx.
References SwTextIter::m_bLastBlock.
Referenced by SwTextFormatter::AllowRepaintOpt(), SwTextAdjuster::CalcNewBlock(), and SwTextAdjuster::FormatBlock().
|
inline |
Definition at line 189 of file itrtxt.hxx.
References SwTextIter::m_bLastCenter.
Referenced by SwTextFormatter::AllowRepaintOpt(), and SwTextAdjuster::FormatBlock().
|
inline |
Definition at line 187 of file itrtxt.hxx.
References SwTextIter::m_bOneBlock.
Referenced by SwTextAdjuster::CalcNewBlock().
|
inline |
Definition at line 334 of file itrtxt.hxx.
References SwTextIter::m_nLineNr, mnDropLeft, mnDropLines, mnFirst, and mnLeft.
Referenced by SwTextFormatter::CalcFlyWidth(), SwTextFormatter::FeedInf(), GetLeftMargin(), and SwTextFormatter::NewTabPortion().
|
inline |
Definition at line 181 of file itrtxt.hxx.
References mnRight.
Referenced by SwTextFormatter::CalcFlyWidth(), SwTextPainter::DrawTextLine(), SwTextFormatter::FeedInf(), SwTextFormatter::FormatQuoVadis(), SwTextCursor::GetEndCharRect(), GetLineStart(), GetLineWidth(), and SwTextFormatter::NewTabPortion().
|
inlineprotected |
Definition at line 157 of file itrtxt.hxx.
References mnRight.
Referenced by SwTextFrame::GetTabStopInfo().
|
inline |
Definition at line 208 of file itrtxt.hxx.
References mnDropDescent.
Referenced by SwTextFormatter::CalcDropHeight(), and SwTextFormatter::GuessDropHeight().
|
inline |
Definition at line 206 of file itrtxt.hxx.
References mnDropHeight.
Referenced by SwTextFormatter::CalcDropHeight(), and SwTextFormatter::GuessDropHeight().
|
inline |
Definition at line 203 of file itrtxt.hxx.
References mnDropLines.
Referenced by SwTextFormatter::CalcDropHeight(), SwTextFrame::FormatOnceMore(), and SwTextFormatter::GuessDropHeight().
|
private |
Definition at line 151 of file itrtxt.hxx.
Referenced by CtorInitTextMargin(), and GetAdjust().
|
private |
Definition at line 149 of file itrtxt.hxx.
Referenced by DropInit(), GetDropDescent(), and SetDropDescent().
|
private |
Definition at line 148 of file itrtxt.hxx.
Referenced by DropInit(), GetDropHeight(), and SetDropHeight().
|
private |
Definition at line 147 of file itrtxt.hxx.
Referenced by DropInit(), GetDropLeft(), and Left().
|
private |
Definition at line 150 of file itrtxt.hxx.
Referenced by DropInit(), GetDropLines(), Left(), and SetDropLines().
|
private |
Definition at line 146 of file itrtxt.hxx.
Referenced by CtorInitTextMargin(), FirstLeft(), GetLeftMargin(), GetLeftMin(), HasNegFirst(), and Left().
|
private |
Definition at line 144 of file itrtxt.hxx.
Referenced by CtorInitTextMargin(), GetLeftMin(), HasNegFirst(), and Left().
|
private |
Definition at line 145 of file itrtxt.hxx.
Referenced by CtorInitTextMargin(), and Right().
|
private |
Definition at line 153 of file itrtxt.hxx.
Referenced by CtorInitTextMargin(), and GetTabLeft().