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
 
long GetTop (const SwRect &rRect) const
 
long GetBottom (const SwRect &rRect) const
 
long GetLeft (const SwRect &rRect) const
 
long GetRight (const SwRect &rRect) const
 
long GetWidth (const SwRect &rRect) const
 
long GetHeight (const SwRect &rRect) const
 
Point GetPos (const SwRect &rRect) const
 
Size GetSize (const SwRect &rRect) const
 
void SetTop (SwRect &rRect, long nNew) const
 
void SetBottom (SwRect &rRect, long nNew) const
 
void SetLeft (SwRect &rRect, long nNew) const
 
void SetRight (SwRect &rRect, long nNew) const
 
void SetWidth (SwRect &rRect, long nNew) const
 
void SetHeight (SwRect &rRect, long nNew) const
 
void SubTop (SwRect &rRect, long nNew) const
 
void AddBottom (SwRect &rRect, long nNew) const
 
void SubLeft (SwRect &rRect, long nNew) const
 
void AddRight (SwRect &rRect, long nNew) const
 
void AddWidth (SwRect &rRect, long nNew) const
 
void AddHeight (SwRect &rRect, long nNew) const
 
void SetPosX (SwRect &rRect, long nNew) const
 
void SetPosY (SwRect &rRect, long nNew) const
 
long GetTopMargin (const SwFrame &rFrame) const
 
long GetBottomMargin (const SwFrame &rFrame) const
 
long GetLeftMargin (const SwFrame &rFrame) const
 
long GetRightMargin (const SwFrame &rFrame) const
 
void SetXMargins (SwFrame &rFrame, long nLeft, long nRight) const
 
void SetYMargins (SwFrame &rFrame, long nTop, long nBottom) const
 
long GetPrtTop (const SwFrame &rFrame) const
 
long GetPrtBottom (const SwFrame &rFrame) const
 
long GetPrtLeft (const SwFrame &rFrame) const
 
long GetPrtRight (const SwFrame &rFrame) const
 
long TopDist (const SwRect &rRect, long nPos) const
 
long BottomDist (const SwRect &rRect, long nPos) const
 
long LeftDist (const SwRect &rRect, long nPos) const
 
long RightDist (const SwRect &rRect, long nPos) const
 
void SetLimit (SwFrame &rFrame, long nNew) const
 
bool OverStep (const SwRect &rRect, long nPos) const
 
void SetPos (SwRect &rRect, const Point &rNew) const
 
void MakePos (SwFrame &rFrame, const SwFrame *pUp, const SwFrame *pPrv, bool bNotify) const
 
long XDiff (long n1, long n2) const
 
long YDiff (long n1, long n2) const
 
long XInc (long n1, long n2) const
 
long YInc (long n1, long n2) const
 
void SetLeftAndWidth (SwRect &rRect, long nLeft, long nWidth) const
 
void SetTopAndHeight (SwRect &rRect, long nTop, long nHeight) const
 

Private Attributes

bool m_bVert
 
bool m_bVertL2R
 
bool m_bVertL2RB2T
 
SwRectFn m_fnRect
 

Detailed Description

Definition at line 1325 of file frame.hxx.

Constructor & Destructor Documentation

SwRectFnSet::SwRectFnSet ( const SwFrame pFrame)
inlineexplicit

Definition at line 1327 of file frame.hxx.

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

Member Function Documentation

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

Definition at line 1374 of file frame.hxx.

References SwRectFnCollection::fnAddHeight, and m_fnRect.

Referenced by SwFootnoteContFrame::Format().

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

Definition at line 1372 of file frame.hxx.

References SwRectFnCollection::fnAddRight, and m_fnRect.

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

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

Definition at line 1373 of file frame.hxx.

References SwRectFnCollection::fnAddWidth, and m_fnRect.

Referenced by SwTabFrame::Split().

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

Definition at line 1358 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(), ExtraFormatToPositionObjs::FormatSectionToPositionObjs(), 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(), SwFootnoteContFrame::GrowFrame(), SwLayoutFrame::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().

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

Definition at line 1360 of file frame.hxx.

References SwRectFnCollection::fnGetSize, and m_fnRect.

long SwRectFnSet::GetTop ( const SwRect rRect) const
inline

Definition at line 1353 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(), SwPageFrame::GetCursorOfst(), SwTextFrame::GetFootnoteFrameHeight_(), SwTextFly::GetFrame_(), 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().

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

Definition at line 1343 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
long SwRectFnSet::LeftDist ( const SwRect rRect,
long  nPos 
) const
inline

Definition at line 1391 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,
long  nPos 
) const
inline

Definition at line 1394 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
long SwRectFnSet::RightDist ( const SwRect rRect,
long  nPos 
) const
inline

Definition at line 1392 of file frame.hxx.

References SwRectFnCollection::fnRightDist, and m_fnRect.

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

Definition at line 1403 of file frame.hxx.

References SwRectFnCollection::fnSetLeftAndWidth, and m_fnRect.

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

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

Definition at line 1393 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 1396 of file frame.hxx.

References SwRectFnCollection::fnSetPos, and m_fnRect.

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

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

Definition at line 1371 of file frame.hxx.

References SwRectFnCollection::fnSubLeft, and m_fnRect.

Referenced by SwCellFrame::Format().

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

Definition at line 1369 of file frame.hxx.

References SwRectFnCollection::fnSubTop, and m_fnRect.

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

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

Definition at line 1400 of file frame.hxx.

References SwRectFnCollection::fnXInc, and m_fnRect.

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

long SwRectFnSet::YDiff ( long  n1,
long  n2 
) const
inline
long SwRectFnSet::YInc ( long  n1,
long  n2 
) const
inline

Member Data Documentation

bool SwRectFnSet::m_bVert
private

Definition at line 1407 of file frame.hxx.

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

bool SwRectFnSet::m_bVertL2R
private

Definition at line 1408 of file frame.hxx.

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

bool SwRectFnSet::m_bVertL2RB2T
private

Definition at line 1409 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: