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 <pam.hxx>
21 : #include <pamtyp.hxx>
22 : #include <trvlreg.hxx>
23 : #include <trvltbl.hxx>
24 :
25 : static SwMoveFnCollection aFwrd = {
26 : /* fnNd */ &GoNext,
27 : /* fnNds */ &GoNextNds,
28 : /* fnDoc */ &GoEndDoc,
29 : /* fnSections */ &GoEndSection,
30 : /* fnCmpOp */ &SwPosition::operator<,
31 : /* fnGetHint */ &GetFrwrdTextHint,
32 : /* fnSearch */ &utl::TextSearch::SearchForward,
33 : /* fnSection */ &SwNodes::GoStartOfSection
34 : };
35 :
36 : static SwMoveFnCollection aBwrd = {
37 : /* fnNd */ &GoPrevious,
38 : /* fnNds */ &GoPreviousNds,
39 : /* fnDoc */ &GoStartDoc,
40 : /* fnSections */ &GoStartSection,
41 : /* fnCmpOp */ &SwPosition::operator>,
42 : /* fnGetHint */ &GetBkwrdTextHint,
43 : /* fnSearch */ &utl::TextSearch::SearchBackward,
44 : /* fnSection */ &SwNodes::GoEndOfSection
45 : };
46 :
47 : SwGoInDoc fnGoDoc = &GoInDoc;
48 : SwGoInDoc fnGoSection = &GoInSection;
49 : SwGoInDoc fnGoNode = &GoInNode;
50 : SwGoInDoc fnGoContent = &GoInContent;
51 : SwGoInDoc fnGoContentCells = &GoInContentCells;
52 : SwGoInDoc fnGoContentSkipHidden = &GoInContentSkipHidden;
53 : SwGoInDoc fnGoContentCellsSkipHidden = &GoInContentCellsSkipHidden;
54 :
55 : SwWhichPara fnParaPrev = &GoPrevPara;
56 : SwWhichPara fnParaCurr = &GoCurrPara;
57 : SwWhichPara fnParaNext = &GoNextPara;
58 : SwPosPara fnParaStart = &aFwrd;
59 : SwPosPara fnParaEnd = &aBwrd;
60 :
61 : SwWhichSection fnSectionPrev = &GoPrevSection;
62 : SwWhichSection fnSectionCurr = &GoCurrSection;
63 : SwWhichSection fnSectionNext = &GoNextSection;
64 : SwPosSection fnSectionStart = &aFwrd;
65 : SwPosSection fnSectionEnd = &aBwrd;
66 :
67 : SwWhichTable fnTablePrev = &GotoPrevTable;
68 : SwWhichTable fnTableCurr = &GotoCurrTable;
69 : SwWhichTable fnTableNext = &GotoNextTable;
70 : SwPosTable fnTableStart = &aFwrd;
71 : SwPosTable fnTableEnd = &aBwrd;
72 :
73 : SwWhichRegion fnRegionPrev = &GotoPrevRegion;
74 : SwWhichRegion fnRegionCurr = &GotoCurrRegion;
75 : SwWhichRegion fnRegionCurrAndSkip = &GotoCurrRegionAndSkip;
76 : SwWhichRegion fnRegionNext = &GotoNextRegion;
77 : SwPosRegion fnRegionStart = &aFwrd;
78 : SwPosRegion fnRegionEnd = &aBwrd;
79 :
80 : SwMoveFn fnMoveBackward = &aBwrd;
81 : SwMoveFn fnMoveForward = &aFwrd;
82 :
83 0 : SwWhichPara GetfnParaCurr()
84 : {
85 0 : return fnParaCurr;
86 : }
87 0 : SwPosPara GetfnParaStart()
88 : {
89 0 : return fnParaStart;
90 : }
91 0 : SwWhichTable GetfnTablePrev()
92 : {
93 0 : return fnTablePrev;
94 : }
95 0 : SwPosPara GetfnParaEnd()
96 : {
97 0 : return fnParaEnd;
98 : }
99 0 : SwPosTable GetfnTableStart()
100 : {
101 0 : return fnTableStart;
102 : }
103 0 : SwWhichTable GetfnTableCurr()
104 : {
105 0 : return fnTableCurr;
106 : }
107 0 : SwPosTable GetfnTableEnd()
108 : {
109 0 : return fnTableEnd;
110 177 : }
111 :
112 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|