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

#include <widorp.hxx>

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

Public Member Functions

 WidowsAndOrphans (SwTextFrame *pFrame, const SwTwips nRst=0, bool bCheckKeep=true)
 
bool FindWidows (SwTextFrame *pFrame, SwTextMargin &rLine)
 FindWidows positions the SwTextMargin of the Master to the line where to break by examining and formatting the Follow. More...
 
sal_uInt16 GetOrphansLines () const
 
void ClrOrphLines ()
 
bool FindBreak (SwTextFrame *pFrame, SwTextMargin &rLine, bool bHasToFit)
 The Find*-Methods do not only search, but adjust the SwTextMargin to the line where the paragraph should have a break and truncate the paragraph there. More...
 
bool WouldFit (SwTextMargin &rLine, SwTwips &rMaxHeight, bool bTest, bool bMoveBwd)
 
bool IsBreakNowWidAndOrp (SwTextMargin &rLine)
 
- Public Member Functions inherited from SwTextFrameBreak
 SwTextFrameBreak (SwTextFrame *pFrame, const SwTwips nRst=0)
 
bool IsBreakNow (SwTextMargin &rLine)
 
bool IsKeepAlways () const
 
void SetKeep (const bool bNew)
 
bool IsInside (SwTextMargin const &rLine) const
 BP 18.6.93: Widows. More...
 
void SetRstHeight (const SwTextMargin &rLine)
 

Private Attributes

sal_uInt16 m_nWidLines
 
sal_uInt16 m_nOrphLines
 

Additional Inherited Members

- Protected Attributes inherited from SwTextFrameBreak
SwTextFramem_pFrame
 
bool m_bBreak
 
bool m_bKeep
 

Detailed Description

Definition at line 52 of file widorp.hxx.

Constructor & Destructor Documentation

◆ WidowsAndOrphans()

WidowsAndOrphans::WidowsAndOrphans ( SwTextFrame pFrame,
const SwTwips  nRst = 0,
bool  bCheckKeep = true 
)

Member Function Documentation

◆ ClrOrphLines()

void WidowsAndOrphans::ClrOrphLines ( )
inline

Definition at line 63 of file widorp.hxx.

References m_nOrphLines.

Referenced by SwTextFrame::CalcPreps().

◆ FindBreak()

bool WidowsAndOrphans::FindBreak ( SwTextFrame pFrame,
SwTextMargin rLine,
bool  bHasToFit 
)

◆ FindWidows()

bool WidowsAndOrphans::FindWidows ( SwTextFrame pFrame,
SwTextMargin rLine 
)

◆ GetOrphansLines()

sal_uInt16 WidowsAndOrphans::GetOrphansLines ( ) const
inline

Definition at line 61 of file widorp.hxx.

References m_nOrphLines.

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

◆ IsBreakNowWidAndOrp()

bool WidowsAndOrphans::IsBreakNowWidAndOrp ( SwTextMargin rLine)
inline

◆ WouldFit()

bool WidowsAndOrphans::WouldFit ( SwTextMargin rLine,
SwTwips rMaxHeight,
bool  bTest,
bool  bMoveBwd 
)

Member Data Documentation

◆ m_nOrphLines

sal_uInt16 WidowsAndOrphans::m_nOrphLines
private

◆ m_nWidLines

sal_uInt16 WidowsAndOrphans::m_nWidLines
private

Definition at line 55 of file widorp.hxx.

Referenced by FindWidows(), WidowsAndOrphans(), and WouldFit().


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