Kaydet (Commit) ff37332a authored tarafından Stephan Bergmann's avatar Stephan Bergmann

SwEditShell::Copy return type wants to be bool

Change-Id: Id39077324630cead2584bae48dd8470335f4d1fb
üst 738844c5
......@@ -198,7 +198,7 @@ public:
void SetLinkUpdMode( sal_uInt16 nMode );
/// Copy content of all ranges at current position of cursor to given Shell.
long Copy( SwEditShell* pDestShell = 0 );
bool Copy( SwEditShell* pDestShell = 0 );
/** For copying via ClipBoard:
If table is copied into table, move all cursors away from it.
......
......@@ -144,7 +144,7 @@ long SwEditShell::Delete()
return nRet;
}
long SwEditShell::Copy( SwEditShell* pDestShell )
bool SwEditShell::Copy( SwEditShell* pDestShell )
{
if( !pDestShell )
pDestShell = this;
......@@ -193,7 +193,7 @@ long SwEditShell::Copy( SwEditShell* pDestShell )
// Check if a selection would be copied into itself
if( pDestShell->GetDoc() == GetDoc() &&
*rPaM.Start() <= *pTmp && *pTmp < *rPaM.End() )
return sal_False;
return false;
}
}
......@@ -290,7 +290,7 @@ long SwEditShell::Copy( SwEditShell* pDestShell )
pDestShell->SaveTblBoxCntnt( pDestShell->GetCrsr()->GetPoint() );
return (long)bRet;
return bRet;
}
/** Replace a selected area in a text node with a given string.
......
......@@ -636,7 +636,7 @@ bool SwFEShell::Copy( SwFEShell* pDestShell, const Point& rSttPt,
bRet = false;
if( bRet )
bRet = 0 != SwEditShell::Copy( pDestShell );
bRet = SwEditShell::Copy( pDestShell );
}
pDestShell->GetDoc()->getIDocumentRedlineAccess().SetRedlineMode_intern( eOldRedlMode );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment