LibreOffice Module sw (master) 1
|
#include <itrtxt.hxx>
Public Member Functions | |
void | CalcAdjLine (SwLineLayout *pCurr) |
void | GetAdjusted () const |
void | CalcDropAdjust () |
void | CalcDropRepaint () |
Public Member Functions inherited from SwTextMargin | |
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 | |
SwTextAdjuster (SwTextNode const *pTextNode) | |
void | CalcNewBlock (SwLineLayout *pCurr, const SwLinePortion *pStopAt, SwTwips nReal=0, bool bSkipKashida=false) |
SwTwips | CalcKanaAdj (SwLineLayout *pCurr) |
Protected Member Functions inherited from SwTextMargin | |
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 Member Functions | |
void | CalcFlyAdjust (SwLineLayout *pCurr) |
void | FormatBlock () |
SwMarginPortion * | CalcRightMargin (SwLineLayout *pCurr, SwTwips nReal=0) |
SwFlyPortion * | CalcFlyPortion (const tools::Long nRealWidth, const SwRect &rCurrRect) |
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 223 of file itrtxt.hxx.
|
inlineexplicitprotected |
Definition at line 239 of file itrtxt.hxx.
void SwTextAdjuster::CalcAdjLine | ( | SwLineLayout * | pCurr | ) |
Definition at line 670 of file itradj.cxx.
References CalcFlyAdjust(), FormatBlock(), SwTextMargin::GetAdjust(), SwTextMargin::GetInfo(), SwTextInfo::GetParaPortion(), SwParaPortion::GetRepaint(), SwLineLayout::IsFormatAdj(), SwLineLayout::SetFormatAdj(), and SwRepaint::SetOffset().
Referenced by SwTextFormatter::CalcAdjustLine(), and GetAdjusted().
void SwTextAdjuster::CalcDropAdjust | ( | ) |
Definition at line 745 of file itradj.cxx.
References SwTextMargin::GetAdjust(), GetAdjusted(), SwTextMargin::GetDropLines(), SwLineLayout::GetFirstPortion(), SwTextIter::GetLineNr(), SwTextMargin::GetLineStart(), SwLinePortion::GetNextPortion(), i, SwLinePortion::InFixMargGrp(), SwLinePortion::InGlueGrp(), SwLinePortion::IsDropPortion(), SwLineLayout::IsDummy(), SwLinePortion::IsMarginPortion(), SwTextIter::m_pCurr, SwGluePortion::MoveAllGlue(), SwGluePortion::MoveGlue(), SwTextIter::Next(), SwTextIter::NextLine(), SwTextIter::Top(), and SwPosSize::Width().
Referenced by SwTextFrame::FormatImpl().
void SwTextAdjuster::CalcDropRepaint | ( | ) |
Definition at line 828 of file itradj.cxx.
References SwRect::Bottom(), SwTextMargin::GetDropLines(), SwTextMargin::GetInfo(), SwTextIter::GetLineHeight(), SwTextInfo::GetParaPortion(), SwParaPortion::GetRepaint(), i, SwTextIter::NextLine(), SwTextIter::Top(), SwRect::Top(), and SwTextIter::Y().
Referenced by SwTextFrame::FormatImpl().
|
private |
Definition at line 595 of file itradj.cxx.
References SwMarginPortion::AdjustRight(), SwLineLayout::CalcLeftMargin(), CalcRightMargin(), IDocumentSettingAccess::get(), SwTextMargin::GetAdjust(), SwTextFrame::GetDoc(), SwDoc::getIDocumentSettingAccess(), SwTextMargin::GetInfo(), SwLinePortion::GetLen(), getLength(), SwLinePortion::GetNextPortion(), SwTextIter::GetTextFrame(), SwMultiPortion::HasTabulator(), SwLinePortion::InFixMargGrp(), SwLinePortion::InTabGrp(), SwLinePortion::IsMarginPortion(), SwLinePortion::IsMultiPortion(), SwTextIter::m_nStart, SwGluePortion::MoveHalfGlue(), and TAB_COMPAT.
Referenced by CalcAdjLine(), and FormatBlock().
|
private |
Definition at line 700 of file itradj.cxx.
References SwGluePortion::AdjFixWidth(), SwTextFly::GetFrame(), SwTextMargin::GetInfo(), SwTextMargin::GetLeftMargin(), SwTextInfo::GetParaPortion(), SwTextIter::GetTextFrame(), SwRect::HasArea(), SwPosSize::Height(), SwRect::Height(), SwRect::Left(), SwTextIter::m_pCurr, SwRect::Pos(), SwLinePortion::PrtWidth(), SwParaPortion::SetFly(), SwTextFrame::SwitchHorizontalToVertical(), SwTextFrame::SwitchLTRtoRTL(), SwTextFrame::SwitchRTLtoLTR(), SwTextFrame::SwitchVerticalToHorizontal(), SwRect::Top(), and SwRect::Width().
Referenced by CalcRightMargin().
|
protected |
Definition at line 412 of file itradj.cxx.
References CalcRightMargin(), SwLineLayout::GetFirstPortion(), SwTextMargin::GetInfo(), SwLineLayout::GetKanaComp(), SwTextMargin::GetLeftMargin(), SwTextSizeInfo::GetMaxWidthDiff(), SwLinePortion::GetNextPortion(), SwLineLayout::GetpKanaComp(), SwLineLayout::Height(), SwLinePortion::InFixMargGrp(), SwLinePortion::InGlueGrp(), SwLinePortion::InTabGrp(), SwLinePortion::InTextGrp(), SwLinePortion::IsTabLeftPortion(), MIN_TAB_WIDTH, SwLineLayout::SetKanaComp(), and SwPosSize::Width().
Referenced by SwTextFormatter::FormatLine().
|
protected |
Definition at line 250 of file itradj.cxx.
References Break, CalcNewBlock(), CalcRightMargin(), SwScriptInfo::ClearKashidaInvalid(), SwScriptInfo::ClearNoKashidaLine(), SwScriptInfo::CountKashida(), DO_NOT_JUSTIFY_LINES_WITH_MANUAL_BREAK, SwLineLayout::FinishSpaceAdd(), IDocumentSettingAccess::get(), SwTextMargin::GetAdjust(), SwTextIter::GetCurr(), SwTextFrame::GetDoc(), SwGluePortion::GetFixWidth(), SwDoc::getIDocumentSettingAccess(), SwTextMargin::GetInfo(), SwLinePortion::GetLen(), SwTextIter::GetLength(), SwLineLayout::GetLLSpaceAddCount(), SwTextIter::GetNext(), SwLinePortion::GetNextPortion(), SwTextInfo::GetParaPortion(), SwParaPortion::GetScriptInfo(), SwTextIter::GetStart(), SwTextIter::GetTextFrame(), SwLinePortion::GetWhichPor(), SwMultiPortion::HasTabulator(), SwLineLayout::Height(), SwLinePortion::InFixMargGrp(), SwLinePortion::InGlueGrp(), SwLineLayout::InitSpaceAdd(), SwLinePortion::InTextGrp(), SwMultiPortion::IsBidi(), SwLinePortion::IsBreakPortion(), SwMultiPortion::IsDouble(), SwTextMargin::IsLastBlock(), SwLinePortion::IsMultiPortion(), SwTextMargin::IsOneBlock(), lcl_CheckKashidaPositions(), lcl_CheckKashidaWidth(), SwTextIter::m_nStart, SwTextIter::Next(), SwTextSizeInfo::SetIdx(), SwLineLayout::SetLLSpaceAdd(), SwScriptInfo::SetNoKashidaLine(), SPACING_PRECISION_FACTOR, TabCenter, TabDecimal, TabLeft, TabRight, and SwPosSize::Width().
Referenced by SwTextFormatter::BuildMultiPortion(), CalcNewBlock(), and FormatBlock().
|
private |
Definition at line 544 of file itradj.cxx.
References SwLinePortion::Append(), CalcFlyPortion(), SwLinePortion::FindLastPortion(), SwFixPortion::GetFix(), SwTextMargin::GetInfo(), SwTextMargin::GetLeftMargin(), SwTextIter::GetLineHeight(), SwTextMargin::GetLineWidth(), SwLineLayout::Height(), SwRect::Left(), SwLinePortion::PrtWidth(), SwPosSize::Width(), and SwTextIter::Y().
Referenced by CalcFlyAdjust(), CalcKanaAdj(), and CalcNewBlock().
|
private |
Definition at line 39 of file itradj.cxx.
References CalcFlyAdjust(), CalcNewBlock(), SwLineLayout::FinishSpaceAdd(), SwLineLayout::GetFirstPortion(), SwTextSizeInfo::GetIdx(), SwTextMargin::GetInfo(), SwLinePortion::GetLen(), getLength(), SwLineLayout::GetNext(), SwLinePortion::GetNextPortion(), SwTextInfo::GetParaPortion(), SwParaPortion::GetRepaint(), SwLinePortion::InTextGrp(), SwLinePortion::IsFlyPortion(), SwTextMargin::IsLastBlock(), SwTextMargin::IsLastCenter(), SwTextIter::m_nStart, SwTextIter::m_pCurr, SwTextSizeInfo::SetIdx(), and SwRepaint::SetOffset().
Referenced by CalcAdjLine().
|
inline |
Definition at line 250 of file itrtxt.hxx.
References CalcAdjLine(), SwLineLayout::IsFormatAdj(), and SwTextIter::m_pCurr.
Referenced by CalcDropAdjust(), SwTextPainter::DrawTextLine(), SwTextCursor::GetCharRect(), SwTextCursor::GetEndCharRect(), and SwTextCursor::GetModelPositionForViewPoint().