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 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 // MARKER(update_precomp.py): autogen include statement, do not remove 25 #include "precompiled_sw.hxx" 26 27 28 #include <crsrsh.hxx> 29 #include <viscrs.hxx> 30 #include <callnk.hxx> 31 IsStartWord(sal_Int16 nWordType) const32sal_Bool SwCrsrShell::IsStartWord( sal_Int16 nWordType ) const 33 { 34 return pCurCrsr->IsStartWord( nWordType ); 35 } 36 IsEndWord(sal_Int16 nWordType) const37sal_Bool SwCrsrShell::IsEndWord( sal_Int16 nWordType ) const 38 { 39 return pCurCrsr->IsEndWord( nWordType ); 40 } 41 IsInWord(sal_Int16 nWordType) const42sal_Bool SwCrsrShell::IsInWord( sal_Int16 nWordType ) const 43 { 44 return pCurCrsr->IsInWord( nWordType ); 45 } 46 IsStartSentence() const47sal_Bool SwCrsrShell::IsStartSentence() const 48 { 49 return pCurCrsr->IsStartEndSentence( false ); 50 } 51 IsEndSentence() const52sal_Bool SwCrsrShell::IsEndSentence() const 53 { 54 return pCurCrsr->IsStartEndSentence( true ); 55 } 56 57 GoStartWord()58sal_Bool SwCrsrShell::GoStartWord() 59 { 60 return CallCrsrFN( &SwCursor::GoStartWord ); 61 } GoEndWord()62sal_Bool SwCrsrShell::GoEndWord() 63 { 64 return CallCrsrFN( &SwCursor::GoEndWord ); 65 } GoNextWord()66sal_Bool SwCrsrShell::GoNextWord() 67 { 68 return CallCrsrFN( &SwCursor::GoNextWord ); 69 } GoPrevWord()70sal_Bool SwCrsrShell::GoPrevWord() 71 { 72 return CallCrsrFN( &SwCursor::GoPrevWord ); 73 } GoNextSentence()74sal_Bool SwCrsrShell::GoNextSentence() 75 { 76 return CallCrsrFN( &SwCursor::GoNextSentence ); 77 } GoEndSentence()78sal_Bool SwCrsrShell::GoEndSentence() 79 { 80 return CallCrsrFN( &SwCursor::GoEndSentence ); 81 } 82 GoPrevSentence()83sal_Bool SwCrsrShell::GoPrevSentence() 84 { 85 return CallCrsrFN( &SwCursor::GoPrevSentence ); 86 } GoStartSentence()87sal_Bool SwCrsrShell::GoStartSentence() 88 { 89 return CallCrsrFN( &SwCursor::GoStartSentence ); 90 } 91 SelectWord(const Point * pPt)92sal_Bool SwCrsrShell::SelectWord( const Point* pPt ) 93 { 94 return pCurCrsr->SelectWord( this, pPt ); 95 } 96 ExpandToSentenceBorders()97sal_Bool SwCrsrShell::ExpandToSentenceBorders() 98 { 99 return pCurCrsr->ExpandToSentenceBorders(); 100 } 101 102