summaryrefslogtreecommitdiff
path: root/sw/source/ui/wrtsh
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-08-14 18:44:48 +0000
committerKurt Zenker <kz@openoffice.org>2008-08-14 18:44:48 +0000
commit3ce77e87cd4c6a6a3a00641d87e8a0fa5b5943d3 (patch)
tree7835b6d6993a663f51e9137d945a56f74b25e562 /sw/source/ui/wrtsh
parent52863b2d654f79af0bb9d4fac762137979e5047a (diff)
INTEGRATION: CWS tl58 (1.10.70); FILE MERGED
2008/08/06 10:11:36 od 1.10.70.1: #i92468# Deletion of previous respectively next word - perform former (before fix for issue i72162) code for deletion of previous respectively next word.
Diffstat (limited to 'sw/source/ui/wrtsh')
-rw-r--r--sw/source/ui/wrtsh/wrtsh4.cxx51
1 files changed, 48 insertions, 3 deletions
diff --git a/sw/source/ui/wrtsh/wrtsh4.cxx b/sw/source/ui/wrtsh/wrtsh4.cxx
index 2b332ac6d5a6..b7203ca765db 100644
--- a/sw/source/ui/wrtsh/wrtsh4.cxx
+++ b/sw/source/ui/wrtsh/wrtsh4.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: wrtsh4.cxx,v $
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
* This file is part of OpenOffice.org.
*
@@ -124,8 +124,6 @@ BOOL SwWrtShell::_NxtWrd()
return bRet;
}
-
-
BOOL SwWrtShell::_PrvWrd()
{
BOOL bRet = FALSE;
@@ -157,6 +155,53 @@ BOOL SwWrtShell::_PrvWrd()
return bRet;
}
+// --> OD 2008-08-06 #i92468#
+// method code of <SwWrtShell::_NxtWrd()> before fix for issue i72162
+BOOL SwWrtShell::_NxtWrdForDelete()
+{
+ if ( IsEndPara() )
+ {
+ if ( !SwCrsrShell::Right(1,CRSR_SKIP_CHARS) )
+ {
+ Pop( FALSE );
+ return FALSE;
+ }
+ return TRUE;
+ }
+ Push();
+ ClearMark();
+ if ( !GoNextWord() )
+ {
+ SwCrsrShell::MovePara( fnParaCurr, fnParaEnd );
+ }
+ ClearMark();
+ Combine();
+ return TRUE;
+}
+
+// method code of <SwWrtShell::_PrvWrd()> before fix for issue i72162
+BOOL SwWrtShell::_PrvWrdForDelete()
+{
+ if ( IsSttPara() )
+ {
+ if ( !SwCrsrShell::Left(1,CRSR_SKIP_CHARS) )
+ {
+ Pop( FALSE );
+ return FALSE;
+ }
+ return TRUE;
+ }
+ Push();
+ ClearMark();
+ if( !GoPrevWord() )
+ {
+ SwCrsrShell::MovePara( fnParaCurr, fnParaStart );
+ }
+ ClearMark();
+ Combine();
+ return TRUE;
+}
+// <--
BOOL SwWrtShell::_FwdSentence()