LibreOffice Module sw (master)  1
paminit.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 <pam.hxx>
21 #include <pamtyp.hxx>
22 #include <cshtyp.hxx>
23 
24 static const SwMoveFnCollection aFwrd = {
25  /* fnNd */ &GoNext,
26  /* fnNds */ &GoNextNds,
27  /* fnDoc */ &GoEndDoc,
28  /* fnSections */ &GoEndSection,
29  /* fnCmpOp */ &SwPosition::operator<,
30  /* fnGetHint */ &GetFrwrdTextHint,
31  /* fnSearch */ &utl::TextSearch::SearchForward,
32  /* fnSection */ &SwNodes::GoStartOfSection
33 };
34 
35 static const SwMoveFnCollection aBwrd = {
36  /* fnNd */ &GoPrevious,
37  /* fnNds */ &GoPreviousNds,
38  /* fnDoc */ &GoStartDoc,
39  /* fnSections */ &GoStartSection,
40  /* fnCmpOp */ &SwPosition::operator>,
41  /* fnGetHint */ &GetBkwrdTextHint,
42  /* fnSearch */ &utl::TextSearch::SearchBackward,
43  /* fnSection */ &SwNodes::GoEndOfSection
44 };
45 
48 
51 
54 
57 
60 
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SwContentNode * GoNextNds(SwNodeIndex *pIdx, bool bChk)
Definition: pam.cxx:284
SwMoveFnCollection const & fnParaEnd
Definition: paminit.cxx:47
SwMoveFnCollection const & fnTableEnd
Definition: paminit.cxx:53
const SwTextAttr * GetBkwrdTextHint(const SwpHints &rHtsArr, size_t &rPos, sal_Int32 nContentPos)
Definition: findattr.cxx:110
SwMoveFnCollection const & fnParaStart
Definition: paminit.cxx:46
void GoStartDoc(SwPosition *pPos)
Definition: pam.cxx:835
void GoEndSection(SwPosition *pPos)
go to the end of the current base section
Definition: pam.cxx:868
void GoEndDoc(SwPosition *pPos)
Definition: pam.cxx:845
SwMoveFnCollection const & fnRegionEnd
Definition: paminit.cxx:56
static void GoEndOfSection(SwNodeIndex *)
Definition: nodes.cxx:1267
static const SwMoveFnCollection aFwrd
Definition: paminit.cxx:24
bool SearchForward(const OUString &rStr, sal_Int32 *pStart, sal_Int32 *pEnd, css::util::SearchResult *pRes=nullptr)
bool GoNext(SwNode *pNd, SwIndex *pIdx, sal_uInt16 nMode)
Definition: pam.cxx:270
const SwTextAttr * GetFrwrdTextHint(const SwpHints &rHtsArr, size_t &rPos, sal_Int32 nContentPos)
Definition: findattr.cxx:97
static void GoStartOfSection(SwNodeIndex *)
Definition: nodes.cxx:1249
bool SearchBackward(const OUString &rStr, sal_Int32 *pStart, sal_Int32 *pEnd, css::util::SearchResult *pRes=nullptr)
SwMoveFnCollection const & fnTableStart
Definition: paminit.cxx:52
SwMoveFnCollection const & fnSectionEnd
Definition: paminit.cxx:50
SwMoveFnCollection const & fnMoveForward
SwPam::Move()/Find() default argument.
Definition: paminit.cxx:59
SwMoveFnCollection const & fnSectionStart
Definition: paminit.cxx:49
void GoStartSection(SwPosition *pPos)
Definition: pam.cxx:854
SwMoveFnCollection const & fnMoveBackward
Definition: paminit.cxx:58
SwContentNode * GoPreviousNds(SwNodeIndex *pIdx, bool bChk)
Definition: pam.cxx:299
static const SwMoveFnCollection aBwrd
Definition: paminit.cxx:35
bool GoPrevious(SwNode *pNd, SwIndex *pIdx, sal_uInt16 nMode)
Definition: pam.cxx:277
SwMoveFnCollection const & fnRegionStart
Definition: paminit.cxx:55