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: fmtcnct.hxx,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 ************************************************************************/
34 #ifndef _FORMAT_HXX //autogen
44 //Verbindung (Textfluss) zwischen zwei FlyFrms
46 class SwFmtChain
: public SfxPoolItem
48 SwClient aPrev
, //Vorgaenger (SwFlyFrmFmt), wenn es diesen gibt.
49 aNext
; //Nachfolger (SwFlyFrmFmt), wenn es diesen gibt.
53 SwFmtChain() : SfxPoolItem( RES_CHAIN
) {}
54 SwFmtChain( const SwFmtChain
&rCpy
);
56 inline SwFmtChain
&operator=( const SwFmtChain
& );
58 // "pure virtual Methoden" vom SfxPoolItem
59 virtual int operator==( const SfxPoolItem
& ) const;
60 virtual SfxPoolItem
* Clone( SfxItemPool
* pPool
= 0 ) const;
61 virtual SfxPoolItem
* Create(SvStream
&, USHORT nVer
) const;
62 virtual SvStream
& Store(SvStream
&, USHORT nIVer
) const;
63 virtual USHORT
GetVersion( USHORT nFFVer
) const;
65 virtual BOOL
QueryValue( ::com::sun::star::uno::Any
& rVal
, BYTE nMemberId
= 0 ) const;
67 SwFlyFrmFmt
* GetPrev() const { return (SwFlyFrmFmt
*)aPrev
.GetRegisteredIn(); }
68 SwFlyFrmFmt
* GetNext() const { return (SwFlyFrmFmt
*)aNext
.GetRegisteredIn(); }
71 void SetPrev( SwFlyFrmFmt
*pFmt
);
72 void SetNext( SwFlyFrmFmt
*pFmt
);
75 SwFmtChain
&SwFmtChain::operator=( const SwFmtChain
&rCpy
)
77 SetPrev( rCpy
.GetPrev() );
78 SetNext( rCpy
.GetNext() );
83 #if !(defined(MACOSX) && ( __GNUC__ < 3 ))
84 // GrP moved to gcc_outl.cxx; revisit with gcc3
85 inline const SwFmtChain
&SwAttrSet::GetChain(BOOL bInP
) const
86 { return (const SwFmtChain
&)Get( RES_CHAIN
,bInP
); }
88 inline const SwFmtChain
&SwFmt::GetChain(BOOL bInP
) const
89 { return aSet
.GetChain(bInP
); }
92 } //namespace binfilter