class SvxFormatKeepItem; class SvxFormatBreakItem; class SwPageFrame; class SwRect; class SwBorderAttrs; class SwDoc; class SwNode;
/** Base class that provides the general functionalities for frames that are allowedatpagebreaks(flow)andshallcontinueonthenextpage(canbe split),e.g.paragraphs(ContentFrame)ortables(TabFrame).
bool m_bLockJoin :1; // if true than joins (and thus deletes) are prohibited! bool m_bUndersized:1; // I am smaller than needed bool m_bFlyLock :1; // stop positioning of at-character flyframes
// checks if forward flow makes sense to prevent infinite moves inlinebool IsFwdMoveAllowed() const; // #i44049# - method <CalcContent(..)> has to check this property. friendvoid CalcContent( SwLayoutFrame *pLay, bool bNoColl ); bool IsKeepFwdMoveAllowed( bool bIgnoreMyOwnKeepValue = false ); // like above, forward flow for Keep.
/** method to determine overlapping of an object that requests floating
/** method to determine if a Keep needs to be considered (Breaks!) */ bool IsKeep(SvxFormatKeepItem const& rKeep,
SvxFormatBreakItem const& rBreak, bool bBreakCheck = false ) const;
// Casting of a Frame into a FlowFrame (if it is one, otherwise 0) // These methods need to be customized in subclasses! static SwFlowFrame *CastFlowFrame( SwFrame *pFrame ); staticconst SwFlowFrame *CastFlowFrame( const SwFrame *pFrame );
};
//use this to protect a SwLayoutFrame for a given scope from getting merged with //its neighbour and thus deleted class FlowFrameJoinLockGuard
{ private:
SwFlowFrame *m_pFlow; bool m_bOldJoinLocked; public: //JoinLock pParent for the lifetime of the Cut/Paste call, etc. to avoid //SwSectionFrame::MergeNext removing the pParent we're trying to reparent //into
FlowFrameJoinLockGuard(SwLayoutFrame* pFrame)
{
m_pFlow = SwFlowFrame::CastFlowFrame(pFrame); if (m_pFlow)
{
m_bOldJoinLocked = m_pFlow->IsJoinLocked();
m_pFlow->LockJoin();
} else
{
m_bOldJoinLocked = false;
}
}
~FlowFrameJoinLockGuard()
{ if (m_pFlow && !m_bOldJoinLocked)
m_pFlow->UnlockJoin();
}
};
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.12Bemerkung:
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.