LibreOffice Module sw (master) 1
|
#include "layfrm.hxx"
#include <vector>
#include <frmfmt.hxx>
#include <anchoredobject.hxx>
#include <swdllapi.h>
Go to the source code of this file.
Classes | |
struct | o3tl::typed_flags< SwFlyFrameInvFlags > |
class | SwFlyFrame |
general base class for all free-flowing frames More... | |
Namespaces | |
namespace | tools |
namespace | o3tl |
Enumerations | |
enum class | SwFlyFrameInvFlags : sal_uInt8 { NONE = 0x00 , InvalidatePos = 0x01 , InvalidateSize = 0x02 , InvalidatePrt = 0x04 , SetNotifyBack = 0x08 , SetCompletePaint = 0x10 , InvalidateBrowseWidth = 0x20 , ClearContourCache = 0x40 , UpdateObjInSortedList = 0x80 } |
Functions | |
const SwContentFrame * | FindAnchor (const SwFrame *pOldAnch, const Point &rNew, const bool bBody=false) |
search an anchor for paragraph bound frames starting from pOldAnch More... | |
bool | CalcClipRect (const SdrObject *pSdrObj, SwRect &rRect, bool bMove=true) |
calculate rectangle in that the object can be moved or rather be resized More... | |
|
strong |
Enumerator | |
---|---|
NONE | |
InvalidatePos | |
InvalidateSize | |
InvalidatePrt | |
SetNotifyBack | |
SetCompletePaint | |
InvalidateBrowseWidth | |
ClearContourCache | |
UpdateObjInSortedList |
Definition at line 56 of file flyfrm.hxx.
calculate rectangle in that the object can be moved or rather be resized
Definition at line 1175 of file flylay.cxx.
References Body, Cell, CONSIDER_WRAP_ON_OBJECT_POSITION, SwRect::Contains(), SwFootnoteBossFrame::FindBodyCont(), SwFrame::FindFooterOrHeader(), SwFrame::FindFootnoteFrame(), SwFrame::FindPageFrame(), SwFrame::FindTabFrame(), Fly, Footer, Ftn, IDocumentSettingAccess::get(), SwFormat::GetAnchor(), SwAnchoredObject::GetAnchorFrame(), SwDrawContact::GetAnchorFrame(), SwFormatAnchor::GetAnchorId(), SdrObject::GetAnchorPos(), SwRectFnSet::GetBottom(), SdrObject::GetCurrentBoundRect(), SwFootnoteFrame::GetFollow(), SwFormat::GetFollowTextFlow(), SwContact::GetFormat(), SwFlyFrame::GetFormat(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), tools::Rectangle::GetHeight(), SwRectFnSet::GetHeight(), SwFormatHoriOrient::GetHoriOrient(), SwFormat::GetHoriOrient(), SwFormat::getIDocumentSettingAccess(), SwRectFnSet::GetLeft(), SvxULSpaceItem::GetLower(), SwFlyFrame::GetNextLink(), SwRectFnSet::GetPrtBottom(), SwRectFnSet::GetPrtLeft(), SwRectFnSet::GetPrtRight(), SwRectFnSet::GetPrtTop(), SwFormatVertOrient::GetRelationOrient(), SwFormatHoriOrient::GetRelationOrient(), SwRectFnSet::GetRight(), SdrObject::GetSnapRect(), SwRectFnSet::GetTop(), SwFrame::GetType(), SwFormat::GetULSpace(), SwFrame::GetUpper(), SvxULSpaceItem::GetUpper(), GetUserCall(), SfxBoolItem::GetValue(), objectpositioning::SwEnvironmentOfAnchoredObject::GetVertEnvironmentLayoutFrame(), SwFormatVertOrient::GetVertOrient(), SwFormat::GetVertOrient(), SwAnchoredObject::GetVertPosOrientFrame(), tools::Rectangle::GetWidth(), SwRectFnSet::GetWidth(), Header, SwFrame::IsBodyFrame(), SwFrame::IsCellFrame(), SwFrame::IsColBodyFrame(), SwFrame::IsColumnFrame(), SwFlyFrame::IsFlyAtContentFrame(), SwFrame::IsFlyFrame(), SwFlyFrame::IsFlyLayFrame(), SwFrame::IsInFootnote(), SwFrame::IsInTab(), SwFrame::IsPageFrame(), SwFrame::IsRootFrame(), SwFrame::IsSctFrame(), SwRectFnSet::IsVert(), SwRect::Left(), SwPostItHelper::NONE, nType, SwRect::Pos(), Root, SwRectFnSet::SetBottom(), SwRectFnSet::SetLeft(), SwRectFnSet::SetLeftAndWidth(), SwRectFnSet::SetRight(), SwRectFnSet::SetTop(), SwRectFnSet::SetTopAndHeight(), SwRect::SSize(), SwRect::Union(), SwRect::Width(), Point::X(), Point::Y(), and SwRectFnSet::YInc().
Referenced by SwFlyFreeFrame::CheckClip(), SwFlyFrame::ChgSize(), SwViewShellImp::IsDragPossible(), and SwDrawView::TakeDragLimit().
const SwContentFrame * FindAnchor | ( | const SwFrame * | pOldAnch, |
const Point & | rNew, | ||
const bool | bBodyOnly | ||
) |
search an anchor for paragraph bound frames starting from pOldAnch
needed for dragging of objects bound to a paragraph for showing an anchor indicator as well as for changing the anchor.
implemented in layout/flycnt.cxx
search an anchor for paragraph bound frames starting from pOldAnch
This is used to show anchors as well as changing anchors when dragging paragraph bound objects.
Definition at line 1084 of file flycnt.cxx.
References bFootnote, SwRect::Contains(), FindPage(), SwFrame::FindPageFrame(), SwLayoutFrame::GetContentPos(), SwFrameAreaDefinition::getFrameArea(), SwContentFrame::GetNextContentFrame(), SwContentFrame::GetPrevContentFrame(), SwFrame::GetUpper(), SwFrame::IsContentFrame(), SwFrame::IsInDocBody(), SwFrame::IsInFly(), SwFrame::IsInFootnote(), SwFrame::IsInTab(), SwFrame::IsPageFrame(), SwFrame::IsRootFrame(), lcl_CalcDownDist(), lcl_FindCnt(), lcl_PointToPrt(), LONG_MAX, and SwLayoutFrame::Lower().
Referenced by SwDrawView::CalcAnchor(), SwFEShell::CheckUnboundObjects(), SwDoc::ChgAnchor(), SwFEShell::FindAnchorPos(), SwFEShell::ImpEndCreate(), SwFEShell::IsFlyInFly(), lcl_FindAnchorPos(), SwFEShell::NewFlyFrame(), and SwFlyAtContentFrame::SetAbsPos().