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
25using namespace ::com::sun::star::i18n;
26
27bool SwCursorShell::IsStartWord( sal_Int16 nWordType ) const
28{
29 return m_pCurrentCursor->IsStartWordWT(nWordType, GetLayout());
30}
31bool SwCursorShell::IsEndWord( sal_Int16 nWordType ) const
32{
33 return m_pCurrentCursor->IsEndWordWT(nWordType, GetLayout());
34}
35
36bool 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
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 GoStartWord()
Definition: crstrvl1.cxx:50
bool GoEndSentence()
Definition: crstrvl1.cxx:73
SAL_DLLPRIVATE bool GoNextSentenceImpl()
Definition: crstrvl1.cxx:113
SAL_DLLPRIVATE bool GoPrevWordImpl()
Definition: crstrvl1.cxx:108
bool GoNextSentence()
Definition: crstrvl1.cxx:68
bool IsStartSentence() const
Definition: crstrvl1.cxx:41
bool IsInWord(sal_Int16 nWordType=css::i18n::WordType::ANYWORD_IGNOREWHITESPACES) const
Definition: crstrvl1.cxx:36
bool GoEndWord()
Definition: crstrvl1.cxx:54
bool GoPrevWord()
Definition: crstrvl1.cxx:63
void ExpandToSentenceBorders()
Definition: crstrvl1.cxx:88
SAL_DLLPRIVATE bool GoStartSentenceImpl()
Definition: crstrvl1.cxx:121
bool GoNextWord()
Definition: crstrvl1.cxx:59
bool IsEndWord(sal_Int16 nWordType=css::i18n::WordType::ANYWORD_IGNOREWHITESPACES) const
Definition: crstrvl1.cxx:31
bool GoStartSentence()
Definition: crstrvl1.cxx:78
bool SelectWord(const Point *pPt)
Definition: crstrvl1.cxx:83
SAL_DLLPRIVATE bool GoNextWordImpl()
Definition: crstrvl1.cxx:103
SAL_DLLPRIVATE bool GoEndSentenceImpl()
Definition: crstrvl1.cxx:117
SAL_DLLPRIVATE bool GoEndWordImpl()
Definition: crstrvl1.cxx:98
SAL_DLLPRIVATE bool GoStartWordImpl()
Definition: crstrvl1.cxx:93
SwShellCursor * getShellCursor(bool bBlock)
Delivers the current shell cursor.
Definition: crsrsh.cxx:3356
SAL_DLLPRIVATE bool CallCursorShellFN(FNCursorShell)
Definition: trvlfnfl.cxx:35
SwShellCursor * m_pCurrentCursor
current cursor
Definition: crsrsh.hxx:186
bool IsStartWord(sal_Int16 nWordType=css::i18n::WordType::ANYWORD_IGNOREWHITESPACES) const
Definition: crstrvl1.cxx:27
bool IsEndSentence() const
Definition: crstrvl1.cxx:45
bool SelectWord(SwViewShell const *pViewShell, const Point *pPt)
Definition: swcrsr.cxx:1202
bool GoNextWordWT(sal_Int16 nWordType, SwRootFrame const *pLayout=nullptr)
Definition: swcrsr.cxx:1350
bool GoPrevWordWT(sal_Int16 nWordType, SwRootFrame const *pLayout=nullptr)
Definition: swcrsr.cxx:1378
bool IsEndWordWT(sal_Int16 nWordType, SwRootFrame const *pLayout=nullptr) const
Definition: swcrsr.cxx:1225
void ExpandToSentenceBorders(SwRootFrame const *pLayout)
Definition: swcrsr.cxx:1623
bool IsInWordWT(sal_Int16 nWordType, SwRootFrame const *pLayout=nullptr) const
Definition: swcrsr.cxx:1244
bool IsStartEndSentence(bool bEnd, SwRootFrame const *pLayout) const
Definition: swcrsr.cxx:1275
@ NEXT_SENT
Definition: swcrsr.hxx:155
@ END_SENT
Definition: swcrsr.hxx:158
@ START_SENT
Definition: swcrsr.hxx:157
bool GoEndWordWT(sal_Int16 nWordType, SwRootFrame const *pLayout=nullptr)
Definition: swcrsr.cxx:1320
bool GoStartWordWT(sal_Int16 nWordType, SwRootFrame const *pLayout=nullptr)
Definition: swcrsr.cxx:1291
bool IsStartWordWT(sal_Int16 nWordType, SwRootFrame const *pLayout=nullptr) const
Definition: swcrsr.cxx:1207
bool GoSentence(SentenceMoveType eMoveType, SwRootFrame const *pLayout=nullptr)
Definition: swcrsr.cxx:1552
SwRootFrame * GetLayout() const
Definition: viewsh.cxx:2163