LibreOffice Module sw (master) 1
Typedefs | Functions | Variables
trvlfrm.cxx File Reference
#include <hints.hxx>
#include <comphelper/flagguard.hxx>
#include <tools/line.hxx>
#include <editeng/opaqitem.hxx>
#include <editeng/protitem.hxx>
#include <vcl/settings.hxx>
#include <fmtpdsc.hxx>
#include <fmtsrnd.hxx>
#include <pagedesc.hxx>
#include <pagefrm.hxx>
#include <rootfrm.hxx>
#include <ftnfrm.hxx>
#include <flyfrm.hxx>
#include <tabfrm.hxx>
#include <rowfrm.hxx>
#include <cellfrm.hxx>
#include <txtfrm.hxx>
#include <notxtfrm.hxx>
#include <viewopt.hxx>
#include <DocumentSettingManager.hxx>
#include <viscrs.hxx>
#include <dflyobj.hxx>
#include <crstate.hxx>
#include <dcontact.hxx>
#include <sortedobjs.hxx>
#include <txatbase.hxx>
#include <fmtfld.hxx>
#include <fldbas.hxx>
#include <frmatr.hxx>
#include <frmtool.hxx>
#include <ndtxt.hxx>
#include <undobj.hxx>
#include <swselectionlist.hxx>
#include <comphelper/lok.hxx>
#include <osl/diagnose.h>
Include dependency graph for trvlfrm.cxx:

Go to the source code of this file.


typedef const SwContentFrame *(* GetNxtPrvCnt) (const SwContentFrame *)


static const SwContentFramelcl_GetNxtCnt (const SwContentFrame *pCnt)
static const SwContentFramelcl_GetPrvCnt (const SwContentFrame *pCnt)
static bool lcl_IsInRepeatedHeadline (const SwFrame *pFrame, const SwTabFrame **ppTFrame=nullptr)
 Frame in repeated headline? More...
static const SwContentFramelcl_MissProtectedFrames (const SwContentFrame *pCnt, GetNxtPrvCnt fnNxtPrv, bool bMissHeadline, bool bInReadOnly, bool bMissFollowFlowLine)
 Skip protected table cells. Optionally also skip repeated headlines. More...
static bool lcl_UpDown (SwPaM *pPam, const SwContentFrame *pStart, GetNxtPrvCnt fnNxtPrv, bool bInReadOnly)
SwContentFrameGetFirstSub (const SwLayoutFrame *pLayout)
SwContentFrameGetLastSub (const SwLayoutFrame *pLayout)
SwLayoutFrameGetNextFrame (const SwLayoutFrame *pFrame)
SwLayoutFrameGetThisFrame (const SwLayoutFrame *pFrame)
SwLayoutFrameGetPrevFrame (const SwLayoutFrame *pFrame)
bool GetFrameInPage (const SwContentFrame *pCnt, SwWhichPage fnWhichPage, SwPosPage fnPosPage, SwPaM *pPam)
 Returns the first/last Contentframe (controlled using the parameter fnPosPage) of the current/previous/next page (controlled using the parameter fnWhichPage). More...
static sal_uInt64 CalcDiff (const Point &rPt1, const Point &rPt2)
static const SwLayoutFramelcl_Inside (const SwContentFrame *pCnt, Point const &rPt)
 Check if the point lies inside the page part in which also the ContentFrame lies. More...
static void Sub (SwRegionRects &rRegion, const SwRect &rRect)
static void Add (SwRegionRects &rRegion, const SwRect &rRect)


static SwCursorOszControl g_OszCtrl = { nullptr, nullptr, nullptr }

Typedef Documentation

◆ GetNxtPrvCnt

typedef const SwContentFrame *(* GetNxtPrvCnt) (const SwContentFrame *)

Definition at line 643 of file trvlfrm.cxx.

Function Documentation

◆ Add()

