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 1330 of file frame.hxx.

Constructor & Destructor Documentation

SwRectFnSet::SwRectFnSet ( const SwFrame pFrame)
inlineexplicit

Definition at line 1332 of file frame.hxx.

References fnRectHori, fnRectVertL2R, m_bVert, m_bVertL2R, m_bVertL2RB2T, and m_fnRect.

Member Function Documentation

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

Definition at line 1379 of file frame.hxx.

References SwRectFnCollection::fnAddHeight, and m_fnRect.

Referenced by SwFootnoteContFrame::Format().

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

Definition at line 1377 of file frame.hxx.

References SwRectFnCollection::fnAddRight, and m_fnRect.

Referenced by SwCellFrame::Format(), and SwTabFrame::Format().

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

Definition at line 1378 of file frame.hxx.

References SwRectFnCollection::fnAddWidth, and m_fnRect.

Referenced by SwTabFrame::Split().

tools::Long SwRectFnSet::BottomDist ( const SwRect rRect,
tools::Long  nPos 
) const
inline
SwRectFn SwRectFnSet::FnRect ( ) const
inline
tools::Long SwRectFnSet::GetBottom ( const SwRect rRect) const
inline
tools::Long SwRectFnSet::GetBottomMargin ( const SwFrame rFrame) const
inline
tools::Long SwRectFnSet::GetHeight ( const SwRect rRect) const
inline

Definition at line 1363 of file frame.hxx.

References SwRectFnCollection::fnGetHeight, and m_fnRect.

Referenced by SwRowFrame::AdjustCells(), SwTextFrame::AdjustFrame(), SwFrame::AdjustNeighbourhood(), CalcClipRect(), SwFlyFrame::CalcContentHeight(), SwTabFrame::CalcHeightOfFirstContentLine(), CalcHeightWithFlys(), objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition(), objectpositioning::SwAsCharAnchoredObjectPosition::CalcPosition(), SwTextFrame::CalcPreps(), 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(), SwRowFrame::Format(), SwBodyFrame::Format(), SwCellFrame::Format(), SwFootnoteContFrame::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(), SwSectionFrame::Grow_(), SwFlyFrame::Grow_(), SwRowFrame::GrowFrame(), SwLayoutFrame::GrowFrame(), SwFootnoteContFrame::GrowFrame(), SwContentFrame::GrowFrame(), SwTabFrame::GrowFrame(), SwTextFly::InitAnchoredObjList(), SwLayoutFrame::InnerHeight(), 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(), SwTabFrame::MakeAll(), SwFlyAtContentFrame::MakeAll(), SwFlyFrame::MakeContentPos(), SwContentFrame::MakePrtArea(), SwLayouter::MoveBwdSuppressed(), SwTable::OldSplitRow(), SwLayAction::PaintContent(), SwSectionFrame::Paste(), SwFootnoteFrame::Paste(), SwTabFrame::Paste(), SwFlowFrame::PasteTree(), SwTabFrame::RemoveFollowFlowLine(), RestoreContent(), SwTaggedPDFHelper::SetAttributes(), SwDoc::SetTabRows(), SwContentFrame::ShouldBwdMoved(), SwTabFrame::ShouldBwdMoved(), SwFrame::Shrink(), SwSectionFrame::Shrink_(), SwFlyFrame::Shrink_(), SwRowFrame::ShrinkFrame(), SwLayoutFrame::ShrinkFrame(), SwContentFrame::ShrinkFrame(), SwSectionFrame::SimpleFormat(), SwTabFrame::Split(), SwTestFormat::SwTestFormat(), SwTextFrameBreak::SwTextFrameBreak(), SwTextFrame::WouldFit(), SwFrameNotify::~SwFrameNotify(), and SwLayNotify::~SwLayNotify().

tools::Long SwRectFnSet::GetLeft ( const SwRect rRect) const
inline
tools::Long SwRectFnSet::GetLeftMargin ( const SwFrame rFrame) const
inline
Point SwRectFnSet::GetPos ( const SwRect rRect) const
inline
tools::Long SwRectFnSet::GetPrtBottom ( const SwFrame rFrame) const
inline
tools::Long SwRectFnSet::GetPrtLeft ( const SwFrame rFrame) const
inline
tools::Long SwRectFnSet::GetPrtRight ( const SwFrame rFrame) const
inline
tools::Long SwRectFnSet::GetPrtTop ( const SwFrame rFrame) const
inline
tools::Long SwRectFnSet::GetRight ( const SwRect rRect) const
inline
tools::Long SwRectFnSet::GetRightMargin ( const SwFrame rFrame) const
inline
Size SwRectFnSet::GetSize ( const SwRect rRect) const
inline

Definition at line 1365 of file frame.hxx.

References SwRectFnCollection::fnGetSize, and m_fnRect.

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

Definition at line 1358 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(), SwAnchoredObject::CheckCharRect(), SwSectionFrame::CheckClipping(), ChkChartSel(), SwTextFrame::ConnectFootnote(), SwContourCache::ContourRect(), objectpositioning::SwAnchoredObjectPosition::DrawAsideFly(), SwTextFrame::FillSelection(), SwCellFrame::Format(), SwFootnoteContFrame::Format(), SwTextFrame::GetCharRect(), SwTextFrame::GetFootnoteFrameHeight_(), SwTextFly::GetFrame_(), SwPageFrame::GetModelPositionForViewPoint(), SwDoc::GetTabRows(), SwTextFrame::GetTopOfLine(), SwFlowFrame::GetUpperSpaceAmountConsideredForPageGrid_(), SwFootnoteBossFrame::GetVarSpace(), objectpositioning::SwAnchoredObjectPosition::GetVertAlignmentValues(), SwTextFly::InitAnchoredObjList(), lcl_ArrangeLowers(), lcl_CalculateRepaintRect(), lcl_FindFrame(), lcl_InnerCalcLayout(), lcl_UpDown(), SwContentFrame::MakeAll(), SwTabFrame::MakeAll(), SwFlyAtContentFrame::MakeAll(), MakeSelUnions(), SwTextFormatter::NewFootnotePortion(), SwTabFrame::Split(), sw_HideObj(), SwInvalidateAll(), SwInvalidatePositions(), SwTestFormat::SwTestFormat(), and SwFrameNotify::~SwFrameNotify().

tools::Long SwRectFnSet::GetTopMargin ( const SwFrame rFrame) const
inline
tools::Long SwRectFnSet::GetWidth ( const SwRect rRect) const
inline
bool SwRectFnSet::IsVert ( ) const
inline

Definition at line 1348 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::SwToLayoutAnchoredObjectPosition::CalcPosition(), objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition(), SwTextFrame::CalcPreps(), SwTextFormatter::CalcRealHeight(), objectpositioning::SwAnchoredObjectPosition::CalcRelPosX(), SwSectionFrame::CheckClipping(), SwLayoutFrame::ChgLowersProp(), ChkChartSel(), SwTextFrame::FillCursorPos(), SwTextFrame::FillRegister(), SwTextFrame::FillSelection(), WidowsAndOrphans::FindWidows(), SwTextFrame::GetAutoPos(), SwTextFrameInfo::GetCharPos(), SwTextFrame::GetCharRect(), SwLayoutFrame::GetContentPos(), objectpositioning::SwAnchoredObjectPosition::GetHoriAlignmentValues(), 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().

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

Definition at line 1396 of file frame.hxx.

References SwRectFnCollection::fnLeftDist, and m_fnRect.

void SwRectFnSet::MakePos ( SwFrame rFrame,
const SwFrame pUp,
const SwFrame pPrv,
bool  bNotify 
) const
inline
bool SwRectFnSet::OverStep ( const SwRect rRect,
tools::Long  nPos 
) const
inline

Definition at line 1399 of file frame.hxx.

References SwRectFnCollection::fnOverStep, and m_fnRect.

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

bool SwRectFnSet::PosDiff ( const SwRect rRect1,
const SwRect rRect2 
) const
inline
void SwRectFnSet::Refresh ( const SwFrame pFrame)
inline
tools::Long SwRectFnSet::RightDist ( const SwRect rRect,
tools::Long  nPos 
) const
inline

Definition at line 1397 of file frame.hxx.

References SwRectFnCollection::fnRightDist, and m_fnRect.

void SwRectFnSet::SetBottom ( SwRect rRect,
tools::Long  nNew 
) const
inline
void SwRectFnSet::SetHeight ( SwRect rRect,
tools::Long  nNew 
) const
inline
void SwRectFnSet::SetLeft ( SwRect rRect,
tools::Long  nNew 
) const
inline
void SwRectFnSet::SetLeftAndWidth ( SwRect rRect,
tools::Long  nLeft,
tools::Long  nWidth 
) const
inline

Definition at line 1408 of file frame.hxx.

References SwRectFnCollection::fnSetLeftAndWidth, and m_fnRect.

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

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

Definition at line 1398 of file frame.hxx.

References SwRectFnCollection::fnSetLimit, and m_fnRect.

Referenced by SwTextFrame::Format().

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

Definition at line 1401 of file frame.hxx.

References SwRectFnCollection::fnSetPos, and m_fnRect.

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

void SwRectFnSet::SetPosX ( SwRect rRect,
tools::Long  nNew 
) const
inline
void SwRectFnSet::SetPosY ( SwRect rRect,
tools::Long  nNew 
) const
inline
void SwRectFnSet::SetRight ( SwRect rRect,
tools::Long  nNew 
) const
inline
void SwRectFnSet::SetTop ( SwRect rRect,
tools::Long  nNew 
) const
inline
void SwRectFnSet::SetTopAndHeight ( SwRect rRect,
tools::Long  nTop,
tools::Long  nHeight 
) const
inline
void SwRectFnSet::SetWidth ( SwRect rRect,
tools::Long  nNew 
) const
inline
void SwRectFnSet::SetXMargins ( SwFrame rFrame,
tools::Long  nLeft,
tools::Long  nRight 
) const
inline
void SwRectFnSet::SetYMargins ( SwFrame rFrame,
tools::Long  nTop,
tools::Long  nBottom 
) const
inline
void SwRectFnSet::SubLeft ( SwRect rRect,
tools::Long  nNew 
) const
inline

Definition at line 1376 of file frame.hxx.

References SwRectFnCollection::fnSubLeft, and m_fnRect.

Referenced by SwCellFrame::Format().

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

Definition at line 1374 of file frame.hxx.

References SwRectFnCollection::fnSubTop, and m_fnRect.

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

tools::Long SwRectFnSet::TopDist ( const SwRect rRect,
tools::Long  nPos 
) const
inline
tools::Long SwRectFnSet::XDiff ( tools::Long  n1,
tools::Long  n2 
) const
inline
tools::Long SwRectFnSet::XInc ( tools::Long  n1,
tools::Long  n2 
) const
inline

Definition at line 1405 of file frame.hxx.

References SwRectFnCollection::fnXInc, and m_fnRect.

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

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

Member Data Documentation

bool SwRectFnSet::m_bVert
private

Definition at line 1412 of file frame.hxx.

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

bool SwRectFnSet::m_bVertL2R
private

Definition at line 1413 of file frame.hxx.

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

bool SwRectFnSet::m_bVertL2RB2T
private

Definition at line 1414 of file frame.hxx.

Referenced by Refresh(), and SwRectFnSet().

SwRectFn SwRectFnSet::m_fnRect
private

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