LibreOffice Module sw (master) 1
Macros | Functions
tabfrm.cxx File Reference
#include <config_wasm_strip.h>
#include <pagefrm.hxx>
#include <rootfrm.hxx>
#include <IDocumentFieldsAccess.hxx>
#include <IDocumentRedlineAccess.hxx>
#include <viewimp.hxx>
#include <fesh.hxx>
#include <swtable.hxx>
#include <deletelistener.hxx>
#include <dflyobj.hxx>
#include <anchoreddrawobject.hxx>
#include <fmtanchr.hxx>
#include <viewopt.hxx>
#include <hints.hxx>
#include <dbg_lay.hxx>
#include <ftnidx.hxx>
#include <svl/itemiter.hxx>
#include <editeng/keepitem.hxx>
#include <editeng/ulspitem.hxx>
#include <editeng/brushitem.hxx>
#include <editeng/boxitem.hxx>
#include <basegfx/range/b1drange.hxx>
#include <fmtlsplt.hxx>
#include <fmtrowsplt.hxx>
#include <fmtsrnd.hxx>
#include <fmtornt.hxx>
#include <fmtpdsc.hxx>
#include <fmtfsize.hxx>
#include <swtblfmt.hxx>
#include <tabfrm.hxx>
#include <rowfrm.hxx>
#include <cellfrm.hxx>
#include <flyfrms.hxx>
#include <txtfrm.hxx>
#include <ftnfrm.hxx>
#include <notxtfrm.hxx>
#include <htmltbl.hxx>
#include <sectfrm.hxx>
#include <fmtfollowtextflow.hxx>
#include <sortedobjs.hxx>
#include <objectformatter.hxx>
#include <layouter.hxx>
#include <calbck.hxx>
#include <DocumentSettingManager.hxx>
#include <sal/log.hxx>
#include <osl/diagnose.h>
#include <frmatr.hxx>
#include <frmtool.hxx>
#include <ndtxt.hxx>
#include <frameformats.hxx>
Include dependency graph for tabfrm.cxx:

Go to the source code of this file.

Macros

#define KEEPTAB   ( !GetFollow() && !IsFollow() )
 

Functions

static void SwInvalidateAll (SwFrame *pFrame, tools::Long nBottom)
 
static void lcl_RecalcRow (SwRowFrame &rRow, tools::Long nBottom)
 
static bool lcl_ArrangeLowers (SwLayoutFrame *pLay, tools::Long lYStart, bool bInva)
 
static bool lcl_InnerCalcLayout (SwFrame *pFrame, tools::Long nBottom, bool _bOnlyRowsAndCells=false)
 
static SwTwips lcl_CalcMinRowHeight (const SwRowFrame *pRow, const bool _bConsiderObjs)
 
static SwTwips lcl_CalcTopAndBottomMargin (const SwLayoutFrame &, const SwBorderAttrs &)
 
static SwTwips lcl_calcHeightOfRowBeforeThisFrame (const SwRowFrame &rRow)
 
static SwTwips lcl_GetHeightOfRows (const SwFrame *pStart, tools::Long nCount)
 
static SwRowFramelcl_InsertNewFollowFlowLine (SwTabFrame &rTab, const SwFrame &rTmpRow, bool bRowSpanLine)
 
static void lcl_InvalidateLowerObjs (SwLayoutFrame &_rLayoutFrame, const bool _bMoveObjsOutOfRange=false, SwPageFrame *_pPageFrame=nullptr)
 
static void lcl_ShrinkCellsAndAllContent (SwRowFrame &rRow)
 
static void lcl_MoveRowContent (SwRowFrame &rSourceLine, SwRowFrame &rDestLine)
 
static void lcl_MoveFootnotes (SwTabFrame &rSource, SwTabFrame &rDest, SwLayoutFrame &rRowFrame)
 
static void lcl_PreprocessRowsInCells (SwTabFrame &rTab, SwRowFrame &rLastLine, SwRowFrame &rFollowFlowLine, SwTwips nRemain)
 
