[Libreoffice-commits] core.git: Branch 'feature/RotateFlyFrame' - sw/source

Armin Le Grand Armin.Le.Grand at cib.de
Mon Oct 30 08:37:32 UTC 2017


Rebased ref, commits from common ancestor:
commit d64ea2264b5a13bfca8499e08f352af6740e71ff
Author: Armin Le Grand <Armin.Le.Grand at cib.de>
Date:   Wed Oct 25 13:46:44 2017 +0200

    RotateFlyFrame: Isolate SwFrame members maFrame and maPrt
    
    To gain more control over changes of the Writer layout,
    isolated mentioned members and replaced all calls with
    inline methods for read access. Moved to own class to
    also identify 'private' accesses reliably. Added access
    dedicated classes for write access, the only allowed
    way to do changes. Adapted all usages and made test builds
    on logerrit and locally
    
    Change-Id: Ib0b7f852f5176744e860e2aad12dd13c9a906d68
    
    RotateFlyFrame: Migrated from SwFrame::FrameWA to setFrame
    
    Change-Id: I01f7b828fe2134411cc76639e880da46b415d767
    
    RotateFlyFrame: Migrated from SwFrame::PrintWA to setPrint
    
    Change-Id: Ieea3b467f296a190de5b5f47721bef148bebf60b
    
    RotateFlyFrame: Adapted to get/setSwFrame and get/setSwPrint
    
    Change-Id: I6cce40ec49dd5bd32d94fe06b9d2dabd368448be
    
    RotateFlyFrame: Adapted to get methods and WriteAccess helpers
    
    Change-Id: Ife3c1b2391ad7beae8c7f31f796b1454709ddd26
    
    RotateFlyFrame: Moved change executers to cxx
    
    Moved SwFrameRect::FrameWriteAccess::~FrameWriteAccess()
    and SwFrameRect::PrintWriteAccess::~PrintWriteAccess() to
    implementation side and added compare op's for SwRcet to
    write only if needed
    
    Change-Id: I85d0e61009116f4b17d1ce0337e3f0d2cc031159
    
    RotateFlyFrame: Moved change executers to cxx
    
    Moved SwFrameRect::FrameWriteAccess::~FrameWriteAccess()
    and SwFrameRect::PrintWriteAccess::~PrintWriteAccess() to
    implementation side and added compare op's for SwRcet to
    write only if needed
    
    Change-Id: I85d0e61009116f4b17d1ce0337e3f0d2cc031159

diff --git a/sw/source/core/access/acccontext.cxx b/sw/source/core/access/acccontext.cxx
index a43cd5a75e08..5e56fa85ff44 100644
--- a/sw/source/core/access/acccontext.cxx
+++ b/sw/source/core/access/acccontext.cxx
@@ -1123,7 +1123,7 @@ void SwAccessibleContext::InvalidatePosOrSize( const SwRect& )
 {
     SolarMutexGuard aGuard;
 
-    OSL_ENSURE( GetFrame() && !GetFrame()->Frame().IsEmpty(), "context should have a size" );
+    OSL_ENSURE( GetFrame() && !GetFrame()->getSwFrame().IsEmpty(), "context should have a size" );
 
     bool bIsOldShowingState;
     bool bIsNewShowingState = IsShowing( *(GetMap()) );
@@ -1170,7 +1170,7 @@ void SwAccessibleContext::InvalidateChildPosOrSize(
     // this happens during layout, e.g. when a page is deleted and next page's
     // header/footer moves backward such an event is generated
     SAL_INFO_IF(rChildFrameOrObj.GetSwFrame() &&
-            rChildFrameOrObj.GetSwFrame()->Frame().IsEmpty(),
+            rChildFrameOrObj.GetSwFrame()->getSwFrame().IsEmpty(),
             "sw.a11y", "child context should have a size");
 
     if ( rChildFrameOrObj.AlwaysIncludeAsChild() )
diff --git a/sw/source/core/access/accfrmobj.cxx b/sw/source/core/access/accfrmobj.cxx
index c6475523de75..f233263694ea 100644
--- a/sw/source/core/access/accfrmobj.cxx
+++ b/sw/source/core/access/accfrmobj.cxx
@@ -243,16 +243,16 @@ SwRect SwAccessibleChild::GetBox( const SwAccessibleMap& rAccMap ) const
         if ( mpFrame->IsPageFrame() &&
              static_cast< const SwPageFrame * >( mpFrame )->IsEmptyPage() )
         {
-            aBox = SwRect( mpFrame->Frame().Left(), mpFrame->Frame().Top()-1, 1, 1 );
+            aBox = SwRect( mpFrame->getSwFrame().Left(), mpFrame->getSwFrame().Top()-1, 1, 1 );
         }
         else if ( mpFrame->IsTabFrame() )
         {
-            aBox = SwRect( mpFrame->Frame() );
-            aBox.Intersection( mpFrame->GetUpper()->Frame() );
+            aBox = SwRect( mpFrame->getSwFrame() );
+            aBox.Intersection( mpFrame->GetUpper()->getSwFrame() );
         }
         else
         {
-            aBox = mpFrame->Frame();
+            aBox = mpFrame->getSwFrame();
         }
     }
     else if( mpDrawObj )
@@ -268,7 +268,7 @@ SwRect SwAccessibleChild::GetBox( const SwAccessibleMap& rAccMap ) const
         {
             aBox = SwRect( mpDrawObj->GetCurrentBoundRect() );
             // tdf#91260 drawing object may be partially off-page
-            aBox.Intersection(pPage->Frame());
+            aBox.Intersection(pPage->getSwFrame());
         }
     }
     else if ( mpWindow )
@@ -294,7 +294,7 @@ SwRect SwAccessibleChild::GetBounds( const SwAccessibleMap& rAccMap ) const
         if( mpFrame->IsPageFrame() &&
             static_cast< const SwPageFrame * >( mpFrame )->IsEmptyPage() )
         {
-            aBound = SwRect( mpFrame->Frame().Left(), mpFrame->Frame().Top()-1, 0, 0 );
+            aBound = SwRect( mpFrame->getSwFrame().Left(), mpFrame->getSwFrame().Top()-1, 0, 0 );
         }
         else
             aBound = mpFrame->PaintArea();
