summaryrefslogtreecommitdiffstats
path: root/sw/source/core/layout/findfrm.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/layout/findfrm.cxx')
-rw-r--r--sw/source/core/layout/findfrm.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/sw/source/core/layout/findfrm.cxx b/sw/source/core/layout/findfrm.cxx
index 10d9faf95928..d465d29965b7 100644
--- a/sw/source/core/layout/findfrm.cxx
+++ b/sw/source/core/layout/findfrm.cxx
@@ -554,11 +554,11 @@ const SwPageFrame* SwRootFrame::GetPageAtPos( const Point& rPt, const Size* pSiz
if ( !bExtend )
{
- if( !Frame().IsInside( rPt ) )
+ if( !getSwFrame().IsInside( rPt ) )
return nullptr;
// skip pages above point:
- while( pPage && rPt.Y() > pPage->Frame().Bottom() )
+ while( pPage && rPt.Y() > pPage->getSwFrame().Bottom() )
pPage = pPage->GetNext();
}
@@ -567,7 +567,7 @@ const SwPageFrame* SwRootFrame::GetPageAtPos( const Point& rPt, const Size* pSiz
while ( pPage && !pRet )
{
- const SwRect& rBoundRect = bExtend ? maPageRects[ nPageIdx++ ] : pPage->Frame();
+ const SwRect& rBoundRect = bExtend ? maPageRects[ nPageIdx++ ] : pPage->getSwFrame();
if ( (!pSize && rBoundRect.IsInside(rPt)) ||
(pSize && rBoundRect.IsOver(aRect)) )
@@ -583,7 +583,7 @@ const SwPageFrame* SwRootFrame::GetPageAtPos( const Point& rPt, const Size* pSiz
bool SwRootFrame::IsBetweenPages(const Point& rPt) const
{
- if (!Frame().IsInside(rPt))
+ if (!getSwFrame().IsInside(rPt))
return false;
// top visible page
@@ -592,15 +592,15 @@ bool SwRootFrame::IsBetweenPages(const Point& rPt) const
return false;
// skip pages above point:
- while (pPage && rPt.Y() > pPage->Frame().Bottom())
+ while (pPage && rPt.Y() > pPage->getSwFrame().Bottom())
pPage = pPage->GetNext();
if (pPage &&
- rPt.X() >= pPage->Frame().Left() &&
- rPt.X() <= pPage->Frame().Right())
+ rPt.X() >= pPage->getSwFrame().Left() &&
+ rPt.X() <= pPage->getSwFrame().Right())
{
// Trivial case when we're right in between.
- if (!pPage->Frame().IsInside(rPt))
+ if (!pPage->getSwFrame().IsInside(rPt))
return true;
// In normal mode the gap is large enough and
@@ -612,8 +612,8 @@ bool SwRootFrame::IsBetweenPages(const Point& rPt) const
if (pSh && pSh->GetViewOptions()->IsWhitespaceHidden())
{
// If we are really close to the bottom or top of a page.
- const auto toEdge = std::min(std::abs(pPage->Frame().Top() - rPt.Y()),
- std::abs(pPage->Frame().Bottom() - rPt.Y()));
+ const auto toEdge = std::min(std::abs(pPage->getSwFrame().Top() - rPt.Y()),
+ std::abs(pPage->getSwFrame().Bottom() - rPt.Y()));
return toEdge <= MmToTwips(2.0);
}
}