delete.cxx (efeef26f) delete.cxx (e789bd50)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 461 unchanged lines hidden (view full) ---

470 * Nxt-/PrvDelim arbeiten, da letzteren mit Wrap Around arbeiten
471 * -- das ist wohl nicht gewuenscht.
472 */
473
474
475
476long SwWrtShell::DelToStartOfSentence()
477{
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 461 unchanged lines hidden (view full) ---

470 * Nxt-/PrvDelim arbeiten, da letzteren mit Wrap Around arbeiten
471 * -- das ist wohl nicht gewuenscht.
472 */
473
474
475
476long SwWrtShell::DelToStartOfSentence()
477{
478 if(IsStartOfDoc())
479 return 0;
480 OpenMark();
481 long nRet = _BwdSentence() ? Delete() : 0;
482 CloseMark( 0 != nRet );
483 return nRet;
478 if(IsStartOfDoc())
479 return 0;
480 OpenMark();
481
482 SwCrsrSaveState aSaveState( *(_GetCrsr()) );
483 sal_Bool bSuccessfulSelection = _BwdSentence();
484 if ( _GetCrsr()->IsInProtectTable( sal_True )
485 || _GetCrsr()->IsSelOvr( nsSwCursorSelOverFlags::SELOVER_TOGGLE |
486 nsSwCursorSelOverFlags::SELOVER_CHANGEPOS ) )
487 {
488 bSuccessfulSelection = sal_False;
489 }
490 long nRet = bSuccessfulSelection ? Delete() : 0;
491
492 CloseMark( 0 != nRet );
493 return nRet;
484}
485
486
487
488long SwWrtShell::DelToEndOfSentence()
489{
490 if(IsEndOfDoc())
491 return 0;

--- 75 unchanged lines hidden ---
494}
495
496
497
498long SwWrtShell::DelToEndOfSentence()
499{
500 if(IsEndOfDoc())
501 return 0;

--- 75 unchanged lines hidden ---