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

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

Definition at line 645 of file trvlfrm.cxx.

Function Documentation

static void Add ( SwRegionRects rRegion,
const SwRect rRect 

Definition at line 1978 of file trvlfrm.cxx.

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

Referenced by SwRootFrame::CalcFrameRects().

static sal_uInt64 CalcDiff ( const Point &  rPt1,
const Point &  rPt2 

Definition at line 1144 of file trvlfrm.cxx.

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

SwContentFrame* GetFirstSub ( const SwLayoutFrame pLayout)
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 1094 of file trvlfrm.cxx.

References assert(), SwLayoutFrame::ContainsContent(), SwFrame::FindPageFrame(), SwFrame::FindTabFrame(), SwTabFrame::GetFirstNonHeadlineRow(), GetFirstSub(), SwPaM::GetPoint(), SwFlowFrame::IsFollow(), SwTabFrame::IsInHeadline(), SwFrame::IsInTab(), and SwFrame::IsTextFrame().

Referenced by SwCursorShell::MovePage().

SwContentFrame* GetLastSub ( const SwLayoutFrame pLayout)
SwLayoutFrame* GetNextFrame ( const SwLayoutFrame pFrame)
SwLayoutFrame* GetPrevFrame ( const SwLayoutFrame pFrame)
SwLayoutFrame* GetThisFrame ( const SwLayoutFrame pFrame)

Definition at line 1073 of file trvlfrm.cxx.

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

static const SwContentFrame* lcl_GetNxtCnt ( const SwContentFrame pCnt)
static const SwContentFrame* lcl_GetPrvCnt ( const SwContentFrame pCnt)

Definition at line 640 of file trvlfrm.cxx.

References SwContentFrame::GetPrevContentFrame().

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

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 1161 of file trvlfrm.cxx.

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

Referenced by SwLayoutFrame::GetContentPos().

static bool lcl_IsInRepeatedHeadline ( const SwFrame pFrame,
const SwTabFrame **  ppTFrame = nullptr 
static const SwContentFrame* lcl_MissProtectedFrames ( const SwContentFrame pCnt,
GetNxtPrvCnt  fnNxtPrv,
bool  bMissHeadline,
bool  bInReadOnly,
bool  bMissFollowFlowLine 
static bool lcl_UpDown ( SwPaM pPam,
const SwContentFrame pStart,
GetNxtPrvCnt  fnNxtPrv,
bool  bInReadOnly 
static void Sub ( SwRegionRects rRegion,
const SwRect rRect 

Variable Documentation

SwCursorOszControl g_OszCtrl = { nullptr, nullptr, nullptr }

Definition at line 148 of file trvlfrm.cxx.