LibreOffice Module sw (master) 1
|
#include <widorp.hxx>
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 | |
SwTextFrame * | m_pFrame |
bool | m_bBreak |
bool | m_bKeep |
Definition at line 52 of file widorp.hxx.
WidowsAndOrphans::WidowsAndOrphans | ( | SwTextFrame * | pFrame, |
const SwTwips | nRst = 0 , |
||
bool | bCheckKeep = true |
||
) |
Definition at line 288 of file widorp.cxx.
References SwFrame::FindFootnoteBossFrame(), SwFrame::FindFootnoteFrame(), SwFrame::FindSctFrame(), IDocumentSettingAccess::get(), SwFootnoteFrame::GetAttr(), SwNode::GetDoc(), SwTextAttr::GetFootnote(), SwDoc::getIDocumentSettingAccess(), SwFrame::GetIndPrev(), SwFrame::GetNextCellLeaf(), SwFrame::GetPrev(), SwFootnoteFrame::GetRef(), SwContentNode::GetSwAttrSet(), SwTextFrame::GetTextNodeForParaProps(), SwFrame::GetUpper(), SwAttrSet::GetWidows(), SwFormatFootnote::IsEndNote(), SwFrame::IsInFly(), SwFrame::IsInFollowFlowRow(), SwFrame::IsInFootnote(), SwFrame::IsInSct(), SwFrame::IsInTab(), SwFrame::IsMoveable(), SwFrame::IsRowFrame(), SwTextFrameBreak::m_bKeep, m_nOrphLines, m_nWidLines, SwTextFrameBreak::m_pFrame, SwSectionFrame::MoveAllowed(), rSet, swap(), and TABLE_ROW_KEEP.
|
inline |
Definition at line 63 of file widorp.hxx.
References m_nOrphLines.
Referenced by SwTextFrame::CalcPreps().
bool WidowsAndOrphans::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.
Definition at line 377 of file widorp.cxx.
References SwTextIter::Bottom(), FindWidows(), SwTextMargin::GetInfo(), SwTextIter::GetLineNr(), SwTextInfo::GetParaPortion(), SwTextFrameBreak::IsBreakNow(), IsBreakNowWidAndOrp(), SwLineLayout::IsDummy(), m_nOrphLines, SwTextFrameBreak::m_pFrame, SwTextIter::PrevLine(), swap(), SwTextIter::Top(), and SwTextIter::TruncLines().
Referenced by SwTextFrame::FormatAdjust().
bool WidowsAndOrphans::FindWidows | ( | SwTextFrame * | pFrame, |
SwTextMargin & | rLine | ||
) |
FindWidows positions the SwTextMargin of the Master to the line where to break by examining and formatting the Follow.
Returns true if the Widows-rule matches, that means that the paragraph should not be split (keep) !
Definition at line 428 of file widorp.cxx.
References AdjustSizeWithoutFormatting, SwTextIter::Bottom(), SwRectFnSet::BottomDist(), SwTextFrame::ChgThisLines(), SwContentFrame::FindMaster(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwRectFnSet::GetHeight(), SwFrame::GetIndPrev(), SwTextMargin::GetInfo(), SwTextIter::GetLineHeight(), SwTextIter::GetLineNr(), SwLineLayout::GetNext(), SwTextFrame::GetOffset(), SwTextFrame::GetPara(), SwTextInfo::GetParaPortion(), SwRectFnSet::GetPrtBottom(), SwRectFnSet::GetPrtTop(), SwContentNode::GetSwAttrSet(), SwTextFrame::GetTextNodeForParaProps(), SwTextFrame::GetThisLines(), SwFrame::GetUpper(), SwFrame::HasFixSize(), SwTextFrame::HasPara(), SwLineLayout::Height(), SwFrame::InvalidatePage(), SwFrame::InvalidateSize_(), SwFrame::IsInTab(), SwTextFrame::IsJustWidow(), SwTextFrame::IsLocked(), SwFrame::IsRowFrame(), SwTextFrame::IsSwapped(), SwRectFnSet::IsVert(), SwFrame::IsVertical(), m_nWidLines, SwTextFrame::Prepare(), rSet, SwTextFrame::SetJustWidow(), SwTextFrame::SwitchHorizontalToVertical(), Widows, SwTextIter::Y(), and SwRectFnSet::YDiff().
Referenced by FindBreak().
|
inline |
Definition at line 61 of file widorp.hxx.
References m_nOrphLines.
Referenced by SwTextFrame::PrepWidows(), and WouldFit().
|
inline |
Definition at line 69 of file widorp.hxx.
References SwTextIter::GetCurr(), SwTextIter::GetLineNr(), SwTextIter::GetPrev(), SwTextFrameBreak::IsBreakNow(), SwLineLayout::IsDummy(), and m_nOrphLines.
Referenced by SwTextFrame::CalcPreps(), FindBreak(), and SwTextFrame::Format_().
bool WidowsAndOrphans::WouldFit | ( | SwTextMargin & | rLine, |
SwTwips & | rMaxHeight, | ||
bool | bTest, | ||
bool | bMoveBwd | ||
) |
Definition at line 576 of file widorp.cxx.
References Fly, SwTextIter::GetCurr(), SwTextMargin::GetDropLines(), SwLineLayout::GetFirstPortion(), SwTextIter::GetLineHeight(), SwTextIter::GetLineNr(), SwTextIter::GetNext(), SwLinePortion::GetNextPortion(), GetOrphansLines(), SwContentNode::GetSwAttrSet(), SwTextFrame::GetTextNodeForParaProps(), Glue, SwTextFrameBreak::IsInside(), m_nWidLines, SwTextFrameBreak::m_pFrame, Margin, SwTextIter::NextLine(), rSet, and SwTextIter::Top().
Referenced by SwTextFrame::WouldFit().
|
private |
Definition at line 55 of file widorp.hxx.
Referenced by ClrOrphLines(), FindBreak(), GetOrphansLines(), IsBreakNowWidAndOrp(), and WidowsAndOrphans().
|
private |
Definition at line 55 of file widorp.hxx.
Referenced by FindWidows(), WidowsAndOrphans(), and WouldFit().