merged tag ooo/OOO330_m14
[LibreOffice.git] / sw / inc / txtftn.hxx
blob07043a9263bccec30359e24a368f685a1743aad9
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef _TXTFTN_HXX
28 #define _TXTFTN_HXX
30 #include <txatbase.hxx>
32 class SwNodeIndex;
33 class SwTxtNode;
34 class SwNodes;
35 class SwDoc;
37 // ATT_FTN **********************************************************
39 class SW_DLLPUBLIC SwTxtFtn : public SwTxtAttr
41 SwNodeIndex * m_pStartNode;
42 SwTxtNode * m_pTxtNode;
43 USHORT m_nSeqNo;
45 public:
46 SwTxtFtn( SwFmtFtn& rAttr, xub_StrLen nStart );
47 virtual ~SwTxtFtn();
49 inline SwNodeIndex *GetStartNode() const { return m_pStartNode; }
50 void SetStartNode( const SwNodeIndex *pNode, BOOL bDelNodes = TRUE );
51 void SetNumber( const USHORT nNumber, const String* = 0 );
52 void CopyFtn(SwTxtFtn & rDest, SwTxtNode & rDestNode) const;
54 // get and set TxtNode pointer
55 inline const SwTxtNode& GetTxtNode() const;
56 void ChgTxtNode( SwTxtNode* pNew ) { m_pTxtNode = pNew; }
58 // lege eine neue leere TextSection fuer diese Fussnote an
59 void MakeNewTextSection( SwNodes& rNodes );
61 // loesche die FtnFrame aus der Seite
62 void DelFrms();
63 // bedingten Absatzvorlagen checken
64 void CheckCondColl();
66 // fuer die Querverweise auf Fussnoten
67 USHORT SetSeqRefNo();
68 void SetSeqNo( USHORT n ) { m_nSeqNo = n; } // for Readers
69 USHORT GetSeqRefNo() const { return m_nSeqNo; }
71 static void SetUniqueSeqRefNo( SwDoc& rDoc );
74 inline const SwTxtNode& SwTxtFtn::GetTxtNode() const
76 ASSERT( m_pTxtNode, "SwTxtFtn: where is my TxtNode?" );
77 return *m_pTxtNode;
80 #endif