update dev300-m57
[ooovba.git] / sw / inc / txtflcnt.hxx
blob6ea16ab1b838245f8dc0ba4f788a85ec2da0991f
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: txtflcnt.hxx,v $
10 * $Revision: 1.3 $
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 _TXTFLCNT_HXX
31 #define _TXTFLCNT_HXX
33 #include <txatbase.hxx>
35 class SwFlyInCntFrm;
36 class SwFrm;
37 class SwTxtNode;
38 class SwDoc;
40 // SWTXT_FLYCNT ********************************
41 // Attribut fuer zeilengebundene Frames (ohne Endindex)
43 class SwTxtFlyCnt : public SwTxtAttr
45 SwFlyInCntFrm *_GetFlyFrm( const SwFrm *pCurrFrm );
47 public:
48 SwTxtFlyCnt( SwFmtFlyCnt& rAttr, xub_StrLen nStart );
50 // Setzt den Anker im pFmt und
51 void SetAnchor( const SwTxtNode *pNode );
53 inline SwFlyInCntFrm *GetFlyFrm( const SwFrm *pCurrFrm );
54 inline const SwFlyInCntFrm *GetFlyFrm( const SwFrm *pCurrFrm ) const;
56 // erzeugt sich ein neues FlyFrameFormat
57 void CopyFlyFmt( SwDoc* pDoc );
60 inline SwFlyInCntFrm *SwTxtFlyCnt::GetFlyFrm( const SwFrm *pCurrFrm )
62 return _GetFlyFrm( pCurrFrm );
65 inline const SwFlyInCntFrm *SwTxtFlyCnt::GetFlyFrm( const SwFrm *pCurrFrm ) const
67 return (const_cast<SwTxtFlyCnt*>(this))->_GetFlyFrm( pCurrFrm );
70 #endif