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

#include <widorp.hxx>

Inheritance diagram for WidowsAndOrphans:
Collaboration diagram for WidowsAndOrphans:

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 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
bool m_bBreak
bool m_bKeep

Detailed Description

Definition at line 52 of file widorp.hxx.

Constructor & Destructor Documentation

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

Member Function Documentation

void WidowsAndOrphans::ClrOrphLines ( )

Definition at line 63 of file widorp.hxx.

Referenced by SwTextFrame::CalcPreps().

bool WidowsAndOrphans::FindBreak ( SwTextFrame pFrame,
SwTextMargin rLine,
bool  bHasToFit 
bool WidowsAndOrphans::FindWidows ( SwTextFrame pFrame,
SwTextMargin rLine 
sal_uInt16 WidowsAndOrphans::GetOrphansLines ( ) const

Definition at line 61 of file widorp.hxx.

References m_nOrphLines.

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

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

Member Data Documentation

sal_uInt16 WidowsAndOrphans::m_nOrphLines

Definition at line 55 of file widorp.hxx.

Referenced by FindBreak(), GetOrphansLines(), IsBreakNowWidAndOrp(), and WidowsAndOrphans().

sal_uInt16 WidowsAndOrphans::m_nWidLines

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: