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:
[legend]
Collaboration diagram for SwTextMargin:
[legend]

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

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 nLeft
 
SwTwips nRight
 
SwTwips nFirst
 
sal_uInt16 nDropLeft
 
sal_uInt16 nDropHeight
 
sal_uInt16 nDropDescent
 
sal_uInt16 nDropLines
 
SvxAdjust nAdjust
 
SwTwips mnTabLeft
 

Additional Inherited Members

- Protected Attributes inherited from SwTextIter
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 141 of file itrtxt.hxx.

Constructor & Destructor Documentation

SwTextMargin::SwTextMargin ( SwTextNode const *  pTextNode)
inlineexplicitprotected

Definition at line 160 of file itrtxt.hxx.

SwTextMargin::SwTextMargin ( SwTextFrame pTextFrame,
SwTextSizeInfo pTextSizeInf 
)
inline

Definition at line 174 of file itrtxt.hxx.

References CtorInitTextMargin().

Member Function Documentation

void SwTextMargin::CtorInitTextMargin ( SwTextFrame pFrame,
SwTextSizeInfo pInf 
)
protected

Definition at line 162 of file itrcrsr.cxx.

References SwTextNode::AreListLevelIndentsApplicable(), 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::GetOfst(), 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, mnTabLeft, nAdjust, nFirst, nLeft, nRight, SwTextSizeInfo::SetFont(), and SwRect::Width().

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

SwTwips SwTextMargin::CurrWidth ( ) const
inline

Definition at line 183 of file itrtxt.hxx.

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

Referenced by GetLineEnd(), and GetLineStart().

void SwTextMargin::DropInit ( )
SwTwips SwTextMargin::FirstLeft ( ) const
inline

Definition at line 182 of file itrtxt.hxx.

References nFirst.

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

SvxAdjust SwTextMargin::GetAdjust ( ) const
inline
sal_uInt16 SwTextMargin::GetDropDescent ( ) const
inline
sal_uInt16 SwTextMargin::GetDropHeight ( ) const
inline
sal_uInt16 SwTextMargin::GetDropLeft ( ) const
inline
sal_uInt16 SwTextMargin::GetDropLines ( ) const
inline
SwTextSizeInfo& SwTextMargin::GetInfo ( )
inline
const SwTextSizeInfo& SwTextMargin::GetInfo ( ) const
inline

Definition at line 218 of file itrtxt.hxx.

References SwTextIter::GetInfo().

SwTwips SwTextMargin::GetLeftMargin ( ) const
inline
SwTwips SwTextMargin::GetLeftMin ( ) const
inline

Definition at line 193 of file itrtxt.hxx.

Referenced by SwTextFormatter::CalcFlyWidth().

SwTwips SwTextMargin::GetLineEnd ( ) const
inline

Definition at line 185 of file itrtxt.hxx.

References CurrWidth(), and GetLineStart().

Referenced by SwTextCursor::GetCursorOfst().

SwTwips SwTextMargin::GetLineStart ( ) const
sal_uInt16 SwTextMargin::GetLineWidth ( ) const
inline

Definition at line 191 of file itrtxt.hxx.

References GetLeftMargin(), and Right().

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

SwTwips SwTextMargin::GetTabLeft ( ) const
inline

Definition at line 197 of file itrtxt.hxx.

References mnTabLeft.

Referenced by SwTextFormatter::NewTabPortion().

TextFrameIndex SwTextMargin::GetTextEnd ( ) const
TextFrameIndex SwTextMargin::GetTextStart ( ) const
Point SwTextMargin::GetTopLeft ( ) const
inline
bool SwTextMargin::HasNegFirst ( ) const
inline

Definition at line 194 of file itrtxt.hxx.

References nLeft.

Referenced by SwTextFormatter::CalcFlyWidth().

bool SwTextMargin::IsLastBlock ( ) const
inline
bool SwTextMargin::IsLastCenter ( ) const
inline
bool SwTextMargin::IsOneBlock ( ) const
inline

Definition at line 187 of file itrtxt.hxx.

References SwTextIter::m_bOneBlock.

Referenced by SwTextAdjuster::CalcNewBlock().

SwTwips SwTextMargin::Left ( ) const
inline
void SwTextMargin::Right ( const SwTwips  nNew)
inlineprotected

Definition at line 157 of file itrtxt.hxx.

Referenced by SwTextFrame::GetTabStopInfo().

SwTwips SwTextMargin::Right ( ) const
inline
void SwTextMargin::SetDropDescent ( const sal_uInt16  nNew)
inline
void SwTextMargin::SetDropHeight ( const sal_uInt16  nNew)
inline
void SwTextMargin::SetDropLines ( const sal_uInt16  nNew)
inline

Member Data Documentation

SwTwips SwTextMargin::mnTabLeft
private

Definition at line 153 of file itrtxt.hxx.

Referenced by CtorInitTextMargin(), and GetTabLeft().

SvxAdjust SwTextMargin::nAdjust
private

Definition at line 151 of file itrtxt.hxx.

Referenced by CtorInitTextMargin(), and GetAdjust().

sal_uInt16 SwTextMargin::nDropDescent
private

Definition at line 149 of file itrtxt.hxx.

Referenced by DropInit(), and GetDropDescent().

sal_uInt16 SwTextMargin::nDropHeight
private

Definition at line 148 of file itrtxt.hxx.

Referenced by DropInit(), and GetDropHeight().

sal_uInt16 SwTextMargin::nDropLeft
private

Definition at line 147 of file itrtxt.hxx.

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

sal_uInt16 SwTextMargin::nDropLines
private

Definition at line 150 of file itrtxt.hxx.

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

SwTwips SwTextMargin::nFirst
private

Definition at line 146 of file itrtxt.hxx.

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

SwTwips SwTextMargin::nLeft
private

Definition at line 144 of file itrtxt.hxx.

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

SwTwips SwTextMargin::nRight
private

Definition at line 145 of file itrtxt.hxx.

Referenced by CtorInitTextMargin(), and Right().


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