static void lcl_PostprocessRowsInCells (SwTabFrame &rTab, SwRowFrame &rLastLine)
 
void TableSplitRecalcLock (SwFlowFrame *pTab)
 
void TableSplitRecalcUnlock (SwFlowFrame *pTab)
 
static bool lcl_RecalcSplitLine (SwRowFrame &rLastLine, SwRowFrame &rFollowLine, SwTwips nRemainingSpaceForLastRow, SwTwips nAlreadyFree)
 
static void lcl_AdjustRowSpanCells (SwRowFrame *pRow)
 
static tools::Long lcl_GetMaximumLayoutRowSpan (const SwRowFrame &rRow)
 
static bool lcl_FindSectionsInRow (const SwRowFrame &rRow)
 
static void SwInvalidatePositions (SwFrame *pFrame, tools::Long nBottom)
 
static void lcl_InvalidateAllLowersPrt (SwLayoutFrame *pLayFrame)
 
static void lcl_RecalcTable (SwTabFrame &rTab, SwLayoutFrame *pFirstRow, SwLayNotify &rNotify)
 
static bool lcl_NoPrev (const SwFrame &rFrame)
 
SwFramesw_FormatNextContentForKeep (SwTabFrame *pTabFrame)
 
void FriendHackInvalidateRowFrame (SwFrameAreaDefinition &rRowFrame)
 
static void InvalidateFramePositions (SwFrame *pFrame)
 
static bool IsNextOnSamePage (SwPageFrame const &rPage, SwTabFrame const &rTabFrame, SwTextFrame const &rAnchorFrame)
 
tools::Long CalcHeightWithFlys (const SwFrame *pFrame)
 
static SwTwips lcl_CalcMinCellHeight (const SwLayoutFrame *_pCell, const bool _bConsiderObjs, const SwBorderAttrs *pAttrs=nullptr)
 
static sal_uInt16 lcl_GetTopSpace (const SwRowFrame &rRow)
 
static sal_uInt16 lcl_GetTopLineDist (const SwRowFrame &rRow)
 
static sal_uInt16 lcl_GetBottomLineSize (const SwRowFrame &rRow)
 
static sal_uInt16 lcl_GetBottomLineDist (const SwRowFrame &rRow)
 
static SwTwips lcl_CalcHeightOfFirstContentLine (const SwRowFrame &rSourceLine)
 Local helper function to calculate height of first text row. More...
 

Macro Definition Documentation

◆ KEEPTAB

#define KEEPTAB   ( !GetFollow() && !IsFollow() )

Definition at line 1829 of file tabfrm.cxx.

Function Documentation

◆ CalcHeightWithFlys()

tools::Long CalcHeightWithFlys ( const SwFrame pFrame)

◆ FriendHackInvalidateRowFrame()

void FriendHackInvalidateRowFrame ( SwFrameAreaDefinition rRowFrame)

Definition at line 1886 of file tabfrm.cxx.

◆ InvalidateFramePositions()

static void InvalidateFramePositions ( SwFrame pFrame)
static

◆ IsNextOnSamePage()

static bool IsNextOnSamePage ( SwPageFrame const &  rPage,
SwTabFrame const &  rTabFrame,
SwTextFrame const &  rAnchorFrame 
)
static

Definition at line 2889 of file tabfrm.cxx.

References SwFrame::FindNextCnt(), and SwFrame::FindPageFrame().

Referenced by SwTabFrame::CalcFlyOffsets().

◆ lcl_AdjustRowSpanCells()

static void lcl_AdjustRowSpanCells ( SwRowFrame pRow)
static

◆ lcl_ArrangeLowers()

static bool lcl_ArrangeLowers ( SwLayoutFrame pLay,
tools::Long  lYStart,
bool  bInva 
)
static

Definition at line 5190 of file tabfrm.cxx.

