LibreOffice Module sw (master)  1
crstrvl1.cxx
Go to the documentation of this file.
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 
23 #include <com/sun/star/i18n/WordType.hpp>
24 
25 using namespace ::com::sun::star::i18n;
26 
27 bool SwCursorShell::IsStartWord( sal_Int16 nWordType ) const
28 {
29  return m_pCurrentCursor->IsStartWordWT(nWordType, GetLayout());
30 }
31 bool SwCursorShell::IsEndWord( sal_Int16 nWordType ) const
32 {
33  return m_pCurrentCursor->IsEndWordWT(nWordType, GetLayout());
34 }
35 
36 bool SwCursorShell::IsInWord( sal_Int16 nWordType ) const
37 {
38  return m_pCurrentCursor->IsInWordWT(nWordType, GetLayout());
39 }
40 
42 {
44 }
46 {
48 }
49 
51 {
53 }
55 {
57 }
58 
60 {
62 }
64 {
66 }
67 
69 {
71 }
72 
74 {
76 }
77 
79 {
81 }
82 
83 bool SwCursorShell::SelectWord( const Point* pPt )
84 {
85  return m_pCurrentCursor->SelectWord( this, pPt );
86 }
87 
89 {
91 }
92 
94 {
95  return getShellCursor(true)->GoStartWordWT(WordType::ANYWORD_IGNOREWHITESPACES, GetLayout());
96 }
97 
99 {
100  return getShellCursor(true)->GoEndWordWT(WordType::ANYWORD_IGNOREWHITESPACES, GetLayout());
101 }
102 
104 {
105  return getShellCursor(true)->GoNextWordWT(WordType::ANYWORD_IGNOREWHITESPACES, GetLayout());
106 }
107 
109 {
110  return getShellCursor(true)->GoPrevWordWT(WordType::ANYWORD_IGNOREWHITESPACES, GetLayout());
111 }
112 
114 {
116 }
118 {
120 }
122 {
124 }
125 
126 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
bool GoSentence(SentenceMoveType eMoveType, SwRootFrame const *pLayout=nullptr)
Definition: swcrsr.cxx:1529
SwShellCursor * m_pCurrentCursor
current cursor
Definition: crsrsh.hxx:179
bool IsStartEndSentence(bool bEnd, SwRootFrame const *pLayout) const
Definition: swcrsr.cxx:1249
void ExpandToSentenceBorders()
Definition: crstrvl1.cxx:88
bool GoEndWordWT(sal_Int16 nWordType, SwRootFrame const *pLayout=nullptr)
Definition: swcrsr.cxx:1294
bool GoStartWord()
Definition: crstrvl1.cxx:50
bool GoNextWord()
Definition: crstrvl1.cxx:59
SwShellCursor * getShellCursor(bool bBlock)
Delivers the current shell cursor.
Definition: crsrsh.cxx:2923
bool IsEndWord(sal_Int16 nWordType=css::i18n::WordType::ANYWORD_IGNOREWHITESPACES) const
Definition: crstrvl1.cxx:31
bool IsEndWordWT(sal_Int16 nWordType, SwRootFrame const *pLayout=nullptr) const
Definition: swcrsr.cxx:1199
bool GoEndSentence()
Definition: crstrvl1.cxx:73
bool GoNextSentence()
Definition: crstrvl1.cxx:68
bool GoPrevWord()
Definition: crstrvl1.cxx:63
bool SelectWord(SwViewShell const *pViewShell, const Point *pPt)
Definition: swcrsr.cxx:1176
bool GoStartSentence()
Definition: crstrvl1.cxx:78
bool IsStartSentence() const
Definition: crstrvl1.cxx:41
bool GoPrevWordWT(sal_Int16 nWordType, SwRootFrame const *pLayout=nullptr)
Definition: swcrsr.cxx:1352
SAL_DLLPRIVATE bool GoEndSentenceImpl()
Definition: crstrvl1.cxx:117
bool GoNextWordWT(sal_Int16 nWordType, SwRootFrame const *pLayout=nullptr)
Definition: swcrsr.cxx:1324
bool IsInWordWT(sal_Int16 nWordType, SwRootFrame const *pLayout=nullptr) const
Definition: swcrsr.cxx:1218
SAL_DLLPRIVATE bool GoStartWordImpl()
Definition: crstrvl1.cxx:93
bool IsInWord(sal_Int16 nWordType=css::i18n::WordType::ANYWORD_IGNOREWHITESPACES) const
Definition: crstrvl1.cxx:36
bool IsEndSentence() const
Definition: crstrvl1.cxx:45
SAL_DLLPRIVATE bool GoNextWordImpl()
Definition: crstrvl1.cxx:103
SAL_DLLPRIVATE bool GoPrevWordImpl()
Definition: crstrvl1.cxx:108
bool IsStartWord(sal_Int16 nWordType=css::i18n::WordType::ANYWORD_IGNOREWHITESPACES) const
Definition: crstrvl1.cxx:27
bool ExpandToSentenceBorders(SwRootFrame const *pLayout)
Definition: swcrsr.cxx:1600
bool GoEndWord()
Definition: crstrvl1.cxx:54
SAL_DLLPRIVATE bool GoEndWordImpl()
Definition: crstrvl1.cxx:98
SAL_DLLPRIVATE bool CallCursorShellFN(FNCursorShell)
Definition: trvlfnfl.cxx:39
bool SelectWord(const Point *pPt)
Definition: crstrvl1.cxx:83
SAL_DLLPRIVATE bool GoNextSentenceImpl()
Definition: crstrvl1.cxx:113
SwRootFrame * GetLayout() const
Definition: viewsh.cxx:2072
bool IsStartWordWT(sal_Int16 nWordType, SwRootFrame const *pLayout=nullptr) const
Definition: swcrsr.cxx:1181
bool GoStartWordWT(sal_Int16 nWordType, SwRootFrame const *pLayout=nullptr)
Definition: swcrsr.cxx:1265
SAL_DLLPRIVATE bool GoStartSentenceImpl()
Definition: crstrvl1.cxx:121