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 : bool SwCrsrShell::IsStartWord( sal_Int16 nWordType ) const
25 : {
26 0 : return m_pCurCrsr->IsStartWord( nWordType );
27 : }
28 0 : bool SwCrsrShell::IsEndWord( sal_Int16 nWordType ) const
29 : {
30 0 : return m_pCurCrsr->IsEndWord( nWordType );
31 : }
32 :
33 0 : bool SwCrsrShell::IsInWord( sal_Int16 nWordType ) const
34 : {
35 0 : return m_pCurCrsr->IsInWord( nWordType );
36 : }
37 :
38 0 : bool SwCrsrShell::IsStartSentence() const
39 : {
40 0 : return m_pCurCrsr->IsStartEndSentence( false );
41 : }
42 0 : bool SwCrsrShell::IsEndSentence() const
43 : {
44 0 : return m_pCurCrsr->IsStartEndSentence( true );
45 : }
46 :
47 0 : bool SwCrsrShell::GoStartWord()
48 : {
49 0 : return CallCrsrFN( &SwCursor::GoStartWord );
50 : }
51 0 : bool SwCrsrShell::GoEndWord()
52 : {
53 0 : return CallCrsrFN( &SwCursor::GoEndWord );
54 : }
55 :
56 0 : bool SwCrsrShell::GoNextWord()
57 : {
58 0 : return CallCrsrFN( &SwCursor::GoNextWord );
59 : }
60 0 : bool SwCrsrShell::GoPrevWord()
61 : {
62 0 : return CallCrsrFN( &SwCursor::GoPrevWord );
63 : }
64 :
65 0 : bool SwCrsrShell::GoNextSentence()
66 : {
67 0 : return CallCrsrFN( &SwCursor::GoNextSentence );
68 : }
69 :
70 0 : bool SwCrsrShell::GoEndSentence()
71 : {
72 0 : return CallCrsrFN( &SwCursor::GoEndSentence );
73 : }
74 0 : bool SwCrsrShell::GoStartSentence()
75 : {
76 0 : return CallCrsrFN( &SwCursor::GoStartSentence );
77 : }
78 :
79 2 : bool SwCrsrShell::SelectWord( const Point* pPt )
80 : {
81 2 : return m_pCurCrsr->SelectWord( this, pPt );
82 : }
83 :
84 0 : bool SwCrsrShell::ExpandToSentenceBorders()
85 : {
86 0 : return m_pCurCrsr->ExpandToSentenceBorders();
87 177 : }
88 :
89 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|