LibreOffice Module sw (master) 1
|
#include <sal/log.hxx>
#include <osl/diagnose.h>
#include <svx/swframetypes.hxx>
#include <pagefrm.hxx>
#include <txtfrm.hxx>
#include <notxtfrm.hxx>
#include <doc.hxx>
#include <pam.hxx>
#include <IDocumentUndoRedo.hxx>
#include <IDocumentSettingAccess.hxx>
#include <IDocumentDrawModelAccess.hxx>
#include <frmtool.hxx>
#include <dflyobj.hxx>
#include <fmtanchr.hxx>
#include <fmtornt.hxx>
#include <fmtfsize.hxx>
#include <fmtsrnd.hxx>
#include <txatbase.hxx>
#include <tabfrm.hxx>
#include <flyfrms.hxx>
#include <crstate.hxx>
#include <sectfrm.hxx>
#include <tocntntanchoredobjectposition.hxx>
#include <sortedobjs.hxx>
#include <layouter.hxx>
#include "objectformattertxtfrm.hxx"
#include <HandleAnchorNodeChg.hxx>
#include <ndtxt.hxx>
#include <textboxhelper.hxx>
#include <fmtfollowtextflow.hxx>
#include <unoprnms.hxx>
#include <rootfrm.hxx>
#include <bodyfrm.hxx>
Go to the source code of this file.
Functions | |
static const SwFrame * | lcl_CalcDownDist (SwDistance &rRet, const Point &rPt, const SwContentFrame *pCnt) |
static sal_uInt64 | lcl_FindCntDiff (const Point &rPt, const SwLayoutFrame *pLay, const SwContentFrame *&rpCnt, const bool bBody, const bool bFootnote) |
static const SwContentFrame * | lcl_FindCnt (const Point &rPt, const SwContentFrame *pCnt, const bool bBody, const bool bFootnote) |
static void | lcl_PointToPrt (Point &rPoint, const SwFrame *pFrame) |
const SwContentFrame * | FindAnchor (const SwFrame *pOldAnch, const Point &rNew, const bool bBodyOnly) |
Searches an anchor for paragraph bound objects starting from pOldAnch. More... | |
const SwContentFrame * FindAnchor | ( | const SwFrame * | pOldAnch, |
const Point & | rNew, | ||
const bool | bBodyOnly | ||
) |
Searches an anchor for paragraph bound objects starting from pOldAnch.
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().
|
static |
Definition at line 622 of file flycnt.cxx.
References SwRect::Bottom(), SwRect::Contains(), SwFrame::Cut(), SwFrame::DestroyFrame(), SwFrame::FindSctFrame(), SwFrame::FindTabFrame(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwFrame::GetLeaf(), SwFrame::GetUpper(), SwRect::Height(), SwLayoutFrame::IsAnLower(), SwFrame::IsFootnoteContFrame(), SwFrame::IsInFly(), SwFrame::IsInSct(), SwFrame::IsInTab(), SwFrame::IsSctFrame(), SwFrame::IsVertical(), SwFrame::IsVertLR(), SwRect::Left(), LONG_MAX, Lower, MAKEPAGE_NONE, SwRect::Right(), SwRect::Top(), SwRect::Width(), Point::X(), and Point::Y().
Referenced by FindAnchor(), and SwFlyAtContentFrame::SetAbsPos().
|
static |
Definition at line 981 of file flycnt.cxx.
References bFootnote, SwFrame::FindPageFrame(), SwFrameAreaDefinition::getFrameArea(), SwFrame::GetNext(), SwFrame::GetPrev(), i, lcl_FindCntDiff(), SAL_MAX_UINT64, SwRect::Top(), and Point::Y().
Referenced by FindAnchor().
|
static |
Definition at line 921 of file flycnt.cxx.
References bFootnote, SwLayoutFrame::ContainsContent(), SwFrameAreaDefinition::getFrameArea(), SwContentFrame::GetNextContentFrame(), SwLayoutFrame::IsAnLower(), SwFrame::IsInDocBody(), SwFrame::IsInFootnote(), SwRect::Left(), min(), SAL_MAX_UINT64, SwRect::Top(), Point::X(), and Point::Y().
Referenced by lcl_FindCnt().
Definition at line 1064 of file flycnt.cxx.
References SwRect::Bottom(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), Point::getX(), Point::getY(), SwRect::Left(), SwRect::Pos(), SwRect::Right(), Point::setX(), Point::setY(), and SwRect::Top().
Referenced by FindAnchor(), and SwFlyAtContentFrame::SetAbsPos().