References SwRectFnSet::AddBottom(), SwAnchoredObject::AddLastCharY(), SwAnchoredObject::AddLastTopOfLineY(), SwRectFnSet::BottomDist(), SwAnchoredObject::ConsiderObjWrapInfluenceOnObjPos(), SwAnchoredObject::DrawObj(), SwAnchoredObject::DynCastFlyFrame(), FAR_AWAY, SwTabFrame::FindMaster(), SwFrame::FindPageFrame(), SwFrame::FindTabFrame(), FramePositionChanged, SwFormat::GetAnchor(), SwAnchoredObject::GetAnchorFrameContainingAnchPos(), SwFormatAnchor::GetAnchorId(), SwFrame::GetDrawObjs(), SwFrameAreaDefinition::getFrameArea(), SwAnchoredObject::GetFrameFormat(), SwRectFnSet::GetHeight(), SwFrame::GetNext(), SwAnchoredObject::GetPageFrame(), SwRectFnSet::GetPrtBottom(), SwRectFnSet::GetPrtTop(), SwFormatVertOrient::GetRelationOrient(), SwRectFnSet::GetTop(), SwFormat::GetVertOrient(), i, SwAnchoredObject::InvalidateObjPos(), SwAnchoredObject::InvalidateObjRectWithSpaces(), SwFrame::InvalidatePos(), SwLayoutFrame::IsAnLower(), SwFrame::IsCellFrame(), SwFrame::IsColumnFrame(), SwFrame::IsInFly(), SwFrame::IsInSplitTableRow(), SwFrame::IsLayoutFrame(), SwTabFrame::IsRebuildLastLine(), SwFrame::IsTextFrame(), SwRectFnSet::IsVert(), lcl_ArrangeLowers(), SwLayoutFrame::Lower(), SdrObject::Move(), SwFrame::Prepare(), SwAnchoredObject::RegisterAtPage(), SwFrame::SetCompletePaint(), SwAnchoredObject::SetCurrRelPos(), SwFrame::SetRetouche(), size, SwRectFnSet::SubTop(), SwRectFnSet::YDiff(), and SwRectFnSet::YInc().

Referenced by SwCellFrame::Format(), lcl_ArrangeLowers(), lcl_ShrinkCellsAndAllContent(), and SwCellFrame::SwClientNotify().

◆ lcl_CalcHeightOfFirstContentLine()

static SwTwips lcl_CalcHeightOfFirstContentLine ( const SwRowFrame rSourceLine)
static

◆ lcl_calcHeightOfRowBeforeThisFrame()

static SwTwips lcl_calcHeightOfRowBeforeThisFrame ( const SwRowFrame rRow)
static

◆ lcl_CalcMinCellHeight()

static SwTwips lcl_CalcMinCellHeight ( const SwLayoutFrame _pCell,
const bool  _bConsiderObjs,
const SwBorderAttrs pAttrs = nullptr 
)
static

◆ lcl_CalcMinRowHeight()

static SwTwips lcl_CalcMinRowHeight ( const SwRowFrame pRow,
const bool  _bConsiderObjs 
)
static

◆ lcl_CalcTopAndBottomMargin()

static SwTwips lcl_CalcTopAndBottomMargin ( const SwLayoutFrame rCell,
const SwBorderAttrs rAttrs 
)
static

◆ lcl_FindSectionsInRow()

static bool lcl_FindSectionsInRow ( const SwRowFrame rRow)
static

◆ lcl_GetBottomLineDist()

static sal_uInt16 lcl_GetBottomLineDist ( const SwRowFrame rRow)
static

◆ lcl_GetBottomLineSize()

static sal_uInt16 lcl_GetBottomLineSize ( const SwRowFrame rRow)
static

◆ lcl_GetHeightOfRows()

static SwTwips lcl_GetHeightOfRows ( const SwFrame pStart,
tools::Long  nCount 
)
static

◆ lcl_GetMaximumLayoutRowSpan()

