LibreOffice Module sw (master)  1
Macros | Functions
tabfrm.cxx File Reference
#include <pagefrm.hxx>
#include <rootfrm.hxx>
#include <IDocumentFieldsAccess.hxx>
#include <viewimp.hxx>
#include <fesh.hxx>
#include <swtable.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 <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 <docary.hxx>
#include <sal/log.hxx>
#include <frmatr.hxx>
#include <frmtool.hxx>
#include <ndtxt.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, long nBottom)
 
static void lcl_RecalcRow (SwRowFrame &rRow, long nBottom)
 
static bool lcl_ArrangeLowers (SwLayoutFrame *pLay, long lYStart, bool bInva)
 
static bool lcl_InnerCalcLayout (SwFrame *pFrame, 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, 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 long lcl_GetMaximumLayoutRowSpan (const SwRowFrame &rRow)
 
static bool lcl_FindSectionsInRow (const SwRowFrame &rRow)
 
static void SwInvalidatePositions (SwFrame *pFrame, 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)
 
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

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

Definition at line 1756 of file tabfrm.cxx.

Referenced by SwTabFrame::MakeAll().

Function Documentation

long CalcHeightWithFlys ( const SwFrame pFrame)
static void lcl_AdjustRowSpanCells ( SwRowFrame pRow)
static
static bool lcl_ArrangeLowers ( SwLayoutFrame pLay,
long  lYStart,
bool  bInva 
)
static

Definition at line 4721 of file tabfrm.cxx.

References SwRectFnSet::AddBottom(), SwAnchoredObject::AddLastCharY(), SwAnchoredObject::AddLastTopOfLineY(), SwPageFrame::AppendDrawObjToPage(), SwPageFrame::AppendFlyToPage(), SwRectFnSet::BottomDist(), SwAnchoredObject::ConsiderObjWrapInfluenceOnObjPos(), SwAnchoredObject::DrawObj(), FAR_AWAY, SwTabFrame::FindMaster(), SwFrame::FindPageFrame(), SwFrame::FindTabFrame(), SwFormat::GetAnchor(), SwAnchoredObject::GetAnchorFrameContainingAnchPos(), SwFormatAnchor::GetAnchorId(), SwFrame::GetDrawObjs(), SwFrameAreaDefinition::getFrameArea(), SwAnchoredObject::GetFrameFormat(), SwRectFnSet::GetHeight(), SwFrame::GetNext(), SwAnchoredObject::GetPageFrame(), SwRectFnSet::GetPrtBottom(), SwRectFnSet::GetPrtTop(), SwRectFnSet::GetTop(), SwFormat::GetVertOrient(), SwFlyFrame::GetVirtDrawObj(), i, SwAnchoredObject::InvalidateObjPos(), SwAnchoredObject::InvalidateObjRectWithSpaces(), SwFrame::InvalidatePos(), SwLayoutFrame::IsAnLower(), SwFlyFrame::IsAutoPos(), SwFrame::IsCellFrame(), SwFrame::IsColumnFrame(), SwFlyFrame::IsFlyFreeFrame(), SwFlyFrame::IsFlyInContentFrame(), SwFlowFrame::IsFollow(), SwFrame::IsInFly(), SwFrame::IsInSplitTableRow(), SwFrame::IsLayoutFrame(), SwTabFrame::IsRebuildLastLine(), SwFrame::IsTextFrame(), SwRectFnSet::IsVert(), Lower, SwLayoutFrame::Lower(), SdrObject::Move(), SwPageFrame::MoveFly(), PREP_POS_CHGD, SwFrame::Prepare(), SwPageFrame::RemoveDrawObjFromPage(), SdrObject::SetChanged(), SwFrame::SetCompletePaint(), SwAnchoredObject::SetCurrRelPos(), SdrObject::SetRectsDirty(), SwFrame::SetRetouche(), SwSortedObjs::size(), SwRectFnSet::SubTop(), SwRect::Top(), SwRectFnSet::YDiff(), and SwRectFnSet::YInc().

Referenced by SwCellFrame::Format(), lcl_ShrinkCellsAndAllContent(), and SwCellFrame::Modify().

static SwTwips lcl_CalcHeightOfFirstContentLine ( const SwRowFrame rSourceLine)
static
static SwTwips lcl_calcHeightOfRowBeforeThisFrame ( const SwRowFrame rRow)
static
static SwTwips lcl_CalcMinCellHeight ( const SwLayoutFrame _pCell,
const bool  _bConsiderObjs,
const SwBorderAttrs pAttrs = nullptr 
)
static
static SwTwips lcl_CalcMinRowHeight ( const SwRowFrame pRow,
const bool  _bConsiderObjs 
)
static
static SwTwips lcl_CalcTopAndBottomMargin ( const SwLayoutFrame rCell,
const SwBorderAttrs rAttrs 
)
static
static bool lcl_FindSectionsInRow ( const SwRowFrame rRow)
static
static sal_uInt16 lcl_GetBottomLineDist ( const SwRowFrame rRow)
static
static sal_uInt16 lcl_GetBottomLineSize ( const SwRowFrame rRow)
static
static SwTwips lcl_GetHeightOfRows ( const SwFrame pStart,
long  nCount 
)
static
static long lcl_GetMaximumLayoutRowSpan ( const SwRowFrame rRow)
static
static sal_uInt16 lcl_GetTopLineDist ( const SwRowFrame rRow)
static
static sal_uInt16 lcl_GetTopSpace ( const SwRowFrame rRow)
static
static bool lcl_InnerCalcLayout ( SwFrame pFrame,
long  nBottom,
bool  _bOnlyRowsAndCells = false 
)
static
static SwRowFrame* lcl_InsertNewFollowFlowLine ( SwTabFrame rTab,
const SwFrame rTmpRow,
bool  bRowSpanLine 
)
static
static void lcl_InvalidateAllLowersPrt ( SwLayoutFrame pLayFrame)
static
static void lcl_InvalidateLowerObjs ( SwLayoutFrame _rLayoutFrame,
const bool  _bMoveObjsOutOfRange = false,
SwPageFrame _pPageFrame = nullptr 
)
static
static void lcl_MoveFootnotes ( SwTabFrame rSource,
SwTabFrame rDest,
SwLayoutFrame rRowFrame 
)
static
static void lcl_MoveRowContent ( SwRowFrame rSourceLine,
SwRowFrame rDestLine 
)
static
static bool lcl_NoPrev ( const SwFrame rFrame)
static
static void lcl_PostprocessRowsInCells ( SwTabFrame rTab,
SwRowFrame rLastLine 
)
static
static void lcl_PreprocessRowsInCells ( SwTabFrame rTab,
SwRowFrame rLastLine,
SwRowFrame rFollowFlowLine,
SwTwips  nRemain 
)
static
static void lcl_RecalcRow ( SwRowFrame rRow,
long  nBottom 
)
static
static bool lcl_RecalcSplitLine ( SwRowFrame rLastLine,
SwRowFrame rFollowLine,
SwTwips  nRemainingSpaceForLastRow,
SwTwips  nAlreadyFree 
)
static
static void lcl_RecalcTable ( SwTabFrame rTab,
SwLayoutFrame pFirstRow,
SwLayNotify rNotify 
)
static
static void lcl_ShrinkCellsAndAllContent ( SwRowFrame rRow)
static
SwFrame* sw_FormatNextContentForKeep ( SwTabFrame pTabFrame)
void SwInvalidateAll ( SwFrame pFrame,
long  nBottom 
)
static
static void SwInvalidatePositions ( SwFrame pFrame,
long  nBottom 
)
static
void TableSplitRecalcLock ( SwFlowFrame pTab)
inline

Definition at line 630 of file tabfrm.cxx.

References SwFlowFrame::LockJoin().

Referenced by lcl_RecalcSplitLine().

void TableSplitRecalcUnlock ( SwFlowFrame pTab)
inline

Definition at line 631 of file tabfrm.cxx.

References SwFlowFrame::UnlockJoin().

Referenced by lcl_RecalcSplitLine().