23 #include <osl/diagnose.h>
28 const bool _bFollowTextFlow )
29 : mbFollowTextFlow( _bFollowTextFlow )
37 const SwFrame& _rHoriOrientFrame )
const
39 const SwFrame* pHoriEnvironmentLayFrame = &_rHoriOrientFrame;
53 pHoriEnvironmentLayFrame = pHoriEnvironmentLayFrame->
GetUpper();
54 OSL_ENSURE( pHoriEnvironmentLayFrame,
55 "SwEnvironmentOfAnchoredObject::GetHoriEnvironmentLayoutFrame(..) - no page|fly|cell frame found" );
59 OSL_ENSURE( dynamic_cast< const SwLayoutFrame *>( pHoriEnvironmentLayFrame ) !=
nullptr,
60 "SwEnvironmentOfAnchoredObject::GetHoriEnvironmentLayoutFrame(..) - found frame isn't a layout frame" );
62 return static_cast<const SwLayoutFrame&
>(*pHoriEnvironmentLayFrame);
67 const SwFrame& _rVertOrientFrame )
const
69 const SwFrame* pVertEnvironmentLayFrame = &_rVertOrientFrame;
87 pVertEnvironmentLayFrame = pVertEnvironmentLayFrame->
GetUpper();
88 OSL_ENSURE( pVertEnvironmentLayFrame,
89 "SwEnvironmentOfAnchoredObject::GetVertEnvironmentLayoutFrame(..) - proposed frame not found" );
93 OSL_ENSURE( dynamic_cast< const SwLayoutFrame *>( pVertEnvironmentLayFrame ) !=
nullptr,
94 "SwEnvironmentOfAnchoredObject::GetVertEnvironmentLayoutFrame(..) - found frame isn't a layout frame" );
96 return static_cast<const SwLayoutFrame&
>(*pVertEnvironmentLayFrame);
Base class of the Writer layout elements.
const SwLayoutFrame & GetVertEnvironmentLayoutFrame(const SwFrame &_rVertOrientFrame) const
determine environment layout frame for possible vertical object positions respectively for alignments...
bool IsFootnoteFrame() const
~SwEnvironmentOfAnchoredObject()
destructor
const SwLayoutFrame & GetHoriEnvironmentLayoutFrame(const SwFrame &_rHoriOrientFrame) const
determine environment layout frame for possible horizontal object positions respectively for alignmen...
bool IsPageBodyFrame() const
SwPageFrame * FindPageFrame()
SwEnvironmentOfAnchoredObject(const bool _bFollowTextFlow)
constructor
SwLayoutFrame * GetUpper()
A layout frame is a frame that contains other frames (m_pLower), e.g. SwPageFrame or SwTabFrame...
bool IsFooterFrame() const
bool IsHeaderFrame() const
const bool mbFollowTextFlow