23#include <osl/diagnose.h>
29 const bool _bFollowTextFlow )
30 : mbFollowTextFlow( _bFollowTextFlow )
35 const SwFrame& _rHoriOrientFrame )
const
37 const SwFrame* pHoriEnvironmentLayFrame = &_rHoriOrientFrame;
51 pHoriEnvironmentLayFrame = pHoriEnvironmentLayFrame->
GetUpper();
52 OSL_ENSURE( pHoriEnvironmentLayFrame,
53 "SwEnvironmentOfAnchoredObject::GetHoriEnvironmentLayoutFrame(..) - no page|fly|cell frame found" );
57 assert(
dynamic_cast< const SwLayoutFrame *
>( pHoriEnvironmentLayFrame ) &&
58 "SwEnvironmentOfAnchoredObject::GetHoriEnvironmentLayoutFrame(..) - found frame isn't a layout frame" );
60 return static_cast<const SwLayoutFrame&
>(*pHoriEnvironmentLayFrame);
65 const SwFrame& _rVertOrientFrame )
const
67 const SwFrame* pVertEnvironmentLayFrame = &_rVertOrientFrame;
85 pVertEnvironmentLayFrame = pVertEnvironmentLayFrame->
GetUpper();
86 OSL_ENSURE( pVertEnvironmentLayFrame,
87 "SwEnvironmentOfAnchoredObject::GetVertEnvironmentLayoutFrame(..) - proposed frame not found" );
91 assert(
dynamic_cast< const SwLayoutFrame *
>( pVertEnvironmentLayFrame ) &&
92 "SwEnvironmentOfAnchoredObject::GetVertEnvironmentLayoutFrame(..) - found frame isn't a layout frame" );
94 return static_cast<const SwLayoutFrame&
>(*pVertEnvironmentLayFrame);
Base class of the Writer layout elements.
bool IsHeaderFrame() const
bool IsPageBodyFrame() const
bool IsFooterFrame() const
bool IsFootnoteFrame() const
SwLayoutFrame * GetUpper()
SwPageFrame * FindPageFrame()
A layout frame is a frame that contains other frames (m_pLower), e.g. SwPageFrame or SwTabFrame.
const bool mbFollowTextFlow
const SwLayoutFrame & GetHoriEnvironmentLayoutFrame(const SwFrame &_rHoriOrientFrame) const
determine environment layout frame for possible horizontal object positions respectively for alignmen...
SwEnvironmentOfAnchoredObject(const bool _bFollowTextFlow)
constructor
const SwLayoutFrame & GetVertEnvironmentLayoutFrame(const SwFrame &_rVertOrientFrame) const
determine environment layout frame for possible vertical object positions respectively for alignments...