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

Collection of SwLineLayout instances, represents the paragraph text in Writer layout. More...

#include <porlay.hxx>

Inheritance diagram for SwParaPortion:
[legend]
Collaboration diagram for SwParaPortion:
[legend]

Public Member Functions

 SwParaPortion ()
 
virtual ~SwParaPortion () override
 
void FormatReset ()
 
void ResetPreps ()
 
SwRepaintGetRepaint ()
 
const SwRepaintGetRepaint () const
 
SwCharRangeGetReformat ()
 
const SwCharRangeGetReformat () const
 
long & GetDelta ()
 
const long & GetDelta () const
 
SwScriptInfoGetScriptInfo ()
 
const SwScriptInfoGetScriptInfo () const
 
TextFrameIndex GetParLen () const
 
bool UpdateQuoVadis (const OUString &rQuo)
 Is called in SwTextFrame::Prepare() More...
 
void SetFly ()
 
bool HasFly () const
 
void SetPrep ()
 
bool IsPrep () const
 
void SetPrepWidows ()
 
bool IsPrepWidows () const
 
void SetPrepMustFit (const bool bNew)
 
bool IsPrepMustFit () const
 
void SetPrepAdjust ()
 
bool IsPrepAdjust () const
 
void SetFollowField (const bool bNew)
 
bool IsFollowField () const
 
void SetFixLineHeight ()
 
bool IsFixLineHeight () const
 
void SetFootnoteNum (const bool bNew)
 
bool IsFootnoteNum () const
 
void SetMargin (const bool bNew=true)
 
bool IsMargin () const
 
void SetErgoSumNum (const OUString &rErgo)
 
const SwDropPortionFindDropPortion () const
 
- Public Member Functions inherited from SwLineLayout
virtual void Height (const sal_uInt16 nNew, const bool bText=true) override
 
virtual SwLinePortionInsert (SwLinePortion *pPortion) override
 
virtual SwLinePortionAppend (SwLinePortion *pPortion) override
 
SwLinePortionGetFirstPortion () const
 
void ResetFlags ()
 
void SetFormatAdj (const bool bNew)
 
bool IsFormatAdj () const
 
void SetEndHyph (const bool bNew)
 
bool IsEndHyph () const
 
void SetMidHyph (const bool bNew)
 
bool IsMidHyph () const
 
void SetFly (const bool bNew)
 
bool IsFly () const
 
void SetRest (const bool bNew)
 
bool IsRest () const
 
void SetBlinking (const bool bNew)
 
bool IsBlinking () const
 
void SetContent (const bool bNew)
 
bool HasContent () const
 
void SetRedline (const bool bNew)
 
bool HasRedline () const
 
void SetForcedLeftMargin ()
 
bool HasForcedLeftMargin () const
 
void SetHanging (const bool bNew)
 
bool IsHanging () const
 
void SetUnderscore (const bool bNew)
 
bool HasUnderscore () const
 
void SetDummy (const bool bNew)
 
bool IsDummy () const
 
void SetClipping (const bool bNew)
 
bool IsClipping () const
 
 SwLineLayout ()
 
virtual ~SwLineLayout () override
 
SwLineLayoutGetNext ()
 
const SwLineLayoutGetNext () const
 
void SetNext (SwLineLayout *pNew)
 
void Init (SwLinePortion *pNextPortion=nullptr)
 
void CalcLine (SwTextFormatter &rLine, SwTextFormatInfo &rInf)
 
void SetRealHeight (sal_uInt16 nNew)
 
sal_uInt16 GetRealHeight () const
 
sal_uInt16 GetTextHeight () const
 
SwMarginPortionCalcLeftMargin ()
 
SwTwips GetHangingMargin () const
 
virtual bool Format (SwTextFormatInfo &rInf) override
 
bool IsSpaceAdd () const
 
void InitSpaceAdd ()
 
void CreateSpaceAdd (const long nInit=0)
 
void FinishSpaceAdd ()
 
sal_uInt16 GetLLSpaceAddCount () const
 
void SetLLSpaceAdd (long nNew, sal_uInt16 nIdx)
 
long GetLLSpaceAdd (sal_uInt16 nIdx)
 
void RemoveFirstLLSpaceAdd ()
 
std::vector< long > * GetpLLSpaceAdd () const
 
void SetKanaComp (std::unique_ptr< std::deque< sal_uInt16 >> pNew)
 
void FinishKanaComp ()
 
std::deque< sal_uInt16 > * GetpKanaComp () const
 
std::deque< sal_uInt16 > & GetKanaComp ()
 
