Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 : #include <crsrsh.hxx>
21 : #include <viscrs.hxx>
22 : #include <callnk.hxx>
23 :
24 0 : sal_Bool SwCrsrShell::IsStartWord( sal_Int16 nWordType ) const
25 : {
26 0 : return pCurCrsr->IsStartWord( nWordType );
27 : }
28 :
29 0 : sal_Bool SwCrsrShell::IsEndWord( sal_Int16 nWordType ) const
30 : {
31 0 : return pCurCrsr->IsEndWord( nWordType );
32 : }
33 :
34 0 : sal_Bool SwCrsrShell::IsInWord( sal_Int16 nWordType ) const
35 : {
36 0 : return pCurCrsr->IsInWord( nWordType );
37 : }
38 :
39 0 : sal_Bool SwCrsrShell::IsStartSentence() const
40 : {
41 0 : return pCurCrsr->IsStartEndSentence( false );
42 : }
43 :
44 0 : sal_Bool SwCrsrShell::IsEndSentence() const
45 : {
46 0 : return pCurCrsr->IsStartEndSentence( true );
47 : }
48 :
49 :
50 0 : sal_Bool SwCrsrShell::GoStartWord()
51 : {
52 0 : return CallCrsrFN( &SwCursor::GoStartWord );
53 : }
54 0 : sal_Bool SwCrsrShell::GoEndWord()
55 : {
56 0 : return CallCrsrFN( &SwCursor::GoEndWord );
57 : }
58 0 : sal_Bool SwCrsrShell::GoNextWord()
59 : {
60 0 : return CallCrsrFN( &SwCursor::GoNextWord );
61 : }
62 0 : sal_Bool SwCrsrShell::GoPrevWord()
63 : {
64 0 : return CallCrsrFN( &SwCursor::GoPrevWord );
65 : }
66 0 : sal_Bool SwCrsrShell::GoNextSentence()
67 : {
68 0 : return CallCrsrFN( &SwCursor::GoNextSentence );
69 : }
70 0 : sal_Bool SwCrsrShell::GoEndSentence()
71 : {
72 0 : return CallCrsrFN( &SwCursor::GoEndSentence );
73 : }
74 :
75 0 : sal_Bool SwCrsrShell::GoStartSentence()
76 : {
77 0 : return CallCrsrFN( &SwCursor::GoStartSentence );
78 : }
79 :
80 0 : sal_Bool SwCrsrShell::SelectWord( const Point* pPt )
81 : {
82 0 : return pCurCrsr->SelectWord( this, pPt );
83 : }
84 :
85 0 : sal_Bool SwCrsrShell::ExpandToSentenceBorders()
86 : {
87 0 : return pCurCrsr->ExpandToSentenceBorders();
88 : }
89 :
90 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|