static tools::Long lcl_GetMaximumLayoutRowSpan ( const SwRowFrame rRow)
static

◆ lcl_GetTopLineDist()

static sal_uInt16 lcl_GetTopLineDist ( const SwRowFrame rRow)
static

◆ lcl_GetTopSpace()

static sal_uInt16 lcl_GetTopSpace ( const SwRowFrame rRow)
static

◆ lcl_InnerCalcLayout()

static bool lcl_InnerCalcLayout ( SwFrame pFrame,
tools::Long  nBottom,
bool  _bOnlyRowsAndCells = false 
)
static

◆ lcl_InsertNewFollowFlowLine()

static SwRowFrame * lcl_InsertNewFollowFlowLine ( SwTabFrame rTab,
const SwFrame rTmpRow,
bool  bRowSpanLine 
)
static

◆ lcl_InvalidateAllLowersPrt()

static void lcl_InvalidateAllLowersPrt ( SwLayoutFrame pLayFrame)
static

◆ lcl_InvalidateLowerObjs()

static void lcl_InvalidateLowerObjs ( SwLayoutFrame _rLayoutFrame,
const bool  _bMoveObjsOutOfRange = false,
SwPageFrame _pPageFrame = nullptr 
)
static

◆ lcl_MoveFootnotes()

static void lcl_MoveFootnotes ( SwTabFrame rSource,
SwTabFrame rDest,
SwLayoutFrame rRowFrame 
)
static

◆ lcl_MoveRowContent()

static void lcl_MoveRowContent ( SwRowFrame rSourceLine,
SwRowFrame rDestLine 
)
static

◆ lcl_NoPrev()

static bool lcl_NoPrev ( const SwFrame rFrame)
static

◆ lcl_PostprocessRowsInCells()

static void lcl_PostprocessRowsInCells ( SwTabFrame rTab,
SwRowFrame rLastLine 
)
static

◆ lcl_PreprocessRowsInCells()

static void lcl_PreprocessRowsInCells ( SwTabFrame rTab,
SwRowFrame rLastLine,
SwRowFrame rFollowFlowLine,
SwTwips  nRemain 
)
static

◆ lcl_RecalcRow()

static void lcl_RecalcRow ( SwRowFrame rRow,
tools::Long  nBottom 
)
static

◆ lcl_RecalcSplitLine()

static bool lcl_RecalcSplitLine ( SwRowFrame rLastLine,
SwRowFrame rFollowLine,
SwTwips  nRemainingSpaceForLastRow,
SwTwips  nAlreadyFree 
)
static

◆ lcl_RecalcTable()

static void lcl_RecalcTable ( SwTabFrame rTab,
SwLayoutFrame pFirstRow,
SwLayNotify rNotify 
)
static

◆ lcl_ShrinkCellsAndAllContent()

static void lcl_ShrinkCellsAndAllContent ( SwRowFrame rRow)
static

◆ sw_FormatNextContentForKeep()

SwFrame * sw_FormatNextContentForKeep ( SwTabFrame pTabFrame)

Definition at line 1835 of file tabfrm.cxx.

◆ SwInvalidateAll()

void SwInvalidateAll ( SwFrame pFrame,
tools::Long  nBottom 
)
static

◆ SwInvalidatePositions()

static void SwInvalidatePositions ( SwFrame pFrame,
tools::Long  nBottom 
)
static

◆ TableSplitRecalcLock()

void TableSplitRecalcLock ( SwFlowFrame *  pTab)
inline

Definition at line 643 of file tabfrm.cxx.

Referenced by lcl_RecalcSplitLine(), and SAL_LOPLUGIN_ANNOTATE().

◆ TableSplitRecalcUnlock()

void TableSplitRecalcUnlock ( SwFlowFrame *  pTab)
inline

Definition at line 644 of file tabfrm.cxx.

Referenced by lcl_RecalcSplitLine(), and SAL_LOPLUGIN_ANNOTATE().