1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: paminit.cxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_sw.hxx"
38 static SwMoveFnCollection aFwrd
= {
40 /* fnNds */ &GoNextNds
,
41 /* fnDoc */ &GoEndDoc
,
42 /* fnSections */ &GoEndSection
,
43 /* fnCmpOp */ &SwPosition::operator<,
44 /* fnGetHint */ &GetFrwrdTxtHint
,
45 /* fnSearch */ &utl::TextSearch::SearchFrwrd
,
46 /* fnSection */ &SwNodes::GoStartOfSection
49 static SwMoveFnCollection aBwrd
= {
50 /* fnNd */ &GoPrevious
,
51 /* fnNds */ &GoPreviousNds
,
52 /* fnDoc */ &GoStartDoc
,
53 /* fnSections */ &GoStartSection
,
54 /* fnCmpOp */ &SwPosition::operator>,
55 /* fnGetHint */ &GetBkwrdTxtHint
,
56 /* fnSearch */ &utl::TextSearch::SearchBkwrd
,
57 /* fnSection */ &SwNodes::GoEndOfSection
60 SwGoInDoc fnGoDoc
= &GoInDoc
;
61 SwGoInDoc fnGoSection
= &GoInSection
;
62 SwGoInDoc fnGoNode
= &GoInNode
;
63 SwGoInDoc fnGoCntnt
= &GoInCntnt
;
64 SwGoInDoc fnGoCntntCells
= &GoInCntntCells
;
65 SwGoInDoc fnGoCntntSkipHidden
= &GoInCntntSkipHidden
;
66 SwGoInDoc fnGoCntntCellsSkipHidden
= &GoInCntntCellsSkipHidden
;
68 SwWhichPara fnParaPrev
= &GoPrevPara
;
69 SwWhichPara fnParaCurr
= &GoCurrPara
;
70 SwWhichPara fnParaNext
= &GoNextPara
;
71 SwPosPara fnParaStart
= &aFwrd
;
72 SwPosPara fnParaEnd
= &aBwrd
;
74 SwWhichSection fnSectionPrev
= &GoPrevSection
;
75 SwWhichSection fnSectionCurr
= &GoCurrSection
;
76 SwWhichSection fnSectionNext
= &GoNextSection
;
77 SwPosSection fnSectionStart
= &aFwrd
;
78 SwPosSection fnSectionEnd
= &aBwrd
;
80 // Travelling in Tabellen
81 BOOL
GotoPrevTable( SwPaM
&, SwPosTable
, BOOL bInReadOnly
);
82 BOOL
GotoCurrTable( SwPaM
&, SwPosTable
, BOOL bInReadOnly
);
83 BOOL
GotoNextTable( SwPaM
&, SwPosTable
, BOOL bInReadOnly
);
85 SwWhichTable fnTablePrev
= &GotoPrevTable
;
86 SwWhichTable fnTableCurr
= &GotoCurrTable
;
87 SwWhichTable fnTableNext
= &GotoNextTable
;
88 SwPosTable fnTableStart
= &aFwrd
;
89 SwPosTable fnTableEnd
= &aBwrd
;
91 // Travelling in Bereichen
92 BOOL
GotoPrevRegion( SwPaM
&, SwPosRegion
, BOOL bInReadOnly
);
93 BOOL
GotoCurrRegion( SwPaM
&, SwPosRegion
, BOOL bInReadOnly
);
94 BOOL
GotoCurrRegionAndSkip( SwPaM
&, SwPosRegion
, BOOL bInReadOnly
);
95 BOOL
GotoNextRegion( SwPaM
&, SwPosRegion
, BOOL bInReadOnly
);
97 SwWhichRegion fnRegionPrev
= &GotoPrevRegion
;
98 SwWhichRegion fnRegionCurr
= &GotoCurrRegion
;
99 SwWhichRegion fnRegionCurrAndSkip
= &GotoCurrRegionAndSkip
;
100 SwWhichRegion fnRegionNext
= &GotoNextRegion
;
101 SwPosRegion fnRegionStart
= &aFwrd
;
102 SwPosRegion fnRegionEnd
= &aBwrd
;
104 SwMoveFn fnMoveBackward
= &aBwrd
;
105 SwMoveFn fnMoveForward
= &aFwrd
;
107 SwWhichPara
GetfnParaCurr()
111 SwPosPara
GetfnParaStart()
115 SwWhichTable
GetfnTablePrev()
119 SwPosPara
GetfnParaEnd()
123 SwPosTable
GetfnTableStart()
127 SwWhichTable
GetfnTableCurr()
131 SwPosTable
GetfnTableEnd()