diff --git a/sw/source/core/access/acctable.cxx b/sw/source/core/access/acctable.cxx
index e03047a9a81e..0abbc829a8cf 100644
--- a/sw/source/core/access/acctable.cxx
+++ b/sw/source/core/access/acctable.cxx
@@ -156,14 +156,14 @@ void SwAccessibleTableData_Impl::CollectData( const SwFrame *pFrame )
                 // #i77106#
                 if ( IncludeRow( *pLower ) )
                 {
-                    maRows.insert( pLower->Frame().Top() - maTabFramePos.getY() );
+                    maRows.insert( pLower->getSwFrame().Top() - maTabFramePos.getY() );
                     CollectData( pLower );
                 }
             }
             else if( pLower->IsCellFrame() &&
                      rLower.IsAccessible( mbIsInPagePreview ) )
             {
-                maColumns.insert( pLower->Frame().Left() - maTabFramePos.getX() );
+                maColumns.insert( pLower->getSwFrame().Left() - maTabFramePos.getX() );
             }
             else
             {
@@ -196,7 +196,7 @@ void SwAccessibleTableData_Impl::CollectRowHeaderData( const SwFrame *pFrame )
                 //if(mpTabFrame->GetTable()->GetTabLines()[ 0 ] != pLine)
                 //return ;
 
-                maRows.insert( pLower->Frame().Top() - maTabFramePos.Y() );
+                maRows.insert( pLower->getSwFrame().Top() - maTabFramePos.Y() );
 
                 CollectRowHeaderData( pLower );
 
@@ -206,7 +206,7 @@ void SwAccessibleTableData_Impl::CollectRowHeaderData( const SwFrame *pFrame )
             {
                 //Added by yanjun. Can't find the "GetRowHeaderFlag" function (need verify).
                 //if(static_cast<SwCellFrame*>(pLower)->GetRowHeaderFlag())
-                //  maColumns.insert( pLower->Frame().Left() - maTabFramePos.X() );
+                //  maColumns.insert( pLower->getSwFrame().Left() - maTabFramePos.X() );
             }
             else
             {
@@ -244,7 +244,7 @@ void SwAccessibleTableData_Impl::CollectColumnHeaderData( const SwFrame *pFrame
                 if(iCurrentRowIndex >= mpTabFrame->GetTable()->GetRowsToRepeat_())
                     return ;
 
-                maRows.insert( pLower->Frame().Top() - maTabFramePos.Y() );
+                maRows.insert( pLower->getSwFrame().Top() - maTabFramePos.Y() );
 
                 CollectColumnHeaderData( pLower );
 
@@ -252,7 +252,7 @@ void SwAccessibleTableData_Impl::CollectColumnHeaderData( const SwFrame *pFrame
             else if( pLower->IsCellFrame() &&
                      rLower.IsAccessible( mbIsInPagePreview ) )
             {
-                maColumns.insert( pLower->Frame().Left() - maTabFramePos.X() );
+                maColumns.insert( pLower->getSwFrame().Left() - maTabFramePos.X() );
             }
             else
             {
@@ -279,7 +279,7 @@ void SwAccessibleTableData_Impl::CollectExtents( const SwFrame *pFrame )
             {
                 sal_Int32 nRow, nCol;
                 Int32Pair_Impl aCellExtents;
-                GetRowColumnAndExtent( pLower->Frame(), nRow, nCol,
+                GetRowColumnAndExtent( pLower->getSwFrame(), nRow, nCol,
                                        aCellExtents.first,
                                        aCellExtents.second );
 
@@ -318,7 +318,7 @@ bool SwAccessibleTableData_Impl::FindCell(
             if( rLower.IsAccessible( mbIsInPagePreview ) )
             {
                 OSL_ENSURE( pLower->IsCellFrame(), "lower is not a cell frame" );
-                const SwRect& rFrame = pLower->Frame();
+                const SwRect& rFrame = pLower->getSwFrame();
                 if( rFrame.Right() >= rPos.X() && rFrame.Bottom() >= rPos.Y() )
                 {
                     // We have found the cell
@@ -432,7 +432,7 @@ void SwAccessibleTableData_Impl::GetSelection(
                           SwAccTableSelHander_Impl& rSelHdl,
                        bool bColumns ) const
 {
-    SwRect aArea( mpTabFrame->Frame() );
+    SwRect aArea( mpTabFrame->getSwFrame() );
     Point aPos( aArea.Pos() );
 
     const Int32Set_Impl& rRowsOrColumns = bColumns ? maColumns : maRows;
@@ -463,7 +463,7 @@ void SwAccessibleTableData_Impl::GetSelection(
 const SwFrame *SwAccessibleTableData_Impl::GetCellAtPos(
         sal_Int32 nLeft, sal_Int32 nTop ) const
 {
-    Point aPos( mpTabFrame->Frame().Pos() );
+    Point aPos( mpTabFrame->getSwFrame().Pos() );
     aPos.Move( nLeft, nTop );
     const SwFrame *pRet = nullptr;
     FindCell( aPos, mpTabFrame, false/*bExact*/, pRet );
@@ -497,7 +497,7 @@ SwAccessibleTableData_Impl::SwAccessibleTableData_Impl( SwAccessibleMap& rAccMap
                                                         bool bIsInPagePreview,
                                                         bool bOnlyTableColumnHeader )
     : mrAccMap( rAccMap )
-    , maTabFramePos( pTabFrame->Frame().Pos() )
+    , maTabFramePos( pTabFrame->getSwFrame().Pos() )
     , mpTabFrame( pTabFrame )
     , mbIsInPagePreview( bIsInPagePreview )
     , mbOnlyTableColumnHeader( bOnlyTableColumnHeader )
@@ -1016,8 +1016,8 @@ sal_Int32 SAL_CALL SwAccessibleTable::getAccessibleRowExtentAt(
     const SwFrame *pCellFrame = GetTableData().GetCellAtPos( *aSttCol, *aSttRow );
     if( pCellFrame )
     {
-        sal_Int32 nBottom = pCellFrame->Frame().Bottom();
-        nBottom -= GetFrame()->Frame().Top();
+        sal_Int32 nBottom = pCellFrame->getSwFrame().Bottom();
+        nBottom -= GetFrame()->getSwFrame().Top();
         Int32Set_Impl::const_iterator aEndRow(
                 GetTableData().GetRows().upper_bound( nBottom ) );
         nExtend =
@@ -1046,8 +1046,8 @@ sal_Int32 SAL_CALL SwAccessibleTable::getAccessibleColumnExtentAt(
     const SwFrame *pCellFrame = GetTableData().GetCellAtPos( *aSttCol, *aSttRow );
     if( pCellFrame )
     {
-        sal_Int32 nRight = pCellFrame->Frame().Right();
-        nRight -= GetFrame()->Frame().Left();
+        sal_Int32 nRight = pCellFrame->getSwFrame().Right();
+        nRight -= GetFrame()->getSwFrame().Left();
         Int32Set_Impl::const_iterator aEndCol(
                 GetTableData().GetColumns().upper_bound( nRight ) );
         nExtend =
@@ -1271,8 +1271,8 @@ sal_Int32 SAL_CALL SwAccessibleTable::getAccessibleRow( sal_Int32 nChildIndex )
     SwAccessibleChild aCell( GetChild( *(GetMap()), nChildIndex ) );
     if ( aCell.GetSwFrame()  )
     {
-        sal_Int32 nTop = aCell.GetSwFrame()->Frame().Top();
-        nTop -= GetFrame()->Frame().Top();
+        sal_Int32 nTop = aCell.GetSwFrame()->getSwFrame().Top();
+        nTop -= GetFrame()->getSwFrame().Top();
         Int32Set_Impl::const_iterator aRow(
                 GetTableData().GetRows().lower_bound( nTop ) );
         nRet = static_cast< sal_Int32 >( std::distance(
@@ -1308,8 +1308,8 @@ sal_Int32 SAL_CALL SwAccessibleTable::getAccessibleColumn(
     SwAccessibleChild aCell( GetChild( *(GetMap()), nChildIndex ) );
     if ( aCell.GetSwFrame()  )
     {
-        sal_Int32 nLeft = aCell.GetSwFrame()->Frame().Left();
-        nLeft -= GetFrame()->Frame().Left();
+        sal_Int32 nLeft = aCell.GetSwFrame()->getSwFrame().Left();
+        nLeft -= GetFrame()->getSwFrame().Left();
         Int32Set_Impl::const_iterator aCol(
                 GetTableData().GetColumns().lower_bound( nLeft ) );
         nRet = static_cast< sal_Int32 >( std::distance(
@@ -1359,7 +1359,7 @@ void SwAccessibleTable::InvalidatePosOrSize( const SwRect& rOldBox )
         FireTableChangeEvent(*mpTableData);
     }
     if( HasTableData() )
-        GetTableData().SetTablePos( GetFrame()->Frame().Pos() );
+        GetTableData().SetTablePos( GetFrame()->getSwFrame().Pos() );
 
     SwAccessibleContext::InvalidatePosOrSize( rOldBox );
 }
@@ -1405,7 +1405,7 @@ void SwAccessibleTable::InvalidateChildPosOrSize( const SwAccessibleChild& rChil
     if( HasTableData() )
     {
         SAL_WARN_IF( HasTableData() &&
-                GetFrame()->Frame().Pos() != GetTableData().GetTablePos(),
+                GetFrame()->getSwFrame().Pos() != GetTableData().GetTablePos(),
                 "sw.a11y", "table has invalid position" );
         if( HasTableData() )
         {
diff --git a/sw/source/core/crsr/callnk.cxx b/sw/source/core/crsr/callnk.cxx
index c727ecd90287..d8619067377a 100644
--- a/sw/source/core/crsr/callnk.cxx
+++ b/sw/source/core/crsr/callnk.cxx
@@ -230,7 +230,7 @@ long SwCallLink::getLayoutFrame( const SwRootFrame* pRoot, SwTextNode const & rN
                     nCntPos >= pNext->GetOfst() )
                 pFrame = pNext;
 
-        return pFrame->Frame().Left();
+        return pFrame->getSwFrame().Left();
     }
     return 0;
 }
diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx
index 8b54f8806398..27e6bbecf45a 100644
--- a/sw/source/core/crsr/crsrsh.cxx
+++ b/sw/source/core/crsr/crsrsh.cxx
@@ -770,7 +770,7 @@ int SwCursorShell::SetCursor( const Point &rLPt, bool bOnlyText, bool bBlock )
         {
             if( pFrame )
             {
-                if( pFrame->Frame().IsInside( rAktCursorPt ))
+                if( pFrame->getSwFrame().IsInside( rAktCursorPt ))
                     return bRet;
             }
             else if( aPos.nNode.GetNode().IsContentNode() )
@@ -789,7 +789,7 @@ int SwCursorShell::SetCursor( const Point &rLPt, bool bOnlyText, bool bBlock )
     {
         // SSelection over not allowed sections or if in header/footer -> different
         if( !CheckNodesRange( aPos.nNode, pCursor->GetMark()->nNode, true )
-            || ( pFrame && !pFrame->Frame().IsInside( pCursor->GetMkPos() ) ))
+            || ( pFrame && !pFrame->getSwFrame().IsInside( pCursor->GetMkPos() ) ))
             return bRet;
 
         // is at same position but not in header/footer
@@ -1117,7 +1117,7 @@ sal_uInt16 SwCursorShell::GetNextPrevPageNum( bool bNext )
     const SwPageFrame *pPg = Imp()->GetFirstVisPage(GetOut());
     if( pPg )
     {
-        const SwTwips nPageTop = pPg->Frame().Top();
+        const SwTwips nPageTop = pPg->getSwFrame().Top();
 
         if( bNext )
         {
@@ -1126,7 +1126,7 @@ sal_uInt16 SwCursorShell::GetNextPrevPageNum( bool bNext )
             {
                 pPg = static_cast<const SwPageFrame *>(pPg->GetNext());
             }
-            while( pPg && pPg->Frame().Top() == nPageTop );
+            while( pPg && pPg->getSwFrame().Top() == nPageTop );
 
             while( pPg && pPg->IsEmptyPage() )
                 pPg = static_cast<const SwPageFrame *>(pPg->GetNext());
@@ -1138,7 +1138,7 @@ sal_uInt16 SwCursorShell::GetNextPrevPageNum( bool bNext )
             {
                 pPg = static_cast<const SwPageFrame *>(pPg->GetPrev());
             }
-            while( pPg && pPg->Frame().Top() == nPageTop );
+            while( pPg && pPg->getSwFrame().Top() == nPageTop );
 
             while( pPg && pPg->IsEmptyPage() )
                 pPg = static_cast<const SwPageFrame *>(pPg->GetPrev());
@@ -1162,13 +1162,13 @@ OUString SwCursorShell::getPageRectangles()
     OUStringBuffer aBuf;
     for (const SwFrame* pFrame = pLayout->GetLower(); pFrame; pFrame = pFrame->GetNext())
     {
-        aBuf.append(pFrame->Frame().Left());
+        aBuf.append(pFrame->getSwFrame().Left());
         aBuf.append(", ");
-        aBuf.append(pFrame->Frame().Top());
+        aBuf.append(pFrame->getSwFrame().Top());
         aBuf.append(", ");
-        aBuf.append(pFrame->Frame().Width());
+        aBuf.append(pFrame->getSwFrame().Width());
         aBuf.append(", ");
-        aBuf.append(pFrame->Frame().Height());
+        aBuf.append(pFrame->getSwFrame().Height());
         aBuf.append("; ");
     }
     if (!aBuf.isEmpty())
@@ -1561,8 +1561,8 @@ void SwCursorShell::UpdateCursor( sal_uInt16 eFlags, bool bIdleEnd )
                 SwFrame* pBoxFrame = pTableFrame;
                 while( pBoxFrame && !pBoxFrame->IsCellFrame() )
                     pBoxFrame = pBoxFrame->GetUpper();
-                if( pBoxFrame && pBoxFrame->Frame().HasArea() )
-                    MakeVisible( pBoxFrame->Frame() );
+                if( pBoxFrame && pBoxFrame->getSwFrame().HasArea() )
+                    MakeVisible( pBoxFrame->getSwFrame() );
                 else
                     MakeVisible( m_aCharRect );
             }
@@ -1807,8 +1807,8 @@ void SwCursorShell::UpdateCursor( sal_uInt16 eFlags, bool bIdleEnd )
             DisableCallbackAction a(*GetLayout());
             pFrame->Calc(GetOut());
             m_nUpDownX = pFrame->IsVertical() ?
-                       m_aCharRect.Top() - pFrame->Frame().Top() :
-                       m_aCharRect.Left() - pFrame->Frame().Left();
+                       m_aCharRect.Top() - pFrame->getSwFrame().Top() :
+                       m_aCharRect.Left() - pFrame->getSwFrame().Left();
         }
 
         // scroll Cursor to visible area
@@ -1893,9 +1893,9 @@ void SwCursorShell::RefreshBlockCursor()
         if( pFrame )
         {
             if( pFrame->IsVertical() )
-                aPt.setY(pFrame->Frame().Top() + GetUpDownX());
+                aPt.setY(pFrame->getSwFrame().Top() + GetUpDownX());
             else
-                aPt.setX(pFrame->Frame().Left() + GetUpDownX());
+                aPt.setX(pFrame->getSwFrame().Left() + GetUpDownX());
         }
         aMk = rBlock.GetMkPos();
     }
diff --git a/sw/source/core/crsr/crstrvl.cxx b/sw/source/core/crsr/crstrvl.cxx
index 606b778387ea..01c3ac4c42e1 100644
--- a/sw/source/core/crsr/crstrvl.cxx
+++ b/sw/source/core/crsr/crstrvl.cxx
@@ -90,12 +90,12 @@ void SwCursorShell::MoveCursorToNum()
     if( pFrame->IsVertical() )
     {
         aPt.setX(m_aCharRect.Center().getX());
-        aPt.setY(pFrame->Frame().Top() + GetUpDownX());
+        aPt.setY(pFrame->getSwFrame().Top() + GetUpDownX());
     }
     else
     {
         aPt.setY(m_aCharRect.Center().getY());
-        aPt.setX(pFrame->Frame().Left() + GetUpDownX());
+        aPt.setX(pFrame->getSwFrame().Left() + GetUpDownX());
     }
     pFrame->GetCursorOfst( m_pCurrentCursor->GetPoint(), aPt );
     if ( !m_pCurrentCursor->IsSelOvr( SwCursorSelOverFlags::Toggle |
@@ -142,7 +142,7 @@ bool SwCursorShell::GotoHeaderText()
         SwCursor *pTmpCursor = getShellCursor( true );
         SwCursorSaveState aSaveState( *pTmpCursor );
         pFrame->Calc(GetOut());
-        Point aPt( pFrame->Frame().Pos() + pFrame->Prt().Pos() );
+        Point aPt( pFrame->getSwFrame().Pos() + pFrame->getSwPrint().Pos() );
         pFrame->GetCursorOfst( pTmpCursor->GetPoint(), aPt );
         if( !pTmpCursor->IsSelOvr() )
             UpdateCursor();
@@ -174,7 +174,7 @@ bool SwCursorShell::GotoFooterText()
             SwCallLink aLk( *this ); // watch Cursor-Moves
             SwCursorSaveState aSaveState( *pTmpCursor );
             pLower->Calc(GetOut());
-            Point aPt( pLower->Frame().Pos() + pLower->Prt().Pos() );
+            Point aPt( pLower->getSwFrame().Pos() + pLower->getSwPrint().Pos() );
             pLower->GetCursorOfst( pTmpCursor->GetPoint(), aPt );
             if( !pTmpCursor->IsSelOvr() )
                 UpdateCursor();
@@ -1443,8 +1443,8 @@ bool SwCursorShell::GetContentAtPos( const Point& rPt,
                                 pFrame->GetCharRect(aEnd, aEndPos, &aTmpState);
                                 if (aStart.Top() != aEnd.Top() || aStart.Bottom() != aEnd.Bottom())
                                 {
-                                    aStart.Left(pFrame->Frame().Left());
-                                    aEnd.Right(pFrame->Frame().Right());
+                                    aStart.Left(pFrame->getSwFrame().Left());
+                                    aEnd.Right(pFrame->getSwFrame().Right());
                                 }
                                 *pFieldRect = aStart.Union(aEnd);
                             }
@@ -1471,8 +1471,8 @@ bool SwCursorShell::GetContentAtPos( const Point& rPt,
                             pFrame->GetCharRect(aEnd, *pRedl->End(), &aTmpState);
                             if (aStart.Top() != aEnd.Top() || aStart.Bottom() != aEnd.Bottom())
                             {
-                                aStart.Left(pFrame->Frame().Left());
-                                aEnd.Right(pFrame->Frame().Right());
+                                aStart.Left(pFrame->getSwFrame().Left());
+                                aEnd.Right(pFrame->getSwFrame().Right());
                             }
                             *pFieldRect = aStart.Union(aEnd);
                         }
@@ -1516,7 +1516,7 @@ bool SwCursorShell::GetContentAtPos( const Point& rPt,
 
                     if( aTmpState.m_bPosCorr )
                     {
-                        if( pF && !pF->Frame().IsInside( aPt ))
+                        if( pF && !pF->getSwFrame().IsInside( aPt ))
                             pF = nullptr;
                     }
                     else if( !pF )
@@ -1551,8 +1551,8 @@ bool SwCursorShell::GetContentAtPos( const Point& rPt,
                         {
                             if( pFieldRect )
                             {
-                                *pFieldRect = pF->Prt();
-                                *pFieldRect += pF->Frame().Pos();
+                                *pFieldRect = pF->getSwPrint();
+                                *pFieldRect += pF->getSwFrame().Pos();
                             }
                             rContentAtPos.pFndTextAttr = nullptr;
                             rContentAtPos.aFnd.pAttr = pItem;
diff --git a/sw/source/core/crsr/swcrsr.cxx b/sw/source/core/crsr/swcrsr.cxx
index ae04aaa030e7..a3b08fcf80f1 100644
--- a/sw/source/core/crsr/swcrsr.cxx
+++ b/sw/source/core/crsr/swcrsr.cxx
@@ -338,14 +338,14 @@ bool SwCursor::IsSelOvr( SwCursorSelOverFlags eFlags )
     {
         const SwContentFrame* pFrame = static_cast<const SwContentNode*>(pNd)->getLayoutFrame( pDoc->getIDocumentLayoutAccess().GetCurrentLayout() );
         if ( (SwCursorSelOverFlags::ChangePos & eFlags)   //allowed to change position if it's a bad one
-            && pFrame && pFrame->IsValid() && !pFrame->Frame().Height()     //a bad zero height position
+            && pFrame && pFrame->IsValid() && !pFrame->getSwFrame().Height()     //a bad zero height position
             && !InputFieldAtPos(GetPoint()) )                       //unless it's a (vertical) input field
         {
             // skip to the next/prev valid paragraph with a layout
             SwNodeIndex& rPtIdx = GetPoint()->nNode;
             bool bGoNxt = m_pSavePos->nNode < rPtIdx.GetIndex();
             while( nullptr != ( pFrame = ( bGoNxt ? pFrame->GetNextContentFrame() : pFrame->GetPrevContentFrame() ))
-                   && 0 == pFrame->Frame().Height() )
+                   && 0 == pFrame->getSwFrame().Height() )
                 ;
 
             // #i72394# skip to prev/next valid paragraph with a layout in case
@@ -354,7 +354,7 @@ bool SwCursor::IsSelOvr( SwCursorSelOverFlags eFlags )
             {
                 bGoNxt = !bGoNxt;
                 pFrame = static_cast<const SwContentNode*>(pNd)->getLayoutFrame( pDoc->getIDocumentLayoutAccess().GetCurrentLayout() );
-                while ( pFrame && 0 == pFrame->Frame().Height() )
+                while ( pFrame && 0 == pFrame->getSwFrame().Height() )
                 {
                     pFrame = bGoNxt ? pFrame->GetNextContentFrame()
                         :   pFrame->GetPrevContentFrame();
@@ -1800,8 +1800,8 @@ bool SwCursor::UpDown( bool bUp, sal_uInt16 nCnt,
             aPt = aTmpRect.Pos();
 
             nUpDownX = pFrame->IsVertical() ?
-                aPt.getY() - pFrame->Frame().Top() :
-                aPt.getX() - pFrame->Frame().Left();
+                aPt.getY() - pFrame->getSwFrame().Top() :
+                aPt.getX() - pFrame->getSwFrame().Left();
         }
 
         // It is allowed to move footnotes in other footnotes but not sections
@@ -1853,13 +1853,13 @@ bool SwCursor::UpDown( bool bUp, sal_uInt16 nCnt,
                 {
                     aPt.setX(aTmpRect.Center().getX());
                     pFrame->Calc(pFrame->getRootFrame()->GetCurrShell()->GetOut());
-                    aPt.setY(pFrame->Frame().Top() + nUpDownX);
+                    aPt.setY(pFrame->getSwFrame().Top() + nUpDownX);
                 }
                 else
                 {
                     aPt.setY(aTmpRect.Center().getY());
                     pFrame->Calc(pFrame->getRootFrame()->GetCurrShell()->GetOut());
-                    aPt.setX(pFrame->Frame().Left() + nUpDownX);
+                    aPt.setX(pFrame->getSwFrame().Left() + nUpDownX);
                 }
                 pFrame->GetCursorOfst( GetPoint(), aPt, &eTmpState );
             }
diff --git a/sw/source/core/crsr/trvlcol.cxx b/sw/source/core/crsr/trvlcol.cxx
index a62c6ebb37e5..9f5bfd1d1def 100644
--- a/sw/source/core/crsr/trvlcol.cxx
+++ b/sw/source/core/crsr/trvlcol.cxx
@@ -81,11 +81,11 @@ bool SwCursorShell::MoveColumn( SwWhichColumn fnWhichCol, SwPosColumn fnPosCol )
 
                 pCnt->Calc(GetOut());
 
-                Point aPt( pCnt->Frame().Pos() + pCnt->Prt().Pos() );
+                Point aPt( pCnt->getSwFrame().Pos() + pCnt->getSwPrint().Pos() );
                 if( fnPosCol == GetColumnEnd )
                 {
-                    aPt.setX(aPt.getX() + pCnt->Prt().Width());
-                    aPt.setY(aPt.getY() + pCnt->Prt().Height());
+                    aPt.setX(aPt.getX() + pCnt->getSwPrint().Width());
+                    aPt.setY(aPt.getY() + pCnt->getSwPrint().Height());
                 }
 
                 pCnt->GetCursorOfst( m_pCurrentCursor->GetPoint(), aPt );
diff --git a/sw/source/core/crsr/trvlfnfl.cxx b/sw/source/core/crsr/trvlfnfl.cxx
index 05685aae6a33..828ed251f069 100644
--- a/sw/source/core/crsr/trvlfnfl.cxx
+++ b/sw/source/core/crsr/trvlfnfl.cxx
@@ -317,13 +317,13 @@ bool SwCursorShell::GotoFlyAnchor()
 
     // jump in BodyFrame closest to FlyFrame
     SwRect aTmpRect( m_aCharRect );
-    if( !pFrame->Frame().IsInside( aTmpRect ))
-        aTmpRect = pFrame->Frame();
+    if( !pFrame->getSwFrame().IsInside( aTmpRect ))
+        aTmpRect = pFrame->getSwFrame();
     Point aPt( aTmpRect.Left(), aTmpRect.Top() +
                 ( aTmpRect.Bottom() - aTmpRect.Top() ) / 2 );
-    aPt.setX(aPt.getX() > (pFrame->Frame().Left() + (pFrame->Frame().SSize().Width() / 2 ))
-                ? pFrame->Frame().Right()
-                : pFrame->Frame().Left());
+    aPt.setX(aPt.getX() > (pFrame->getSwFrame().Left() + (pFrame->getSwFrame().SSize().Width() / 2 ))
+                ? pFrame->getSwFrame().Right()
+                : pFrame->getSwFrame().Left());
 
     const SwPageFrame* pPageFrame = pFrame->FindPageFrame();
     const SwContentFrame* pFndFrame = pPageFrame->GetContentPos( aPt, false, true );
diff --git a/sw/source/core/crsr/trvltbl.cxx b/sw/source/core/crsr/trvltbl.cxx
index da0945f54a4d..941588c2982b 100644
--- a/sw/source/core/crsr/trvltbl.cxx
+++ b/sw/source/core/crsr/trvltbl.cxx
@@ -242,8 +242,8 @@ bool SwCursorShell::SelTableRowOrCol( bool bRow, bool bRowSimple )
     // with the repeated headlines check in UpdateCursor():
     if ( !bRow )
         m_pTableCursor->GetPtPos() = pMasterTabFrame->IsVertical()
-                                   ? pMasterTabFrame->Frame().TopRight()
-                                   : pMasterTabFrame->Frame().TopLeft();
+                                   ? pMasterTabFrame->getSwFrame().TopRight()
+                                   : pMasterTabFrame->getSwFrame().TopLeft();
 
     UpdateCursor();
     return true;
@@ -275,7 +275,7 @@ bool SwCursorShell::SelTable()
     m_pTableCursor->SetMark();
     // set MkPos 'close' to the master table, otherwise we might get problems
     // with the repeated headlines check in UpdateCursor():
-    m_pTableCursor->GetMkPos() = pMasterTabFrame->IsVertical() ? pMasterTabFrame->Frame().TopRight() : pMasterTabFrame->Frame().TopLeft();
+    m_pTableCursor->GetMkPos() = pMasterTabFrame->IsVertical() ? pMasterTabFrame->getSwFrame().TopRight() : pMasterTabFrame->getSwFrame().TopLeft();
     m_pTableCursor->GetPoint()->nNode = *pTableNd->EndOfSectionNode();
     m_pTableCursor->Move( fnMoveBackward, GoInContent );
     UpdateCursor();
diff --git a/sw/source/core/crsr/viscrs.cxx b/sw/source/core/crsr/viscrs.cxx
index 3781029ff74f..52cd65acfd5d 100644
--- a/sw/source/core/crsr/viscrs.cxx
+++ b/sw/source/core/crsr/viscrs.cxx
@@ -779,7 +779,7 @@ void SwShellTableCursor::FillRects()
     bool bStart = true;
     SwRegionRects aReg( GetShell()->VisArea() );
     if (comphelper::LibreOfficeKit::isActive())
-        aReg = GetShell()->getIDocumentLayoutAccess().GetCurrentLayout()->Frame();
+        aReg = GetShell()->getIDocumentLayoutAccess().GetCurrentLayout()->getSwFrame();
     SwNodes& rNds = GetDoc()->GetNodes();
     SwFrame* pEndFrame = nullptr;
     for (size_t n = 0; n < m_SelectedBoxes.size(); ++n)
@@ -812,13 +812,13 @@ void SwShellTableCursor::FillRects()
 
         while ( pFrame )
         {
-            if( aReg.GetOrigin().IsOver( pFrame->Frame() ) )
+            if( aReg.GetOrigin().IsOver( pFrame->getSwFrame() ) )
             {
-                aReg -= pFrame->Frame();
+                aReg -= pFrame->getSwFrame();
                 if (bStart)
                 {
                     bStart = false;
-                    m_aStart = SwRect(pFrame->Frame().Left(), pFrame->Frame().Top(), 1, pFrame->Frame().Height());
+                    m_aStart = SwRect(pFrame->getSwFrame().Left(), pFrame->getSwFrame().Top(), 1, pFrame->getSwFrame().Height());
                 }
             }
 
@@ -827,7 +827,7 @@ void SwShellTableCursor::FillRects()
         }
     }
     if (pEndFrame)
-        m_aEnd = SwRect(pEndFrame->Frame().Right(), pEndFrame->Frame().Top(), 1, pEndFrame->Frame().Height());
+        m_aEnd = SwRect(pEndFrame->getSwFrame().Right(), pEndFrame->getSwFrame().Top(), 1, pEndFrame->getSwFrame().Height());
     aReg.Invert();
     insert( begin(), aReg.begin(), aReg.end() );
 }
@@ -857,7 +857,7 @@ bool SwShellTableCursor::IsInside( const Point& rPt ) const
         while( pFrame && !pFrame->IsCellFrame() )
             pFrame = pFrame->GetUpper();
         OSL_ENSURE( pFrame, "Node not in a table" );
-        if( pFrame && pFrame->Frame().IsInside( rPt ) )
+        if( pFrame && pFrame->getSwFrame().IsInside( rPt ) )
             return true;
     }
     return false;
diff --git a/sw/source/core/doc/DocumentDrawModelManager.cxx b/sw/source/core/doc/DocumentDrawModelManager.cxx
index 873d8c9d1d98..7e54c5ac41ea 100644
--- a/sw/source/core/doc/DocumentDrawModelManager.cxx
+++ b/sw/source/core/doc/DocumentDrawModelManager.cxx
@@ -145,7 +145,7 @@ void DocumentDrawModelManager::InitDrawModel()
                 // mpDrawModel->InsertPage( pDrawPage );
                 SdrPage* pDrawPage = pMasterPage;
                 pRoot->SetDrawPage( pDrawPage );
-                pDrawPage->SetSize( pRoot->Frame().SSize() );
+                pDrawPage->SetSize( pRoot->getSwFrame().SSize() );
             }
         }
     }
diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx
index 9239aa5cf809..78b5aadf2c6d 100644
--- a/sw/source/core/doc/doc.cxx
+++ b/sw/source/core/doc/doc.cxx
@@ -668,7 +668,7 @@ void SwDoc::CalculatePagesForPrinting(
         const bool bPrintThisPage =
             ( (bPrintRightPages && pStPage->OnRightPage()) ||
               (bPrintLeftPages && !pStPage->OnRightPage()) ) &&
-            ( bPrintEmptyPages || pStPage->Frame().Height() );
+            ( bPrintEmptyPages || pStPage->getSwFrame().Height() );
 
         if (bPrintThisPage)
         {
diff --git a/sw/source/core/doc/docfly.cxx b/sw/source/core/doc/docfly.cxx
index 49d1dc7c16e9..064df47eae6f 100644
--- a/sw/source/core/doc/docfly.cxx
+++ b/sw/source/core/doc/docfly.cxx
@@ -223,7 +223,7 @@ static Point lcl_FindAnchorLayPos( SwDoc& rDoc, const SwFormatAnchor& rAnch,
             {
                 const SwFrame* pOld = static_cast<const SwFlyFrameFormat*>(pFlyFormat)->GetFrame( &aRet );
                 if( pOld )
-                    aRet = pOld->Frame().Pos();
+                    aRet = pOld->getSwFrame().Pos();
             }
             break;
 
@@ -235,7 +235,7 @@ static Point lcl_FindAnchorLayPos( SwDoc& rDoc, const SwFormatAnchor& rAnch,
                 const SwContentNode* pNd = pPos->nNode.GetNode().GetContentNode();
                 const SwFrame* pOld = pNd ? pNd->getLayoutFrame( rDoc.getIDocumentLayoutAccess().GetCurrentLayout(), &aRet, nullptr, false ) : nullptr;
                 if( pOld )
-                    aRet = pOld->Frame().Pos();
+                    aRet = pOld->getSwFrame().Pos();
             }
             break;
 
@@ -246,7 +246,7 @@ static Point lcl_FindAnchorLayPos( SwDoc& rDoc, const SwFormatAnchor& rAnch,
                                                 nNode.GetNode().GetFlyFormat());
                 const SwFrame* pOld = pFormat ? pFormat->GetFrame( &aRet ) : nullptr;
                 if( pOld )
-                    aRet = pOld->Frame().Pos();
+                    aRet = pOld->getSwFrame().Pos();
             }
             break;
 
@@ -258,7 +258,7 @@ static Point lcl_FindAnchorLayPos( SwDoc& rDoc, const SwFormatAnchor& rAnch,
                                     pPage =static_cast<const SwPageFrame*>(pPage->GetNext()) )
                     if( i == nPgNum )
                     {
-                        aRet = pPage->Frame().Pos();
+                        aRet = pPage->getSwFrame().Pos();
                         break;
                     }
             }
@@ -840,7 +840,7 @@ bool SwDoc::ChgAnchor( const SdrMarkList& _rMrkList,
             case RndStdIds::FLY_AT_PAGE:
                 {
                     pNewAnchorFrame = getIDocumentLayoutAccess().GetCurrentLayout()->Lower();
-                    while ( pNewAnchorFrame && !pNewAnchorFrame->Frame().IsInside( aPt ) )
+                    while ( pNewAnchorFrame && !pNewAnchorFrame->getSwFrame().IsInside( aPt ) )
                         pNewAnchorFrame = pNewAnchorFrame->GetNext();
                     if ( !pNewAnchorFrame )
                         continue;
@@ -873,7 +873,7 @@ bool SwDoc::ChgAnchor( const SdrMarkList& _rMrkList,
                     aPoint.setX(aPoint.getX() - 1);    // Do not load in the DrawObj!
                     aNewAnch.SetType( RndStdIds::FLY_AS_CHAR );
                     SwPosition aPos( *static_cast<const SwContentFrame*>(pNewAnchorFrame)->GetNode() );
-                    if ( pNewAnchorFrame->Frame().IsInside( aPoint ) )
+                    if ( pNewAnchorFrame->getSwFrame().IsInside( aPoint ) )
                     {
                     // We need to find a TextNode, because only there we can anchor a
                     // content-bound DrawObject.
@@ -884,7 +884,7 @@ bool SwDoc::ChgAnchor( const SdrMarkList& _rMrkList,
                     {
                         SwContentNode &rCNd = const_cast<SwContentNode&>(
                             *static_cast<const SwContentFrame*>(pNewAnchorFrame)->GetNode());
-                        if ( pNewAnchorFrame->Frame().Bottom() < aPt.Y() )
+                        if ( pNewAnchorFrame->getSwFrame().Bottom() < aPt.Y() )
                             rCNd.MakeStartIndex( &aPos.nContent );
                         else
                             rCNd.MakeEndIndex( &aPos.nContent );
@@ -1096,7 +1096,7 @@ SwChainRet SwDoc::Chain( SwFrameFormat &rSource, const SwFrameFormat &rDest )
         {
             SwFlyFrame *pFly = SwIterator<SwFlyFrame,SwFormat>( rSource ).First();
             if ( pFly )
-                aSize.SetHeight( pFly->Frame().Height() );
+                aSize.SetHeight( pFly->getSwFrame().Height() );
             aSize.SetHeightSizeType( ATT_FIX_SIZE );
             aSet.Put( aSize );
         }
diff --git a/sw/source/core/doc/htmltbl.cxx b/sw/source/core/doc/htmltbl.cxx
index 9ffef39248a3..053446edff4c 100644
--- a/sw/source/core/doc/htmltbl.cxx
+++ b/sw/source/core/doc/htmltbl.cxx
@@ -340,7 +340,7 @@ sal_uInt16 SwHTMLTableLayout::GetBrowseWidth( const SwDoc& rDoc )
     {
         const SwFrame *pPageFrame = pRootFrame->GetLower();
         if( pPageFrame )
-            return (sal_uInt16)pPageFrame->Prt().Width();
+            return (sal_uInt16)pPageFrame->getSwPrint().Width();
     }
 
     // #i91658#
@@ -364,13 +364,13 @@ sal_uInt16 SwHTMLTableLayout::GetBrowseWidthByTabFrame(
         // For paragraph-bound frames we don't respect paragraph indents.
         const SwFrame *pAnchor = static_cast<const SwFlyFrame *>(pUpper)->GetAnchorFrame();
         if( pAnchor->IsTextFrame() )
-            nWidth = pAnchor->Frame().Width();
+            nWidth = pAnchor->getSwFrame().Width();
         else
-            nWidth = pAnchor->Prt().Width();
+            nWidth = pAnchor->getSwPrint().Width();
     }
     else
     {
-        nWidth = pUpper->Prt().Width();
+        nWidth = pUpper->getSwPrint().Width();
     }
 
     SwTwips nUpperDummy = 0;
diff --git a/sw/source/core/doc/notxtfrm.cxx b/sw/source/core/doc/notxtfrm.cxx
index 172187fc83b2..18fa63ca2b99 100644
--- a/sw/source/core/doc/notxtfrm.cxx
+++ b/sw/source/core/doc/notxtfrm.cxx
@@ -211,7 +211,7 @@ static void lcl_ClearArea( const SwFrame &rFrame,
 
 void SwNoTextFrame::Paint(vcl::RenderContext& rRenderContext, SwRect const& rRect, SwPrintData const*const) const
 {
-    if ( Frame().IsEmpty() )
+    if ( getSwFrame().IsEmpty() )
         return;
 
     const SwViewShell* pSh = getRootFrame()->GetCurrShell();
@@ -227,7 +227,7 @@ void SwNoTextFrame::Paint(vcl::RenderContext& rRenderContext, SwRect const& rRec
                 GetRealURL( *static_cast<const SwGrfNode*>(pNd), aText );
             if( aText.isEmpty() )
                 aText = FindFlyFrame()->GetFormat()->GetName();
-            lcl_PaintReplacement( Frame(), aText, *pSh, this, false );
+            lcl_PaintReplacement( getSwFrame(), aText, *pSh, this, false );
         }
         return;
     }
@@ -263,10 +263,10 @@ void SwNoTextFrame::Paint(vcl::RenderContext& rRenderContext, SwRect const& rRec
     SwRect aOrigPaint( rRect );
     if ( HasAnimation() && pSh->GetWin() )
     {
-        aOrigPaint = Frame(); aOrigPaint += Prt().Pos();
+        aOrigPaint = getSwFrame(); aOrigPaint += getSwPrint().Pos();
     }
 
-    SwRect aGrfArea( Frame() );
+    SwRect aGrfArea( getSwFrame() );
     SwRect aPaintArea( aGrfArea );
 
     // In case the picture fly frm was clipped, render it with the origin
@@ -286,13 +286,13 @@ void SwNoTextFrame::Paint(vcl::RenderContext& rRenderContext, SwRect const& rRec
             }
 
             if( bGetUnclippedFrame )
-                aGrfArea = SwRect( Frame().Pos( ), pFly->GetUnclippedFrame( ).SSize( ) );
+                aGrfArea = SwRect( getSwFrame().Pos( ), pFly->GetUnclippedFrame( ).SSize( ) );
         }
     }
 
     aPaintArea.Intersection_( aOrigPaint );
 
-    SwRect aNormal( Frame().Pos() + Prt().Pos(), Prt().SSize() );
+    SwRect aNormal( getSwFrame().Pos() + getSwPrint().Pos(), getSwPrint().SSize() );
     aNormal.Justify(); // Normalized rectangle for the comparisons
 
     if( aPaintArea.IsOver( aNormal ) )
@@ -374,7 +374,7 @@ void SwNoTextFrame::GetGrfArea( SwRect &rRect, SwRect* pOrigRect ) const
     Size aOrigSz( static_cast<const SwNoTextNode*>(GetNode())->GetTwipSize() );
     if ( !aOrigSz.Width() )
     {
-        aOrigSz.Width() = Prt().Width();
+        aOrigSz.Width() = getSwPrint().Width();
         nLeftCrop  = -rCrop.GetLeft();
         nRightCrop = -rCrop.GetRight();
     }
@@ -382,7 +382,7 @@ void SwNoTextFrame::GetGrfArea( SwRect &rRect, SwRect* pOrigRect ) const
     {
         nLeftCrop = std::max( aOrigSz.Width() -
                             (rCrop.GetRight() + rCrop.GetLeft()), long(1) );
-        const double nScale = double(Prt().Width())  / double(nLeftCrop);
+        const double nScale = double(getSwPrint().Width())  / double(nLeftCrop);
         nLeftCrop  = long(nScale * -rCrop.GetLeft() );
         nRightCrop = long(nScale * -rCrop.GetRight() );
     }
@@ -397,14 +397,14 @@ void SwNoTextFrame::GetGrfArea( SwRect &rRect, SwRect* pOrigRect ) const
 
     if( !aOrigSz.Height() )
     {
-        aOrigSz.Height() = Prt().Height();
+        aOrigSz.Height() = getSwPrint().Height();
         nTopCrop   = -rCrop.GetTop();
         nBottomCrop= -rCrop.GetBottom();
     }
     else
     {
         nTopCrop = std::max( aOrigSz.Height() - (rCrop.GetTop() + rCrop.GetBottom()), long(1) );
-        const double nScale = double(Prt().Height()) / double(nTopCrop);
+        const double nScale = double(getSwPrint().Height()) / double(nTopCrop);
         nTopCrop   = long(nScale * -rCrop.GetTop() );
         nBottomCrop= long(nScale * -rCrop.GetBottom() );
     }
@@ -417,9 +417,9 @@ void SwNoTextFrame::GetGrfArea( SwRect &rRect, SwRect* pOrigRect ) const
         nBottomCrop= nTmpCrop;
     }
 
-    Size  aVisSz( Prt().SSize() );
+    Size  aVisSz( getSwPrint().SSize() );
     Size  aGrfSz( aVisSz );
-    Point aVisPt( Frame().Pos() + Prt().Pos() );
+    Point aVisPt( getSwFrame().Pos() + getSwPrint().Pos() );
     Point aGrfPt( aVisPt );
 
     // Set the "visible" rectangle first
@@ -465,7 +465,7 @@ const Size& SwNoTextFrame::GetSize() const
     const SwFrame *pFly = FindFlyFrame();
     if( !pFly )
         pFly = this;
-    return pFly->Prt().SSize();
+    return pFly->getSwPrint().SSize();
 }
 
 void SwNoTextFrame::MakeAll(vcl::RenderContext* /*pRenderContext*/)
@@ -479,7 +479,10 @@ void SwNoTextFrame::MakeAll(vcl::RenderContext* /*pRenderContext*/)
         MakePos();
 
         if ( !mbValidSize )
-            Frame().Width( GetUpper()->Prt().Width() );
+        {
+            SwFrameRect::FrameWriteAccess aFrm(*this);
+            aFrm.Width( GetUpper()->getSwPrint().Width() );
+        }
 
         MakePrtArea( rAttrs );
 
@@ -497,12 +500,12 @@ void SwNoTextFrame::Format( vcl::RenderContext* /*pRenderContext*/, const SwBord
 
     // Did the height change?
     SwTwips nChgHght = IsVertical() ?
-        (SwTwips)(aNewSize.Width() - Prt().Width()) :
-        (SwTwips)(aNewSize.Height() - Prt().Height());
+        (SwTwips)(aNewSize.Width() - getSwPrint().Width()) :
+        (SwTwips)(aNewSize.Height() - getSwPrint().Height());
     if( nChgHght > 0)
         Grow( nChgHght );
     else if( nChgHght < 0)
-        Shrink( std::min(Prt().Height(), -nChgHght) );
+        Shrink( std::min(getSwPrint().Height(), -nChgHght) );
 }
 
 bool SwNoTextFrame::GetCharRect( SwRect &rRect, const SwPosition& rPos,
@@ -512,10 +515,10 @@ bool SwNoTextFrame::GetCharRect( SwRect &rRect, const SwPosition& rPos,
         return false;
 
     Calc(getRootFrame()->GetCurrShell()->GetOut());
-    SwRect aFrameRect( Frame() );
+    SwRect aFrameRect( getSwFrame() );
     rRect = aFrameRect;
-    rRect.Pos( Frame().Pos() + Prt().Pos() );
-    rRect.SSize( Prt().SSize() );
+    rRect.Pos( getSwFrame().Pos() + getSwPrint().Pos() );
+    rRect.SSize( getSwPrint().SSize() );
 
     rRect.Justify();
 
@@ -555,7 +558,7 @@ bool SwNoTextFrame::GetCursorOfst(SwPosition* pPos, Point& ,
     if( pFly && pFly->GetFormat()->GetSurround().IsContour() )\
     {\
         ClrContourCache( pFly->GetVirtDrawObj() );\
-        pFly->NotifyBackground( FindPageFrame(), Prt(), PREP_FLY_ATTR_CHG );\
+        pFly->NotifyBackground( FindPageFrame(), getSwPrint(), PREP_FLY_ATTR_CHG );\
     }\
 }
 
@@ -591,7 +594,7 @@ void SwNoTextFrame::Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew )
             {
                 GraphicAttr aAttr;
                 if( pNd->GetGrfObj().IsCached( pVSh->GetOut(),
-                            Prt().SSize(), &pNd->GetGraphicAttr( aAttr, this ) ))
+                            getSwPrint().SSize(), &pNd->GetGraphicAttr( aAttr, this ) ))
                 {
                     for(SwViewShell& rShell : pVSh->GetRingContainer())
                     {
@@ -599,9 +602,9 @@ void SwNoTextFrame::Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew )
                         if( rShell.GetWin() )
                         {
                             if( rShell.IsPreview() )
-                                ::RepaintPagePreview( &rShell, Frame().SVRect() );
+                                ::RepaintPagePreview( &rShell, getSwFrame().SVRect() );
                             else
-                                rShell.GetWin()->Invalidate( Frame().SVRect() );
+                                rShell.GetWin()->Invalidate( getSwFrame().SVRect() );
                         }
                     }
                 }
@@ -665,7 +668,7 @@ void SwNoTextFrame::Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew )
 
             CLEARCACHE
 
-            SwRect aRect( Frame() );
+            SwRect aRect( getSwFrame() );
 
             SwViewShell *pVSh = pNd->GetDoc()->getIDocumentLayoutAccess().GetCurrentViewShell();
             if( !pVSh )
@@ -1097,7 +1100,7 @@ void SwNoTextFrame::PaintPicture( vcl::RenderContext* pOut, const SwRect &rGrfAr
             {
                 const SwFlyFrame *pFly = FindFlyFrame();
                 assert( pFly != nullptr );
-                static_cast<SwFEShell*>(pShell)->ConnectObj( pOLENd->GetOLEObj().GetObject(), pFly->Prt(), pFly->Frame());
+                static_cast<SwFEShell*>(pShell)->ConnectObj( pOLENd->GetOLEObj().GetObject(), pFly->getSwPrint(), pFly->getSwFrame());
             }
         }
 
diff --git a/sw/source/core/doc/tblrwcl.cxx b/sw/source/core/doc/tblrwcl.cxx
index f0eecddda7cc..7d6d9087c42d 100644
--- a/sw/source/core/doc/tblrwcl.cxx
+++ b/sw/source/core/doc/tblrwcl.cxx
@@ -1060,7 +1060,7 @@ bool SwTable::OldSplitRow( SwDoc* pDoc, const SwSelBoxes& rBoxes, sal_uInt16 nCn
             const SwRowFrame* pRow = GetRowFrame( *pSelBox->GetUpper() );
             OSL_ENSURE( pRow, "Where is the SwTableLine's Frame?" );
             SwRectFnSet aRectFnSet(pRow);
-            pRowHeights[ n ] = aRectFnSet.GetHeight(pRow->Frame());
+            pRowHeights[ n ] = aRectFnSet.GetHeight(pRow->getSwFrame());
         }
     }
 
@@ -3549,9 +3549,9 @@ bool SwTable::SetColWidth( SwTableBox& rAktBox, TableChgWidthHeightType eType,
                     {
                         SwTabFrame* pTabFrame = SwIterator<SwTabFrame,SwFormat>( *GetFrameFormat() ).First();
                         if( pTabFrame &&
-                            pTabFrame->Prt().Width() != rSz.GetWidth() )
+                            pTabFrame->getSwPrint().Width() != rSz.GetWidth() )
                         {
-                            nFrameWidth = pTabFrame->Prt().Width();
+                            nFrameWidth = pTabFrame->getSwPrint().Width();
                             if( bBigger )
                                 nFrameWidth += nAbsDiff;
                             else
@@ -3904,7 +3904,7 @@ void SetLineHeight( SwTableLine& rLine, SwTwips nOldHeight, SwTwips nNewHeight,
 
     SwFrameFormat* pFormat = rLine.ClaimFrameFormat();
 
-    SwTwips nMyNewH, nMyOldH = pLineFrame->Frame().Height();
+    SwTwips nMyNewH, nMyOldH = pLineFrame->getSwFrame().Height();
     if( !nOldHeight )                       // the BaseLine and absolute
         nMyNewH = nMyOldH + nNewHeight;
     else
@@ -3967,7 +3967,7 @@ static bool lcl_SetOtherLineHeight( SwTableLine* pLine, CR_SetLineHeight& rParam
 
             if( TableChgMode::FixedWidthChangeProp == rParam.nMode )
             {
-                nDist *= pLineFrame->Frame().Height();
+                nDist *= pLineFrame->getSwFrame().Height();
                 nDist /= rParam.nMaxHeight;
             }
             bRet = nDist <= CalcRowRstHeight( pLineFrame );
@@ -3987,7 +3987,7 @@ static bool lcl_SetOtherLineHeight( SwTableLine* pLine, CR_SetLineHeight& rParam
             // via the max height.
             if( (true) /*!rParam.bBigger*/ )
             {
-                nDist *= pLineFrame->Frame().Height();
+                nDist *= pLineFrame->getSwFrame().Height();
                 nDist /= rParam.nMaxHeight;
             }
             else
@@ -4152,7 +4152,7 @@ bool SwTable::SetRowHeight( SwTableBox& rAktBox, TableChgWidthHeightType eType,
         {
             if( bInsDel && !bBigger )       // By how much does it get higher?
             {
-                nAbsDiff = GetRowFrame( *pBaseLine )->Frame().Height();
+                nAbsDiff = GetRowFrame( *pBaseLine )->getSwFrame().Height();
             }
 
             if( TableChgMode::VarWidthChangeAbs == m_eTableChgMode )
@@ -4220,7 +4220,7 @@ bool SwTable::SetRowHeight( SwTableBox& rAktBox, TableChgWidthHeightType eType,
                         SwLayoutFrame* pLineFrame = GetRowFrame( *(*pLines)[ n ] );
                         OSL_ENSURE( pLineFrame, "Where is the Frame from the SwTableLine??" );
                         aParam.nMaxSpace += CalcRowRstHeight( pLineFrame );
-                        aParam.nMaxHeight += pLineFrame->Frame().Height();
+                        aParam.nMaxHeight += pLineFrame->getSwFrame().Height();
                     }
                     if( bBigger && aParam.nMaxSpace < nAbsDiff )
                         bRet = false;
diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx
index 2b03155cce3a..5571ae35ae83 100644
--- a/sw/source/core/docnode/ndtbl.cxx
+++ b/sw/source/core/docnode/ndtbl.cxx
@@ -1043,8 +1043,8 @@ SwTableNode* SwNodes::TextToTable( const SwNodeRange& rRange, sal_Unicode cCh,
 
                 aPosArr.push_back(
                                 static_cast<sal_uInt16>(aFInfo.GetFrame()->IsVertical() ?
-                                aFInfo.GetFrame()->Prt().Bottom() :
-                                aFInfo.GetFrame()->Prt().Right()) );
+                                aFInfo.GetFrame()->getSwPrint().Bottom() :
+                                aFInfo.GetFrame()->getSwPrint().Right()) );
 
             }
         }
@@ -2511,14 +2511,14 @@ void SwDoc::GetTabCols( SwTabCols &rFill, const SwCellFrame* pBoxFrame )
     // Set fixed points, LeftMin in Document coordinates, all others relative
     SwRectFnSet aRectFnSet(pTab);
     const SwPageFrame* pPage = pTab->FindPageFrame();
-    const sal_uLong nLeftMin = aRectFnSet.GetLeft(pTab->Frame()) -
-                           aRectFnSet.GetLeft(pPage->Frame());
-    const sal_uLong nRightMax = aRectFnSet.GetRight(pTab->Frame()) -
-                            aRectFnSet.GetLeft(pPage->Frame());
+    const sal_uLong nLeftMin = aRectFnSet.GetLeft(pTab->getSwFrame()) -
+                           aRectFnSet.GetLeft(pPage->getSwFrame());
+    const sal_uLong nRightMax = aRectFnSet.GetRight(pTab->getSwFrame()) -
+                            aRectFnSet.GetLeft(pPage->getSwFrame());
 
     rFill.SetLeftMin ( nLeftMin );
-    rFill.SetLeft    ( aRectFnSet.GetLeft(pTab->Prt()) );
-    rFill.SetRight   ( aRectFnSet.GetRight(pTab->Prt()));
+    rFill.SetLeft    ( aRectFnSet.GetLeft(pTab->getSwPrint()) );
+    rFill.SetRight   ( aRectFnSet.GetRight(pTab->getSwPrint()));
     rFill.SetRightMax( nRightMax - nLeftMin );
 
     pTab->GetTable()->GetTabCols( rFill, pBox );
@@ -2590,10 +2590,10 @@ void SwDoc::GetTabRows( SwTabCols &rFill, const SwCellFrame* pBoxFrame )
     SwRectFnSet aRectFnSet(pTab);
     const SwPageFrame* pPage = pTab->FindPageFrame();
     const long nLeftMin  = ( aRectFnSet.IsVert() ?
-                             pTab->GetPrtLeft() - pPage->Frame().Left() :
-                             pTab->GetPrtTop() - pPage->Frame().Top() );
+                             pTab->GetPrtLeft() - pPage->getSwFrame().Left() :
+                             pTab->GetPrtTop() - pPage->getSwFrame().Top() );
     const long nLeft     = aRectFnSet.IsVert() ? LONG_MAX : 0;
-    const long nRight    = aRectFnSet.GetHeight(pTab->Prt());
+    const long nRight    = aRectFnSet.GetHeight(pTab->getSwPrint());
     const long nRightMax = aRectFnSet.IsVert() ? nRight : LONG_MAX;
 
     rFill.SetLeftMin( nLeftMin );
@@ -2615,8 +2615,8 @@ void SwDoc::GetTabRows( SwTabCols &rFill, const SwCellFrame* pBoxFrame )
         if ( pFrame->IsCellFrame() && pFrame->FindTabFrame() == pTab )
         {
             // upper and lower borders of current cell frame:
-            long nUpperBorder = aRectFnSet.GetTop(pFrame->Frame());
-            long nLowerBorder = aRectFnSet.GetBottom(pFrame->Frame());
+            long nUpperBorder = aRectFnSet.GetTop(pFrame->getSwFrame());
+            long nLowerBorder = aRectFnSet.GetBottom(pFrame->getSwFrame());
 
             // get boundaries for nUpperBorder:
             aIter = aBoundaries.find( nUpperBorder );
@@ -2709,7 +2709,7 @@ void SwDoc::SetTabCols( const SwTabCols &rNew, bool bCurRowOnly,
     // #i17174# - With fix for #i9040# the shadow size is taken
     // from the table width. Thus, add its left and right size to current table
     // printing area width in order to get the correct table size attribute.
-    SwTwips nPrtWidth = aRectFnSet.GetWidth(pTab->Prt());
+    SwTwips nPrtWidth = aRectFnSet.GetWidth(pTab->getSwPrint());
     {
         SvxShadowItem aShadow( rTab.GetFrameFormat()->GetShadow() );
         nPrtWidth += aShadow.CalcShadowSpace( SvxShadowItemSide::LEFT ) +
@@ -2725,15 +2725,15 @@ void SwDoc::SetTabCols( const SwTabCols &rNew, bool bCurRowOnly,
     SwTabCols aOld( rNew.Count() );
 
     const SwPageFrame* pPage = pTab->FindPageFrame();
-    const sal_uLong nLeftMin = aRectFnSet.GetLeft(pTab->Frame()) -
-                           aRectFnSet.GetLeft(pPage->Frame());
-    const sal_uLong nRightMax = aRectFnSet.GetRight(pTab->Frame()) -
-                            aRectFnSet.GetLeft(pPage->Frame());
+    const sal_uLong nLeftMin = aRectFnSet.GetLeft(pTab->getSwFrame()) -
+                           aRectFnSet.GetLeft(pPage->getSwFrame());
+    const sal_uLong nRightMax = aRectFnSet.GetRight(pTab->getSwFrame()) -
+                            aRectFnSet.GetLeft(pPage->getSwFrame());
 
     // Set fixed points, LeftMin in Document coordinates, all others relative
     aOld.SetLeftMin ( nLeftMin );
-    aOld.SetLeft    ( aRectFnSet.GetLeft(pTab->Prt()) );
-    aOld.SetRight   ( aRectFnSet.GetRight(pTab->Prt()));
+    aOld.SetLeft    ( aRectFnSet.GetLeft(pTab->getSwPrint()) );
+    aOld.SetRight   ( aRectFnSet.GetRight(pTab->getSwPrint()));
     aOld.SetRightMax( nRightMax - nLeftMin );
 
     rTab.GetTabCols( aOld, pBox );
@@ -2763,18 +2763,18 @@ void SwDoc::SetTabRows( const SwTabCols &rNew, bool bCurColOnly,
     // Set fixed points, LeftMin in Document coordinates, all others relative
     const SwPageFrame* pPage = pTab->FindPageFrame();
 
-    aOld.SetRight( aRectFnSet.GetHeight(pTab->Prt()) );
+    aOld.SetRight( aRectFnSet.GetHeight(pTab->getSwPrint()) );
     long nLeftMin;
     if ( aRectFnSet.IsVert() )
     {
-        nLeftMin = pTab->GetPrtLeft() - pPage->Frame().Left();
+        nLeftMin = pTab->GetPrtLeft() - pPage->getSwFrame().Left();
         aOld.SetLeft    ( LONG_MAX );
         aOld.SetRightMax( aOld.GetRight() );
 
     }
     else
     {
-        nLeftMin = pTab->GetPrtTop() - pPage->Frame().Top();
+        nLeftMin = pTab->GetPrtTop() - pPage->getSwFrame().Top();
         aOld.SetLeft    ( 0 );
         aOld.SetRightMax( LONG_MAX );
     }
@@ -2819,7 +2819,7 @@ void SwDoc::SetTabRows( const SwTabCols &rNew, bool bCurColOnly,
             {
                 if ( pFrame->IsCellFrame() && pFrame->FindTabFrame() == pTab )
                 {
-                    const long nLowerBorder = aRectFnSet.GetBottom(pFrame->Frame());
+                    const long nLowerBorder = aRectFnSet.GetBottom(pFrame->getSwFrame());
                     const sal_uLong nTabTop = aRectFnSet.GetPrtTop(*pTab);
                     if ( std::abs( aRectFnSet.YInc( nTabTop, nOldRowEnd ) - nLowerBorder ) <= ROWFUZZY )
                     {
@@ -2839,7 +2839,7 @@ void SwDoc::SetTabRows( const SwTabCols &rNew, bool bCurColOnly,
                                 {
                                     // The new row height must not to be calculated from a overlapping box
                                     SwFormatFrameSize aNew( pLine->GetFrameFormat()->GetFrameSize() );
-                                    const long nNewSize = aRectFnSet.GetHeight(pFrame->Frame()) + nDiff;
+                                    const long nNewSize = aRectFnSet.GetHeight(pFrame->getSwFrame()) + nDiff;
                                     if( nNewSize != aNew.GetHeight() )
                                     {
                                         aNew.SetHeight( nNewSize );
diff --git a/sw/source/core/docnode/ndtbl1.cxx b/sw/source/core/docnode/ndtbl1.cxx
index 02390f41dff3..2fbfa06f7878 100644
--- a/sw/source/core/docnode/ndtbl1.cxx
+++ b/sw/source/core/docnode/ndtbl1.cxx
@@ -441,7 +441,7 @@ bool SwDoc::BalanceRowHeight( const SwCursor& rCursor, bool bTstOnly )
                     SwFrame* pFrame = aIter.First();
                     while ( pFrame )
                     {
-                        nHeight = std::max( nHeight, pFrame->Frame().Height() );
+                        nHeight = std::max( nHeight, pFrame->getSwFrame().Height() );
                         pFrame = aIter.Next();
                     }
                 }
@@ -536,7 +536,7 @@ static void lcl_CollectCells( std::vector<SwCellFrame*> &rArr, const SwRect &rUn
         while ( !pCell->IsCellFrame() )
             pCell = pCell->GetUpper();
         OSL_ENSURE( pCell, "Frame is not a Cell" );
-        if ( rUnion.IsOver( pCell->Frame() ) )
+        if ( rUnion.IsOver( pCell->getSwFrame() ) )
             ::InsertCell( rArr, static_cast<SwCellFrame*>(pCell) );
 
         // Make sure the Cell is left (Areas)
@@ -643,17 +643,17 @@ void SwDoc::SetTabBorders( const SwCursor& rCursor, const SfxItemSet& rSet )
                 bool bTopOver, bLeftOver, bRightOver, bBottomOver;
                 if ( bVert )
                 {
-                    bTopOver = pCell->Frame().Right() >= rUnion.Right();
-                    bLeftOver = pCell->Frame().Top() <= rUnion.Top();
-                    bRightOver = pCell->Frame().Bottom() >= rUnion.Bottom();
-                    bBottomOver = pCell->Frame().Left() <= rUnion.Left();
+                    bTopOver = pCell->getSwFrame().Right() >= rUnion.Right();
+                    bLeftOver = pCell->getSwFrame().Top() <= rUnion.Top();
+                    bRightOver = pCell->getSwFrame().Bottom() >= rUnion.Bottom();
+                    bBottomOver = pCell->getSwFrame().Left() <= rUnion.Left();
                 }
                 else
                 {
-                    bTopOver = pCell->Frame().Top() <= rUnion.Top();
-                    bLeftOver = pCell->Frame().Left() <= rUnion.Left();
-                    bRightOver = pCell->Frame().Right() >= rUnion.Right();
-                    bBottomOver = pCell->Frame().Bottom() >= rUnion.Bottom();
+                    bTopOver = pCell->getSwFrame().Top() <= rUnion.Top();
+                    bLeftOver = pCell->getSwFrame().Left() <= rUnion.Left();
+                    bRightOver = pCell->getSwFrame().Right() >= rUnion.Right();
+                    bBottomOver = pCell->getSwFrame().Bottom() >= rUnion.Bottom();
                 }
 
                 if ( bRTL )
@@ -954,17 +954,17 @@ void SwDoc::GetTabBorders( const SwCursor& rCursor, SfxItemSet& rSet )
                 bool bTopOver, bLeftOver, bRightOver, bBottomOver;
                 if ( bVert )
                 {
-                    bTopOver = pCell->Frame().Right() >= rUnion.Right();
-                    bLeftOver = pCell->Frame().Top() <= rUnion.Top();
-                    bRightOver = pCell->Frame().Bottom() >= rUnion.Bottom();
-                    bBottomOver = pCell->Frame().Left() <= rUnion.Left();
+                    bTopOver = pCell->getSwFrame().Right() >= rUnion.Right();
+                    bLeftOver = pCell->getSwFrame().Top() <= rUnion.Top();
+                    bRightOver = pCell->getSwFrame().Bottom() >= rUnion.Bottom();
+                    bBottomOver = pCell->getSwFrame().Left() <= rUnion.Left();
                 }
                 else
                 {
-                    bTopOver = pCell->Frame().Top() <= rUnion.Top();
-                    bLeftOver = pCell->Frame().Left() <= rUnion.Left();
-                    bRightOver = pCell->Frame().Right() >= rUnion.Right();
-                    bBottomOver = pCell->Frame().Bottom() >= rUnion.Bottom();
+                    bTopOver = pCell->getSwFrame().Top() <= rUnion.Top();
+                    bLeftOver = pCell->getSwFrame().Left() <= rUnion.Left();
+                    bRightOver = pCell->getSwFrame().Right() >= rUnion.Right();
+                    bBottomOver = pCell->getSwFrame().Bottom() >= rUnion.Bottom();
                 }
 
                 if ( bRTL )
@@ -1275,20 +1275,20 @@ static sal_uInt16 lcl_CalcCellFit( const SwLayoutFrame *pCell )
     SwRectFnSet aRectFnSet(pCell);
     while ( pFrame )
     {
-        const SwTwips nAdd = aRectFnSet.GetWidth(pFrame->Frame()) -
-                             aRectFnSet.GetWidth(pFrame->Prt());
+        const SwTwips nAdd = aRectFnSet.GetWidth(pFrame->getSwFrame()) -
+                             aRectFnSet.GetWidth(pFrame->getSwPrint());
 
         // pFrame does not necessarily have to be a SwTextFrame!
         const SwTwips nCalcFitToContent = pFrame->IsTextFrame() ?
                                           const_cast<SwTextFrame*>(static_cast<const SwTextFrame*>(pFrame))->CalcFitToContent() :
-                                          aRectFnSet.GetWidth(pFrame->Prt());
+                                          aRectFnSet.GetWidth(pFrame->getSwPrint());
 
         nRet = std::max( nRet, nCalcFitToContent + nAdd );
         pFrame = pFrame->GetNext();
     }
     // Surrounding border as well as left and Right Border also need to be respected
-    nRet += aRectFnSet.GetWidth(pCell->Frame()) -
-            aRectFnSet.GetWidth(pCell->Prt());
+    nRet += aRectFnSet.GetWidth(pCell->getSwFrame()) -
+            aRectFnSet.GetWidth(pCell->getSwPrint());
 
     // To compensate for the accuracy of calculation later on in SwTable::SetTabCols
     // we keep adding up a little.
@@ -1315,7 +1315,7 @@ static void lcl_CalcSubColValues( std::vector<sal_uInt16> &rToFill, const SwTabC
 {
     const sal_uInt16 nWish = bWishValues ?
                     ::lcl_CalcCellFit( pCell ) :
-                    MINLAY + sal_uInt16(pCell->Frame().Width() - pCell->Prt().Width());
+                    MINLAY + sal_uInt16(pCell->getSwFrame().Width() - pCell->getSwPrint().Width());
 
     SwRectFnSet aRectFnSet(pTab);
 
@@ -1327,14 +1327,14 @@ static void lcl_CalcSubColValues( std::vector<sal_uInt16> &rToFill, const SwTabC
         nColRight += rCols.GetLeftMin();
 
         // Adapt values to the proportions of the Table (Follows)
-        if ( rCols.GetLeftMin() != aRectFnSet.GetLeft(pTab->Frame()) )
+        if ( rCols.GetLeftMin() != aRectFnSet.GetLeft(pTab->getSwFrame()) )
         {
-            const long nDiff = aRectFnSet.GetLeft(pTab->Frame()) - rCols.GetLeftMin();
+            const long nDiff = aRectFnSet.GetLeft(pTab->getSwFrame()) - rCols.GetLeftMin();
             nColLeft  += nDiff;
             nColRight += nDiff;
         }
-        const long nCellLeft  = aRectFnSet.GetLeft(pCell->Frame());
-        const long nCellRight = aRectFnSet.GetRight(pCell->Frame());
+        const long nCellLeft  = aRectFnSet.GetLeft(pCell->getSwFrame());
+        const long nCellRight = aRectFnSet.GetRight(pCell->getSwFrame());
 
         // Calculate overlapping value
         long nWidth = 0;
@@ -1344,9 +1344,9 @@ static void lcl_CalcSubColValues( std::vector<sal_uInt16> &rToFill, const SwTabC
             nWidth = nCellRight - nColLeft;
         else if ( nColLeft >= nCellLeft && nColRight <= nCellRight )
             nWidth = nColRight - nColLeft;
-        if ( nWidth && pCell->Frame().Width() )
+        if ( nWidth && pCell->getSwFrame().Width() )
         {
-            long nTmp = nWidth * nWish / pCell->Frame().Width();
+            long nTmp = nWidth * nWish / pCell->getSwFrame().Width();
             if ( sal_uInt16(nTmp) > rToFill[i] )
                 rToFill[i] = sal_uInt16(nTmp);
         }
@@ -1394,8 +1394,8 @@ static void lcl_CalcColValues( std::vector<sal_uInt16> &rToFill, const SwTabCols
         {
             if ( pCell->IsCellFrame() && pCell->FindTabFrame() == pTab && ::IsFrameInTableSel( rUnion, pCell ) )
             {
-                const long nCLeft  = aRectFnSet.GetLeft(pCell->Frame());
-                const long nCRight = aRectFnSet.GetRight(pCell->Frame());
+                const long nCLeft  = aRectFnSet.GetLeft(pCell->getSwFrame());
+                const long nCRight = aRectFnSet.GetRight(pCell->getSwFrame());
 
                 bool bNotInCols = true;
 
@@ -1418,9 +1418,9 @@ static void lcl_CalcColValues( std::vector<sal_uInt16> &rToFill, const SwTabCols
                     // Adapt values to the proportions of the Table (Follows)
                     long nLeftA  = nColLeft;
                     long nRightA = nColRight;
-                    if ( rCols.GetLeftMin() !=  sal_uInt16(aRectFnSet.GetLeft(pTab->Frame())) )
+                    if ( rCols.GetLeftMin() !=  sal_uInt16(aRectFnSet.GetLeft(pTab->getSwFrame())) )
                     {
-                        const long nDiff = aRectFnSet.GetLeft(pTab->Frame()) - rCols.GetLeftMin();
+                        const long nDiff = aRectFnSet.GetLeft(pTab->getSwFrame()) - rCols.GetLeftMin();
                         nLeftA  += nDiff;
                         nRightA += nDiff;
                     }
@@ -1436,8 +1436,8 @@ static void lcl_CalcColValues( std::vector<sal_uInt16> &rToFill, const SwTabCols
                                 nFit = nWish;
                         }
                         else
-                        {   const sal_uInt16 nMin = MINLAY + sal_uInt16(pCell->Frame().Width() -
-                                                                pCell->Prt().Width());
+                        {   const sal_uInt16 nMin = MINLAY + sal_uInt16(pCell->getSwFrame().Width() -
+                                                                pCell->getSwPrint().Width());
                             if ( !nFit || nMin < nFit )
                                 nFit = nMin;
                         }
@@ -1450,7 +1450,7 @@ static void lcl_CalcColValues( std::vector<sal_uInt16> &rToFill, const SwTabCols
             }
             do {
                 pCell = pCell->GetNextLayoutLeaf();
-            } while( pCell && pCell->Frame().Width() == 0 );
+            } while( pCell && pCell->getSwFrame().Width() == 0 );
         } while ( pCell && pTab->IsAnLower( pCell ) );
     }
 }
diff --git a/sw/source/core/docnode/node.cxx b/sw/source/core/docnode/node.cxx
index d92c1d86da44..c955dd321ac9 100644
--- a/sw/source/core/docnode/node.cxx
+++ b/sw/source/core/docnode/node.cxx
@@ -391,7 +391,7 @@ bool SwNode::IsInVisibleArea( SwViewShell const * pSh ) const
                 {   pFrame = pFrame->FindPrev();
                 } while ( pFrame && !pFrame->IsValid() );
 
-            if( !pFrame || pSh->VisArea().IsOver( pFrame->Frame() ) )
+            if( !pFrame || pSh->VisArea().IsOver( pFrame->getSwFrame() ) )
                 bRet = true;
         }
     }
@@ -785,7 +785,7 @@ const SwTextNode* SwNode::FindOutlineNodeOfLevel( sal_uInt8 nLvl ) const
                        * pMyFrame = pCNd ? pCNd->getLayoutFrame( pCNd->GetDoc()->getIDocumentLayoutAccess().GetCurrentLayout(), &aPt, nullptr, false ) : nullptr;
             const SwPageFrame* pPgFrame = pFrame ? pFrame->FindPageFrame() : nullptr;
             if( pPgFrame && pMyFrame &&
-                pPgFrame->Frame().Top() > pMyFrame->Frame().Top() )
+                pPgFrame->getSwFrame().Top() > pMyFrame->getSwFrame().Top() )
             {
                 // The one asking precedes the Page, thus its invalid
                 pRet = nullptr;
@@ -1122,7 +1122,7 @@ SwRect SwContentNode::FindLayoutRect( const bool bPrtArea, const Point* pPoint )
     SwContentFrame* pFrame = static_cast<SwContentFrame*>( ::GetFrameOfModify( nullptr, *this,
                                             FRM_CNTNT, pPoint ) );
     if( pFrame )
-        aRet = bPrtArea ? pFrame->Prt() : pFrame->Frame();
+        aRet = bPrtArea ? pFrame->getSwPrint() : pFrame->getSwFrame();
     return aRet;
 }
 
@@ -1131,7 +1131,7 @@ SwRect SwContentNode::FindPageFrameRect() const
     SwRect aRet;
     SwFrame* pFrame = ::GetFrameOfModify( nullptr, *this, FRM_CNTNT );
     if( pFrame && nullptr != ( pFrame = pFrame->FindPageFrame() ))
-        aRet = pFrame->Frame();
+        aRet = pFrame->getSwFrame();
     return aRet;
 }
 
diff --git a/sw/source/core/draw/dflyobj.cxx b/sw/source/core/draw/dflyobj.cxx
index 06319ff4d7f3..2b2c486819b6 100644
--- a/sw/source/core/draw/dflyobj.cxx
+++ b/sw/source/core/draw/dflyobj.cxx
@@ -318,7 +318,7 @@ basegfx::B2DRange SwVirtFlyDrawObj::getOuterBound() const
 
         if(pFlyFrame)
         {
-            const tools::Rectangle aOuterRectangle(pFlyFrame->Frame().Pos(), pFlyFrame->Frame().SSize());
+            const tools::Rectangle aOuterRectangle(pFlyFrame->getSwFrame().Pos(), pFlyFrame->getSwFrame().SSize());
 
             if(!aOuterRectangle.IsEmpty())
             {
@@ -342,7 +342,7 @@ basegfx::B2DRange SwVirtFlyDrawObj::getInnerBound() const
 
         if(pFlyFrame)
         {
-            const tools::Rectangle aInnerRectangle(pFlyFrame->Frame().Pos() + pFlyFrame->Prt().Pos(), pFlyFrame->Prt().SSize());
+            const tools::Rectangle aInnerRectangle(pFlyFrame->getSwFrame().Pos() + pFlyFrame->getSwPrint().Pos(), pFlyFrame->getSwPrint().SSize());
 
             if(!aInnerRectangle.IsEmpty())
             {
@@ -525,7 +525,7 @@ void SwVirtFlyDrawObj::wrap_DoPaintObject(
                 RestoreMapMode aRestoreMapModeIfNeeded( pShell );
 
                 // paint the FlyFrame (use standard VCL-Paint)
-                m_pFlyFrame->Paint( *pShell->GetOut(), GetFlyFrame()->Frame() );
+                m_pFlyFrame->Paint( *pShell->GetOut(), GetFlyFrame()->getSwFrame() );
             }
         }
     }
@@ -549,8 +549,8 @@ void SwVirtFlyDrawObj::TakeObjInfo( SdrObjTransformInfoRec& rInfo ) const
 
 void SwVirtFlyDrawObj::SetRect() const
 {
-    if ( GetFlyFrame()->Frame().HasArea() )
-        const_cast<SwVirtFlyDrawObj*>(this)->aOutRect = GetFlyFrame()->Frame().SVRect();
+    if ( GetFlyFrame()->getSwFrame().HasArea() )
+        const_cast<SwVirtFlyDrawObj*>(this)->aOutRect = GetFlyFrame()->getSwFrame().SVRect();
     else
         const_cast<SwVirtFlyDrawObj*>(this)->aOutRect = tools::Rectangle();
 }
@@ -620,7 +620,7 @@ void SwVirtFlyDrawObj::NbcSetLogicRect(const tools::Rectangle& )
 
 ::basegfx::B2DPolyPolygon SwVirtFlyDrawObj::TakeXorPoly() const
 {
-    const tools::Rectangle aSourceRectangle(GetFlyFrame()->Frame().SVRect());
+    const tools::Rectangle aSourceRectangle(GetFlyFrame()->getSwFrame().SVRect());
     const ::basegfx::B2DRange aSourceRange(aSourceRectangle.Left(), aSourceRectangle.Top(), aSourceRectangle.Right(), aSourceRectangle.Bottom());
     ::basegfx::B2DPolyPolygon aRetval;
 
@@ -634,7 +634,7 @@ void SwVirtFlyDrawObj::NbcSetLogicRect(const tools::Rectangle& )
 void SwVirtFlyDrawObj::NbcMove(const Size& rSiz)
 {
     MoveRect( aOutRect, rSiz );
-    const Point aOldPos( GetFlyFrame()->Frame().Pos() );
+    const Point aOldPos( GetFlyFrame()->getSwFrame().Pos() );
     const Point aNewPos( aOutRect.TopLeft() );
     const SwRect aFlyRect( aOutRect );
 
@@ -689,7 +689,7 @@ void SwVirtFlyDrawObj::NbcMove(const Size& rSiz)
 
         if( GetFlyFrame()->GetAnchorFrame()->IsRightToLeft() &&
             text::HoriOrientation::NONE != eHori )
-            lXDiff = GetFlyFrame()->GetAnchorFrame()->Frame().Width() -
+            lXDiff = GetFlyFrame()->GetAnchorFrame()->getSwFrame().Width() -
                      aFlyRect.Width() - lXDiff;
 
         const Point aTmp( lXDiff, lYDiff );
@@ -722,9 +722,9 @@ void SwVirtFlyDrawObj::NbcMove(const Size& rSiz)
                 bNextLine = true;
                 //Horizontal Align:
                 const bool bLeftFrame =
-                    aFlyRect.Left() < pAnch->Frame().Left() + pAnch->Prt().Left(),
+                    aFlyRect.Left() < pAnch->getSwFrame().Left() + pAnch->getSwPrint().Left(),
                     bLeftPrt = aFlyRect.Left() + aFlyRect.Width() <
-                               pAnch->Frame().Left() + pAnch->Prt().Width()/2;
+                               pAnch->getSwFrame().Left() + pAnch->getSwPrint().Width()/2;
                 if ( bLeftFrame || bLeftPrt )
                 {
                     aHori.SetHoriOrient( text::HoriOrientation::LEFT );
@@ -733,7 +733,7 @@ void SwVirtFlyDrawObj::NbcMove(const Size& rSiz)
                 else
                 {
                     const bool bRightFrame = aFlyRect.Left() >
-                                       pAnch->Frame().Left() + pAnch->Prt().Width();
+                                       pAnch->getSwFrame().Left() + pAnch->getSwPrint().Width();
                     aHori.SetHoriOrient( text::HoriOrientation::RIGHT );
                     aHori.SetRelationOrient( bRightFrame ? text::RelOrientation::FRAME : text::RelOrientation::PRINT_AREA );
                 }
@@ -879,7 +879,7 @@ void SwVirtFlyDrawObj::NbcResize(const Point& rRef,
 
     Size aSz( aOutRect.Right() - aOutRect.Left() + 1,
               aOutRect.Bottom()- aOutRect.Top()  + 1 );
-    if( aSz != GetFlyFrame()->Frame().SSize() )
+    if( aSz != GetFlyFrame()->getSwFrame().SSize() )
     {
         //The width of the columns should not be too narrow
         if ( GetFlyFrame()->Lower() && GetFlyFrame()->Lower()->IsColumnFrame() )
@@ -921,8 +921,8 @@ void SwVirtFlyDrawObj::NbcResize(const Point& rRef,
             }
             else
             {
-                nRelWidth  = pRel->Prt().Width();
-                nRelHeight = pRel->Prt().Height();
+                nRelWidth  = pRel->getSwPrint().Width();
+                nRelHeight = pRel->getSwPrint().Height();
             }
             if ( aFrameSz.GetWidthPercent() && aFrameSz.GetWidthPercent() != SwFormatFrameSize::SYNCED &&
                  aOldFrameSz.GetWidth() != aFrameSz.GetWidth() )
@@ -936,8 +936,8 @@ void SwVirtFlyDrawObj::NbcResize(const Point& rRef,
 
     //Position can also be changed!
     const Point aOldPos( ( bVertX && !bVertL2RX ) || bRTL ?
-                         GetFlyFrame()->Frame().TopRight() :
-                         GetFlyFrame()->Frame().Pos() );
+                         GetFlyFrame()->getSwFrame().TopRight() :
+                         GetFlyFrame()->getSwFrame().Pos() );
     if ( aNewPos != aOldPos )
     {
         //May have been altered by the ChgSize!
@@ -1034,9 +1034,9 @@ SdrObject* SwVirtFlyDrawObj::getFullDragClone() const
 void SwVirtFlyDrawObj::addCropHandles(SdrHdlList& rTarget) const
 {
     // RotGrfFlyFrame: Adapt to possible rotated Graphic contained in FlyFrame
-    if(GetFlyFrame()->Frame().HasArea())
+    if(GetFlyFrame()->getSwFrame().HasArea())
     {
-        // Use InnerBound, OuterBound (same as GetFlyFrame()->Frame().SVRect())
+        // Use InnerBound, OuterBound (same as GetFlyFrame()->getSwFrame().SVRect())
         // may have a distance to InnerBound which needs to be taken into account.
         // The Graphic is mapped to InnerBound, as is the rotated Graphic.
         const basegfx::B2DRange aTargetRange(getInnerBound());
@@ -1095,11 +1095,11 @@ SdrObject* SwVirtFlyDrawObj::CheckMacroHit( const SdrObjMacroHitRec& rRec ) cons
         SwRect aRect;
         if ( m_pFlyFrame->Lower() && m_pFlyFrame->Lower()->IsNoTextFrame() )
         {
-            aRect = m_pFlyFrame->Prt();
-            aRect += m_pFlyFrame->Frame().Pos();
+            aRect = m_pFlyFrame->getSwPrint();
+            aRect += m_pFlyFrame->getSwFrame().Pos();
         }
         else
-            aRect = m_pFlyFrame->Frame();
+            aRect = m_pFlyFrame->getSwFrame();
 
         if( aRect.IsInside( rRec.aPos ) )
         {
diff --git a/sw/source/core/draw/dpage.cxx b/sw/source/core/draw/dpage.cxx
index b379362e4688..eb665d39040c 100644
--- a/sw/source/core/draw/dpage.cxx
+++ b/sw/source/core/draw/dpage.cxx
@@ -116,10 +116,10 @@ SdrObject*  SwDPage::ReplaceObject( SdrObject* pNewObj, size_t nObjNum )
 
 void InsertGridFrame( SdrPageGridFrameList *pLst, const SwFrame *pPg )
 {
-    SwRect aPrt( pPg->Prt() );
-    aPrt += pPg->Frame().Pos();
+    SwRect aPrt( pPg->getSwPrint() );
+    aPrt += pPg->getSwFrame().Pos();
     const tools::Rectangle aUser( aPrt.SVRect() );
-    const tools::Rectangle aPaper( pPg->Frame().SVRect() );
+    const tools::Rectangle aPaper( pPg->getSwFrame().SVRect() );
     pLst->Insert( SdrPageGridFrame( aPaper, aUser ) );
 }
 
@@ -148,7 +148,7 @@ const SdrPageGridFrameList*  SwDPage::GetGridFrameList(
             const SwRect aRect( *pRect );
             const SwFrame *pPg = pSh->GetLayout()->Lower();
             do
-            {   if ( pPg->Frame().IsOver( aRect ) )
+            {   if ( pPg->getSwFrame().IsOver( aRect ) )
                     ::InsertGridFrame( const_cast<SwDPage*>(this)->pGridLst.get(), pPg );
                 pPg = pPg->GetNext();
             } while ( pPg );
@@ -161,7 +161,7 @@ const SdrPageGridFrameList*  SwDPage::GetGridFrameList(
                 do
                 {   ::InsertGridFrame( const_cast<SwDPage*>(this)->pGridLst.get(), pPg );
                     pPg = pPg->GetNext();
-                } while ( pPg && pPg->Frame().IsOver( pSh->VisArea() ) );
+                } while ( pPg && pPg->getSwFrame().IsOver( pSh->VisArea() ) );
         }
     }
     return pGridLst.get();
@@ -210,7 +210,7 @@ bool SwDPage::RequestHelp( vcl::Window* pWindow, SdrView const * pView,
                 {
                     // then append the relative pixel position!!
                     Point aPt( aPos );
-                    aPt -= pFly->Frame().Pos();
+                    aPt -= pFly->getSwFrame().Pos();
                     // without MapMode-Offset !!!!!
                     // without MapMode-Offset, without Offset, w ... !!!!!
                     aPt = pWindow->LogicToPixel(
diff --git a/sw/source/core/draw/dview.cxx b/sw/source/core/draw/dview.cxx
index 9245c41556c4..1ef5184aa27e 100644
--- a/sw/source/core/draw/dview.cxx
+++ b/sw/source/core/draw/dview.cxx
@@ -680,7 +680,7 @@ const SwFrame* SwDrawView::CalcAnchor()
     if ( bFly )
     {
         pAnch = static_cast<SwVirtFlyDrawObj*>(pObj)->GetFlyFrame()->GetAnchorFrame();
-        aMyRect = static_cast<SwVirtFlyDrawObj*>(pObj)->GetFlyFrame()->Frame().SVRect();
+        aMyRect = static_cast<SwVirtFlyDrawObj*>(pObj)->GetFlyFrame()->getSwFrame().SVRect();
     }
     else
     {
diff --git a/sw/source/core/edit/autofmt.cxx b/sw/source/core/edit/autofmt.cxx
index 7ce2f7d0a068..4e9b12be7d14 100644
--- a/sw/source/core/edit/autofmt.cxx
+++ b/sw/source/core/edit/autofmt.cxx
@@ -251,10 +251,10 @@ SwTextFrame* SwAutoFormat::GetFrame( const SwTextNode& rTextNd ) const
     if( m_aFlags.bAFormatByInput && !pFrame->IsValid() )
     {
         DisableCallbackAction a(const_cast<SwRootFrame&>(*pFrame->getRootFrame()));
-        SwRect aTmpFrame( pFrame->Frame() );
-        SwRect aTmpPrt( pFrame->Prt() );
+        SwRect aTmpFrame( pFrame->getSwFrame() );
+        SwRect aTmpPrt( pFrame->getSwPrint() );
         pFrame->Calc(pFrame->getRootFrame()->GetCurrShell()->GetOut());
-        if( pFrame->Frame() != aTmpFrame || pFrame->Prt() != aTmpPrt ||
+        if( pFrame->getSwFrame() != aTmpFrame || pFrame->getSwPrint() != aTmpPrt ||
             ( pFrame->IsTextFrame() && !const_cast<SwTextFrame*>(static_cast<const SwTextFrame*>(pFrame))->Paint().IsEmpty() ) )
             pFrame->SetCompletePaint();
     }
@@ -652,7 +652,7 @@ bool SwAutoFormat::DoTable()
             {
                 eHori = text::HoriOrientation::NONE;
                 // then - as last - we need to add the current frame width into the array
-                aPosArr.push_back( static_cast<sal_uInt16>(m_pCurTextFrame->Frame().Width()) );
+                aPosArr.push_back( static_cast<sal_uInt16>(m_pCurTextFrame->getSwFrame().Width()) );
             }
             else
                 eHori = text::HoriOrientation::LEFT;
@@ -1374,7 +1374,7 @@ void SwAutoFormat::BuildEnum( sal_uInt16 nLvl, sal_uInt16 nDigitLevel )
     bool bBreak = true;
 
     // first, determine current indentation and frame width
-    SwTwips nFrameWidth = m_pCurTextFrame->Prt().Width();
+    SwTwips nFrameWidth = m_pCurTextFrame->getSwPrint().Width();
     SwTwips nLeftTextPos;
     {
         sal_Int32 nPos(0);
diff --git a/sw/source/core/edit/edattr.cxx b/sw/source/core/edit/edattr.cxx
index 25d7368dc2d3..494caa87c150 100644
--- a/sw/source/core/edit/edattr.cxx
+++ b/sw/source/core/edit/edattr.cxx
@@ -503,8 +503,8 @@ bool SwEditShell::IsMoveLeftMargin( bool bRight, bool bModulus ) const
                     if ( pFrame )
                     {
                         const sal_uInt16 nFrameWidth = static_cast<sal_uInt16>( pFrame->IsVertical() ?
-                                                 pFrame->Frame().Height() :
-                                                 pFrame->Frame().Width() );
+                                                 pFrame->getSwFrame().Height() :
+                                                 pFrame->getSwFrame().Width() );
                         bRet = nFrameWidth > ( nNext + MM50 );
                     }
                     else
diff --git a/sw/source/core/edit/editsh.cxx b/sw/source/core/edit/editsh.cxx
index f481eacbad09..1ae8b8b29cc4 100644
--- a/sw/source/core/edit/editsh.cxx
+++ b/sw/source/core/edit/editsh.cxx
@@ -887,7 +887,7 @@ void SwEditShell::SetLineNumberInfo(const SwLineNumberInfo& rInfo)
     StartAllAction();
     SET_CURR_SHELL( this );
     GetDoc()->SetLineNumberInfo(rInfo);
-    AddPaintRect( GetLayout()->Frame() );
+    AddPaintRect( GetLayout()->getSwFrame() );
     EndAllAction();
 }
 
diff --git a/sw/source/core/fields/expfld.cxx b/sw/source/core/fields/expfld.cxx
index 8a777c49b9ba..658bfb18e542 100644
--- a/sw/source/core/fields/expfld.cxx
+++ b/sw/source/core/fields/expfld.cxx
@@ -206,7 +206,7 @@ const SwTextNode* GetBodyTextNode( const SwDoc& rDoc, SwPosition& rPos,
             else
             {
                 pLayout->FindPageFrame()->GetContentPosition(
-                                                pLayout->Frame().Pos(), rPos );
+                                                pLayout->getSwFrame().Pos(), rPos );
                 pTextNode = rPos.nNode.GetNode().GetTextNode();
             }
         }
@@ -246,7 +246,7 @@ const SwTextNode* GetBodyTextNode( const SwDoc& rDoc, SwPosition& rPos,
             }
             else
             {
-                Point aPt( pLayout->Frame().Pos() );
+                Point aPt( pLayout->getSwFrame().Pos() );
                 aPt.Y()++;      // get out of the header
                 pContentFrame = pPgFrame->GetContentPos( aPt, false, true );
                 pTextNode = GetFirstTextNode( rDoc, rPos, pContentFrame, aPt );
diff --git a/sw/source/core/fields/postithelper.cxx b/sw/source/core/fields/postithelper.cxx
index 8da466867d28..333cb740cf9a 100644
--- a/sw/source/core/fields/postithelper.cxx
+++ b/sw/source/core/fields/postithelper.cxx
@@ -74,8 +74,8 @@ SwPostItHelper::SwLayoutStatus SwPostItHelper::getLayoutInfos(
                     o_rInfo.mnStartNodeIdx = 0;
                     o_rInfo.mnStartContent = -1;
                 }
-                o_rInfo.mPageFrame = pPage->Frame();
-                o_rInfo.mPagePrtArea = pPage->Prt();
+                o_rInfo.mPageFrame = pPage->getSwFrame();
+                o_rInfo.mPagePrtArea = pPage->getSwPrint();
                 o_rInfo.mPagePrtArea.Pos() += o_rInfo.mPageFrame.Pos();
                 o_rInfo.mnPageNumber = pPage->GetPhyPageNum();
                 o_rInfo.meSidebarPosition = pPage->SidebarPosition();
@@ -105,7 +105,7 @@ SwPostItHelper::SwLayoutStatus SwPostItHelper::getLayoutInfos(
 
 long SwPostItHelper::getLayoutHeight( const SwRootFrame* pRoot )
 {
-    long nRet = pRoot ? pRoot->Frame().Height() : 0;
+    long nRet = pRoot ? pRoot->getSwFrame().Height() : 0;
     return nRet;
 }
 
@@ -126,7 +126,7 @@ unsigned long SwPostItHelper::getPageInfo( SwRect& rPageFrame, const SwRootFrame
     if( pPage )
     {
         nRet = pPage->GetPhyPageNum();
-        rPageFrame = pPage->Frame();
+        rPageFrame = pPage->getSwFrame();
     }
     return nRet;
 }
diff --git a/sw/source/core/fields/reffld.cxx b/sw/source/core/fields/reffld.cxx
index 7302396fe067..182a7097fca4 100644
--- a/sw/source/core/fields/reffld.cxx
+++ b/sw/source/core/fields/reffld.cxx
@@ -146,22 +146,22 @@ bool IsFrameBehind( const SwTextNode& rMyNd, sal_Int32 nMySttPos,
             if( bVert )
             {
                 if( bR2L )
-                    bRefIsLower = pRefFrame->Frame().Top() < pFieldFrame->Frame().Top() ||
-                            ( pRefFrame->Frame().Top() == pFieldFrame->Frame().Top() &&
-                              pRefFrame->Frame().Left() < pFieldFrame->Frame().Left() );
+                    bRefIsLower = pRefFrame->getSwFrame().Top() < pFieldFrame->getSwFrame().Top() ||
+                            ( pRefFrame->getSwFrame().Top() == pFieldFrame->getSwFrame().Top() &&
+                              pRefFrame->getSwFrame().Left() < pFieldFrame->getSwFrame().Left() );
                 else
-                    bRefIsLower = pRefFrame->Frame().Top() < pFieldFrame->Frame().Top() ||
-                            ( pRefFrame->Frame().Top() == pFieldFrame->Frame().Top() &&
-                              pRefFrame->Frame().Left() > pFieldFrame->Frame().Left() );
+                    bRefIsLower = pRefFrame->getSwFrame().Top() < pFieldFrame->getSwFrame().Top() ||
+                            ( pRefFrame->getSwFrame().Top() == pFieldFrame->getSwFrame().Top() &&
+                              pRefFrame->getSwFrame().Left() > pFieldFrame->getSwFrame().Left() );
             }
             else if( bR2L )
-                bRefIsLower = pRefFrame->Frame().Left() > pFieldFrame->Frame().Left() ||
-                            ( pRefFrame->Frame().Left() == pFieldFrame->Frame().Left() &&
-                              pRefFrame->Frame().Top() < pFieldFrame->Frame().Top() );
+                bRefIsLower = pRefFrame->getSwFrame().Left() > pFieldFrame->getSwFrame().Left() ||
+                            ( pRefFrame->getSwFrame().Left() == pFieldFrame->getSwFrame().Left() &&
+                              pRefFrame->getSwFrame().Top() < pFieldFrame->getSwFrame().Top() );
             else
-                bRefIsLower = pRefFrame->Frame().Left() < pFieldFrame->Frame().Left() ||
-                            ( pRefFrame->Frame().Left() == pFieldFrame->Frame().Left() &&
-                              pRefFrame->Frame().Top() < pFieldFrame->Frame().Top() );
+                bRefIsLower = pRefFrame->getSwFrame().Left() < pFieldFrame->getSwFrame().Left() ||
+                            ( pRefFrame->getSwFrame().Left() == pFieldFrame->getSwFrame().Left() &&
+                              pRefFrame->getSwFrame().Top() < pFieldFrame->getSwFrame().Top() );
             pRefFrame = nullptr;
         }
         else if( ( SwFrameType::Column | SwFrameType::Cell ) & pFieldFrame->GetType() )
@@ -175,22 +175,22 @@ bool IsFrameBehind( const SwTextNode& rMyNd, sal_Int32 nMySttPos,
         if( bVert )
         {
             if( bR2L )
-                bRefIsLower = pRefFrame->Frame().Left() < pFieldFrame->Frame().Left() ||
-                            ( pRefFrame->Frame().Left() == pFieldFrame->Frame().Left() &&
-                                pRefFrame->Frame().Top() < pFieldFrame->Frame().Top() );
+                bRefIsLower = pRefFrame->getSwFrame().Left() < pFieldFrame->getSwFrame().Left() ||
+                            ( pRefFrame->getSwFrame().Left() == pFieldFrame->getSwFrame().Left() &&
+                                pRefFrame->getSwFrame().Top() < pFieldFrame->getSwFrame().Top() );
             else
-                bRefIsLower = pRefFrame->Frame().Left() > pFieldFrame->Frame().Left() ||
-                            ( pRefFrame->Frame().Left() == pFieldFrame->Frame().Left() &&
-                                pRefFrame->Frame().Top() < pFieldFrame->Frame().Top() );
+                bRefIsLower = pRefFrame->getSwFrame().Left() > pFieldFrame->getSwFrame().Left() ||
+                            ( pRefFrame->getSwFrame().Left() == pFieldFrame->getSwFrame().Left() &&
+                                pRefFrame->getSwFrame().Top() < pFieldFrame->getSwFrame().Top() );
         }
         else if( bR2L )
-            bRefIsLower = pRefFrame->Frame().Top() < pFieldFrame->Frame().Top() ||
-                        ( pRefFrame->Frame().Top() == pFieldFrame->Frame().Top() &&
-                            pRefFrame->Frame().Left() > pFieldFrame->Frame().Left() );
+            bRefIsLower = pRefFrame->getSwFrame().Top() < pFieldFrame->getSwFrame().Top() ||
+                        ( pRefFrame->getSwFrame().Top() == pFieldFrame->getSwFrame().Top() &&
+                            pRefFrame->getSwFrame().Left() > pFieldFrame->getSwFrame().Left() );
         else
-            bRefIsLower = pRefFrame->Frame().Top() < pFieldFrame->Frame().Top() ||
-                        ( pRefFrame->Frame().Top() == pFieldFrame->Frame().Top() &&
-                            pRefFrame->Frame().Left() < pFieldFrame->Frame().Left() );
+            bRefIsLower = pRefFrame->getSwFrame().Top() < pFieldFrame->getSwFrame().Top() ||
+                        ( pRefFrame->getSwFrame().Top() == pFieldFrame->getSwFrame().Top() &&
+                            pRefFrame->getSwFrame().Left() < pFieldFrame->getSwFrame().Left() );
     }
     return bRefIsLower;
 }
diff --git a/sw/source/core/frmedt/fecopy.cxx b/sw/source/core/frmedt/fecopy.cxx
index b6840d96460f..e2f3ffccd671 100644
--- a/sw/source/core/frmedt/fecopy.cxx
+++ b/sw/source/core/frmedt/fecopy.cxx
@@ -239,7 +239,7 @@ bool SwFEShell::Copy( SwDoc* pClpDoc, const OUString* pNewClpText )
 static const Point &lcl_FindBasePos( const SwFrame *pFrame, const Point &rPt )
 {
     const SwFrame *pF = pFrame;
-    while ( pF && !pF->Frame().IsInside( rPt ) )
+    while ( pF && !pF->getSwFrame().IsInside( rPt ) )
     {
         if ( pF->IsContentFrame() )
             pF = static_cast<const SwContentFrame*>(pF)->GetFollow();
@@ -247,9 +247,9 @@ static const Point &lcl_FindBasePos( const SwFrame *pFrame, const Point &rPt )
             pF = nullptr;
     }
     if ( pF )
-        return pF->Frame().Pos();
+        return pF->getSwFrame().Pos();
     else
-        return pFrame->Frame().Pos();
+        return pFrame->getSwFrame().Pos();
 }
 
 static bool lcl_SetAnchor( const SwPosition& rPos, const SwNode& rNd, SwFlyFrame const * pFly,
@@ -271,14 +271,14 @@ static bool lcl_SetAnchor( const SwPosition& rPos, const SwNode& rNd, SwFlyFrame
             const SwNodeIndex& rIdx = *pTmpFly->GetFormat()->GetContent().GetContentIdx();
             SwPosition aPos( rIdx );
             rAnchor.SetAnchor( &aPos );
-            rNewPos = pTmpFly->Frame().Pos();
+            rNewPos = pTmpFly->getSwFrame().Pos();
         }
         else
         {
             rAnchor.SetType( RndStdIds::FLY_AT_PAGE );
             rAnchor.SetPageNum( rDestShell.GetPageNumber( rInsPt ) );
             const SwFrame *pPg = pTmpFrame->FindPageFrame();
-            rNewPos = pPg->Frame().Pos();
+            rNewPos = pPg->getSwFrame().Pos();
         }
     }
     else
@@ -377,7 +377,7 @@ bool SwFEShell::CopyDrawSel( SwFEShell* pDestShell, const Point& rSttPt,
                 const SwRootFrame* pTmpRoot = pDestShell->GetLayout();
                 const SwFrame* pPg = pTmpRoot->GetPageAtPos( rInsPt, nullptr, true );
                 if ( pPg )
-                    aNewAnch = pPg->Frame().Pos();
+                    aNewAnch = pPg->getSwFrame().Pos();
             }
 
             if( bRet )
@@ -496,7 +496,7 @@ bool SwFEShell::Copy( SwFEShell* pDestShell, const Point& rSttPt,
                 // from the passed DocumentPosition
                 SwPosition aPos( *GetCursor()->GetPoint() );
                 Point aPt( rInsPt );
-                aPt -= rSttPt - pFly->Frame().Pos();
+                aPt -= rSttPt - pFly->getSwFrame().Pos();
                 SwCursorMoveState aState( MV_SETONLYTEXT );
                 GetLayout()->GetCursorOfst( &aPos, aPt, &aState );
                 const SwNode *pNd;
@@ -533,7 +533,7 @@ bool SwFEShell::Copy( SwFEShell* pDestShell, const Point& rSttPt,
             const SwRootFrame* pTmpRoot = pDestShell->GetLayout();
             const SwFrame* pPg = pTmpRoot->GetPageAtPos( rInsPt, nullptr, true );
             if ( pPg )
-                aNewAnch = pPg->Frame().Pos();
+                aNewAnch = pPg->getSwFrame().Pos();
         }
         else {
             OSL_ENSURE( false, "what anchor is it?" );
@@ -548,7 +548,7 @@ bool SwFEShell::Copy( SwFEShell* pDestShell, const Point& rSttPt,
             {
                 Point aPos( rInsPt );
                 aPos -= aNewAnch;
-                aPos -= rSttPt - pFly->Frame().Pos();
+                aPos -= rSttPt - pFly->getSwFrame().Pos();
                 pFlyFormat->SetFormatAttr( SwFormatHoriOrient( aPos.getX(),text::HoriOrientation::NONE, text::RelOrientation::FRAME ) );
                 pFlyFormat->SetFormatAttr( SwFormatVertOrient( aPos.getY(),text::VertOrientation::NONE, text::RelOrientation::FRAME ) );
             }
@@ -1244,7 +1244,7 @@ bool SwFEShell::GetDrawObjGraphic( SotClipboardFormatId nFormat, Graphic& rGrf )
                         // Not the original size, but the current one.
                         // Otherwise it could happen that for vector graphics
                         // many MB's of memory are allocated.
-                        const Size aSz( GetSelectedFlyFrame()->Prt().SSize() );
+                        const Size aSz( GetSelectedFlyFrame()->getSwPrint().SSize() );
                         ScopedVclPtrInstance< VirtualDevice > pVirtDev(*GetWin());
 
                         MapMode aTmp( MapUnit::MapTwip );
diff --git a/sw/source/core/frmedt/fedesc.cxx b/sw/source/core/frmedt/fedesc.cxx
index 2e0b5b22ead2..da44435f05ed 100644
--- a/sw/source/core/frmedt/fedesc.cxx
+++ b/sw/source/core/frmedt/fedesc.cxx
@@ -147,7 +147,7 @@ size_t SwFEShell::GetMousePageDesc( const Point &rPt ) const
             static_cast<const SwPageFrame*>( GetLayout()->Lower() );
         if( pPage )
         {
-            while( pPage->GetNext() && rPt.Y() > pPage->Frame().Bottom() )
+            while( pPage->GetNext() && rPt.Y() > pPage->getSwFrame().Bottom() )
                 pPage = static_cast<const SwPageFrame*>( pPage->GetNext() );
             SwDoc *pMyDoc = GetDoc();
             size_t nPos;
diff --git a/sw/source/core/frmedt/fefly1.cxx b/sw/source/core/frmedt/fefly1.cxx
index 8130b7df7bbb..139a1a2ba0dc 100644
--- a/sw/source/core/frmedt/fefly1.cxx
+++ b/sw/source/core/frmedt/fefly1.cxx
@@ -142,7 +142,7 @@ static bool lcl_FindAnchorPos(
                 if( !pNewAnch->GetCursorOfst( &aPos, aTmpPnt, &aState ) )
                 {
                     SwContentNode* pCNd = const_cast<SwContentFrame*>(static_cast<const SwContentFrame*>(pNewAnch))->GetNode();
-                    if( pNewAnch->Frame().Bottom() < aTmpPnt.Y() )
+                    if( pNewAnch->getSwFrame().Bottom() < aTmpPnt.Y() )
                         pCNd->MakeStartIndex( &aPos.nContent );
                     else
                         pCNd->MakeEndIndex( &aPos.nContent );
@@ -220,7 +220,7 @@ bool sw_ChkAndSetNewAnchor(
             "forbidden anchor change in Head/Foot." );
 #endif
 
-    return ::lcl_FindAnchorPos( *pDoc, rFly.Frame().Pos(), rFly, rSet );
+    return ::lcl_FindAnchorPos( *pDoc, rFly.getSwFrame().Pos(), rFly, rSet );
 }
 
 void SwFEShell::SelectFlyFrame( SwFlyFrame& rFrame )
@@ -372,7 +372,7 @@ void SwFEShell::SetFlyPos( const Point& rAbsPos )
     else
     {
             const SwFrame *pAnch = pFly->GetAnchorFrame();
-            Point aOrient( pAnch->Frame().Pos() );
+            Point aOrient( pAnch->getSwFrame().Pos() );
 
         if ( pFly->IsFlyInContentFrame() )
             aOrient.setX(rAbsPos.getX());
@@ -894,8 +894,8 @@ void SwFEShell::InsertDrawObj( SdrObject& rDrawObj,
         Point aTmpPt( rInsertPosition );
         GetLayout()->GetCursorOfst( aPam.GetPoint(), aTmpPt, &aState );
         const SwFrame* pFrame = aPam.GetContentNode()->getLayoutFrame( GetLayout(), nullptr, nullptr, false );
-        const Point aRelPos( rInsertPosition.X() - pFrame->Frame().Left(),
-                             rInsertPosition.Y() - pFrame->Frame().Top() );
+        const Point aRelPos( rInsertPosition.X() - pFrame->getSwFrame().Left(),
+                             rInsertPosition.Y() - pFrame->getSwFrame().Top() );
         rDrawObj.SetRelativePos( aRelPos );
         ::lcl_FindAnchorPos( *GetDoc(), rInsertPosition, *pFrame, rFlyAttrSet );
     }
@@ -1036,7 +1036,7 @@ bool SwFEShell::SetFlyFrameAttr( SfxItemSet& rSet )
         if (pFly)
         {
             StartAllAction();
-            const Point aPt( pFly->Frame().Pos() );
+            const Point aPt( pFly->getSwFrame().Pos() );
 
             if( SfxItemState::SET == rSet.GetItemState( RES_ANCHOR, false ))
                 sw_ChkAndSetNewAnchor( *pFly, rSet );
@@ -1170,7 +1170,7 @@ void SwFEShell::SetFrameFormat( SwFrameFormat *pNewFormat, bool bKeepOrient, Poi
         SET_CURR_SHELL( this );
 
         SwFlyFrameFormat* pFlyFormat = pFly->GetFormat();
-        const Point aPt( pFly->Frame().Pos() );
+        const Point aPt( pFly->getSwFrame().Pos() );
 
         SfxItemSet* pSet = nullptr;
         const SfxPoolItem* pItem;
@@ -1224,7 +1224,7 @@ SwRect SwFEShell::GetFlyRect() const
         return aRect;
     }
     else
-        return pFly->Frame();
+        return pFly->getSwFrame();
 }
 
 SwRect SwFEShell::GetObjRect() const
@@ -1258,7 +1258,7 @@ Size SwFEShell::RequestObjectResize( const SwRect &rRect, const uno::Reference <
         return aResult;
     }
 
-    aResult = pFly->Prt().SSize();
+    aResult = pFly->getSwPrint().SSize();
 
     bool bPosProt = pFly->GetFormat()->GetProtect().IsPosProtected();
     bool bSizeProt = pFly->GetFormat()->GetProtect().IsSizeProtected();
@@ -1270,7 +1270,7 @@ Size SwFEShell::RequestObjectResize( const SwRect &rRect, const uno::Reference <
     // Correct display is done by scaling.
     // Scaling is done by SwNoTextFrame::Format by calling
     // SwWrtShell::CalcAndSetScale()
-    if ( rRect.SSize() != pFly->Prt().SSize() && !bSizeProt )
+    if ( rRect.SSize() != pFly->getSwPrint().SSize() && !bSizeProt )
     {
          Size aSz( rRect.SSize() );
 
@@ -1301,17 +1301,17 @@ Size SwFEShell::RequestObjectResize( const SwRect &rRect, const uno::Reference <

... etc. - the rest is truncated


More information about the Libreoffice-commits mailing list