void MaxAscentDescent (SwTwips &_orAscent, SwTwips &_orDescent, SwTwips &_orObjAscent, SwTwips &_orObjDescent, const SwLinePortion *_pDontConsiderPortion=nullptr, const bool _bNoFlyCntPorAndLinePor=false) const
 determine ascent and descent for positioning of as-character anchored object More...
 
- Public Member Functions inherited from SwTextPortion
 SwTextPortion ()
 
virtual void Paint (const SwTextPaintInfo &rInf) const override
 
virtual void FormatEOL (SwTextFormatInfo &rInf) override
 
virtual TextFrameIndex GetModelPositionForViewPoint (sal_uInt16 nOfst) const override
 the parameter is actually SwTwips apparently? More...
 
virtual SwPosSize GetTextSize (const SwTextSizeInfo &rInfo) const override
 
virtual bool GetExpText (const SwTextSizeInfo &rInf, OUString &rText) const override
 
virtual long CalcSpacing (long nSpaceAdd, const SwTextSizeInfo &rInf) const override
 
TextFrameIndex GetSpaceCnt (const SwTextSizeInfo &rInf, TextFrameIndex &rCnt) const
 
bool CreateHyphen (SwTextFormatInfo &rInf, SwTextGuess const &rGuess)
 
virtual void HandlePortion (SwPortionHandler &rPH) const override
 
- Public Member Functions inherited from SwLinePortion
 SwLinePortion (const SwLinePortion &rPortion)
 
virtual ~SwLinePortion ()
 
SwLinePortionGetNextPortion () const
 
SwLinePortionoperator= (const SwLinePortion &rPortion)
 
TextFrameIndex GetLen () const
 
void SetLen (TextFrameIndex const nLen)
 
void SetNextPortion (SwLinePortion *pNew)
 
sal_uInt16 & GetAscent ()
 
sal_uInt16 GetAscent () const
 
void SetAscent (const sal_uInt16 nNewAsc)
 
void PrtWidth (sal_uInt16 nNewWidth)
 
sal_uInt16 PrtWidth () const
 
void AddPrtWidth (const sal_uInt16 nNew)
 
void SubPrtWidth (const sal_uInt16 nNew)
 
SwLinePortionCut (SwLinePortion *pVictim)
 
void Truncate ()
 
virtual SwLinePortionCompress ()
 
void SetWhichPor (const PortionType nNew)
 
PortionType GetWhichPor () const
 
bool InTextGrp () const
 
bool InGlueGrp () const
 
bool InTabGrp () const
 
bool InHyphGrp () const
 
bool InNumberGrp () const
 
bool InFixGrp () const
 
bool InFieldGrp () const
 
bool InToxRefGrp () const
 
bool InToxRefOrFieldGrp () const
 
bool InExpGrp () const
 
bool InFixMargGrp () const
 
bool InSpaceGrp () const
 
bool IsGrfNumPortion () const
 
bool IsFlyCntPortion () const
 
bool IsBlankPortion () const
 
bool IsBreakPortion () const
 
bool IsErgoSumPortion () const
 
bool IsQuoVadisPortion () const
 
bool IsTabLeftPortion () const
 
bool IsTabRightPortion () const
 
bool IsFootnoteNumPortion () const
 
bool IsFootnotePortion () const
 
bool IsDropPortion () const
 
bool IsLayPortion () const
 
bool IsParaPortion () const
 
bool IsMarginPortion () const
 
bool IsFlyPortion () const
 
bool IsHolePortion () const
 
bool IsSoftHyphPortion () const
 
bool IsPostItsPortion () const
 
bool IsCombinedPortion () const
 
bool IsTextPortion () const
 
bool IsHangingPortion () const
 
bool IsKernPortion () const
 
bool IsArrowPortion () const
 
bool IsMultiPortion () const
 
bool IsNumberPortion () const
 
bool IsControlCharPortion () const
 
SwLinePortionFindPrevPortion (const SwLinePortion *pRoot)
 
SwLinePortionFindLastPortion ()
 
void CalcTextSize (const SwTextSizeInfo &rInfo)
 
void PrePaint (const SwTextPaintInfo &rInf, const SwLinePortion *pLast) const
 
void Move (SwTextPaintInfo &rInf)
 
virtual sal_uInt16 GetViewWidth (const SwTextSizeInfo &rInf) const
 
bool GetJoinBorderWithPrev () const
 
bool GetJoinBorderWithNext () const
 
void SetJoinBorderWithPrev (const bool bJoinPrev)
 
void SetJoinBorderWithNext (const bool bJoinNext)
 
- Public Member Functions inherited from SwPosSize
 SwPosSize (const sal_uInt16 nW=0, const sal_uInt16 nH=0)
 
 SwPosSize (const Size &rSize)
 
