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

#include <itrtxt.hxx>

Inheritance diagram for SwTextMargin:
Collaboration diagram for SwTextMargin:

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
SwTextSizeInfoGetInfo ()
const SwTextSizeInfoGetInfo () const
- Public Member Functions inherited from SwTextIter
 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)
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

void Right (const SwTwips nNew)
void CtorInitTextMargin (SwTextFrame *pFrame, SwTextSizeInfo *pInf)
 SwTextMargin (SwTextNode const *pTextNode)
- Protected Member Functions inherited from SwTextIter
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)

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
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

Detailed Description

Definition at line 141 of file itrtxt.hxx.

Constructor & Destructor Documentation

◆ SwTextMargin() [1/2]

SwTextMargin::SwTextMargin ( SwTextNode const *  pTextNode)

Definition at line 160 of file itrtxt.hxx.

◆ SwTextMargin() [2/2]

SwTextMargin::SwTextMargin ( SwTextFrame pTextFrame,
SwTextSizeInfo pTextSizeInf 

Definition at line 174 of file itrtxt.hxx.

References CtorInitTextMargin().

Member Function Documentation

◆ CtorInitTextMargin()

void SwTextMargin::CtorInitTextMargin ( SwTextFrame pFrame,
SwTextSizeInfo pInf 

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(), SwTextNode::GetFirstLineOfsWithNum(), SwAttrIter::GetFnt(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwNode::getIDocumentSettingAccess(), GetInfo(), SvxLineSpacingItem::GetInterLineSpace(), SvxLineSpacingItem::GetInterLineSpaceRule(), SwTextFrame::GetLangOfChar(), SvxAdjustItem::GetLastBlock(), SvxLRSpaceItem::GetLeft(), SwTextNode::GetLeftMarginForTabCalculation(), SwTextNode::GetLeftMarginWithNum(), SvxLineSpacingItem::GetLineHeight(), SwTextIter::GetLineHeight(), SvxLineSpacingItem::GetLineSpaceRule(), SwLineInfo::GetLineSpacing(), SwAttrSet::GetLRSpace(), SwTextFrame::GetOffset(), SvxAdjustItem::GetOneWord(), SvxLineSpacingItem::GetPropLineSpace(), SwFont::GetSize(), SwContentNode::GetSwAttrSet(), SvxLRSpaceItem::GetTextLeft(), SwTextFrame::GetTextNodeForParaProps(), Size::Height(), IGNORE_FIRST_LINE_INDENT_IN_NUMBERING, SvxLRSpaceItem::IsAutoFirst(), SwFlowFrame::IsFollow(), 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, SwTextSizeInfo::SetFont(), and SwRect::Width().

Referenced by SwTextCursor::CtorInitTextCursor(), and SwTextMargin().

◆ CurrWidth()

SwTwips SwTextMargin::CurrWidth ( ) const

Definition at line 183 of file itrtxt.hxx.

References SwTextIter::m_pCurr, and SwLinePortion::PrtWidth().

Referenced by GetLineEnd(), and GetLineStart().

◆ DropInit()

void SwTextMargin::DropInit ( )

◆ FirstLeft()

SwTwips SwTextMargin::FirstLeft ( ) const

Definition at line 182 of file itrtxt.hxx.

References mnFirst.

Referenced by SwTextFormatter::FeedInf(), and SwTextFrame::GetModelPositionForViewPoint_().

◆ GetAdjust()

SvxAdjust SwTextMargin::GetAdjust ( ) const

◆ GetDropDescent()

sal_uInt16 SwTextMargin::GetDropDescent ( ) const

Definition at line 207 of file itrtxt.hxx.

References mnDropDescent.

Referenced by SwTextFormatter::GuessDropHeight(), and SwTextFormatter::NewDropPortion().

◆ GetDropHeight()

sal_uInt16 SwTextMargin::GetDropHeight ( ) const

◆ GetDropLeft()

sal_uInt16 SwTextMargin::GetDropLeft ( ) const

◆ GetDropLines()

sal_uInt16 SwTextMargin::GetDropLines ( ) const

◆ GetInfo() [1/2]

SwTextSizeInfo & SwTextMargin::GetInfo ( )

◆ GetInfo() [2/2]

const SwTextSizeInfo & SwTextMargin::GetInfo ( ) const

Definition at line 218 of file itrtxt.hxx.

References SwTextIter::GetInfo().

◆ GetLeftMargin()

SwTwips SwTextMargin::GetLeftMargin ( ) const

◆ GetLeftMin()

SwTwips SwTextMargin::GetLeftMin ( ) const

Definition at line 193 of file itrtxt.hxx.

References min(), mnFirst, and mnLeft.

Referenced by SwTextFormatter::CalcFlyWidth().

◆ GetLineEnd()

SwTwips SwTextMargin::GetLineEnd ( ) const

Definition at line 185 of file itrtxt.hxx.

References CurrWidth(), and GetLineStart().

Referenced by SwTextCursor::GetModelPositionForViewPoint().

◆ GetLineStart()

SwTwips SwTextMargin::GetLineStart ( ) const

◆ GetLineWidth()

sal_uInt16 SwTextMargin::GetLineWidth ( ) const

Definition at line 191 of file itrtxt.hxx.

References GetLeftMargin(), and Right().

Referenced by SwTextAdjuster::CalcRightMargin(), and GetLineStart().

◆ GetTabLeft()

SwTwips SwTextMargin::GetTabLeft ( ) const

Definition at line 197 of file itrtxt.hxx.

References mnTabLeft.

Referenced by SwTextFormatter::NewTabPortion().

◆ GetTextEnd()

TextFrameIndex SwTextMargin::GetTextEnd ( ) const

◆ GetTextStart()

TextFrameIndex SwTextMargin::GetTextStart ( ) const

◆ GetTopLeft()

Point SwTextMargin::GetTopLeft ( ) const

◆ HasNegFirst()

bool SwTextMargin::HasNegFirst ( ) const

Definition at line 194 of file itrtxt.hxx.

References mnFirst, and mnLeft.

Referenced by SwTextFormatter::CalcFlyWidth().

◆ IsLastBlock()

bool SwTextMargin::IsLastBlock ( ) const

◆ IsLastCenter()

bool SwTextMargin::IsLastCenter ( ) const

◆ IsOneBlock()

bool SwTextMargin::IsOneBlock ( ) const

Definition at line 187 of file itrtxt.hxx.

References SwTextIter::m_bOneBlock.

Referenced by SwTextAdjuster::CalcNewBlock().

◆ Left()

SwTwips SwTextMargin::Left ( ) const

◆ Right() [1/2]

SwTwips SwTextMargin::Right ( ) const

◆ Right() [2/2]

void SwTextMargin::Right ( const SwTwips  nNew)

Definition at line 157 of file itrtxt.hxx.

References mnRight.

Referenced by SwTextFrame::GetTabStopInfo().

◆ SetDropDescent()

void SwTextMargin::SetDropDescent ( const sal_uInt16  nNew)

Definition at line 208 of file itrtxt.hxx.

References mnDropDescent.

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

◆ SetDropHeight()

void SwTextMargin::SetDropHeight ( const sal_uInt16  nNew)

Definition at line 206 of file itrtxt.hxx.

References mnDropHeight.

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

◆ SetDropLines()

void SwTextMargin::SetDropLines ( const sal_uInt16  nNew)

Member Data Documentation

◆ mnAdjust

SvxAdjust SwTextMargin::mnAdjust

Definition at line 151 of file itrtxt.hxx.

Referenced by CtorInitTextMargin(), and GetAdjust().

◆ mnDropDescent

sal_uInt16 SwTextMargin::mnDropDescent

Definition at line 149 of file itrtxt.hxx.

Referenced by DropInit(), GetDropDescent(), and SetDropDescent().

◆ mnDropHeight

sal_uInt16 SwTextMargin::mnDropHeight

Definition at line 148 of file itrtxt.hxx.

Referenced by DropInit(), GetDropHeight(), and SetDropHeight().

◆ mnDropLeft

sal_uInt16 SwTextMargin::mnDropLeft

Definition at line 147 of file itrtxt.hxx.

Referenced by DropInit(), GetDropLeft(), and Left().

◆ mnDropLines

sal_uInt16 SwTextMargin::mnDropLines

Definition at line 150 of file itrtxt.hxx.

Referenced by DropInit(), GetDropLines(), Left(), and SetDropLines().

◆ mnFirst

SwTwips SwTextMargin::mnFirst

Definition at line 146 of file itrtxt.hxx.

Referenced by CtorInitTextMargin(), FirstLeft(), GetLeftMargin(), GetLeftMin(), HasNegFirst(), and Left().

◆ mnLeft

SwTwips SwTextMargin::mnLeft

Definition at line 144 of file itrtxt.hxx.

Referenced by CtorInitTextMargin(), GetLeftMin(), HasNegFirst(), and Left().

◆ mnRight

SwTwips SwTextMargin::mnRight

Definition at line 145 of file itrtxt.hxx.

Referenced by CtorInitTextMargin(), and Right().

◆ mnTabLeft

SwTwips SwTextMargin::mnTabLeft

Definition at line 153 of file itrtxt.hxx.

Referenced by CtorInitTextMargin(), and GetTabLeft().

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