diff options
-rw-r--r-- | sw/inc/pam.hxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sw/inc/pam.hxx b/sw/inc/pam.hxx index 29ae5f6c3038..895d5093f3cc 100644 --- a/sw/inc/pam.hxx +++ b/sw/inc/pam.hxx @@ -2,9 +2,9 @@ * * $RCSfile: pam.hxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: jp $ $Date: 2002-02-01 12:33:23 $ + * last change: $Author: vg $ $Date: 2003-04-17 16:03:18 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -245,6 +245,14 @@ public: return ( bPoint ? pPoint->nNode : pMark->nNode ).GetNode().GetCntntNode(); } + /** + Normalizes PaM, i.e. sort point and mark. + + @param bPointFirst TRUE: If the point is behind the mark then swap. + FALSE: If the mark is behind the point then swap. + */ + SwPaM & Normalize(BOOL bPointFirst = TRUE); + // erfrage vom SwPaM das Dokument, in dem er angemeldet ist SwDoc* GetDoc() const { return pPoint->nNode.GetNode().GetDoc(); } SwPosition& GetBound( BOOL bOne = TRUE ) |