virtual ~SwPosSize ()
 
 SwPosSize (SwPosSize const &)=default
 
 SwPosSize (SwPosSize &&)=default
 
SwPosSizeoperator= (SwPosSize const &)=default
 
SwPosSizeoperator= (SwPosSize &&)=default
 
sal_uInt16 Height () const
 
sal_uInt16 Width () const
 
void Width (const sal_uInt16 nNew)
 
Size SvLSize () const
 
void SvLSize (const Size &rSize)
 
void SvXSize (const Size &rSize)
 
SwPosSizeoperator= (const Size &rSize)
 

Private Attributes

SwRepaint m_aRepaint
 
SwCharRange m_aReformat
 
SwScriptInfo m_aScriptInfo
 
long m_nDelta
 
bool m_bFlys: 1
 
bool m_bPrep: 1
 
bool m_bPrepWidows: 1
 
bool m_bPrepAdjust: 1
 
bool m_bPrepMustFit: 1
 
bool m_bFollowField: 1
 
bool m_bFixLineHeight: 1
 
bool m_bFootnoteNum: 1
 
bool m_bMargin: 1
 

Additional Inherited Members

- Static Public Member Functions inherited from SwTextPortion
static SwTextPortionCopyLinePortion (const SwLinePortion &rPortion)
 
- Protected Member Functions inherited from SwLinePortion
 SwLinePortion ()
 
- Protected Attributes inherited from SwLinePortion
SwLinePortionmpNextPortion
 
TextFrameIndex nLineLength
 
sal_uInt16 nAscent
 

Detailed Description

Collection of SwLineLayout instances, represents the paragraph text in Writer layout.

Typically owned by an SwTextFrame.

Definition at line 236 of file porlay.hxx.

Constructor & Destructor Documentation

SwParaPortion::SwParaPortion ( )
SwParaPortion::~SwParaPortion ( )
overridevirtual

Definition at line 2385 of file porlay.cxx.

Member Function Documentation

const SwDropPortion * SwParaPortion::FindDropPortion ( ) const
void SwParaPortion::FormatReset ( )
inline
long& SwParaPortion::GetDelta ( )
inline
const long& SwParaPortion::GetDelta ( ) const
inline

Definition at line 276 of file porlay.hxx.

References m_nDelta.

TextFrameIndex SwParaPortion::GetParLen ( ) const

Definition at line 2389 of file porlay.cxx.

References SwLinePortion::GetLen(), and SwLineLayout::GetNext().

Referenced by SwTextFrame::Prepare().

SwCharRange& SwParaPortion::GetReformat ( )
inline
const SwCharRange& SwParaPortion::GetReformat ( ) const
inline

Definition at line 274 of file porlay.hxx.

References m_aReformat.

SwRepaint& SwParaPortion::GetRepaint ( )
inline
const SwRepaint& SwParaPortion::GetRepaint ( ) const
inline

Definition at line 272 of file porlay.hxx.

References m_aRepaint.

SwScriptInfo& SwParaPortion::GetScriptInfo ( )
inline
const SwScriptInfo& SwParaPortion::GetScriptInfo ( ) const
inline

Definition at line 278 of file porlay.hxx.

References m_aScriptInfo.

bool SwParaPortion::HasFly ( ) const
inline

Definition at line 288 of file porlay.hxx.

References m_bFlys.

Referenced by SwTextFrame::Prepare().

bool SwParaPortion::IsFixLineHeight ( ) const
inline

Definition at line 302 of file porlay.hxx.

References m_bFixLineHeight.

Referenced by SwTextFrame::CalcLineSpace().

bool SwParaPortion::IsFollowField ( ) const
inline

Definition at line 300 of file porlay.hxx.

References m_bFollowField.

Referenced by SwTextFrame::CalcFollow(), and SwTextFrame::PrepWidows().

bool SwParaPortion::IsFootnoteNum ( ) const
inline

Definition at line 305 of file porlay.hxx.

References m_bFootnoteNum.

Referenced by SwTextFrame::Prepare().

bool SwParaPortion::IsMargin ( ) const
inline

Definition at line 307 of file porlay.hxx.

References m_bMargin.

Referenced by SwTextFrame::Format_().

bool SwParaPortion::IsPrep ( ) const
inline

Definition at line 292 of file porlay.hxx.

References m_bPrep.

Referenced by SwTextFrame::CalcPreps().

bool SwParaPortion::IsPrepAdjust ( ) const
inline

Definition at line 298 of file porlay.hxx.

References m_bPrepAdjust.

Referenced by SwTextFrame::CalcPreps().

bool SwParaPortion::IsPrepMustFit ( ) const
inline
bool SwParaPortion::IsPrepWidows ( ) const
inline

Definition at line 294 of file porlay.hxx.

