summaryrefslogtreecommitdiff
path: root/sw/source/uibase/wrtsh
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/wrtsh')
-rw-r--r--sw/source/uibase/wrtsh/delete.cxx86
-rw-r--r--sw/source/uibase/wrtsh/move.cxx238
-rw-r--r--sw/source/uibase/wrtsh/navmgr.cxx8
-rw-r--r--sw/source/uibase/wrtsh/select.cxx206
-rw-r--r--sw/source/uibase/wrtsh/wrtsh1.cxx148
-rw-r--r--sw/source/uibase/wrtsh/wrtsh2.cxx16
-rw-r--r--sw/source/uibase/wrtsh/wrtsh3.cxx34
-rw-r--r--sw/source/uibase/wrtsh/wrtsh4.cxx36
-rw-r--r--sw/source/uibase/wrtsh/wrtundo.cxx14
9 files changed, 393 insertions, 393 deletions
diff --git a/sw/source/uibase/wrtsh/delete.cxx b/sw/source/uibase/wrtsh/delete.cxx
index dc3ee757940f..725d64271180 100644
--- a/sw/source/uibase/wrtsh/delete.cxx
+++ b/sw/source/uibase/wrtsh/delete.cxx
@@ -90,9 +90,9 @@ long SwWrtShell::DelLine()
// remember the old cursor
Push();
ClearMark();
- SwCrsrShell::LeftMargin();
+ SwCursorShell::LeftMargin();
SetMark();
- SwCrsrShell::RightMargin();
+ SwCursorShell::RightMargin();
long nRet = Delete();
Pop(false);
@@ -104,7 +104,7 @@ long SwWrtShell::DelLine()
long SwWrtShell::DelToStartOfLine()
{
OpenMark();
- SwCrsrShell::LeftMargin();
+ SwCursorShell::LeftMargin();
long nRet = Delete();
CloseMark( 0 != nRet );
return nRet;
@@ -113,7 +113,7 @@ long SwWrtShell::DelToStartOfLine()
long SwWrtShell::DelToEndOfLine()
{
OpenMark();
- SwCrsrShell::RightMargin();
+ SwCursorShell::RightMargin();
long nRet = Delete();
CloseMark( 0 != nRet );
return 1;
@@ -132,15 +132,15 @@ long SwWrtShell::DelLeft()
DelSelectedObj();
// #108205# Set cursor to remembered position.
- SetCrsr(&aTmpPt);
+ SetCursor(&aTmpPt);
- LeaveSelFrmMode();
- UnSelectFrm();
+ LeaveSelFrameMode();
+ UnSelectFrame();
nSelType = GetSelectionType();
if ( nCmp & nSelType )
{
- EnterSelFrmMode();
+ EnterSelFrameMode();
GotoNextFly();
}
@@ -176,29 +176,29 @@ long SwWrtShell::DelLeft()
// JP 29.06.95: never erase a table standing in front of it.
bool bSwap = false;
- const SwTableNode * pWasInTableNd = SwCrsrShell::IsCrsrInTable();
+ const SwTableNode * pWasInTableNd = SwCursorShell::IsCursorInTable();
- if( SwCrsrShell::IsSttPara())
+ if( SwCursorShell::IsSttPara())
{
// #i4032# Don't actually call a 'delete' if we
// changed the table cell, compare DelRight().
const SwStartNode * pSNdOld = pWasInTableNd ?
- GetSwCrsr()->GetNode().FindTableBoxStartNode() :
+ GetSwCursor()->GetNode().FindTableBoxStartNode() :
nullptr;
// If the cursor is at the beginning of a paragraph, try to step
// backwards. On failure we are done.
- if( !SwCrsrShell::Left(1,CRSR_SKIP_CHARS) )
+ if( !SwCursorShell::Left(1,CRSR_SKIP_CHARS) )
return 0;
// If the cursor entered or left a table (or both) we are done. No step
// back.
- const SwTableNode* pIsInTableNd = SwCrsrShell::IsCrsrInTable();
+ const SwTableNode* pIsInTableNd = SwCursorShell::IsCursorInTable();
if( pIsInTableNd != pWasInTableNd )
return 0;
const SwStartNode* pSNdNew = pIsInTableNd ?
- GetSwCrsr()->GetNode().FindTableBoxStartNode() :
+ GetSwCursor()->GetNode().FindTableBoxStartNode() :
nullptr;
// #i4032# Don't actually call a 'delete' if we
@@ -207,18 +207,18 @@ long SwWrtShell::DelLeft()
return 0;
OpenMark();
- SwCrsrShell::Right(1,CRSR_SKIP_CHARS);
- SwCrsrShell::SwapPam();
+ SwCursorShell::Right(1,CRSR_SKIP_CHARS);
+ SwCursorShell::SwapPam();
bSwap = true;
}
else
{
OpenMark();
- SwCrsrShell::Left(1,CRSR_SKIP_CHARS);
+ SwCursorShell::Left(1,CRSR_SKIP_CHARS);
}
long nRet = Delete();
if( !nRet && bSwap )
- SwCrsrShell::SwapPam();
+ SwCursorShell::SwapPam();
CloseMark( 0 != nRet );
return nRet;
}
@@ -270,23 +270,23 @@ long SwWrtShell::DelRight()
EnterStdMode();
}
- pWasInTableNd = IsCrsrInTable();
+ pWasInTableNd = IsCursorInTable();
- if( nsSelectionType::SEL_TXT & nSelection && SwCrsrShell::IsSttPara() &&
- SwCrsrShell::IsEndPara() )
+ if( nsSelectionType::SEL_TXT & nSelection && SwCursorShell::IsSttPara() &&
+ SwCursorShell::IsEndPara() )
{
// save cursor
- SwCrsrShell::Push();
+ SwCursorShell::Push();
bool bDelFull = false;
- if ( SwCrsrShell::Right(1,CRSR_SKIP_CHARS) )
+ if ( SwCursorShell::Right(1,CRSR_SKIP_CHARS) )
{
- const SwTableNode * pCurrTableNd = IsCrsrInTable();
+ const SwTableNode * pCurrTableNd = IsCursorInTable();
bDelFull = pCurrTableNd && pCurrTableNd != pWasInTableNd;
}
// restore cursor
- SwCrsrShell::Pop( false );
+ SwCursorShell::Pop( false );
if( bDelFull )
{
@@ -299,44 +299,44 @@ long SwWrtShell::DelRight()
{
// #108049# Save the startnode of the current cell
const SwStartNode * pSNdOld;
- pSNdOld = GetSwCrsr()->GetNode().FindTableBoxStartNode();
+ pSNdOld = GetSwCursor()->GetNode().FindTableBoxStartNode();
- if ( SwCrsrShell::IsEndPara() )
+ if ( SwCursorShell::IsEndPara() )
{
// #i41424# Introduced a couple of
// Push()-Pop() pairs here. The reason for this is that a
// Right()-Left() combination does not make sure, that
// the cursor will be in its initial state, because there
// may be a numbering in front of the next paragraph.
- SwCrsrShell::Push();
+ SwCursorShell::Push();
- if ( SwCrsrShell::Right(1, CRSR_SKIP_CHARS) )
+ if ( SwCursorShell::Right(1, CRSR_SKIP_CHARS) )
{
- if (IsCrsrInTable() || (pWasInTableNd != IsCrsrInTable()))
+ if (IsCursorInTable() || (pWasInTableNd != IsCursorInTable()))
{
/** #108049# Save the startnode of the current
cell. May be different to pSNdOld as we have
moved. */
- const SwStartNode * pSNdNew = GetSwCrsr()
+ const SwStartNode * pSNdNew = GetSwCursor()
->GetNode().FindTableBoxStartNode();
/** #108049# Only move instead of deleting if we
have moved to a different cell */
if (pSNdOld != pSNdNew)
{
- SwCrsrShell::Pop();
+ SwCursorShell::Pop();
break;
}
}
}
// restore cursor
- SwCrsrShell::Pop( false );
+ SwCursorShell::Pop( false );
}
}
OpenMark();
- SwCrsrShell::Right(1,CRSR_SKIP_CELLS);
+ SwCursorShell::Right(1,CRSR_SKIP_CELLS);
nRet = Delete();
CloseMark( 0 != nRet );
break;
@@ -354,12 +354,12 @@ long SwWrtShell::DelRight()
DelSelectedObj();
// #108205# Set cursor to remembered position.
- SetCrsr(&aTmpPt);
+ SetCursor(&aTmpPt);
- LeaveSelFrmMode();
- UnSelectFrm();
- OSL_ENSURE( !IsFrmSelected(),
- "<SwWrtShell::DelRight(..)> - <SwWrtShell::UnSelectFrm()> should unmark all objects" );
+ LeaveSelFrameMode();
+ UnSelectFrame();
+ OSL_ENSURE( !IsFrameSelected(),
+ "<SwWrtShell::DelRight(..)> - <SwWrtShell::UnSelectFrame()> should unmark all objects" );
// leave draw mode, if necessary.
{
if (GetView().GetDrawFuncPtr())
@@ -374,7 +374,7 @@ long SwWrtShell::DelRight()
}
}
- // <IsFrmSelected()> can't be true - see above.
+ // <IsFrameSelected()> can't be true - see above.
{
nSelection = GetSelectionType();
if ( nsSelectionType::SEL_FRM & nSelection ||
@@ -382,7 +382,7 @@ long SwWrtShell::DelRight()
nsSelectionType::SEL_OLE & nSelection ||
nsSelectionType::SEL_DRW & nSelection )
{
- EnterSelFrmMode();
+ EnterSelFrameMode();
GotoNextFly();
}
}
@@ -454,12 +454,12 @@ long SwWrtShell::DelToEndOfSentence()
{
Push();
ClearMark();
- if (SwCrsrShell::Right(1,CRSR_SKIP_CHARS))
+ if (SwCursorShell::Right(1,CRSR_SKIP_CHARS))
{
SetMark();
if (!IsEndPara()) // can only be at the end if it's empty
{ // for an empty paragraph this would actually select the _next_
- SwCrsrShell::MovePara(fnParaCurr, fnParaEnd);
+ SwCursorShell::MovePara(fnParaCurr, fnParaEnd);
}
if (!IsEndOfDoc()) // do not delete last paragraph in body text
{
diff --git a/sw/source/uibase/wrtsh/move.cxx b/sw/source/uibase/wrtsh/move.cxx
index 0ab3213a2f99..904c76697f20 100644
--- a/sw/source/uibase/wrtsh/move.cxx
+++ b/sw/source/uibase/wrtsh/move.cxx
@@ -38,18 +38,18 @@
const long nReadOnlyScrollOfst = 10;
-class ShellMoveCrsr
+class ShellMoveCursor
{
SwWrtShell* pSh;
bool bAct;
public:
- inline ShellMoveCrsr( SwWrtShell* pWrtSh, bool bSel )
+ inline ShellMoveCursor( SwWrtShell* pWrtSh, bool bSel )
{
- bAct = !pWrtSh->ActionPend() && (pWrtSh->GetFrmType(nullptr,false) & FrmTypeFlags::FLY_ANY);
- ( pSh = pWrtSh )->MoveCrsr( bSel );
+ bAct = !pWrtSh->ActionPend() && (pWrtSh->GetFrameType(nullptr,false) & FrameTypeFlags::FLY_ANY);
+ ( pSh = pWrtSh )->MoveCursor( bSel );
pWrtSh->GetView().GetViewFrame()->GetBindings().Invalidate(SID_HYPERLINK_GETLINK);
}
- inline ~ShellMoveCrsr()
+ inline ~ShellMoveCursor()
{
if( bAct )
{
@@ -61,7 +61,7 @@ public:
}
};
-void SwWrtShell::MoveCrsr( bool bWithSelect )
+void SwWrtShell::MoveCursor( bool bWithSelect )
{
ResetCursorStack();
if ( IsGCAttr() )
@@ -83,20 +83,20 @@ bool SwWrtShell::SimpleMove( FNSimpleMove FnSimpleMove, bool bSelect )
bool bRet;
if( bSelect )
{
- SttCrsrMove();
- MoveCrsr( true );
+ SttCursorMove();
+ MoveCursor( true );
bRet = (this->*FnSimpleMove)();
- EndCrsrMove();
+ EndCursorMove();
}
else if( ( bRet = (this->*FnSimpleMove)() ) )
- MoveCrsr();
+ MoveCursor();
return bRet;
}
bool SwWrtShell::Left( sal_uInt16 nMode, bool bSelect,
sal_uInt16 nCount, bool bBasicCall, bool bVisual )
{
- if ( !bSelect && !bBasicCall && IsCrsrReadonly() && !GetViewOptions()->IsSelectionInReadonly())
+ if ( !bSelect && !bBasicCall && IsCursorReadonly() && !GetViewOptions()->IsSelectionInReadonly())
{
Point aTmp( VisArea().Pos() );
aTmp.X() -= VisArea().Width() * nReadOnlyScrollOfst / 100;
@@ -105,15 +105,15 @@ bool SwWrtShell::Left( sal_uInt16 nMode, bool bSelect,
}
else
{
- ShellMoveCrsr aTmp( this, bSelect );
- return SwCrsrShell::Left( nCount, nMode, bVisual );
+ ShellMoveCursor aTmp( this, bSelect );
+ return SwCursorShell::Left( nCount, nMode, bVisual );
}
}
bool SwWrtShell::Right( sal_uInt16 nMode, bool bSelect,
sal_uInt16 nCount, bool bBasicCall, bool bVisual )
{
- if ( !bSelect && !bBasicCall && IsCrsrReadonly() && !GetViewOptions()->IsSelectionInReadonly() )
+ if ( !bSelect && !bBasicCall && IsCursorReadonly() && !GetViewOptions()->IsSelectionInReadonly() )
{
Point aTmp( VisArea().Pos() );
aTmp.X() += VisArea().Width() * nReadOnlyScrollOfst / 100;
@@ -123,14 +123,14 @@ bool SwWrtShell::Right( sal_uInt16 nMode, bool bSelect,
}
else
{
- ShellMoveCrsr aTmp( this, bSelect );
- return SwCrsrShell::Right( nCount, nMode, bVisual );
+ ShellMoveCursor aTmp( this, bSelect );
+ return SwCursorShell::Right( nCount, nMode, bVisual );
}
}
bool SwWrtShell::Up( bool bSelect, sal_uInt16 nCount, bool bBasicCall )
{
- if ( !bSelect && !bBasicCall && IsCrsrReadonly() && !GetViewOptions()->IsSelectionInReadonly())
+ if ( !bSelect && !bBasicCall && IsCursorReadonly() && !GetViewOptions()->IsSelectionInReadonly())
{
Point aTmp( VisArea().Pos() );
aTmp.Y() -= VisArea().Height() * nReadOnlyScrollOfst / 100;
@@ -138,13 +138,13 @@ bool SwWrtShell::Up( bool bSelect, sal_uInt16 nCount, bool bBasicCall )
return true;
}
- ShellMoveCrsr aTmp( this, bSelect );
- return SwCrsrShell::Up( nCount );
+ ShellMoveCursor aTmp( this, bSelect );
+ return SwCursorShell::Up( nCount );
}
bool SwWrtShell::Down( bool bSelect, sal_uInt16 nCount, bool bBasicCall )
{
- if ( !bSelect && !bBasicCall && IsCrsrReadonly() && !GetViewOptions()->IsSelectionInReadonly())
+ if ( !bSelect && !bBasicCall && IsCursorReadonly() && !GetViewOptions()->IsSelectionInReadonly())
{
Point aTmp( VisArea().Pos() );
aTmp.Y() += VisArea().Height() * nReadOnlyScrollOfst / 100;
@@ -153,13 +153,13 @@ bool SwWrtShell::Down( bool bSelect, sal_uInt16 nCount, bool bBasicCall )
return true;
}
- ShellMoveCrsr aTmp( this, bSelect );
- return SwCrsrShell::Down( nCount );
+ ShellMoveCursor aTmp( this, bSelect );
+ return SwCursorShell::Down( nCount );
}
bool SwWrtShell::LeftMargin( bool bSelect, bool bBasicCall )
{
- if ( !bSelect && !bBasicCall && IsCrsrReadonly() )
+ if ( !bSelect && !bBasicCall && IsCursorReadonly() )
{
Point aTmp( VisArea().Pos() );
aTmp.X() = DOCUMENTBORDER;
@@ -168,14 +168,14 @@ bool SwWrtShell::LeftMargin( bool bSelect, bool bBasicCall )
}
else
{
- ShellMoveCrsr aTmp( this, bSelect );
- return SwCrsrShell::LeftMargin();
+ ShellMoveCursor aTmp( this, bSelect );
+ return SwCursorShell::LeftMargin();
}
}
bool SwWrtShell::RightMargin( bool bSelect, bool bBasicCall )
{
- if ( !bSelect && !bBasicCall && IsCrsrReadonly() )
+ if ( !bSelect && !bBasicCall && IsCursorReadonly() )
{
Point aTmp( VisArea().Pos() );
aTmp.X() = GetDocSize().Width() - VisArea().Width() + DOCUMENTBORDER;
@@ -186,15 +186,15 @@ bool SwWrtShell::RightMargin( bool bSelect, bool bBasicCall )
}
else
{
- ShellMoveCrsr aTmp( this, bSelect );
- return SwCrsrShell::RightMargin(bBasicCall);
+ ShellMoveCursor aTmp( this, bSelect );
+ return SwCursorShell::RightMargin(bBasicCall);
}
}
bool SwWrtShell::GoStart( bool bKeepArea, bool *pMoveTable,
bool bSelect, bool bDontMoveRegion )
{
- if ( IsCrsrInTable() )
+ if ( IsCursorInTable() )
{
const bool bBoxSelection = HasBoxSelection();
if( !m_bBlockMode )
@@ -237,15 +237,15 @@ bool SwWrtShell::GoStart( bool bKeepArea, bool *pMoveTable,
else
SttSelect();
}
- const FrmTypeFlags nFrmType = GetFrmType(nullptr,false);
- if ( FrmTypeFlags::FLY_ANY & nFrmType )
+ const FrameTypeFlags nFrameType = GetFrameType(nullptr,false);
+ if ( FrameTypeFlags::FLY_ANY & nFrameType )
{
if( MoveSection( fnSectionCurr, fnSectionStart ) )
return true;
- else if ( FrmTypeFlags::FLY_FREE & nFrmType || bDontMoveRegion )
+ else if ( FrameTypeFlags::FLY_FREE & nFrameType || bDontMoveRegion )
return false;
}
- if(( FrmTypeFlags::HEADER | FrmTypeFlags::FOOTER | FrmTypeFlags::FOOTNOTE ) & nFrmType )
+ if(( FrameTypeFlags::HEADER | FrameTypeFlags::FOOTER | FrameTypeFlags::FOOTNOTE ) & nFrameType )
{
if ( MoveSection( fnSectionCurr, fnSectionStart ) )
return true;
@@ -253,8 +253,8 @@ bool SwWrtShell::GoStart( bool bKeepArea, bool *pMoveTable,
return true;
}
// Regions ???
- return SwCrsrShell::MoveRegion( fnRegionCurrAndSkip, fnRegionStart ) ||
- SwCrsrShell::SttEndDoc(true);
+ return SwCursorShell::MoveRegion( fnRegionCurrAndSkip, fnRegionStart ) ||
+ SwCursorShell::SttEndDoc(true);
}
bool SwWrtShell::GoEnd(bool bKeepArea, bool *pMoveTable)
@@ -262,7 +262,7 @@ bool SwWrtShell::GoEnd(bool bKeepArea, bool *pMoveTable)
if ( pMoveTable && *pMoveTable )
return MoveTable( fnTableCurr, fnTableEnd );
- if ( IsCrsrInTable() )
+ if ( IsCursorInTable() )
{
if ( MoveSection( fnSectionCurr, fnSectionEnd ) ||
MoveTable( fnTableCurr, fnTableEnd ) )
@@ -270,15 +270,15 @@ bool SwWrtShell::GoEnd(bool bKeepArea, bool *pMoveTable)
}
else
{
- const FrmTypeFlags nFrmType = GetFrmType(nullptr,false);
- if ( FrmTypeFlags::FLY_ANY & nFrmType )
+ const FrameTypeFlags nFrameType = GetFrameType(nullptr,false);
+ if ( FrameTypeFlags::FLY_ANY & nFrameType )
{
if ( MoveSection( fnSectionCurr, fnSectionEnd ) )
return true;
- else if ( FrmTypeFlags::FLY_FREE & nFrmType )
+ else if ( FrameTypeFlags::FLY_FREE & nFrameType )
return false;
}
- if(( FrmTypeFlags::HEADER | FrmTypeFlags::FOOTER | FrmTypeFlags::FOOTNOTE ) & nFrmType )
+ if(( FrameTypeFlags::HEADER | FrameTypeFlags::FOOTER | FrameTypeFlags::FOOTNOTE ) & nFrameType )
{
if ( MoveSection( fnSectionCurr, fnSectionEnd) )
return true;
@@ -287,67 +287,67 @@ bool SwWrtShell::GoEnd(bool bKeepArea, bool *pMoveTable)
}
}
// Regions ???
- return SwCrsrShell::MoveRegion( fnRegionCurrAndSkip, fnRegionEnd ) ||
- SwCrsrShell::SttEndDoc(false);
+ return SwCursorShell::MoveRegion( fnRegionCurrAndSkip, fnRegionEnd ) ||
+ SwCursorShell::SttEndDoc(false);
}
bool SwWrtShell::SttDoc( bool bSelect )
{
- ShellMoveCrsr aTmp( this, bSelect );
+ ShellMoveCursor aTmp( this, bSelect );
return GoStart(false, nullptr, bSelect );
}
bool SwWrtShell::EndDoc( bool bSelect)
{
- ShellMoveCrsr aTmp( this, bSelect );
+ ShellMoveCursor aTmp( this, bSelect );
return GoEnd();
}
bool SwWrtShell::SttNxtPg( bool bSelect )
{
- ShellMoveCrsr aTmp( this, bSelect );
+ ShellMoveCursor aTmp( this, bSelect );
return MovePage( fnPageNext, fnPageStart );
}
bool SwWrtShell::SttPrvPg( bool bSelect )
{
- ShellMoveCrsr aTmp( this, bSelect );
+ ShellMoveCursor aTmp( this, bSelect );
return MovePage( fnPagePrev, fnPageStart );
}
bool SwWrtShell::EndNxtPg( bool bSelect )
{
- ShellMoveCrsr aTmp( this, bSelect );
+ ShellMoveCursor aTmp( this, bSelect );
return MovePage( fnPageNext, fnPageEnd );
}
bool SwWrtShell::EndPrvPg( bool bSelect )
{
- ShellMoveCrsr aTmp( this, bSelect );
+ ShellMoveCursor aTmp( this, bSelect );
return MovePage( fnPagePrev, fnPageEnd );
}
bool SwWrtShell::SttPg( bool bSelect )
{
- ShellMoveCrsr aTmp( this, bSelect );
+ ShellMoveCursor aTmp( this, bSelect );
return MovePage( fnPageCurr, fnPageStart );
}
bool SwWrtShell::EndPg( bool bSelect )
{
- ShellMoveCrsr aTmp( this, bSelect );
+ ShellMoveCursor aTmp( this, bSelect );
return MovePage( fnPageCurr, fnPageEnd );
}
bool SwWrtShell::SttPara( bool bSelect )
{
- ShellMoveCrsr aTmp( this, bSelect );
+ ShellMoveCursor aTmp( this, bSelect );
return MovePara( fnParaCurr, fnParaStart );
}
bool SwWrtShell::EndPara( bool bSelect )
{
- ShellMoveCrsr aTmp( this, bSelect );
+ ShellMoveCursor aTmp( this, bSelect );
return MovePara(fnParaCurr,fnParaEnd);
}
@@ -357,41 +357,41 @@ bool SwWrtShell::EndPara( bool bSelect )
bool SwWrtShell::StartOfColumn( bool bSelect )
{
- ShellMoveCrsr aTmp( this, bSelect);
+ ShellMoveCursor aTmp( this, bSelect);
return MoveColumn(fnColumnCurr, fnColumnStart);
}
bool SwWrtShell::EndOfColumn( bool bSelect )
{
- ShellMoveCrsr aTmp( this, bSelect);
+ ShellMoveCursor aTmp( this, bSelect);
return MoveColumn(fnColumnCurr, fnColumnEnd);
}
bool SwWrtShell::StartOfNextColumn( bool bSelect )
{
- ShellMoveCrsr aTmp( this, bSelect);
+ ShellMoveCursor aTmp( this, bSelect);
return MoveColumn( fnColumnNext, fnColumnStart);
}
bool SwWrtShell::EndOfNextColumn( bool bSelect )
{
- ShellMoveCrsr aTmp( this, bSelect);
+ ShellMoveCursor aTmp( this, bSelect);
return MoveColumn(fnColumnNext, fnColumnEnd);
}
bool SwWrtShell::StartOfPrevColumn( bool bSelect )
{
- ShellMoveCrsr aTmp( this, bSelect);
+ ShellMoveCursor aTmp( this, bSelect);
return MoveColumn(fnColumnPrev, fnColumnStart);
}
bool SwWrtShell::EndOfPrevColumn( bool bSelect )
{
- ShellMoveCrsr aTmp( this, bSelect);
+ ShellMoveCursor aTmp( this, bSelect);
return MoveColumn(fnColumnPrev, fnColumnEnd);
}
-bool SwWrtShell::PushCrsr(SwTwips lOffset, bool bSelect)
+bool SwWrtShell::PushCursor(SwTwips lOffset, bool bSelect)
{
bool bDiff = false;
SwRect aOldRect( GetCharRect() ), aTmpArea( VisArea() );
@@ -402,8 +402,8 @@ bool SwWrtShell::PushCrsr(SwTwips lOffset, bool bSelect)
{
Point aPt( aOldRect.Center() );
- if( !IsCrsrVisible() )
- // set CrsrPos to top-/bottom left pos. So the pagescroll is not
+ if( !IsCursorVisible() )
+ // set CursorPos to top-/bottom left pos. So the pagescroll is not
// be dependent on the current cursor, but on the visarea.
aPt.Y() = aTmpArea.Top() + aTmpArea.Height() / 2;
@@ -413,9 +413,9 @@ bool SwWrtShell::PushCrsr(SwTwips lOffset, bool bSelect)
m_bDestOnStack = true;
}
- // If we had a frame selection, it must be removed after the m_fnSetCrsr
+ // If we had a frame selection, it must be removed after the m_fnSetCursor
// and we have to remember the position on the stack to return to it later.
- bool bIsFrmSel = false;
+ bool bIsFrameSel = false;
//Target position is now within the viewable region -->
//Place the cursor at the target position; remember that no target
@@ -429,14 +429,14 @@ bool SwWrtShell::PushCrsr(SwTwips lOffset, bool bSelect)
else
EndSelect();
- bIsFrmSel = IsFrmSelected();
+ bIsFrameSel = IsFrameSelected();
bool bIsObjSel = 0 != IsObjSelected();
// unselect frame
- if( bIsFrmSel || bIsObjSel )
+ if( bIsFrameSel || bIsObjSel )
{
- UnSelectFrm();
- LeaveSelFrmMode();
+ UnSelectFrame();
+ LeaveSelFrameMode();
if ( bIsObjSel )
{
GetView().SetDrawFuncPtr( nullptr );
@@ -446,11 +446,11 @@ bool SwWrtShell::PushCrsr(SwTwips lOffset, bool bSelect)
CallChgLnk();
}
- (this->*m_fnSetCrsr)( &m_aDest, true );
+ (this->*m_fnSetCursor)( &m_aDest, true );
bDiff = aOldRect != GetCharRect();
- if( bIsFrmSel )
+ if( bIsFrameSel )
{
// In frames take only the upper corner
// so that it can be re-selected.
@@ -463,36 +463,36 @@ bool SwWrtShell::PushCrsr(SwTwips lOffset, bool bSelect)
// Position into the stack; bDiff indicates if there is a
// difference between the old and the new cursor position.
- m_pCrsrStack = new CrsrStack( bDiff, bIsFrmSel, aOldRect.Center(),
- lOffset, m_pCrsrStack );
+ m_pCursorStack = new CursorStack( bDiff, bIsFrameSel, aOldRect.Center(),
+ lOffset, m_pCursorStack );
return !m_bDestOnStack && bDiff;
}
-bool SwWrtShell::PopCrsr(bool bUpdate, bool bSelect)
+bool SwWrtShell::PopCursor(bool bUpdate, bool bSelect)
{
- if( nullptr == m_pCrsrStack)
+ if( nullptr == m_pCursorStack)
return false;
- const bool bValidPos = m_pCrsrStack->bValidCurPos;
+ const bool bValidPos = m_pCursorStack->bValidCurPos;
if( bUpdate && bValidPos )
{
// If a predecessor is on the stack,
// use the flag for a valid position.
SwRect aTmpArea(VisArea());
- aTmpArea.Pos().Y() -= m_pCrsrStack->lOffset;
- if( aTmpArea.IsInside( m_pCrsrStack->aDocPos ) )
+ aTmpArea.Pos().Y() -= m_pCursorStack->lOffset;
+ if( aTmpArea.IsInside( m_pCursorStack->aDocPos ) )
{
if( bSelect )
SttSelect();
else
EndSelect();
- (this->*m_fnSetCrsr)(&m_pCrsrStack->aDocPos, !m_pCrsrStack->bIsFrmSel);
- if( m_pCrsrStack->bIsFrmSel && IsObjSelectable(m_pCrsrStack->aDocPos))
+ (this->*m_fnSetCursor)(&m_pCursorStack->aDocPos, !m_pCursorStack->bIsFrameSel);
+ if( m_pCursorStack->bIsFrameSel && IsObjSelectable(m_pCursorStack->aDocPos))
{
- HideCrsr();
- SelectObj( m_pCrsrStack->aDocPos );
- EnterSelFrmMode( &m_pCrsrStack->aDocPos );
+ HideCursor();
+ SelectObj( m_pCursorStack->aDocPos );
+ EnterSelFrameMode( &m_pCursorStack->aDocPos );
}
}
// If a discrepancy between the visible range and the
@@ -504,10 +504,10 @@ bool SwWrtShell::PopCrsr(bool bUpdate, bool bSelect)
return false;
}
}
- CrsrStack *pTmp = m_pCrsrStack;
- m_pCrsrStack = m_pCrsrStack->pNext;
+ CursorStack *pTmp = m_pCursorStack;
+ m_pCursorStack = m_pCursorStack->pNext;
delete pTmp;
- if( nullptr == m_pCrsrStack )
+ if( nullptr == m_pCursorStack )
{
m_ePageMove = MV_NO;
m_bDestOnStack = false;
@@ -520,11 +520,11 @@ bool SwWrtShell::PopCrsr(bool bUpdate, bool bSelect)
void SwWrtShell::_ResetCursorStack()
{
- while(m_pCrsrStack)
+ while(m_pCursorStack)
{
- CrsrStack* const pTmp = m_pCrsrStack->pNext;
- delete m_pCrsrStack;
- m_pCrsrStack = pTmp;
+ CursorStack* const pTmp = m_pCursorStack->pNext;
+ delete m_pCursorStack;
+ m_pCursorStack = pTmp;
}
m_ePageMove = MV_NO;
m_bDestOnStack = false;
@@ -538,7 +538,7 @@ void SwWrtShell::_ResetCursorStack()
transpose cursor
*/
-bool SwWrtShell::PageCrsr(SwTwips lOffset, bool bSelect)
+bool SwWrtShell::PageCursor(SwTwips lOffset, bool bSelect)
{
// Do nothing if an offset of 0 was indicated
if(!lOffset) return false;
@@ -548,29 +548,29 @@ bool SwWrtShell::PageCrsr(SwTwips lOffset, bool bSelect)
// Start-/EndActionParentheses.
// Because only SwViewShell::EndAction() is called at the end,
// no updating of the display of the cursor position takes place.
- // The CrsrShell-Actionparentheses cannot be used, because it
+ // The CursorShell-Actionparentheses cannot be used, because it
// always leads to displaying the cursor, thus also,
// if after the scroll scrolled in a region without a valid postition.
// SwViewShell::StartAction();
PageMove eDir = lOffset > 0? MV_PAGE_DOWN: MV_PAGE_UP;
// Change of direction and stack present
- if( eDir != m_ePageMove && m_ePageMove != MV_NO && PopCrsr( true, bSelect ))
+ if( eDir != m_ePageMove && m_ePageMove != MV_NO && PopCursor( true, bSelect ))
return true;
- const bool bRet = PushCrsr(lOffset, bSelect);
+ const bool bRet = PushCursor(lOffset, bSelect);
m_ePageMove = eDir;
return bRet;
}
bool SwWrtShell::GotoPage(sal_uInt16 nPage, bool bRecord)
{
- ShellMoveCrsr aTmp( this, false);
- if( SwCrsrShell::GotoPage(nPage) && bRecord)
+ ShellMoveCursor aTmp( this, false);
+ if( SwCursorShell::GotoPage(nPage) && bRecord)
{
- if(IsSelFrmMode())
+ if(IsSelFrameMode())
{
- UnSelectFrm();
- LeaveSelFrmMode();
+ UnSelectFrame();
+ LeaveSelFrameMode();
}
return true;
}
@@ -579,9 +579,9 @@ bool SwWrtShell::GotoPage(sal_uInt16 nPage, bool bRecord)
bool SwWrtShell::GotoMark( const ::sw::mark::IMark* const pMark, bool bSelect, bool bStart )
{
- ShellMoveCrsr aTmp( this, bSelect );
- SwPosition aPos = *GetCrsr()->GetPoint();
- bool bRet = SwCrsrShell::GotoMark( pMark, bStart );
+ ShellMoveCursor aTmp( this, bSelect );
+ SwPosition aPos = *GetCursor()->GetPoint();
+ bool bRet = SwCursorShell::GotoMark( pMark, bStart );
if (bRet)
m_aNavigationMgr.addEntry(aPos);
return bRet;
@@ -589,7 +589,7 @@ bool SwWrtShell::GotoMark( const ::sw::mark::IMark* const pMark, bool bSelect, b
bool SwWrtShell::GotoFly( const OUString& rName, FlyCntType eType, bool bSelFrame )
{
- SwPosition aPos = *GetCrsr()->GetPoint();
+ SwPosition aPos = *GetCursor()->GetPoint();
bool bRet = SwFEShell::GotoFly(rName, eType, bSelFrame);
if (bRet)
m_aNavigationMgr.addEntry(aPos);
@@ -598,8 +598,8 @@ bool SwWrtShell::GotoFly( const OUString& rName, FlyCntType eType, bool bSelFram
bool SwWrtShell::GotoINetAttr( const SwTextINetFormat& rAttr )
{
- SwPosition aPos = *GetCrsr()->GetPoint();
- bool bRet = SwCrsrShell::GotoINetAttr(rAttr);
+ SwPosition aPos = *GetCursor()->GetPoint();
+ bool bRet = SwCursorShell::GotoINetAttr(rAttr);
if (bRet)
m_aNavigationMgr.addEntry(aPos);
return bRet;
@@ -608,13 +608,13 @@ bool SwWrtShell::GotoINetAttr( const SwTextINetFormat& rAttr )
void SwWrtShell::GotoOutline( sal_uInt16 nIdx )
{
addCurrentPosition();
- SwCrsrShell::GotoOutline (nIdx);
+ SwCursorShell::GotoOutline (nIdx);
}
bool SwWrtShell::GotoOutline( const OUString& rName )
{
- SwPosition aPos = *GetCrsr()->GetPoint();
- bool bRet = SwCrsrShell::GotoOutline (rName);
+ SwPosition aPos = *GetCursor()->GetPoint();
+ bool bRet = SwCursorShell::GotoOutline (rName);
if (bRet)
m_aNavigationMgr.addEntry(aPos);
return bRet;
@@ -622,8 +622,8 @@ bool SwWrtShell::GotoOutline( const OUString& rName )
bool SwWrtShell::GotoRegion( const OUString& rName )
{
- SwPosition aPos = *GetCrsr()->GetPoint();
- bool bRet = SwCrsrShell::GotoRegion (rName);
+ SwPosition aPos = *GetCursor()->GetPoint();
+ bool bRet = SwCursorShell::GotoRegion (rName);
if (bRet)
m_aNavigationMgr.addEntry(aPos);
return bRet;
@@ -632,8 +632,8 @@ bool SwWrtShell::GotoRegion( const OUString& rName )
bool SwWrtShell::GotoRefMark( const OUString& rRefMark, sal_uInt16 nSubType,
sal_uInt16 nSeqNo )
{
- SwPosition aPos = *GetCrsr()->GetPoint();
- bool bRet = SwCrsrShell::GotoRefMark(rRefMark, nSubType, nSeqNo);
+ SwPosition aPos = *GetCursor()->GetPoint();
+ bool bRet = SwCursorShell::GotoRefMark(rRefMark, nSubType, nSeqNo);
if (bRet)
m_aNavigationMgr.addEntry(aPos);
return bRet;
@@ -641,8 +641,8 @@ bool SwWrtShell::GotoRefMark( const OUString& rRefMark, sal_uInt16 nSubType,
bool SwWrtShell::GotoNextTOXBase( const OUString* pName )
{
- SwPosition aPos = *GetCrsr()->GetPoint();
- bool bRet = SwCrsrShell::GotoNextTOXBase(pName);
+ SwPosition aPos = *GetCursor()->GetPoint();
+ bool bRet = SwCursorShell::GotoNextTOXBase(pName);
if (bRet)
m_aNavigationMgr.addEntry(aPos);
return bRet;
@@ -650,24 +650,24 @@ bool SwWrtShell::GotoNextTOXBase( const OUString* pName )
bool SwWrtShell::GotoTable( const OUString& rName )
{
- SwPosition aPos = *GetCrsr()->GetPoint();
- bool bRet = SwCrsrShell::GotoTable(rName);
+ SwPosition aPos = *GetCursor()->GetPoint();
+ bool bRet = SwCursorShell::GotoTable(rName);
if (bRet)
m_aNavigationMgr.addEntry(aPos);
return bRet;
}
bool SwWrtShell::GotoFormatField( const SwFormatField& rField ) {
- SwPosition aPos = *GetCrsr()->GetPoint();
- bool bRet = SwCrsrShell::GotoFormatField(rField);
+ SwPosition aPos = *GetCursor()->GetPoint();
+ bool bRet = SwCursorShell::GotoFormatField(rField);
if (bRet)
m_aNavigationMgr.addEntry(aPos);
return bRet;
}
const SwRangeRedline* SwWrtShell::GotoRedline( sal_uInt16 nArrPos, bool bSelect ) {
- SwPosition aPos = *GetCrsr()->GetPoint();
- const SwRangeRedline *pRedline = SwCrsrShell::GotoRedline(nArrPos, bSelect);
+ SwPosition aPos = *GetCursor()->GetPoint();
+ const SwRangeRedline *pRedline = SwCursorShell::GotoRedline(nArrPos, bSelect);
if (pRedline)
m_aNavigationMgr.addEntry(aPos);
return pRedline;
@@ -679,7 +679,7 @@ bool SwWrtShell::SelectTextAttr( sal_uInt16 nWhich, const SwTextAttr* pAttr )
{
SwMvContext aMvContext(this);
SttSelect();
- bRet = SwCrsrShell::SelectTextAttr( nWhich, false, pAttr );
+ bRet = SwCursorShell::SelectTextAttr( nWhich, false, pAttr );
}
EndSelect();
return bRet;
diff --git a/sw/source/uibase/wrtsh/navmgr.cxx b/sw/source/uibase/wrtsh/navmgr.cxx
index 1811532e2d50..13888fc5bcab 100644
--- a/sw/source/uibase/wrtsh/navmgr.cxx
+++ b/sw/source/uibase/wrtsh/navmgr.cxx
@@ -28,7 +28,7 @@ void SwNavigationMgr::GotoSwPosition(const SwPosition &rPos) {
// cursor consists of two SwPositions: Point and Mark.
// Such a pair is called a PaM. SwPaM is derived from SwRing.
// The Ring contains the single regions of a multi-selection.
- SwPaM* pPaM = m_rMyShell.GetCrsr();
+ SwPaM* pPaM = m_rMyShell.GetCursor();
if(pPaM->HasMark())
pPaM->DeleteMark(); // If there was a selection, get rid of it
@@ -77,7 +77,7 @@ void SwNavigationMgr::goBack() {
if (backEnabled()) {
/* Trying to get the current cursor */
- SwPaM* pPaM = m_rMyShell.GetCrsr();
+ SwPaM* pPaM = m_rMyShell.GetCursor();
if (!pPaM) {
return;
}
@@ -162,14 +162,14 @@ bool SwNavigationMgr::addEntry(const SwPosition& rPos) {
if (*m_entries.back()->GetPoint() != rPos)
{
- sw::UnoCursorPointer pCursor(m_rMyShell.GetDoc()->CreateUnoCrsr(rPos));
+ sw::UnoCursorPointer pCursor(m_rMyShell.GetDoc()->CreateUnoCursor(rPos));
m_entries.push_back(pCursor);
}
bRet = true;
}
else {
if ( (!m_entries.empty() && *m_entries.back()->GetPoint() != rPos) || m_entries.empty() ) {
- sw::UnoCursorPointer pCursor(m_rMyShell.GetDoc()->CreateUnoCrsr(rPos));
+ sw::UnoCursorPointer pCursor(m_rMyShell.GetDoc()->CreateUnoCursor(rPos));
m_entries.push_back(pCursor);
bRet = true;
}
diff --git a/sw/source/uibase/wrtsh/select.cxx b/sw/source/uibase/wrtsh/select.cxx
index d617c02ed977..805b075a05d4 100644
--- a/sw/source/uibase/wrtsh/select.cxx
+++ b/sw/source/uibase/wrtsh/select.cxx
@@ -76,7 +76,7 @@ bool SwWrtShell::SelWrd(const Point *pPt, bool )
{
SwMvContext aMvContext(this);
SttSelect();
- bRet = SwCrsrShell::SelectWord( pPt );
+ bRet = SwCursorShell::SelectWord( pPt );
}
EndSelect();
if( bRet )
@@ -93,9 +93,9 @@ void SwWrtShell::SelSentence(const Point *pPt, bool )
{
SwMvContext aMvContext(this);
ClearMark();
- SwCrsrShell::GoStartSentence();
+ SwCursorShell::GoStartSentence();
SttSelect();
- SwCrsrShell::GoEndSentence();
+ SwCursorShell::GoEndSentence();
}
EndSelect();
if(pPt)
@@ -109,9 +109,9 @@ void SwWrtShell::SelPara(const Point *pPt, bool )
{
SwMvContext aMvContext(this);
ClearMark();
- SwCrsrShell::MovePara( fnParaCurr, fnParaStart );
+ SwCursorShell::MovePara( fnParaCurr, fnParaStart );
SttSelect();
- SwCrsrShell::MovePara( fnParaCurr, fnParaEnd );
+ SwCursorShell::MovePara( fnParaCurr, fnParaEnd );
}
EndSelect();
if(pPt)
@@ -131,21 +131,21 @@ long SwWrtShell::SelAll()
bool bMoveTable = false;
std::unique_ptr<SwPosition> pStartPos;
std::unique_ptr<SwPosition> pEndPos;
- SwShellCrsr* pTmpCrsr = nullptr;
+ SwShellCursor* pTmpCursor = nullptr;
// Query these early, before we move the cursor.
bool bHasWholeTabSelection = HasWholeTabSelection();
- bool bIsCursorInTable = IsCrsrInTable();
+ bool bIsCursorInTable = IsCursorInTable();
if (!bHasWholeTabSelection)
{
- if ( IsSelection() && IsCrsrPtAtEnd() )
+ if ( IsSelection() && IsCursorPtAtEnd() )
SwapPam();
- pTmpCrsr = getShellCrsr( false );
- if( pTmpCrsr )
+ pTmpCursor = getShellCursor( false );
+ if( pTmpCursor )
{
- pStartPos.reset(new SwPosition( *pTmpCrsr->GetPoint() ));
- pEndPos.reset(new SwPosition( *pTmpCrsr->GetMark() ));
+ pStartPos.reset(new SwPosition( *pTmpCursor->GetPoint() ));
+ pEndPos.reset(new SwPosition( *pTmpCursor->GetMark() ));
}
Push();
bool bIsFullSel = !MoveSection( fnSectionCurr, fnSectionStart);
@@ -173,10 +173,10 @@ long SwWrtShell::SelAll()
if (bNeedsExtendedSelectAll)
{
- // Disable table cursor to make sure getShellCrsr() returns m_pCurCrsr, not m_pTableCrsr.
+ // Disable table cursor to make sure getShellCursor() returns m_pCurrentCursor, not m_pTableCursor.
if (IsTableMode())
- TableCrsrToCursor();
- // Do the extended select all on m_pCurCrsr.
+ TableCursorToCursor();
+ // Do the extended select all on m_pCurrentCursor.
ExtendedSelectAll(/*bFootnotes =*/ false);
}
@@ -188,18 +188,18 @@ long SwWrtShell::SelAll()
if( pStartPos )
{
- pTmpCrsr = getShellCrsr( false );
- if( pTmpCrsr )
+ pTmpCursor = getShellCursor( false );
+ if( pTmpCursor )
{
// Some special handling for sections (e.g. TOC) at the beginning of the document body
// to avoid the selection of the first section
// if the last selection was behind the first section or
// if the last selection was already the first section
// In this both cases we select to the end of document
- if( ( *pTmpCrsr->GetPoint() < *pEndPos ||
- ( *pStartPos == *pTmpCrsr->GetMark() &&
- *pEndPos == *pTmpCrsr->GetPoint() ) ) && !bNeedsExtendedSelectAll)
- SwCrsrShell::SttEndDoc(false);
+ if( ( *pTmpCursor->GetPoint() < *pEndPos ||
+ ( *pStartPos == *pTmpCursor->GetMark() &&
+ *pEndPos == *pTmpCursor->GetPoint() ) ) && !bNeedsExtendedSelectAll)
+ SwCursorShell::SttEndDoc(false);
}
}
}
@@ -304,7 +304,7 @@ void SwWrtShell::PopMode()
// eponymous methodes in the CursorShell, the second removes
// all selections at first.
-long SwWrtShell::SetCrsr(const Point *pPt, bool bTextOnly)
+long SwWrtShell::SetCursor(const Point *pPt, bool bTextOnly)
{
// Remove a possibly present selection at the position
// of the mouseclick
@@ -313,17 +313,17 @@ long SwWrtShell::SetCrsr(const Point *pPt, bool bTextOnly)
ClearMark();
}
- return SwCrsrShell::SetCrsr(*pPt, bTextOnly);
+ return SwCursorShell::SetCursor(*pPt, bTextOnly);
}
-long SwWrtShell::SetCrsrKillSel(const Point *pPt, bool bTextOnly )
+long SwWrtShell::SetCursorKillSel(const Point *pPt, bool bTextOnly )
{
SwActContext aActContext(this);
ResetSelect(pPt,false);
- return SwCrsrShell::SetCrsr(*pPt, bTextOnly);
+ return SwCursorShell::SetCursor(*pPt, bTextOnly);
}
-void SwWrtShell::UnSelectFrm()
+void SwWrtShell::UnSelectFrame()
{
// Remove Frame selection with guaranteed invalid position
Point aPt(LONG_MIN, LONG_MIN);
@@ -335,10 +335,10 @@ void SwWrtShell::UnSelectFrm()
long SwWrtShell::ResetSelect(const Point *,bool)
{
- if(IsSelFrmMode())
+ if(IsSelFrameMode())
{
- UnSelectFrm();
- LeaveSelFrmMode();
+ UnSelectFrame();
+ LeaveSelFrameMode();
}
else
{
@@ -352,7 +352,7 @@ long SwWrtShell::ResetSelect(const Point *,bool)
KillPams();
ClearMark();
m_fnKillSel = &SwWrtShell::Ignore;
- m_fnSetCrsr = &SwWrtShell::SetCrsr;
+ m_fnSetCursor = &SwWrtShell::SetCursor;
}
// After canceling of all selections an update of Attr-Controls
@@ -380,12 +380,12 @@ void SwWrtShell::SttSelect()
SetMark();
if( m_bBlockMode )
{
- SwShellCrsr* pTmp = getShellCrsr( true );
+ SwShellCursor* pTmp = getShellCursor( true );
if( !pTmp->HasMark() )
pTmp->SetMark();
}
m_fnKillSel = &SwWrtShell::Ignore;
- m_fnSetCrsr = &SwWrtShell::SetCrsr;
+ m_fnSetCursor = &SwWrtShell::SetCursor;
m_bInSelect = true;
Invalidate();
SwTransferable::CreateSelection( *this );
@@ -405,7 +405,7 @@ void SwWrtShell::EndSelect()
else
{
SttLeaveSelect(nullptr);
- m_fnSetCrsr = &SwWrtShell::SetCrsrKillSel;
+ m_fnSetCursor = &SwWrtShell::SetCursorKillSel;
m_fnKillSel = &SwWrtShell::ResetSelect;
}
}
@@ -422,41 +422,41 @@ long SwWrtShell::ExtSelWrd(const Point *pPt, bool )
// Bug 66823: actual crsr has in additional mode no selection?
// Then destroy the actual an go to prev, this will be expand
- if( !HasMark() && GoPrevCrsr() )
+ if( !HasMark() && GoPrevCursor() )
{
bool bHasMark = HasMark(); // thats wrong!
- GoNextCrsr();
+ GoNextCursor();
if( bHasMark )
{
- DestroyCrsr();
- GoPrevCrsr();
+ DestroyCursor();
+ GoPrevCursor();
}
}
// check the direction of the selection with the new point
- bool bRet = false, bMoveCrsr = true, bToTop = false;
- SwCrsrShell::SelectWord( &m_aStart ); // select the startword
- SwCrsrShell::Push(); // save the cursor
- SwCrsrShell::SetCrsr( *pPt ); // and check the direction
+ bool bRet = false, bMoveCursor = true, bToTop = false;
+ SwCursorShell::SelectWord( &m_aStart ); // select the startword
+ SwCursorShell::Push(); // save the cursor
+ SwCursorShell::SetCursor( *pPt ); // and check the direction
- switch( SwCrsrShell::CompareCursor( StackMkCurrPt ))
+ switch( SwCursorShell::CompareCursor( StackMkCurrPt ))
{
case -1: bToTop = false; break;
case 1: bToTop = true; break;
- default: bMoveCrsr = false; break;
+ default: bMoveCursor = false; break;
}
- SwCrsrShell::Pop( false ); // restore the saved cursor
+ SwCursorShell::Pop( false ); // restore the saved cursor
- if( bMoveCrsr )
+ if( bMoveCursor )
{
// select to Top but cursor select to Bottom? or
// select to Bottom but cursor select to Top? --> swap the cursor
if( bToTop )
SwapPam();
- SwCrsrShell::Push(); // save cur cursor
- if( SwCrsrShell::SelectWord( pPt )) // select the current word
+ SwCursorShell::Push(); // save cur cursor
+ if( SwCursorShell::SelectWord( pPt )) // select the current word
{
if( bToTop )
SwapPam();
@@ -465,7 +465,7 @@ long SwWrtShell::ExtSelWrd(const Point *pPt, bool )
}
else
{
- SwCrsrShell::Pop( false );
+ SwCursorShell::Pop( false );
if( bToTop )
SwapPam();
}
@@ -478,25 +478,25 @@ long SwWrtShell::ExtSelWrd(const Point *pPt, bool )
long SwWrtShell::ExtSelLn(const Point *pPt, bool )
{
SwMvContext aMvContext(this);
- SwCrsrShell::SetCrsr(*pPt);
+ SwCursorShell::SetCursor(*pPt);
if( IsTableMode() )
return 1;
// Bug 66823: actual crsr has in additional mode no selection?
// Then destroy the actual an go to prev, this will be expand
- if( !HasMark() && GoPrevCrsr() )
+ if( !HasMark() && GoPrevCursor() )
{
bool bHasMark = HasMark(); // thats wrong!
- GoNextCrsr();
+ GoNextCursor();
if( bHasMark )
{
- DestroyCrsr();
- GoPrevCrsr();
+ DestroyCursor();
+ GoPrevCursor();
}
}
// if applicable fit the selection to the "Mark"
- bool bToTop = !IsCrsrPtAtEnd();
+ bool bToTop = !IsCursorPtAtEnd();
SwapPam();
// The "Mark" has to be at the end or the beginning of the line.
@@ -505,15 +505,15 @@ long SwWrtShell::ExtSelLn(const Point *pPt, bool )
if( bToTop )
{
if( !IsEndPara() )
- SwCrsrShell::Right(1,CRSR_SKIP_CHARS);
- SwCrsrShell::GoEndSentence();
+ SwCursorShell::Right(1,CRSR_SKIP_CHARS);
+ SwCursorShell::GoEndSentence();
}
else
- SwCrsrShell::GoStartSentence();
+ SwCursorShell::GoStartSentence();
}
SwapPam();
- return (bToTop ? SwCrsrShell::GoStartSentence() : SwCrsrShell::GoEndSentence()) ? 1 : 0;
+ return (bToTop ? SwCursorShell::GoStartSentence() : SwCursorShell::GoEndSentence()) ? 1 : 0;
}
// Back into the standard mode: no mode, no selections.
@@ -527,10 +527,10 @@ void SwWrtShell::EnterStdMode()
m_bBlockMode = false;
m_bExtMode = false;
m_bInSelect = false;
- if(IsSelFrmMode())
+ if(IsSelFrameMode())
{
- UnSelectFrm();
- LeaveSelFrmMode();
+ UnSelectFrame();
+ LeaveSelFrameMode();
}
else
{
@@ -543,7 +543,7 @@ void SwWrtShell::EnterStdMode()
if( !IsRetainSelection() )
KillPams();
ClearMark();
- m_fnSetCrsr = &SwWrtShell::SetCrsrKillSel;
+ m_fnSetCursor = &SwWrtShell::SetCursorKillSel;
m_fnKillSel = &SwWrtShell::ResetSelect;
}
}
@@ -578,7 +578,7 @@ void SwWrtShell::LeaveExtMode()
long SwWrtShell::SttLeaveSelect(const Point *, bool )
{
- if(SwCrsrShell::HasSelection() && !IsSelTableCells() && m_bClearMark) {
+ if(SwCursorShell::HasSelection() && !IsSelTableCells() && m_bClearMark) {
return 0;
}
ClearMark();
@@ -590,8 +590,8 @@ long SwWrtShell::SttLeaveSelect(const Point *, bool )
long SwWrtShell::AddLeaveSelect(const Point *, bool )
{
if(IsTableMode()) LeaveAddMode();
- else if(SwCrsrShell::HasSelection())
- CreateCrsr();
+ else if(SwCursorShell::HasSelection())
+ CreateCursor();
return 1;
}
@@ -603,19 +603,19 @@ void SwWrtShell::EnterAddMode()
if(m_bBlockMode)
LeaveBlockMode();
m_fnKillSel = &SwWrtShell::Ignore;
- m_fnSetCrsr = &SwWrtShell::SetCrsr;
+ m_fnSetCursor = &SwWrtShell::SetCursor;
m_bAddMode = true;
m_bBlockMode = false;
m_bExtMode = false;
- if(SwCrsrShell::HasSelection())
- CreateCrsr();
+ if(SwCursorShell::HasSelection())
+ CreateCursor();
Invalidate();
}
void SwWrtShell::LeaveAddMode()
{
m_fnKillSel = &SwWrtShell::ResetSelect;
- m_fnSetCrsr = &SwWrtShell::SetCrsrKillSel;
+ m_fnSetCursor = &SwWrtShell::SetCursorKillSel;
m_bAddMode = false;
Invalidate();
}
@@ -627,14 +627,14 @@ void SwWrtShell::EnterBlockMode()
m_bBlockMode = false;
EnterStdMode();
m_bBlockMode = true;
- CrsrToBlockCrsr();
+ CursorToBlockCursor();
Invalidate();
}
void SwWrtShell::LeaveBlockMode()
{
m_bBlockMode = false;
- BlockCrsrToCrsr();
+ BlockCursorToCursor();
EndSelect();
Invalidate();
}
@@ -644,7 +644,7 @@ void SwWrtShell::LeaveBlockMode()
void SwWrtShell::SetInsMode( bool bOn )
{
m_bIns = bOn;
- SwCrsrShell::SetOverwriteCrsr( !m_bIns );
+ SwCursorShell::SetOverwriteCursor( !m_bIns );
const SfxBoolItem aTmp( SID_ATTR_INSERT, m_bIns );
GetView().GetViewFrame()->GetBindings().SetState( aTmp );
StartAction();
@@ -661,7 +661,7 @@ void SwWrtShell::SetRedlineModeAndCheckInsMode( sal_uInt16 eMode )
// Edit frame
-long SwWrtShell::BeginFrmDrag(const Point *pPt, bool bIsShift)
+long SwWrtShell::BeginFrameDrag(const Point *pPt, bool bIsShift)
{
m_fnDrag = &SwFEShell::Drag;
if(bStartDrag)
@@ -674,7 +674,7 @@ long SwWrtShell::BeginFrmDrag(const Point *pPt, bool bIsShift)
return 1;
}
-void SwWrtShell::EnterSelFrmMode(const Point *pPos)
+void SwWrtShell::EnterSelFrameMode(const Point *pPos)
{
if(pPos)
{
@@ -683,23 +683,23 @@ void SwWrtShell::EnterSelFrmMode(const Point *pPos)
bStartDrag = true;
}
m_bLayoutMode = true;
- HideCrsr();
+ HideCursor();
// equal call of BeginDrag in the SwFEShell
- m_fnDrag = &SwWrtShell::BeginFrmDrag;
- m_fnEndDrag = &SwWrtShell::UpdateLayoutFrm;
- SwBaseShell::SetFrmMode( FLY_DRAG_START, this );
+ m_fnDrag = &SwWrtShell::BeginFrameDrag;
+ m_fnEndDrag = &SwWrtShell::UpdateLayoutFrame;
+ SwBaseShell::SetFrameMode( FLY_DRAG_START, this );
Invalidate();
}
-void SwWrtShell::LeaveSelFrmMode()
+void SwWrtShell::LeaveSelFrameMode()
{
m_fnDrag = &SwWrtShell::BeginDrag;
m_fnEndDrag = &SwWrtShell::DefaultEndDrag;
m_bLayoutMode = false;
bStartDrag = false;
Edit();
- SwBaseShell::SetFrmMode( FLY_DRAG_END, this );
+ SwBaseShell::SetFrameMode( FLY_DRAG_END, this );
Invalidate();
}
@@ -714,18 +714,18 @@ IMPL_LINK_TYPED( SwWrtShell, ExecFlyMac, const SwFlyFrameFormat*, pFlyFormat, vo
if(rFormatMac.HasMacro(SW_EVENT_OBJECT_SELECT))
{
const SvxMacro &rMac = rFormatMac.GetMacro(SW_EVENT_OBJECT_SELECT);
- if( IsFrmSelected() )
+ if( IsFrameSelected() )
m_bLayoutMode = true;
CallChgLnk();
ExecMacro( rMac );
}
}
-long SwWrtShell::UpdateLayoutFrm(const Point *pPt, bool )
+long SwWrtShell::UpdateLayoutFrame(const Point *pPt, bool )
{
// still a dummy
SwFEShell::EndDrag( pPt, false );
- m_fnDrag = &SwWrtShell::BeginFrmDrag;
+ m_fnDrag = &SwWrtShell::BeginFrameDrag;
return 1;
}
@@ -759,17 +759,17 @@ long SwWrtShell::BeginDrag(const Point * /*pPt*/, bool )
if(m_bSelWrd)
{
m_bInSelect = true;
- if( !IsCrsrPtAtEnd() )
+ if( !IsCursorPtAtEnd() )
SwapPam();
m_fnDrag = &SwWrtShell::ExtSelWrd;
- m_fnSetCrsr = &SwWrtShell::Ignore;
+ m_fnSetCursor = &SwWrtShell::Ignore;
}
else if(m_bSelLn)
{
m_bInSelect = true;
m_fnDrag = &SwWrtShell::ExtSelLn;
- m_fnSetCrsr = &SwWrtShell::Ignore;
+ m_fnSetCursor = &SwWrtShell::Ignore;
}
else
{
@@ -807,7 +807,7 @@ bool SwWrtShell::SelectTableRowCol( const Point& rPt, const Point* pEnd, bool bR
SttSelect();
if(SelTableRowCol( rPt, pEnd, bRowDrag ))
{
- m_fnSetCrsr = &SwWrtShell::SetCrsrKillSel;
+ m_fnSetCursor = &SwWrtShell::SetCursorKillSel;
m_fnKillSel = &SwWrtShell::ResetSelect;
return true;
}
@@ -820,7 +820,7 @@ bool SwWrtShell::SelectTableRow()
{
if ( SelTableRow() )
{
- m_fnSetCrsr = &SwWrtShell::SetCrsrKillSel;
+ m_fnSetCursor = &SwWrtShell::SetCursorKillSel;
m_fnKillSel = &SwWrtShell::ResetSelect;
return true;
}
@@ -831,7 +831,7 @@ bool SwWrtShell::SelectTableCol()
{
if ( SelTableCol() )
{
- m_fnSetCrsr = &SwWrtShell::SetCrsrKillSel;
+ m_fnSetCursor = &SwWrtShell::SetCursorKillSel;
m_fnKillSel = &SwWrtShell::ResetSelect;
return true;
}
@@ -842,7 +842,7 @@ bool SwWrtShell::SelectTableCell()
{
if ( SelTableBox() )
{
- m_fnSetCrsr = &SwWrtShell::SetCrsrKillSel;
+ m_fnSetCursor = &SwWrtShell::SetCursorKillSel;
m_fnKillSel = &SwWrtShell::ResetSelect;
return true;
}
@@ -893,11 +893,11 @@ int SwWrtShell::IntelligentCut(int nSelection, bool bCut)
if(bCut)
{
Push();
- if(IsCrsrPtAtEnd())
+ if(IsCursorPtAtEnd())
SwapPam();
ClearMark();
SetMark();
- SwCrsrShell::Left(1,CRSR_SKIP_CHARS);
+ SwCursorShell::Left(1,CRSR_SKIP_CHARS);
SwFEShell::Delete();
Pop( false );
}
@@ -908,10 +908,10 @@ int SwWrtShell::IntelligentCut(int nSelection, bool bCut)
// delete the space behind
if(bCut) {
Push();
- if(!IsCrsrPtAtEnd()) SwapPam();
+ if(!IsCursorPtAtEnd()) SwapPam();
ClearMark();
SetMark();
- SwCrsrShell::Right(1,CRSR_SKIP_CHARS);
+ SwCursorShell::Right(1,CRSR_SKIP_CHARS);
SwFEShell::Delete();
Pop( false );
}
@@ -924,7 +924,7 @@ int SwWrtShell::IntelligentCut(int nSelection, bool bCut)
bool SwWrtShell::SelectNextPrevHyperlink( bool bNext )
{
StartAction();
- bool bRet = SwCrsrShell::SelectNxtPrvHyperlink( bNext );
+ bool bRet = SwCursorShell::SelectNxtPrvHyperlink( bNext );
if( !bRet )
{
// will we have this feature?
@@ -933,32 +933,32 @@ bool SwWrtShell::SelectNextPrevHyperlink( bool bNext )
SttEndDoc(true);
else
SttEndDoc(false);
- bRet = SwCrsrShell::SelectNxtPrvHyperlink( bNext );
+ bRet = SwCursorShell::SelectNxtPrvHyperlink( bNext );
}
EndAction();
bool bCreateXSelection = false;
- const bool bFrmSelected = IsFrmSelected() || IsObjSelected();
+ const bool bFrameSelected = IsFrameSelected() || IsObjSelected();
if( IsSelection() )
{
- if ( bFrmSelected )
- UnSelectFrm();
+ if ( bFrameSelected )
+ UnSelectFrame();
// Set the function pointer for the canceling of the selection
// set at cursor
m_fnKillSel = &SwWrtShell::ResetSelect;
- m_fnSetCrsr = &SwWrtShell::SetCrsrKillSel;
+ m_fnSetCursor = &SwWrtShell::SetCursorKillSel;
bCreateXSelection = true;
}
- else if( bFrmSelected )
+ else if( bFrameSelected )
{
- EnterSelFrmMode();
+ EnterSelFrameMode();
bCreateXSelection = true;
}
else if( (CNT_GRF | CNT_OLE ) & GetCntType() )
{
SelectObj( GetCharRect().Pos() );
- EnterSelFrmMode();
+ EnterSelFrameMode();
bCreateXSelection = true;
}
diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx
index 5bab7f7ae218..b98305fe2894 100644
--- a/sw/source/uibase/wrtsh/wrtsh1.cxx
+++ b/sw/source/uibase/wrtsh/wrtsh1.cxx
@@ -112,12 +112,12 @@ using namespace com::sun::star;
#define COMMON_INI_LIST \
m_fnDrag(&SwWrtShell::BeginDrag),\
- m_fnSetCrsr(&SwWrtShell::SetCrsr),\
+ m_fnSetCursor(&SwWrtShell::SetCursor),\
m_fnEndDrag(&SwWrtShell::DefaultEndDrag),\
m_fnKillSel(&SwWrtShell::Ignore),\
m_pModeStack(nullptr), \
m_ePageMove(MV_NO),\
- m_pCrsrStack(nullptr), \
+ m_pCursorStack(nullptr), \
m_rView(rShell),\
m_aNavigationMgr(*this), \
m_bDestOnStack(false)
@@ -146,17 +146,17 @@ static SvxAutoCorrect* lcl_IsAutoCorr()
return pACorr;
}
-void SwWrtShell::NoEdit(bool bHideCrsr)
+void SwWrtShell::NoEdit(bool bHideCursor)
{
- if(bHideCrsr)
- HideCrsr();
+ if(bHideCursor)
+ HideCursor();
}
void SwWrtShell::Edit()
{
if (CanInsert())
{
- ShowCrsr();
+ ShowCursor();
}
}
@@ -209,7 +209,7 @@ void SwWrtShell::Insert( const OUString &rStr )
SwRewriter aRewriter;
- aRewriter.AddRule(UndoArg1, GetCrsrDescr());
+ aRewriter.AddRule(UndoArg1, GetCursorDescr());
aRewriter.AddRule(UndoArg2, OUString(SW_RES(STR_YIELDS)));
{
OUString aTmpStr;
@@ -239,7 +239,7 @@ void SwWrtShell::Insert( const OUString &rStr )
// of the current frame can not be obtained.
void SwWrtShell::Insert( const OUString &rPath, const OUString &rFilter,
- const Graphic &rGrf, SwFlyFrmAttrMgr *pFrmMgr,
+ const Graphic &rGrf, SwFlyFrameAttrMgr *pFrameMgr,
bool bRule )
{
ResetCursorStack();
@@ -259,41 +259,41 @@ void SwWrtShell::Insert( const OUString &rPath, const OUString &rFilter,
// if at the end of a non-empty paragraph.
//For i120928,avoid to split node
- EnterSelFrmMode();
+ EnterSelFrameMode();
bool bSetGrfSize = true;
bool bOwnMgr = false;
- if ( !pFrmMgr )
+ if ( !pFrameMgr )
{
bOwnMgr = true;
- pFrmMgr = new SwFlyFrmAttrMgr( true, this, FRMMGR_TYPE_GRF );
+ pFrameMgr = new SwFlyFrameAttrMgr( true, this, FRMMGR_TYPE_GRF );
// CAUTION
// GetAttrSet makes an adjustment
- // While pasting is a SwFrmSize present
+ // While pasting is a SwFrameSize present
// because of the DEF-Framesize
// These must be removed explicitly for the optimal size.
- pFrmMgr->DelAttr(RES_FRM_SIZE);
+ pFrameMgr->DelAttr(RES_FRM_SIZE);
}
else
{
- Size aSz( pFrmMgr->GetSize() );
+ Size aSz( pFrameMgr->GetSize() );
if ( !aSz.Width() || !aSz.Height() )
{
aSz.Width() = aSz.Height() = 567;
- pFrmMgr->SetSize( aSz );
+ pFrameMgr->SetSize( aSz );
}
else if ( aSz.Width() != DFLT_WIDTH && aSz.Height() != DFLT_HEIGHT )
bSetGrfSize = false;
- pFrmMgr->SetHeightSizeType(ATT_FIX_SIZE);
+ pFrameMgr->SetHeightSizeType(ATT_FIX_SIZE);
}
// Insert the graphic
- SwFEShell::Insert(rPath, rFilter, &rGrf, &pFrmMgr->GetAttrSet());
+ SwFEShell::Insert(rPath, rFilter, &rGrf, &pFrameMgr->GetAttrSet());
if ( bOwnMgr )
- pFrmMgr->UpdateAttrMgr();
+ pFrameMgr->UpdateAttrMgr();
if( bSetGrfSize && !bRule )
{
@@ -302,8 +302,8 @@ void SwWrtShell::Insert( const OUString &rPath, const OUString &rFilter,
// Add the margin attributes to GrfSize,
// because these counts at the margin additionally
- aGrfSize.Width() += pFrmMgr->CalcWidthBorder();
- aGrfSize.Height()+= pFrmMgr->CalcHeightBorder();
+ aGrfSize.Width() += pFrameMgr->CalcWidthBorder();
+ aGrfSize.Height()+= pFrameMgr->CalcHeightBorder();
const BigInt aTempWidth( aGrfSize.Width() );
const BigInt aTempHeight( aGrfSize.Height());
@@ -320,11 +320,11 @@ void SwWrtShell::Insert( const OUString &rPath, const OUString &rFilter,
aGrfSize.Height() = aBound.Height();
aGrfSize.Width() = BigInt(aBound.Height()) * aTempWidth / aTempHeight;
}
- pFrmMgr->SetSize( aGrfSize );
- pFrmMgr->UpdateFlyFrm();
+ pFrameMgr->SetSize( aGrfSize );
+ pFrameMgr->UpdateFlyFrame();
}
if ( bOwnMgr )
- delete pFrmMgr;
+ delete pFrameMgr;
EndUndo();
EndAllAction();
@@ -492,13 +492,13 @@ bool SwWrtShell::InsertOleObject( const svt::EmbeddedObjectRef& xRef, SwFlyFrame
if ( !bStarMath )
SwFEShell::SplitNode( false, false );
- EnterSelFrmMode();
+ EnterSelFrameMode();
- SwFlyFrmAttrMgr aFrmMgr( true, this, FRMMGR_TYPE_OLE );
- aFrmMgr.SetHeightSizeType(ATT_FIX_SIZE);
+ SwFlyFrameAttrMgr aFrameMgr( true, this, FRMMGR_TYPE_OLE );
+ aFrameMgr.SetHeightSizeType(ATT_FIX_SIZE);
SwRect aBound;
- CalcBoundRect( aBound, aFrmMgr.GetAnchor() );
+ CalcBoundRect( aBound, aFrameMgr.GetAnchor() );
//The Size should be suggested by the OLE server
MapMode aMapMode( MAP_TWIP );
@@ -511,8 +511,8 @@ bool SwWrtShell::InsertOleObject( const svt::EmbeddedObjectRef& xRef, SwFlyFrame
aSz.Height() = aSz.Height() * aBound.Width() / aSz.Width();
aSz.Width() = aBound.Width();
}
- aFrmMgr.SetSize( aSz );
- SwFlyFrameFormat *pFormat = SwFEShell::InsertObject( xRef, &aFrmMgr.GetAttrSet() );
+ aFrameMgr.SetSize( aSz );
+ SwFlyFrameFormat *pFormat = SwFEShell::InsertObject( xRef, &aFrameMgr.GetAttrSet() );
// --> #i972#
if ( bStarMath && mpDoc->getIDocumentSettingAccess().get( DocumentSettingId::MATH_BASELINE_ALIGNMENT ) )
@@ -614,8 +614,8 @@ void SwWrtShell::MoveObjectIfActive( svt::EmbeddedObjectRef& xObj, const Point&
void SwWrtShell::CalcAndSetScale( svt::EmbeddedObjectRef& xObj,
const SwRect *pFlyPrtRect,
- const SwRect *pFlyFrmRect,
- const bool bNoTextFrmPrtAreaChanged )
+ const SwRect *pFlyFrameRect,
+ const bool bNoTextFramePrtAreaChanged )
{
// Setting the scale of the client. This arises from the difference
// between the VisArea of the object and the ObjArea.
@@ -713,7 +713,7 @@ void SwWrtShell::CalcAndSetScale( svt::EmbeddedObjectRef& xObj,
//|| SVOBJ_MISCSTATUS_RESIZEONPRINTERCHANGE & xObj->GetMiscStatus()
// --> OD #i117189# - refine condition for non-resizable objects
// non-resizable objects need to be set the size back by this method
- || ( bNoTextFrmPrtAreaChanged && nMisc & embed::EmbedMisc::EMBED_NEVERRESIZE ) )
+ || ( bNoTextFramePrtAreaChanged && nMisc & embed::EmbedMisc::EMBED_NEVERRESIZE ) )
{
pCli = new SwOleClient( &GetView(), &GetView().GetEditWin(), xObj );
}
@@ -789,7 +789,7 @@ void SwWrtShell::CalcAndSetScale( svt::EmbeddedObjectRef& xObj,
if ( pFlyPrtRect )
{
aArea = *pFlyPrtRect;
- aArea += pFlyFrmRect->Pos();
+ aArea += pFlyFrameRect->Pos();
}
else
{
@@ -804,7 +804,7 @@ void SwWrtShell::CalcAndSetScale( svt::EmbeddedObjectRef& xObj,
OSL_ENSURE( pFlyFrameFormat, "Could not find fly frame." );
if ( pFlyFrameFormat )
{
- const Point &rPoint = pFlyFrameFormat->GetLastFlyFrmPrtRectPos();
+ const Point &rPoint = pFlyFrameFormat->GetLastFlyFramePrtRectPos();
SwRect aRect( pFlyPrtRect ? *pFlyPrtRect
: GetAnyCurRect( RECT_FLY_PRT_EMBEDDED, nullptr, xObj.GetObject() ));
aArea += rPoint - aRect.Pos(); // adjust area by diff of printing area position in order to keep baseline alignment correct.
@@ -823,12 +823,12 @@ void SwWrtShell::CalcAndSetScale( svt::EmbeddedObjectRef& xObj,
}
void SwWrtShell::ConnectObj( svt::EmbeddedObjectRef& xObj, const SwRect &rPrt,
- const SwRect &rFrm )
+ const SwRect &rFrame )
{
SfxInPlaceClient* pCli = GetView().FindIPClient( xObj.GetObject(), &GetView().GetEditWin());
if ( !pCli )
new SwOleClient( &GetView(), &GetView().GetEditWin(), xObj );
- CalcAndSetScale( xObj, &rPrt, &rFrm );
+ CalcAndSetScale( xObj, &rPrt, &rFrame );
}
// Insert hard page break;
@@ -841,13 +841,13 @@ void SwWrtShell::InsertPageBreak(const OUString *pPageDesc, const ::boost::optio
SwActContext aActContext(this);
StartUndo(UNDO_UI_INSERT_PAGE_BREAK);
- if ( !IsCrsrInTable() )
+ if ( !IsCursorInTable() )
{
if(HasSelection())
DelRight();
SwFEShell::SplitNode();
// delete the numbered attribute of the last line if the last line is empty
- GetDoc()->ClearLineNumAttrs( *GetCrsr()->GetPoint() );
+ GetDoc()->ClearLineNumAttrs( *GetCursor()->GetPoint() );
}
const SwPageDesc *pDesc = pPageDesc
@@ -895,7 +895,7 @@ void SwWrtShell::InsertColumnBreak()
{
StartUndo(UNDO_UI_INSERT_COLUMN_BREAK);
- if ( !IsCrsrInTable() )
+ if ( !IsCursorInTable() )
{
if(HasSelection())
DelRight();
@@ -918,11 +918,11 @@ void SwWrtShell::InsertFootnote(const OUString &rStr, bool bEndNote, bool bEdit
if(HasSelection())
{
//collapse cursor to the end
- if(!IsCrsrPtAtEnd())
+ if(!IsCursorPtAtEnd())
SwapPam();
ClearMark();
}
- SwPosition aPos = *GetCrsr()->GetPoint();
+ SwPosition aPos = *GetCursor()->GetPoint();
SwFormatFootnote aFootNote( bEndNote );
if(!rStr.isEmpty())
aFootNote.SetNumStr( rStr );
@@ -981,7 +981,7 @@ void SwWrtShell::SplitNode( bool bAutoFormat, bool bCheckTableStart )
void SwWrtShell::NumOrBulletOn(bool bNum)
{
// determine numbering rule found at current cursor position in the document.
- const SwNumRule* pCurRule = GetNumRuleAtCurrCrsrPos();
+ const SwNumRule* pCurRule = GetNumRuleAtCurrCursorPos();
StartUndo(UNDO_NUMORNONUM);
@@ -1029,7 +1029,7 @@ void SwWrtShell::NumOrBulletOn(bool bNum)
// If not, let it been counted. Then it has to be checked,
// of the outline numbering has to be activated or continued.
SwTextNode* pTextNode =
- GetCrsr()->GetPoint()->nNode.GetNode().GetTextNode();
+ GetCursor()->GetPoint()->nNode.GetNode().GetTextNode();
if ( pTextNode && !pTextNode->IsCountedInList() )
{
// check, if numbering of the outline level of the paragraph
@@ -1122,7 +1122,7 @@ void SwWrtShell::NumOrBulletOn(bool bNum)
OUString sContinuedListId;
if ( !pNumRule )
{
- pNumRule = GetDoc()->SearchNumRule( *GetCrsr()->GetPoint(),
+ pNumRule = GetDoc()->SearchNumRule( *GetCursor()->GetPoint(),
false, bNum, false, 0,
sContinuedListId );
bContinueFoundNumRule = pNumRule != nullptr;
@@ -1135,7 +1135,7 @@ void SwWrtShell::NumOrBulletOn(bool bNum)
// do not change found numbering/bullet rule, if it should only be continued.
if ( !bContinueFoundNumRule )
{
- SwTextNode * pTextNode = GetCrsr()->GetPoint()->nNode.GetNode().GetTextNode();
+ SwTextNode * pTextNode = GetCursor()->GetPoint()->nNode.GetNode().GetTextNode();
if (pTextNode)
{
@@ -1199,11 +1199,11 @@ void SwWrtShell::NumOrBulletOn(bool bNum)
pChrFormat = GetCharFormatFromPool( RES_POOLCHR_BUL_LEVEL );
}
- const SwTextNode* pTextNode = GetCrsr()->GetPoint()->nNode.GetNode().GetTextNode();
+ const SwTextNode* pTextNode = GetCursor()->GetPoint()->nNode.GetNode().GetTextNode();
const SwTwips nWidthOfTabs = pTextNode
? pTextNode->GetWidthOfLeadingTabs()
: 0;
- GetDoc()->getIDocumentContentOperations().RemoveLeadingWhiteSpace( *GetCrsr()->GetPoint() );
+ GetDoc()->getIDocumentContentOperations().RemoveLeadingWhiteSpace( *GetCursor()->GetPoint() );
const bool bHtml = dynamic_cast<SwWebDocShell*>( pDocSh ) != nullptr;
const bool bRightToLeft = IsInRightToLeftText();
@@ -1299,7 +1299,7 @@ void SwWrtShell::NumOn()
void SwWrtShell::NumOrBulletOff()
{
- const SwNumRule * pCurNumRule = GetNumRuleAtCurrCrsrPos();
+ const SwNumRule * pCurNumRule = GetNumRuleAtCurrCursorPos();
if (pCurNumRule)
{
@@ -1308,7 +1308,7 @@ void SwWrtShell::NumOrBulletOff()
SwNumRule aNumRule(*pCurNumRule);
SwTextNode * pTextNode =
- GetCrsr()->GetPoint()->nNode.GetNode().GetTextNode();
+ GetCursor()->GetPoint()->nNode.GetNode().GetTextNode();
if (pTextNode)
{
@@ -1356,7 +1356,7 @@ SelectionType SwWrtShell::GetSelectionType() const
// The value does not matter, it may be updated in endaction anyway.
if ( BasicActionPend() )
- return IsSelFrmMode() ? nsSelectionType::SEL_FRM : nsSelectionType::SEL_TXT;
+ return IsSelFrameMode() ? nsSelectionType::SEL_FRM : nsSelectionType::SEL_TXT;
SwView &_rView = const_cast<SwView&>(GetView());
if (_rView.GetPostItMgr() && _rView.GetPostItMgr()->HasActiveSidebarWin() )
@@ -1364,8 +1364,8 @@ SelectionType SwWrtShell::GetSelectionType() const
// Inserting a frame is not a DrawMode
int nCnt;
- if ( !_rView.GetEditWin().IsFrmAction() &&
- (IsObjSelected() || (_rView.IsDrawMode() && !IsFrmSelected()) ))
+ if ( !_rView.GetEditWin().IsFrameAction() &&
+ (IsObjSelected() || (_rView.IsDrawMode() && !IsFrameSelected()) ))
{
if (GetDrawView()->IsTextEdit())
nCnt = nsSelectionType::SEL_DRW_TXT;
@@ -1400,7 +1400,7 @@ SelectionType SwWrtShell::GetSelectionType() const
nCnt = GetCntType();
- if ( IsFrmSelected() )
+ if ( IsFrameSelected() )
{
if (_rView.IsDrawMode())
_rView.LeaveDrawCreate(); // clean up (Bug #45639)
@@ -1408,18 +1408,18 @@ SelectionType SwWrtShell::GetSelectionType() const
return nsSelectionType::SEL_FRM;
}
- if ( IsCrsrInTable() )
+ if ( IsCursorInTable() )
nCnt |= nsSelectionType::SEL_TBL;
if ( IsTableMode() )
nCnt |= (nsSelectionType::SEL_TBL | nsSelectionType::SEL_TBL_CELLS);
// Do not pop up numbering toolbar, if the text node has a numbering of type SVX_NUM_NUMBER_NONE.
- const SwNumRule* pNumRule = GetNumRuleAtCurrCrsrPos();
+ const SwNumRule* pNumRule = GetNumRuleAtCurrCursorPos();
if ( pNumRule )
{
const SwTextNode* pTextNd =
- GetCrsr()->GetPoint()->nNode.GetNode().GetTextNode();
+ GetCursor()->GetPoint()->nNode.GetNode().GetTextNode();
if ( pTextNd && pTextNd->IsInList() )
{
@@ -1492,7 +1492,7 @@ SwFrameFormat *SwWrtShell::GetTableStyle(const OUString &rFormatName)
}
void SwWrtShell::addCurrentPosition() {
- SwPaM* pPaM = GetCrsr();
+ SwPaM* pPaM = GetCursor();
m_aNavigationMgr.addEntry(*pPaM->GetPoint());
}
@@ -1500,7 +1500,7 @@ void SwWrtShell::addCurrentPosition() {
void SwWrtShell::SetPageStyle(const OUString &rCollName)
{
- if( !SwCrsrShell::HasSelection() && !IsSelFrmMode() && !IsObjSelected() )
+ if( !SwCursorShell::HasSelection() && !IsSelFrameMode() && !IsObjSelected() )
{
SwPageDesc* pDesc = FindPageDescByName( rCollName, true );
if( pDesc )
@@ -1510,9 +1510,9 @@ void SwWrtShell::SetPageStyle(const OUString &rCollName)
// Access templates
-OUString SwWrtShell::GetCurPageStyle( const bool bCalcFrm ) const
+OUString SwWrtShell::GetCurPageStyle( const bool bCalcFrame ) const
{
- return GetPageDesc(GetCurPageDesc( bCalcFrm )).GetName();
+ return GetPageDesc(GetCurPageDesc( bCalcFrame )).GetName();
}
// Change the current template referring to the existing change.
@@ -1532,7 +1532,7 @@ void SwWrtShell::QuickUpdateStyle()
void SwWrtShell::AutoUpdatePara(SwTextFormatColl* pColl, const SfxItemSet& rStyleSet, SwPaM* pPaM )
{
- SwPaM* pCrsr = pPaM ? pPaM : GetCrsr( );
+ SwPaM* pCursor = pPaM ? pPaM : GetCursor( );
SfxItemSet aCoreSet( GetAttrPool(),
RES_CHRATR_BEGIN, RES_CHRATR_END - 1,
RES_PARATR_BEGIN, RES_PARATR_END - 1,
@@ -1544,7 +1544,7 @@ void SwWrtShell::AutoUpdatePara(SwTextFormatColl* pColl, const SfxItemSet& rStyl
SID_ATTR_PARA_MODEL, SID_ATTR_PARA_KEEP,
SID_ATTR_PARA_PAGENUM, SID_ATTR_PARA_PAGENUM,
0 );
- GetPaMAttr( pCrsr, aCoreSet );
+ GetPaMAttr( pCursor, aCoreSet );
bool bReset = false;
SfxItemIter aParaIter( aCoreSet );
const SfxPoolItem* pParaItem = aParaIter.FirstItem();
@@ -1565,8 +1565,8 @@ void SwWrtShell::AutoUpdatePara(SwTextFormatColl* pColl, const SfxItemSet& rStyl
StartAction();
if(bReset)
{
- ResetAttr( std::set<sal_uInt16>(), pCrsr );
- SetAttrSet(aCoreSet, SetAttrMode::DEFAULT, pCrsr);
+ ResetAttr( std::set<sal_uInt16>(), pCursor );
+ SetAttrSet(aCoreSet, SetAttrMode::DEFAULT, pCursor);
}
mpDoc->ChgFormat(*pColl, rStyleSet );
EndAction();
@@ -1576,7 +1576,7 @@ void SwWrtShell::AutoUpdateFrame( SwFrameFormat* pFormat, const SfxItemSet& rSty
{
StartAction();
- ResetFlyFrmAttr( 0, &rStyleSet );
+ ResetFlyFrameAttr( 0, &rStyleSet );
pFormat->SetFormatAttr( rStyleSet );
EndAction();
@@ -1663,17 +1663,17 @@ SwWrtShell::~SwWrtShell()
SET_CURR_SHELL( this );
while(IsModePushed())
PopMode();
- while(PopCrsr(false))
+ while(PopCursor(false))
;
SwTransferable::ClearSelection( *this );
}
-bool SwWrtShell::Pop( bool bOldCrsr )
+bool SwWrtShell::Pop( bool bOldCursor )
{
- bool bRet = SwCrsrShell::Pop( bOldCrsr );
+ bool bRet = SwCursorShell::Pop( bOldCursor );
if( bRet && IsSelection() )
{
- m_fnSetCrsr = &SwWrtShell::SetCrsrKillSel;
+ m_fnSetCursor = &SwWrtShell::SetCursorKillSel;
m_fnKillSel = &SwWrtShell::ResetSelect;
}
return bRet;
@@ -1681,7 +1681,7 @@ bool SwWrtShell::Pop( bool bOldCrsr )
bool SwWrtShell::CanInsert()
{
- if(IsSelFrmMode())
+ if(IsSelFrameMode())
{
return false;
}
@@ -1737,7 +1737,7 @@ OUString SwWrtShell::GetSelDescr() const
break;
default:
if (nullptr != mpDoc)
- aResult = GetCrsrDescr();
+ aResult = GetCursorDescr();
}
return aResult;
@@ -1766,7 +1766,7 @@ void SwWrtShell::ChangeHeaderOrFooter(
StartAllAction();
StartUndo( UNDO_HEADER_FOOTER ); // #i7983#
bool bExecute = true;
- bool bCrsrSet = false;
+ bool bCursorSet = false;
for( size_t nFrom = 0, nTo = GetPageDescCnt();
nFrom < nTo; ++nFrom )
{
@@ -1816,11 +1816,11 @@ void SwWrtShell::ChangeHeaderOrFooter(
{
ChgPageDesc( nFrom, aDesc );
- if( !bCrsrSet && bOn )
+ if( !bCursorSet && bOn )
{
if ( !IsHeaderFooterEdit() )
ToggleHeaderFooterEdit();
- bCrsrSet = SetCrsrInHdFt(
+ bCursorSet = SetCursorInHdFt(
rStyleName.isEmpty() ? SIZE_MAX : nFrom,
bHeader );
}
diff --git a/sw/source/uibase/wrtsh/wrtsh2.cxx b/sw/source/uibase/wrtsh/wrtsh2.cxx
index bb5242b99e0b..1f88e467c616 100644
--- a/sw/source/uibase/wrtsh/wrtsh2.cxx
+++ b/sw/source/uibase/wrtsh/wrtsh2.cxx
@@ -143,7 +143,7 @@ void SwWrtShell::UpdateInputFields( SwInputFieldList* pLst )
const size_t nCnt = pTmp->Count();
if(nCnt)
{
- pTmp->PushCrsr();
+ pTmp->PushCursor();
bool bCancel = false;
OString aDlgPos;
@@ -162,7 +162,7 @@ void SwWrtShell::UpdateInputFields( SwInputFieldList* pLst )
pTmp->GetField( i )->GetTyp()->UpdateFields();
}
}
- pTmp->PopCrsr();
+ pTmp->PopCursor();
}
if( !pLst )
@@ -379,7 +379,7 @@ void SwWrtShell::ClickToField( const SwField& rField )
case RES_GETREFFLD:
StartAllAction();
- SwCrsrShell::GotoRefMark( static_cast<const SwGetRefField&>(rField).GetSetRefName(),
+ SwCursorShell::GotoRefMark( static_cast<const SwGetRefField&>(rField).GetSetRefName(),
static_cast<const SwGetRefField&>(rField).GetSubType(),
static_cast<const SwGetRefField&>(rField).GetSeqNo() );
EndAllAction();
@@ -468,7 +468,7 @@ void LoadURL( SwViewShell& rVSh, const OUString& rURL, sal_uInt16 nFilter,
return ;
// The shell could be 0 also!!!!!
- if ( dynamic_cast<const SwCrsrShell*>( &rVSh) == nullptr )
+ if ( dynamic_cast<const SwCursorShell*>( &rVSh) == nullptr )
return;
// We are doing tiledRendering, let the client handles the URL loading.
@@ -478,7 +478,7 @@ void LoadURL( SwViewShell& rVSh, const OUString& rURL, sal_uInt16 nFilter,
return;
}
- //A CrsrShell is always a WrtShell
+ //A CursorShell is always a WrtShell
SwWrtShell &rSh = static_cast<SwWrtShell&>(rVSh);
SwDocShell* pDShell = rSh.GetView().GetDocShell();
@@ -497,8 +497,8 @@ void LoadURL( SwViewShell& rVSh, const OUString& rURL, sal_uInt16 nFilter,
OUString sReferer;
if( pDShell && pDShell->GetMedium() )
sReferer = pDShell->GetMedium()->GetName();
- SfxViewFrame* pViewFrm = rSh.GetView().GetViewFrame();
- SfxFrameItem aView( SID_DOCFRAME, pViewFrm );
+ SfxViewFrame* pViewFrame = rSh.GetView().GetViewFrame();
+ SfxFrameItem aView( SID_DOCFRAME, pViewFrame );
SfxStringItem aName( SID_FILE_NAME, rURL );
SfxStringItem aTargetFrameName( SID_TARGETNAME, sTargetFrame );
SfxStringItem aReferer( SID_REFERER, sReferer );
@@ -519,7 +519,7 @@ void LoadURL( SwViewShell& rVSh, const OUString& rURL, sal_uInt16 nFilter,
nullptr
};
- pViewFrm->GetDispatcher()->GetBindings()->Execute( SID_OPENDOC, aArr, 0,
+ pViewFrame->GetDispatcher()->GetBindings()->Execute( SID_OPENDOC, aArr, 0,
SfxCallMode::ASYNCHRON|SfxCallMode::RECORD );
}
diff --git a/sw/source/uibase/wrtsh/wrtsh3.cxx b/sw/source/uibase/wrtsh/wrtsh3.cxx
index 12665242cbc1..49eb3c51c377 100644
--- a/sw/source/uibase/wrtsh/wrtsh3.cxx
+++ b/sw/source/uibase/wrtsh/wrtsh3.cxx
@@ -48,21 +48,21 @@ bool SwWrtShell::MoveBookMark( BookMarkMove eFuncId, const ::sw::mark::IMark* co
bool bRet = true;
switch(eFuncId)
{
- case BOOKMARK_INDEX:bRet = SwCrsrShell::GotoMark( pMark );break;
- case BOOKMARK_NEXT: bRet = SwCrsrShell::GoNextBookmark();break;
- case BOOKMARK_PREV: bRet = SwCrsrShell::GoPrevBookmark();break;
+ case BOOKMARK_INDEX:bRet = SwCursorShell::GotoMark( pMark );break;
+ case BOOKMARK_NEXT: bRet = SwCursorShell::GoNextBookmark();break;
+ case BOOKMARK_PREV: bRet = SwCursorShell::GoPrevBookmark();break;
default:;//prevent warning
}
- if( bRet && IsSelFrmMode() )
+ if( bRet && IsSelFrameMode() )
{
- UnSelectFrm();
- LeaveSelFrmMode();
+ UnSelectFrame();
+ LeaveSelFrameMode();
}
if( IsSelection() )
{
m_fnKillSel = &SwWrtShell::ResetSelect;
- m_fnSetCrsr = &SwWrtShell::SetCrsrKillSel;
+ m_fnSetCursor = &SwWrtShell::SetCursorKillSel;
}
return bRet;
}
@@ -71,17 +71,17 @@ bool SwWrtShell::GotoField( const SwFormatField& rField )
{
(this->*m_fnKillSel)( nullptr, false );
- bool bRet = SwCrsrShell::GotoFormatField( rField );
- if( bRet && IsSelFrmMode() )
+ bool bRet = SwCursorShell::GotoFormatField( rField );
+ if( bRet && IsSelFrameMode() )
{
- UnSelectFrm();
- LeaveSelFrmMode();
+ UnSelectFrame();
+ LeaveSelFrameMode();
}
if( IsSelection() )
{
m_fnKillSel = &SwWrtShell::ResetSelect;
- m_fnSetCrsr = &SwWrtShell::SetCrsrKillSel;
+ m_fnSetCursor = &SwWrtShell::SetCursorKillSel;
}
return bRet;
@@ -90,16 +90,16 @@ bool SwWrtShell::GotoField( const SwFormatField& rField )
bool SwWrtShell::GotoFieldmark(::sw::mark::IFieldmark const * const pMark)
{
(this->*m_fnKillSel)( nullptr, false );
- bool bRet = SwCrsrShell::GotoFieldmark(pMark);
- if( bRet && IsSelFrmMode() )
+ bool bRet = SwCursorShell::GotoFieldmark(pMark);
+ if( bRet && IsSelFrameMode() )
{
- UnSelectFrm();
- LeaveSelFrmMode();
+ UnSelectFrame();
+ LeaveSelFrameMode();
}
if( IsSelection() )
{
m_fnKillSel = &SwWrtShell::ResetSelect;
- m_fnSetCrsr = &SwWrtShell::SetCrsrKillSel;
+ m_fnSetCursor = &SwWrtShell::SetCursorKillSel;
}
return bRet;
}
diff --git a/sw/source/uibase/wrtsh/wrtsh4.cxx b/sw/source/uibase/wrtsh/wrtsh4.cxx
index 8d6849dd553c..49e7353f6aa3 100644
--- a/sw/source/uibase/wrtsh/wrtsh4.cxx
+++ b/sw/source/uibase/wrtsh/wrtsh4.cxx
@@ -37,7 +37,7 @@ bool SwWrtShell::_SttWrd()
ClearMark();
if( !GoStartWord() )
// not found --> go to the beginning of the paragraph.
- SwCrsrShell::MovePara( fnParaCurr, fnParaStart );
+ SwCursorShell::MovePara( fnParaCurr, fnParaStart );
ClearMark();
// If Mark was previously set, summarize.
Combine();
@@ -58,7 +58,7 @@ bool SwWrtShell::_EndWrd()
ClearMark();
if( !GoEndWord() )
// not found --> go to the end of the paragraph.
- SwCrsrShell::MovePara(fnParaCurr, fnParaEnd);
+ SwCursorShell::MovePara(fnParaCurr, fnParaEnd);
ClearMark();
// If Mark was previously set, summarize.
Combine();
@@ -70,7 +70,7 @@ bool SwWrtShell::_NxtWrd()
bool bRet = false;
while( IsEndPara() ) // If already at the end, then the next???
{
- if(!SwCrsrShell::Right(1,CRSR_SKIP_CHARS)) // Document - end ??
+ if(!SwCursorShell::Right(1,CRSR_SKIP_CHARS)) // Document - end ??
{
Pop( false );
return bRet;
@@ -83,8 +83,8 @@ bool SwWrtShell::_NxtWrd()
{
if( !GoNextWord() )
{
- if( (!IsEndPara() && !SwCrsrShell::MovePara( fnParaCurr, fnParaEnd ) )
- || !SwCrsrShell::Right(1,CRSR_SKIP_CHARS) )
+ if( (!IsEndPara() && !SwCursorShell::MovePara( fnParaCurr, fnParaEnd ) )
+ || !SwCursorShell::Right(1,CRSR_SKIP_CHARS) )
break;
bRet = IsStartWord();
}
@@ -101,7 +101,7 @@ bool SwWrtShell::_PrvWrd()
bool bRet = false;
while( IsSttPara() )
{ // if already at the beginning, then the next???
- if(!SwCrsrShell::Left(1,CRSR_SKIP_CHARS))
+ if(!SwCursorShell::Left(1,CRSR_SKIP_CHARS))
{ // Document - beginning ??
Pop( false );
return bRet;
@@ -114,8 +114,8 @@ bool SwWrtShell::_PrvWrd()
{
if( !GoPrevWord() )
{
- if( (!IsSttPara() && !SwCrsrShell::MovePara( fnParaCurr, fnParaStart ) )
- || !SwCrsrShell::Left(1,CRSR_SKIP_CHARS) )
+ if( (!IsSttPara() && !SwCursorShell::MovePara( fnParaCurr, fnParaStart ) )
+ || !SwCursorShell::Left(1,CRSR_SKIP_CHARS) )
break;
bRet = IsStartWord();
}
@@ -133,7 +133,7 @@ bool SwWrtShell::_NxtWrdForDelete()
{
if ( IsEndPara() )
{
- if ( !SwCrsrShell::Right(1,CRSR_SKIP_CHARS) )
+ if ( !SwCursorShell::Right(1,CRSR_SKIP_CHARS) )
{
Pop( false );
return false;
@@ -144,7 +144,7 @@ bool SwWrtShell::_NxtWrdForDelete()
ClearMark();
if ( !GoNextWord() )
{
- SwCrsrShell::MovePara( fnParaCurr, fnParaEnd );
+ SwCursorShell::MovePara( fnParaCurr, fnParaEnd );
}
ClearMark();
Combine();
@@ -156,7 +156,7 @@ bool SwWrtShell::_PrvWrdForDelete()
{
if ( IsSttPara() )
{
- if ( !SwCrsrShell::Left(1,CRSR_SKIP_CHARS) )
+ if ( !SwCursorShell::Left(1,CRSR_SKIP_CHARS) )
{
Pop( false );
return false;
@@ -167,7 +167,7 @@ bool SwWrtShell::_PrvWrdForDelete()
ClearMark();
if( !GoPrevWord() )
{
- SwCrsrShell::MovePara( fnParaCurr, fnParaStart );
+ SwCursorShell::MovePara( fnParaCurr, fnParaStart );
}
ClearMark();
Combine();
@@ -178,13 +178,13 @@ bool SwWrtShell::_FwdSentence()
{
Push();
ClearMark();
- if(!SwCrsrShell::Right(1,CRSR_SKIP_CHARS))
+ if(!SwCursorShell::Right(1,CRSR_SKIP_CHARS))
{
Pop(false);
return false;
}
if( !GoNextSentence() && !IsEndPara() )
- SwCrsrShell::MovePara(fnParaCurr, fnParaEnd);
+ SwCursorShell::MovePara(fnParaCurr, fnParaEnd);
ClearMark();
Combine();
@@ -195,14 +195,14 @@ bool SwWrtShell::_BwdSentence()
{
Push();
ClearMark();
- if(!SwCrsrShell::Left(1,CRSR_SKIP_CHARS))
+ if(!SwCursorShell::Left(1,CRSR_SKIP_CHARS))
{
Pop(false);
return false;
}
if( !GoStartSentence() && !IsSttPara() )
// not found --> go to the beginning of the paragraph
- SwCrsrShell::MovePara( fnParaCurr, fnParaStart );
+ SwCursorShell::MovePara( fnParaCurr, fnParaStart );
ClearMark();
Combine();
return true;
@@ -212,7 +212,7 @@ bool SwWrtShell::_FwdPara()
{
Push();
ClearMark();
- bool bRet = SwCrsrShell::MovePara(fnParaNext, fnParaStart);
+ bool bRet = SwCursorShell::MovePara(fnParaNext, fnParaStart);
ClearMark();
Combine();
@@ -224,7 +224,7 @@ bool SwWrtShell::_BwdPara()
Push();
ClearMark();
- bool bRet = SwCrsrShell::MovePara(fnParaPrev, fnParaStart);
+ bool bRet = SwCursorShell::MovePara(fnParaPrev, fnParaStart);
if ( !bRet && !IsSttOfPara() )
{
SttPara();
diff --git a/sw/source/uibase/wrtsh/wrtundo.cxx b/sw/source/uibase/wrtsh/wrtundo.cxx
index 1756fdd53b22..d8e7ed8498a0 100644
--- a/sw/source/uibase/wrtsh/wrtundo.cxx
+++ b/sw/source/uibase/wrtsh/wrtundo.cxx
@@ -62,27 +62,27 @@ void SwWrtShell::Do( DoType eDoType, sal_uInt16 nCnt )
DoUndo(bSaveDoesUndo);
bool bCreateXSelection = false;
- const bool bFrmSelected = IsFrmSelected() || IsObjSelected();
+ const bool bFrameSelected = IsFrameSelected() || IsObjSelected();
if ( IsSelection() )
{
- if ( bFrmSelected )
- UnSelectFrm();
+ if ( bFrameSelected )
+ UnSelectFrame();
// Set the function pointer for canceling the selection at the
// cursor position.
m_fnKillSel = &SwWrtShell::ResetSelect;
- m_fnSetCrsr = &SwWrtShell::SetCrsrKillSel;
+ m_fnSetCursor = &SwWrtShell::SetCursorKillSel;
bCreateXSelection = true;
}
- else if ( bFrmSelected )
+ else if ( bFrameSelected )
{
- EnterSelFrmMode();
+ EnterSelFrameMode();
bCreateXSelection = true;
}
else if( (CNT_GRF | CNT_OLE ) & GetCntType() )
{
SelectObj( GetCharRect().Pos() );
- EnterSelFrmMode();
+ EnterSelFrameMode();
bCreateXSelection = true;
}