LibreOffice Module sw (master)  1
Classes | 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 <cfloat>
#include <swselectionlist.hxx>
#include <comphelper/lok.hxx>
Include dependency graph for trvlfrm.cxx:

Go to the source code of this file.

Classes

class  SwCursorOszControl
 

Typedefs

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

Functions

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)
 

Variables

static SwCursorOszControl g_OszCtrl = { nullptr, nullptr, nullptr }
 

Typedef Documentation

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

Definition at line 639 of file trvlfrm.cxx.

Function Documentation

static void Add ( SwRegionRects rRegion,
const SwRect rRect 
)
static

Definition at line 1977 of file trvlfrm.cxx.

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

Referenced by SwRootFrame::CalcFrameRects().

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

Definition at line 1137 of file trvlfrm.cxx.

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

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

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

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

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

Definition at line 634 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 
)
static

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

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

Referenced by SwLayoutFrame::GetContentPos().

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

Variable Documentation

SwCursorOszControl g_OszCtrl = { nullptr, nullptr, nullptr }
static

Definition at line 143 of file trvlfrm.cxx.