20#include <config_wasm_strip.h>
41#include <osl/diagnose.h>
67 aFrm.
Left( nDeadline );
126 aFrm.
Pos().AdjustY(1 );
137 aFrm.
Pos().AdjustX( -(aFrm.
Width()) );
148 aFrm.
Pos().AdjustX( -1 );
169 aFrm.
Pos().AdjustX(1 );
213 static_cast<SwCellFrame*
>(
this)->GetTabBox()->getRowSpan() == 1 )
216 MIN_VERT_CELL_HEIGHT = 1135
224 if ( aNew.
GetHeight() < MIN_VERT_CELL_HEIGHT )
240 pBody =
static_cast<SwPageFrame*
>(
this)->FindBodyCont();
249 pCol = &pFormat->
GetCol();
269 const size_t nCnt = pObjs->
size();
270 for (
size_t i = 0;
i < nCnt; ++
i )
274 pFlyFrame->CheckDirChange();
304 static_cast<const SwTextFrame*
>(
this)->GetBaseOffsetForFly( bIgnoreFlysAnchoredAtThisFrame );
306 aAnchor.
AdjustY(nBaseOfstForFly );
308 aAnchor.
AdjustX(nBaseOfstForFly );
314 const SwTwips nUpperSpaceAmountConsideredForPrevFrameAndPageGrid =
315 pThisTextFrame->GetUpperSpaceAmountConsideredForPrevFrameAndPageGrid();
318 aAnchor.
AdjustX( -nUpperSpaceAmountConsideredForPrevFrameAndPageGrid );
322 aAnchor.
AdjustY(nUpperSpaceAmountConsideredForPrevFrameAndPageGrid );
335#if !ENABLE_WASM_STRIP_ACCESSIBILITY
345 if( pVSh && pVSh->
Imp() )
347 OSL_ENSURE( !
GetLower(),
"Lowers should be dispose already!" );
369 OSL_ENSURE( pContact,
370 "<SwFrame::~SwFrame> - missing contact for drawing object" );
384#if OSL_DEBUG_LEVEL > 0
423 SwFlowFrame( static_cast<
SwFrame&>(*this) )
433 pCNd =
static_cast<SwTextFrame*
>(
this)->GetTextNodeFirst();
441 if( pRoot && pRoot->
GetTurbo() ==
this )
467 return pMark->GetMarkStart().GetNode() == *m_pMergedPara->pFirstNode
468 && pMark->GetMarkEnd().GetNode() != *m_pMergedPara->pFirstNode;
471 assert(&rNode !=
GetDep());
524 OSL_ENSURE( pContact,
525 "<SwFrame::~SwFrame> - missing contact for drawing object" );
559 OSL_ENSURE( pContact,
560 "<SwFrame::~SwFrame> - missing contact for drawing object" );
619 while( --nRowSpan > 0 && pNxt->
GetNext() )
638 OSL_ENSURE( pTmp,
"GetPaintArea lost in time and space" );
644 if( bLeft || (aRectFnSet.
XDiff(nTmpLeft, nLeft) > 0 && !
IsVertLRBT()) )
646 if( bRight || aRectFnSet.
XDiff(nRight, nTmpRight) > 0 )
659 if( bLeft || aRectFnSet.
XDiff(nTmpLeft, nLeft) > 0 )
666 if( bRight || aRectFnSet.
XDiff(nRight, nTmpRight) > 0 )
679 if( pTmp->
GetPrev() && ( bLeft || aRectFnSet.
XDiff(nTmpLeft, nLeft) > 0 ) )
686 && ( bRight || aRectFnSet.
XDiff(nRight, nTmpRight) > 0 ) )
712 if (aRectFnSet.
XInc(nPrtLeft, nPrtWidth) > nWidth)
713 nWidth = nPrtLeft + nPrtWidth;
729 nLeft -= rBox.
GetDistance( SvxBoxItemLine::LEFT ) + 1;
733 nAdd += rBox.
GetDistance( SvxBoxItemLine::RIGHT ) + 1;
747 nWidth = aRectFnSet.
XDiff(aRectFnSet.
XInc(nRight, nAdd), nLeft);
virtual const_iterator_t getFieldmarksBegin() const =0
returns a STL-like random access iterator to the begin of the sequence of fieldmarks.
virtual const_iterator_t getFieldmarksEnd() const =0
returns a STL-like random access iterator to the end of the sequence of fieldmarks.
virtual SwRedlineTable::size_type GetRedlinePos(const SwNode &rNode, RedlineType nType) const =0
tools::Long AdjustY(tools::Long nVertMove)
tools::Long AdjustX(tools::Long nHorzMove)
SdrObjUserCall * GetUserCall() const
sal_Int16 CalcLineSpace(SvxBoxItemLine nLine, bool bEvenIfNoLine=false, bool bAllowNegative=false) const
const editeng::SvxBorderLine * GetRight() const
const editeng::SvxBorderLine * GetLeft() const
sal_Int16 GetDistance(SvxBoxItemLine nLine, bool bAllowNegative=false) const
sal_uInt16 CalcShadowSpace(SvxShadowItemSide nShadow) const
SvxShadowLocation GetLocation() const
tools::Long GetHeight() const
void SetHeight(tools::Long n)
wrapper class for the positioning of Writer fly frames and drawing objects
void ClearTmpConsiderWrapInfluence()
SwFrame * GetAnchorFrameContainingAnchPos()
determine anchor frame containing the anchor position
void ClearVertPosOrientFrame()
virtual void InvalidateObjPos()=0
method to invalidate position of the anchored object
virtual const SwFlyFrame * DynCastFlyFrame() const
virtual void UpdateLayoutDir()
method update layout direction the layout direction, the anchored object is assigned to
const SvxBoxItem & GetBox() const
const SvxShadowItem & GetShadow() const
SwCellFrame is one table cell in the document layout.
const SwTableBox * GetTabBox() const
virtual void DestroyImpl() override
virtual ~SwContentFrame() override
SwContentFrame(SwContentNode *const, SwFrame *)
void SetAttr(const SfxPoolItem &, SwFormat &)
Set attribute in given format.1y If Undo is enabled, the old values is added to the Undo history.
IDocumentRedlineAccess const & getIDocumentRedlineAccess() const
IDocumentMarkAccess * getIDocumentMarkAccess()
general base class for all free-flowing frames
const SwRect & getFrameArea() const
const SwRect & getFramePrintArea() const
Base class of the Writer layout elements.
SwRect GetPaintArea() const
|* The paintarea is the area, in which the content of a frame is allowed |* to be displayed.
std::unique_ptr< SwSortedObjs > m_pDrawObjs
tools::Long GetLeftMargin() const
virtual void DestroyImpl()
tools::Long GetPrtLeft() const
void CheckDirChange()
checks the layout direction and invalidates the lower frames recursively, if necessary.
tools::Long GetRightMargin() const
bool IsAccessibleFrame() const
Point GetFrameAnchorPos(bool bIgnoreFlysAnchoredAtThisFrame) const
returns the position for anchors based on frame direction
virtual ~SwFrame() override
bool IsColumnFrame() const
bool SetMinLeft(tools::Long)
void SetLeftRightMargins(tools::Long, tools::Long)
const SwSortedObjs * GetDrawObjs() const
void MakeBelowPos(const SwFrame *, const SwFrame *, bool)
virtual void SwClientNotify(const SwModify &, const SfxHint &) override
static SwCache & GetCache()
bool IsRightToLeft() const
virtual bool IsDeleteForbidden() const
bool SetMaxBottom(tools::Long)
void SetRightLeftMargins(tools::Long, tools::Long)
SwRect UnionFrame(bool bBorder=false) const
|* The unionframe is the framearea (getFrameArea()) of a frame expanded by the |* printarea,...
bool IsFooterFrame() const
SwLayoutFrame * GetUpper()
tools::Long GetPrtTop() const
tools::Long GetBottomMargin() const
void SetTopBottomMargins(tools::Long, tools::Long)
tools::Long GetPrtBottom() const
SwRootFrame * getRootFrame()
bool SetMaxRight(tools::Long)
void MakeLeftPos(const SwFrame *, const SwFrame *, bool)
tools::Long GetPrtRight() const
void SetInvalidVert(bool bNew)
sw::BroadcastingModify * GetDep()
use these so we can grep for SwFrame's GetRegisteredIn accesses beware that SwTextFrame may return sw...
void MakeRightPos(const SwFrame *, const SwFrame *, bool)
static void DestroyFrame(SwFrame *const pFrame)
this is the only way to delete a SwFrame instance
tools::Long GetTopMargin() const
bool IsLayoutFrame() const
A layout frame is a frame that contains other frames (m_pLower), e.g. SwPageFrame or SwTabFrame.
void SetFrameFormat(SwFrameFormat *)
void AdjustColumns(const SwFormatCol *pCol, bool bAdjustAttributes)
virtual const SwFrameFormat * GetFormat() const
virtual void DestroyImpl() override
std::vector< SwAnchoredObject * > m_VertPosOrientFramesFor
virtual ~SwLayoutFrame() override
const SwFrame * Lower() const
SwNodeOffset GetIndex() const
bool IsCreateFrameWhenHidingRedlines() const
A page of the document layout.
tools::Long XDiff(tools::Long n1, tools::Long n2) const
tools::Long XInc(tools::Long n1, tools::Long n2) const
Of course Writer needs its own rectangles.
void Height(tools::Long nNew)
void Top(const tools::Long nTop)
void Pos(const Point &rNew)
void Left(const tools::Long nLeft)
void Width(tools::Long nNew)
static constexpr size_type npos
The root element of a Writer document layout.
SwViewShell * GetCurrShell() const
const SwContentFrame * GetTurbo() const
bool IsAnyShellAccessible() const
void DisallowTurbo() const
class for collecting anchored objects
void Remove(SwAnchoredObject &_rAnchoredObj)
SwTabFrame is one table in the document layout, containing rows (which contain cells).
sal_Int32 getRowSpan() const
SwTableLine is one table row in the document model.
SwFrameFormat * GetFrameFormat()
SwFrameFormat * ClaimFrameFormat()
Represents the visualization of a paragraph.
std::unique_ptr< sw::MergedPara > m_pMergedPara
redline merge data
void RegisterToNode(SwTextNode &, bool isForceNodeAsFirst=false)
virtual bool Prepare(const PrepareHint ePrep=PrepareHint::Clear, const void *pVoid=nullptr, bool bNotify=true) override
SwContentFrame: the shortcut for the Frames If the void* casts wrongly, it's its own fault!...
SwTextNode is a paragraph in the document model.
void DisposeAccessibleFrame(const SwFrame *pFrame, bool bRecursive=false)
virtual SotClipboardFormatId GetFormat(const TransferableDataHelper &aHelper) override
@ Fixed
Frame cannot be moved in Var-direction.
@ Minimum
Value in Var-direction gives minimum (can be exceeded but not be less).
SwRectFn fnRectVertL2RB2T
std::unique_ptr< sw::MergedPara > CheckParaRedlineMerge(SwTextFrame &rFrame, SwTextNode &rTextNode, FrameMode eMode)