References m_bPrepWidows.

Referenced by SwTextFrame::CalcFollow(), and SwTextFrame::CalcPreps().

void SwParaPortion::ResetPreps ( )
inline

Definition at line 315 of file porlay.hxx.

References m_bPrep, m_bPrepAdjust, m_bPrepMustFit, and m_bPrepWidows.

Referenced by FormatReset().

void SwParaPortion::SetErgoSumNum ( const OUString &  rErgo)
void SwParaPortion::SetFixLineHeight ( )
inline

Definition at line 301 of file porlay.hxx.

References m_bFixLineHeight.

Referenced by SwTextFormatter::CalcRealHeight().

void SwParaPortion::SetFly ( )
inline

Definition at line 287 of file porlay.hxx.

References m_bFlys.

Referenced by SwTextAdjuster::CalcFlyPortion(), SwFlyPortion::Format(), and SwFlyCntPortion::Format().

void SwParaPortion::SetFollowField ( const bool  bNew)
inline

Definition at line 299 of file porlay.hxx.

References m_bFollowField.

Referenced by SwTextIter::TruncLines().

void SwParaPortion::SetFootnoteNum ( const bool  bNew)
inline

Definition at line 304 of file porlay.hxx.

References m_bFootnoteNum.

Referenced by SwTextFormatter::WhichFirstPortion().

void SwParaPortion::SetMargin ( const bool  bNew = true)
inline

Definition at line 306 of file porlay.hxx.

References m_bMargin.

Referenced by SwLineLayout::CalcLine().

void SwParaPortion::SetPrep ( )
inline

Definition at line 291 of file porlay.hxx.

References m_bPrep.

Referenced by SwTextFrame::CalcLineSpace(), SwTextFrame::Format(), and SwTextFrame::Prepare().

void SwParaPortion::SetPrepAdjust ( )
inline

Definition at line 297 of file porlay.hxx.

References m_bPrepAdjust.

Referenced by SwTextFrame::CalcLineSpace(), SwTextFrame::Format(), and SwTextFrame::Prepare().

void SwParaPortion::SetPrepMustFit ( const bool  bNew)
inline
void SwParaPortion::SetPrepWidows ( )
inline

Definition at line 293 of file porlay.hxx.

References m_bPrepWidows.

Referenced by SwTextFrame::PrepWidows().

bool SwParaPortion::UpdateQuoVadis ( const OUString &  rQuo)

Member Data Documentation

SwCharRange SwParaPortion::m_aReformat
private

Definition at line 241 of file porlay.hxx.

Referenced by FormatReset(), and GetReformat().

SwRepaint SwParaPortion::m_aRepaint
private

Definition at line 239 of file porlay.hxx.

Referenced by GetRepaint().

SwScriptInfo SwParaPortion::m_aScriptInfo
private

Definition at line 242 of file porlay.hxx.

Referenced by GetScriptInfo().

bool SwParaPortion::m_bFixLineHeight
private

Definition at line 256 of file porlay.hxx.

Referenced by FormatReset(), IsFixLineHeight(), and SetFixLineHeight().

bool SwParaPortion::m_bFlys
private

Definition at line 249 of file porlay.hxx.

Referenced by HasFly(), SetFly(), and SwParaPortion().

bool SwParaPortion::m_bFollowField
private

Definition at line 254 of file porlay.hxx.

Referenced by FormatReset(), IsFollowField(), and SetFollowField().

bool SwParaPortion::m_bFootnoteNum
private

Definition at line 257 of file porlay.hxx.

Referenced by IsFootnoteNum(), SetFootnoteNum(), and SwParaPortion().

bool SwParaPortion::m_bMargin
private

Definition at line 258 of file porlay.hxx.

Referenced by FormatReset(), IsMargin(), SetMargin(), and SwParaPortion().

bool SwParaPortion::m_bPrep
private

Definition at line 250 of file porlay.hxx.

Referenced by IsPrep(), ResetPreps(), and SetPrep().

bool SwParaPortion::m_bPrepAdjust
private

Definition at line 252 of file porlay.hxx.

Referenced by IsPrepAdjust(), ResetPreps(), and SetPrepAdjust().

bool SwParaPortion::m_bPrepMustFit
private

Definition at line 253 of file porlay.hxx.

Referenced by IsPrepMustFit(), ResetPreps(), and SetPrepMustFit().

bool SwParaPortion::m_bPrepWidows
private

Definition at line 251 of file porlay.hxx.

Referenced by IsPrepWidows(), ResetPreps(), and SetPrepWidows().

long SwParaPortion::m_nDelta
private

Definition at line 245 of file porlay.hxx.

Referenced by FormatReset(), and GetDelta().


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