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 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 nWidLines
 
sal_uInt16 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 ( SwTextFrame pFrame,
const SwTwips  nRst = 0,
bool  bCheckKeep = true 
)

Member Function Documentation

void WidowsAndOrphans::ClrOrphLines ( )
inline

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
inline

Definition at line 61 of file widorp.hxx.

References nOrphLines.

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

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

Member Data Documentation

sal_uInt16 WidowsAndOrphans::nOrphLines
private

Definition at line 55 of file widorp.hxx.

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

sal_uInt16 WidowsAndOrphans::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: