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

#include <frame.hxx>

Collaboration diagram for SwRectFnSet:
[legend]

Public Member Functions

 SwRectFnSet (const SwFrame *pFrame)
 
void Refresh (const SwFrame *pFrame)
 
bool IsVert () const
 
bool IsVertL2R () const
 
SwRectFn FnRect () const
 
bool PosDiff (const SwRect &rRect1, const SwRect &rRect2) const
 
tools::Long GetTop (const SwRect &rRect) const
 
tools::Long GetBottom (const SwRect &rRect) const
 
tools::Long GetLeft (const SwRect &rRect) const
 
tools::Long GetRight (const SwRect &rRect) const
 
tools::Long GetWidth (const SwRect &rRect) const
 
tools::Long GetHeight (const SwRect &rRect) const
 
Point GetPos (const SwRect &rRect) const
 
Size GetSize (const SwRect &rRect) const
 
void SetTop (SwRect &rRect, tools::Long nNew) const
 
void SetBottom (SwRect &rRect, tools::Long nNew) const
 
void SetLeft (SwRect &rRect, tools::Long nNew) const
 
void SetRight (SwRect &rRect, tools::Long nNew) const
 
void SetWidth (SwRect &rRect, tools::Long nNew) const
 
void SetHeight (SwRect &rRect, tools::Long nNew) const
 
void SubTop (SwRect &rRect, tools::Long nNew) const
 
void AddBottom (SwRect &rRect, tools::Long nNew) const
 
void SubLeft (SwRect &rRect, tools::Long nNew) const
 
void AddRight (SwRect &rRect, tools::Long nNew) const
 
void AddWidth (SwRect &rRect, tools::Long nNew) const
 
void AddHeight (SwRect &rRect, tools::Long nNew) const
 
void SetPosX (SwRect &rRect, tools::Long nNew) const
 
void SetPosY (SwRect &rRect, tools::Long nNew) const
 
tools::Long GetTopMargin (const SwFrame &rFrame) const
 
tools::Long GetBottomMargin (const SwFrame &rFrame) const
 
tools::Long GetLeftMargin (const SwFrame &rFrame) const
 
tools::Long GetRightMargin (const SwFrame &rFrame) const
 
void SetXMargins (SwFrame &rFrame, tools::Long nLeft, tools::Long nRight) const
 
void SetYMargins (SwFrame &rFrame, tools::Long nTop, tools::Long nBottom) const
 
tools::Long GetPrtTop (const SwFrame &rFrame) const
 
tools::Long GetPrtBottom (const SwFrame &rFrame) const
 
tools::Long GetPrtLeft (const SwFrame &rFrame) const
 
tools::Long GetPrtRight (const SwFrame &rFrame) const
 
tools::Long TopDist (const SwRect &rRect, tools::Long nPos) const
 
tools::Long BottomDist (const SwRect &rRect, tools::Long nPos) const
 
tools::Long LeftDist (const SwRect &rRect, tools::Long nPos) const
 
tools::Long RightDist (const SwRect &rRect, tools::Long nPos) const
 
void SetLimit (SwFrame &rFrame, tools::Long nNew) const
 
bool OverStep (const SwRect &rRect, tools::Long nPos) const
 
void SetPos (SwRect &rRect, const Point &rNew) const
 
void MakePos (SwFrame &rFrame, const SwFrame *pUp, const SwFrame *pPrv, bool bNotify) const
 
tools::Long XDiff (tools::Long n1, tools::Long n2) const
 
tools::Long YDiff (tools::Long n1, tools::Long n2) const
 
tools::Long XInc (tools::Long n1, tools::Long n2) const
 
tools::Long YInc (tools::Long n1, tools::Long n2) const
 
void SetLeftAndWidth (SwRect &rRect, tools::Long nLeft, tools::Long nWidth) const
 
void SetTopAndHeight (SwRect &rRect, tools::Long nTop, tools::Long nHeight) const
 

Private Attributes

bool m_bVert
 
bool m_bVertL2R
 
bool m_bVertL2RB2T
 
SwRectFn m_fnRect
 

Detailed Description

Definition at line 1354 of file frame.hxx.

Constructor & Destructor Documentation

◆ SwRectFnSet()

SwRectFnSet::SwRectFnSet ( const SwFrame pFrame)
inlineexplicit

Member Function Documentation

◆ AddBottom()

void SwRectFnSet::AddBottom ( SwRect rRect,
tools::Long  nNew 
) const
inline

◆ AddHeight()

void SwRectFnSet::AddHeight ( SwRect rRect,
tools::Long  nNew 
) const
inline

Definition at line 1403 of file frame.hxx.

References SwRectFnCollection::fnAddHeight, and m_fnRect.

Referenced by SwFootnoteContFrame::Format().

◆ AddRight()

void SwRectFnSet::AddRight ( SwRect rRect,
tools::Long  nNew 
) const
inline

◆ AddWidth()

void SwRectFnSet::AddWidth ( SwRect rRect,
tools::Long  nNew 
) const
inline

Definition at line 1402 of file frame.hxx.

References SwRectFnCollection::fnAddWidth, and m_fnRect.

Referenced by SwTabFrame::Split().

◆ BottomDist()

tools::Long SwRectFnSet::BottomDist ( const SwRect rRect,
tools::Long  nPos 
) const
inline

◆ FnRect()

SwRectFn SwRectFnSet::FnRect ( ) const
inline

◆ GetBottom()

tools::Long SwRectFnSet::GetBottom ( const SwRect rRect) const
inline

◆ GetBottomMargin()

tools::Long SwRectFnSet::GetBottomMargin ( const SwFrame rFrame) const
inline

◆ GetHeight()

tools::Long SwRectFnSet::GetHeight ( const SwRect rRect) const
inline

Definition at line 1387 of file frame.hxx.

References SwRectFnCollection::fnGetHeight, and m_fnRect.

Referenced by SwRowFrame::AdjustCells(), SwTextFrame::AdjustFrame(), SwFrame::AdjustNeighbourhood(), CalcClipRect(), SwFlyFrame::CalcContentHeight(), SwTabFrame::CalcFlyOffsets(), SwTabFrame::CalcHeightOfFirstContentLine(), CalcHeightWithFlys(), objectpositioning::SwAsCharAnchoredObjectPosition::CalcPosition(), objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition(), SwTextFrame::CalcPreps(), SwTextFly::CalcRightMargin(), SwSectionFrame::CalcUndersize(), SwAnchoredObject::CheckCharRect(), SwSectionFrame::CheckClipping(), SwLayoutFrame::ChgLowersProp(), ChkChartSel(), SwTextFrame::ConnectFootnote(), SwContourCache::ContourRect(), SwContentFrame::Cut(), SwLayoutFrame::Cut(), SwTabFrame::Cut(), SwSectionFrame::Cut_(), WidowsAndOrphans::FindWidows(), SwTextFly::ForEach(), SwBodyFrame::Format(), SwCellFrame::Format(), SwFlyFrame::Format(), SwFootnoteContFrame::Format(), SwRowFrame::Format(), SwSectionFrame::Format(), SwTabFrame::Format(), SwTextFrame::Format(), SwTextFrame::FormatEmpty(), SwLayoutFrame::FormatWidthCols(), SwTextFrame::GetAutoPos(), SwTextFrame::GetCharRect(), SwTextFly::GetFrame_(), SwDoc::GetTabRows(), SwFEShell::GetTabRows_(), SwTextFrame::GetTopOfLine(), SwFootnoteBossFrame::GetVarSpace(), objectpositioning::SwAnchoredObjectPosition::GetVertAlignmentValues(), objectpositioning::SwAnchoredObjectPosition::GetVertRelPos(), SwFrame::Grow(), SwFlyFrame::Grow_(), SwSectionFrame::Grow_(), SwContentFrame::GrowFrame(), SwFootnoteContFrame::GrowFrame(), SwLayoutFrame::GrowFrame(), SwRowFrame::GrowFrame(), SwTabFrame::GrowFrame(), SwFrameNotify::ImplDestroy(), SwLayNotify::ImplDestroy(), SwTextFly::InitAnchoredObjList(), SwLayoutFrame::InnerHeight(), SwTextFrameBreak::IsInside(), SwTabFrame::Join(), lcl_AdjustRowSpanCells(), lcl_ArrangeLowers(), lcl_CalcHeightOfFirstContentLine(), lcl_calcHeightOfRowBeforeThisFrame(), lcl_CalcMinCellHeight(), lcl_CalcMinRowHeight(), lcl_GetHeightOfRows(), lcl_PreprocessRowsInCells(), lcl_RecalcSplitLine(), lcl_ShrinkCellsAndAllContent(), lcl_Undersize(), SwContentFrame::MakeAll(), SwFlyFreeFrame::MakeAll(), SwFlyAtContentFrame::MakeAll(), SwTabFrame::MakeAll(), SwFlyFrame::MakeContentPos(), SwContentFrame::MakePrtArea(), SwLayouter::MoveBwdSuppressed(), SwTable::OldSplitRow(), SwLayAction::PaintContent(), SwFootnoteFrame::Paste(), SwSectionFrame::Paste(), SwTabFrame::Paste(), SwTabFrame::RemoveFollowFlowLine(), SwTaggedPDFHelper::SetAttributes(), SwDoc::SetTabRows(), SwContentFrame::ShouldBwdMoved(), SwTabFrame::ShouldBwdMoved(), SwFrame::Shrink(), SwFlyFrame::Shrink_(), SwSectionFrame::Shrink_(), SwContentFrame::ShrinkFrame(), SwLayoutFrame::ShrinkFrame(), SwRowFrame::ShrinkFrame(), SwSectionFrame::SimpleFormat(), SwTabFrame::Split(), SwTestFormat::SwTestFormat(), SwTextFrameBreak::SwTextFrameBreak(), and SwTextFrame::WouldFit().

◆ GetLeft()

tools::Long SwRectFnSet::GetLeft ( const SwRect rRect) const
inline

◆ GetLeftMargin()

tools::Long SwRectFnSet::GetLeftMargin ( const SwFrame rFrame) const
inline

◆ GetPos()

Point SwRectFnSet::GetPos ( const SwRect rRect) const
inline

◆ GetPrtBottom()

tools::Long SwRectFnSet::GetPrtBottom ( const SwFrame rFrame) const
inline

◆ GetPrtLeft()

tools::Long SwRectFnSet::GetPrtLeft ( const SwFrame rFrame) const
inline

◆ GetPrtRight()

tools::Long SwRectFnSet::GetPrtRight ( const SwFrame rFrame) const
inline

◆ GetPrtTop()

tools::Long SwRectFnSet::GetPrtTop ( const SwFrame rFrame) const
inline

◆ GetRight()

tools::Long SwRectFnSet::GetRight ( const SwRect rRect) const
inline

◆ GetRightMargin()

tools::Long SwRectFnSet::GetRightMargin ( const SwFrame rFrame) const
inline

◆ GetSize()

Size SwRectFnSet::GetSize ( const SwRect rRect) const
inline

Definition at line 1389 of file frame.hxx.

References SwRectFnCollection::fnGetSize, and m_fnRect.

◆ GetTop()

tools::Long SwRectFnSet::GetTop ( const SwRect rRect) const
inline

Definition at line 1382 of file frame.hxx.

References SwRectFnCollection::fnGetTop, and m_fnRect.

Referenced by SwTextFrame::AdjustFrame(), SwFrame::AdjustNeighbourhood(), SwTextFrame::CalcBaseOfstForFly(), CalcClipRect(), SwFlyFrame::CalcContentHeight(), SwTabFrame::CalcFlyOffsets(), SwTextFrame::CalcFollow(), SwRootFrame::CalcFrameRects(), CalcHeightWithFlys(), SwContentFrame::CalcLowers(), objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition(), SwTextFrame::CalcPrepFootnoteAdjust(), SwTextFly::CalcRightMargin(), SwAnchoredObject::CheckCharRect(), SwSectionFrame::CheckClipping(), ChkChartSel(), SwTextFrame::ConnectFootnote(), SwContourCache::ContourRect(), objectpositioning::SwAnchoredObjectPosition::DrawAsideFly(), SwTextFrame::FillSelection(), SwCellFrame::Format(), SwFlyFrame::Format(), SwFootnoteContFrame::Format(), SwTextFrame::GetCharRect(), SwTextFrame::GetFootnoteFrameHeight_(), SwTextFly::GetFrame_(), SwPageFrame::GetModelPositionForViewPoint(), SwDoc::GetTabRows(), SwTextFrame::GetTopOfLine(), SwFootnoteBossFrame::GetVarSpace(), objectpositioning::SwAnchoredObjectPosition::GetVertAlignmentValues(), SwFlyFrame::Grow_(), SwFrameNotify::ImplDestroy(), SwTextFly::InitAnchoredObjList(), lcl_ArrangeLowers(), lcl_CalculateRepaintRect(), lcl_FindFrame(), lcl_InnerCalcLayout(), lcl_UpDown(), SwContentFrame::MakeAll(), SwFlyAtContentFrame::MakeAll(), SwTabFrame::MakeAll(), MakeSelUnions(), SwTextFormatter::NewFootnotePortion(), SwTabFrame::Split(), SwInvalidateAll(), SwInvalidatePositions(), and SwTestFormat::SwTestFormat().

◆ GetTopMargin()

tools::Long SwRectFnSet::GetTopMargin ( const SwFrame rFrame) const
inline

◆ GetWidth()

tools::Long SwRectFnSet::GetWidth ( const SwRect rRect) const
inline

◆ IsVert()

bool SwRectFnSet::IsVert ( ) const
inline

Definition at line 1372 of file frame.hxx.

References m_bVert.

Referenced by SwTextFrame::AdjustFrame(), objectpositioning::SwAnchoredObjectPosition::AdjustHoriRelPosForDrawAside(), SwFrame::AdjustNeighbourhood(), SwTextFormatter::BuildPortions(), SwFEShell::CalcBoundRect(), CalcClipRect(), SwTextFormatter::CalcFlyWidth(), SwTextFrame::CalcFollow(), CalcHeightWithFlys(), objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition(), objectpositioning::SwToLayoutAnchoredObjectPosition::CalcPosition(), SwTextFrame::CalcPreps(), SwTextFormatter::CalcRealHeight(), objectpositioning::SwAnchoredObjectPosition::CalcRelPosX(), SwSectionFrame::CheckClipping(), SwLayoutFrame::ChgLowersProp(), ChkChartSel(), SwTextFrame::FillCursorPos(), SwTextFrame::FillRegister(), SwTextFrame::FillSelection(), WidowsAndOrphans::FindWidows(), SwFlyFrame::Format(), SwTextFrame::GetAutoPos(), SwTextFrameInfo::GetCharPos(), SwTextFrame::GetCharRect(), SwLayoutFrame::GetContentPos(), objectpositioning::SwAnchoredObjectPosition::GetHoriAlignmentValues(), GetMergeSel(), SwDoc::GetTabRows(), SwFEShell::GetTabRows_(), SwTextFrame::GetTopOfLine(), objectpositioning::SwAnchoredObjectPosition::GetVertAlignmentValues(), objectpositioning::SwAnchoredObjectPosition::GetVertRelPos(), SwTextFly::InitAnchoredObjList(), lcl_ArrangeLowers(), lcl_CalcMinRowHeight(), lcl_FindFrame(), lcl_GetFootnoteLower(), lcl_SetPos(), lcl_UpDown(), SwFlyFrame::MakeContentPos(), SwFrame::MakePos(), SwContentFrame::MakePrtArea(), MakeSelUnions(), SwFootnoteContFrame::PaintLine(), SwTextFrameBreak::SetRstHeight(), SwDoc::SetTabRows(), SwFlyFrame::Shrink_(), SwTestFormat::SwTestFormat(), and SwTextFrame::WouldFit().

◆ IsVertL2R()

bool SwRectFnSet::IsVertL2R ( ) const
inline

◆ LeftDist()

tools::Long SwRectFnSet::LeftDist ( const SwRect rRect,
tools::Long  nPos 
) const
inline

Definition at line 1420 of file frame.hxx.

References SwRectFnCollection::fnLeftDist, m_fnRect, and nPos.

◆ MakePos()

void SwRectFnSet::MakePos ( SwFrame rFrame,
const SwFrame pUp,
const SwFrame pPrv,
bool  bNotify 
) const
inline

◆ OverStep()

bool SwRectFnSet::OverStep ( const SwRect rRect,
tools::Long  nPos 
) const
inline

Definition at line 1423 of file frame.hxx.

References SwRectFnCollection::fnOverStep, m_fnRect, and nPos.

Referenced by SwTextFrame::Format(), and SwContentFrame::MakeAll().

◆ PosDiff()

bool SwRectFnSet::PosDiff ( const SwRect rRect1,
const SwRect rRect2 
) const
inline

◆ Refresh()

void SwRectFnSet::Refresh ( const SwFrame pFrame)
inline

◆ RightDist()

tools::Long SwRectFnSet::RightDist ( const SwRect rRect,
tools::Long  nPos 
) const
inline

Definition at line 1421 of file frame.hxx.

References SwRectFnCollection::fnRightDist, m_fnRect, and nPos.

◆ SetBottom()

void SwRectFnSet::SetBottom ( SwRect rRect,
tools::Long  nNew 
) const
inline

◆ SetHeight()

void SwRectFnSet::SetHeight ( SwRect rRect,
tools::Long  nNew 
) const
inline

◆ SetLeft()

void SwRectFnSet::SetLeft ( SwRect rRect,
tools::Long  nNew 
) const
inline

◆ SetLeftAndWidth()

void SwRectFnSet::SetLeftAndWidth ( SwRect rRect,
tools::Long  nLeft,
tools::Long  nWidth 
) const
inline

Definition at line 1432 of file frame.hxx.

References SwRectFnCollection::fnSetLeftAndWidth, and m_fnRect.

Referenced by CalcClipRect(), and SwRootFrame::PaintSwFrame().

◆ SetLimit()

void SwRectFnSet::SetLimit ( SwFrame rFrame,
tools::Long  nNew 
) const
inline

Definition at line 1422 of file frame.hxx.

References SwRectFnCollection::fnSetLimit, and m_fnRect.

Referenced by SwTextFrame::Format().

◆ SetPos()

void SwRectFnSet::SetPos ( SwRect rRect,
const Point rNew 
) const
inline

Definition at line 1425 of file frame.hxx.

References SwRectFnCollection::fnSetPos, and m_fnRect.

Referenced by lcl_SetPos(), and SwFlyInContentFrame::SetRefPoint().

◆ SetPosX()

void SwRectFnSet::SetPosX ( SwRect rRect,
tools::Long  nNew 
) const
inline

◆ SetPosY()

void SwRectFnSet::SetPosY ( SwRect rRect,
tools::Long  nNew 
) const
inline

◆ SetRight()

void SwRectFnSet::SetRight ( SwRect rRect,
tools::Long  nNew 
) const
inline

◆ SetTop()

void SwRectFnSet::SetTop ( SwRect rRect,
tools::Long  nNew 
) const
inline

◆ SetTopAndHeight()

void SwRectFnSet::SetTopAndHeight ( SwRect rRect,
tools::Long  nTop,
tools::Long  nHeight 
) const
inline

◆ SetWidth()

void SwRectFnSet::SetWidth ( SwRect rRect,
tools::Long  nNew 
) const
inline

◆ SetXMargins()

void SwRectFnSet::SetXMargins ( SwFrame rFrame,
tools::Long  nLeft,
tools::Long  nRight 
) const
inline

◆ SetYMargins()

void SwRectFnSet::SetYMargins ( SwFrame rFrame,
tools::Long  nTop,
tools::Long  nBottom 
) const
inline

◆ SubLeft()

void SwRectFnSet::SubLeft ( SwRect rRect,
tools::Long  nNew 
) const
inline

Definition at line 1400 of file frame.hxx.

References SwRectFnCollection::fnSubLeft, and m_fnRect.

Referenced by SwCellFrame::Format().

◆ SubTop()

void SwRectFnSet::SubTop ( SwRect rRect,
tools::Long  nNew 
) const
inline

Definition at line 1398 of file frame.hxx.

References SwRectFnCollection::fnSubTop, and m_fnRect.

Referenced by SwFootnoteContFrame::Format(), and lcl_ArrangeLowers().

◆ TopDist()

tools::Long SwRectFnSet::TopDist ( const SwRect rRect,
tools::Long  nPos 
) const
inline

◆ XDiff()

tools::Long SwRectFnSet::XDiff ( tools::Long  n1,
tools::Long  n2 
) const
inline

◆ XInc()

tools::Long SwRectFnSet::XInc ( tools::Long  n1,
tools::Long  n2 
) const
inline

Definition at line 1429 of file frame.hxx.

References SwRectFnCollection::fnXInc, m_fnRect, n1, and n2.

Referenced by lcl_UpDown(), and SwFrame::UnionFrame().

◆ YDiff()

tools::Long SwRectFnSet::YDiff ( tools::Long  n1,
tools::Long  n2 
) const
inline

◆ YInc()

tools::Long SwRectFnSet::YInc ( tools::Long  n1,
tools::Long  n2 
) const
inline

Member Data Documentation

◆ m_bVert

bool SwRectFnSet::m_bVert
private

Definition at line 1436 of file frame.hxx.

Referenced by IsVert(), Refresh(), and SwRectFnSet().

◆ m_bVertL2R

bool SwRectFnSet::m_bVertL2R
private

Definition at line 1437 of file frame.hxx.

Referenced by IsVertL2R(), Refresh(), and SwRectFnSet().

◆ m_bVertL2RB2T

bool SwRectFnSet::m_bVertL2RB2T
private

Definition at line 1438 of file frame.hxx.

Referenced by Refresh(), and SwRectFnSet().

◆ m_fnRect

SwRectFn SwRectFnSet::m_fnRect
private

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