static void Add ( SwRegionRects rRegion,
const SwRect rRect 

Definition at line 1989 of file trvlfrm.cxx.

References SwRect::Height(), and SwRect::Width().

Referenced by SwRootFrame::CalcFrameRects().

◆ CalcDiff()

static sal_uInt64 CalcDiff ( const Point rPt1,
const Point rPt2 

Definition at line 1141 of file trvlfrm.cxx.

References min(), Point::X(), and Point::Y().

Referenced by SwLayoutFrame::GetContentPos(), and SwPageFrame::GetContentPosition().

◆ GetFirstSub()

SwContentFrame * GetFirstSub ( const SwLayoutFrame pLayout)

◆ GetFrameInPage()

bool GetFrameInPage ( const SwContentFrame pCnt,
SwWhichPage  fnWhichPage,
SwPosPage  fnPosPage,
SwPaM pPam 

Returns the first/last Contentframe (controlled using the parameter fnPosPage) of the current/previous/next page (controlled using the parameter fnWhichPage).

Definition at line 1091 of file trvlfrm.cxx.

References SwLayoutFrame::ContainsContent(), SwFrame::FindPageFrame(), SwFrame::FindTabFrame(), SwTabFrame::GetFirstNonHeadlineRow(), GetFirstSub(), SwTextFrame::GetFollow(), SwTextFrame::GetOffset(), SwPaM::GetPoint(), SwTextFrame::GetText(), SwTabFrame::IsInHeadline(), SwFrame::IsInTab(), SwFrame::IsTextFrame(), and SwTextFrame::MapViewToModelPos().

Referenced by SwCursorShell::MovePage().

◆ GetLastSub()

SwContentFrame * GetLastSub ( const SwLayoutFrame pLayout)

◆ GetNextFrame()

SwLayoutFrame * GetNextFrame ( const SwLayoutFrame pFrame)

◆ GetPrevFrame()

SwLayoutFrame * GetPrevFrame ( const SwLayoutFrame pFrame)

◆ GetThisFrame()

SwLayoutFrame * GetThisFrame ( const SwLayoutFrame pFrame)

Definition at line 1070 of file trvlfrm.cxx.

Referenced by SwWrtShell::EndPg(), SwFEShell::PastePages(), and SwWrtShell::SttPg().

◆ lcl_GetNxtCnt()

static const SwContentFrame * lcl_GetNxtCnt ( const SwContentFrame pCnt)

◆ lcl_GetPrvCnt()

static const SwContentFrame * lcl_GetPrvCnt ( const SwContentFrame pCnt)

Definition at line 638 of file trvlfrm.cxx.

References SwContentFrame::GetPrevContentFrame().

Referenced by lcl_UpDown(), and SwContentFrame::UnitUp().

◆ lcl_Inside()

static const SwLayoutFrame * lcl_Inside ( const SwContentFrame pCnt,
Point const &  rPt 

Check if the point lies inside the page part in which also the ContentFrame lies.

In this context header, page body, footer and footnote-container count as page part. This will suit the purpose that the ContentFrame which lies in the "right" page part will be accepted instead of one which doesn't lie there although his distance to the point is shorter.

Definition at line 1158 of file trvlfrm.cxx.

References SwRect::Bottom(), SwRect::Contains(), SwFrameAreaDefinition::getFrameArea(), SwFrame::GetUpper(), SwFrame::IsFooterFrame(), SwFrame::IsFootnoteContFrame(), SwFrame::IsHeaderFrame(), SwFrame::IsPageBodyFrame(), SwRect::Top(), and Point::Y().

Referenced by SwLayoutFrame::GetContentPos().

◆ lcl_IsInRepeatedHeadline()

static bool lcl_IsInRepeatedHeadline ( const SwFrame pFrame,
const SwTabFrame **  ppTFrame = nullptr 

Frame in repeated headline?

Definition at line 646 of file trvlfrm.cxx.

References SwFrame::FindTabFrame(), and SwTabFrame::IsInHeadline().

Referenced by SwRootFrame::CalcFrameRects(), SwRootFrame::GetNextPrevContentPos(), and lcl_MissProtectedFrames().

◆ lcl_MissProtectedFrames()

static const SwContentFrame * lcl_MissProtectedFrames ( const SwContentFrame pCnt,
GetNxtPrvCnt  fnNxtPrv,
bool  bMissHeadline,
bool  bInReadOnly,
bool  bMissFollowFlowLine 

◆ lcl_UpDown()

static bool lcl_UpDown ( SwPaM pPam,
const SwContentFrame pStart,
GetNxtPrvCnt  fnNxtPrv,
bool  bInReadOnly 

◆ Sub()

static void Sub ( SwRegionRects rRegion,
const SwRect rRect 

Variable Documentation

◆ g_OszCtrl

SwCursorOszControl g_OszCtrl = { nullptr, nullptr, nullptr }

Definition at line 148 of file trvlfrm.cxx.

Referenced by SwFlyFrame::GetModelPositionForViewPoint().