LibreOffice Module sw (master) 1
|
#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>
Go to the source code of this file.
Typedefs | |
typedef const SwContentFrame *(* | GetNxtPrvCnt) (const SwContentFrame *) |
Functions | |
static const SwContentFrame * | lcl_GetNxtCnt (const SwContentFrame *pCnt) |
static const SwContentFrame * | lcl_GetPrvCnt (const SwContentFrame *pCnt) |
static bool | lcl_IsInRepeatedHeadline (const SwFrame *pFrame, const SwTabFrame **ppTFrame=nullptr) |
Frame in repeated headline? More... | |
static const SwContentFrame * | lcl_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) |
SwContentFrame * | GetFirstSub (const SwLayoutFrame *pLayout) |
SwContentFrame * | GetLastSub (const SwLayoutFrame *pLayout) |
SwLayoutFrame * | GetNextFrame (const SwLayoutFrame *pFrame) |
SwLayoutFrame * | GetThisFrame (const SwLayoutFrame *pFrame) |
SwLayoutFrame * | GetPrevFrame (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 SwLayoutFrame * | lcl_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 const SwContentFrame *(* GetNxtPrvCnt) (const SwContentFrame *) |
Definition at line 643 of file trvlfrm.cxx.
|
static |
Definition at line 1989 of file trvlfrm.cxx.
References SwRect::Height(), and SwRect::Width().
Referenced by SwRootFrame::CalcFrameRects().
Definition at line 1141 of file trvlfrm.cxx.
References min(), Point::X(), and Point::Y().
Referenced by SwLayoutFrame::GetContentPos(), and SwPageFrame::GetContentPosition().
SwContentFrame * GetFirstSub | ( | const SwLayoutFrame * | pLayout | ) |
Definition at line 1048 of file trvlfrm.cxx.
References SwPageFrame::FindFirstBodyContent().
Referenced by GetFrameInPage(), SwFEShell::PastePages(), SwWrtShell::SttNxtPg(), SwWrtShell::SttPg(), and SwWrtShell::SttPrvPg().
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().
SwContentFrame * GetLastSub | ( | const SwLayoutFrame * | pLayout | ) |
Definition at line 1053 of file trvlfrm.cxx.
References SwPageFrame::FindLastBodyContent().
Referenced by SwWrtShell::EndNxtPg(), SwWrtShell::EndPg(), SwWrtShell::EndPrvPg(), and SwFEShell::PastePages().
SwLayoutFrame * GetNextFrame | ( | const SwLayoutFrame * | pFrame | ) |
Definition at line 1058 of file trvlfrm.cxx.
References SwLayoutFrame::ContainsContent(), SwFrame::GetNext(), and SwFrame::IsLayoutFrame().
Referenced by SwWrtShell::EndNxtPg(), and SwWrtShell::SttNxtPg().
SwLayoutFrame * GetPrevFrame | ( | const SwLayoutFrame * | pFrame | ) |
Definition at line 1075 of file trvlfrm.cxx.
References SwLayoutFrame::ContainsContent(), SwFrame::GetPrev(), and SwFrame::IsLayoutFrame().
Referenced by SwWrtShell::EndPrvPg(), and SwWrtShell::SttPrvPg().
SwLayoutFrame * GetThisFrame | ( | const SwLayoutFrame * | pFrame | ) |
Definition at line 1070 of file trvlfrm.cxx.
Referenced by SwWrtShell::EndPg(), SwFEShell::PastePages(), and SwWrtShell::SttPg().
|
static |
Definition at line 633 of file trvlfrm.cxx.
References SwContentFrame::GetNextContentFrame().
Referenced by SwLayoutFrame::GetContentPos(), lcl_UpDown(), and SwContentFrame::UnitDown().
|
static |
Definition at line 638 of file trvlfrm.cxx.
References SwContentFrame::GetPrevContentFrame().
Referenced by lcl_UpDown(), and SwContentFrame::UnitUp().
|
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 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().
|
static |
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().
|
static |
Skip protected table cells. Optionally also skip repeated headlines.
Definition at line 658 of file trvlfrm.cxx.
References SwLayoutFrame::GetFormat(), SwFormat::GetProtect(), SwFrame::GetUpper(), SwFrame::IsCellFrame(), SvxProtectItem::IsContentProtected(), SwFrame::IsCoveredCell(), SwFrame::IsInFollowFlowRow(), SwFrame::IsInTab(), SwFrame::IsProtected(), and lcl_IsInRepeatedHeadline().
Referenced by SwLayoutFrame::GetContentPos(), and lcl_UpDown().
|
static |
Definition at line 689 of file trvlfrm.cxx.
References SwPosition::AssignEndIndex(), SwPosition::AssignStartIndex(), SwRect::Center(), SwRect::Contains(), SwLayoutFrame::ContainsContent(), SwFrame::FindTabFrame(), sw::FrameContainsNode(), FRM_HEADFOOT, SwFrame::GetCharRect(), SwFrameAreaDefinition::getFrameArea(), SwNode::GetIndex(), SwRectFnSet::GetLeft(), SwPaM::GetMarkNode(), SwContentFrame::GetNextContentFrame(), GetNode(), SwPaM::GetPoint(), SwPaM::GetPointNode(), SwRectFnSet::GetPrtLeft(), SwRectFnSet::GetPrtRight(), SwTextFrame::GetText(), SwRectFnSet::GetTop(), SwFrame::GetType(), SwFrame::GetUpper(), SwRectFnSet::GetWidth(), SwLayoutFrame::IsAnLower(), SwFrame::IsCellFrame(), SwTextFrame::IsHiddenNow(), SwFrame::IsInDocBody(), SwFrame::IsInFly(), SwFrame::IsInFootnote(), SwFrame::IsInTab(), SwFrame::IsNoTextFrame(), SwFrame::IsRightToLeft(), SwFrame::IsTextFrame(), SwRectFnSet::IsVert(), lcl_GetNxtCnt(), lcl_GetPrvCnt(), lcl_MissProtectedFrames(), SwRect::Left(), SwTextFrame::MapViewToModelPos(), SwNode::StartOfSectionNode(), Point::X(), SwRectFnSet::XDiff(), SwRectFnSet::XInc(), and Point::Y().
Referenced by SwContentFrame::UnitDown(), and SwContentFrame::UnitUp().
|
static |
Definition at line 1982 of file trvlfrm.cxx.
References SwRegionRects::GetOrigin(), SwRect::Height(), SwRect::Overlaps(), and SwRect::Width().
Referenced by SwRootFrame::CalcFrameRects().
|
static |
Definition at line 148 of file trvlfrm.cxx.
Referenced by SwFlyFrame::GetModelPositionForViewPoint().