update dev300-m58
[ooovba.git] / sw / source / core / crsr / callnk.hxx
blob32bc41dd994a1137241ea316b5c25b13ba56bd70
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: callnk.hxx,v $
10 * $Revision: 1.4 $
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 ************************************************************************/
30 #ifndef _CALLNK_HXX
31 #define _CALLNK_HXX
33 #include <tools/solar.h>
35 class SwCrsrShell;
36 class SwTxtNode;
38 class SwCallLink
40 public:
41 SwCrsrShell & rShell;
42 ULONG nNode;
43 xub_StrLen nCntnt;
44 BYTE nNdTyp;
45 long nLeftFrmPos;
46 bool bHasSelection;
48 SwCallLink( SwCrsrShell & rSh );
49 SwCallLink( SwCrsrShell & rSh, ULONG nAktNode, xub_StrLen nAktCntnt,
50 BYTE nAktNdTyp, long nLRPos,
51 bool bAktSelection );
52 ~SwCallLink();
54 static long GetFrm( SwTxtNode& rNd, xub_StrLen nCntPos, BOOL bCalcFrm );
59 #endif // _CALLNK_HXX