Update ooo320-m1
[ooovba.git] / binfilter / inc / bf_sw / fmtcnct.hxx
blob474fbfdee8d65f6bfdad8d3e34f6d41d3bf1d082
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: fmtcnct.hxx,v $
10 * $Revision: 1.7 $
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 _FMTCNCT_HXX
31 #define _FMTCNCT_HXX
34 #ifndef _FORMAT_HXX //autogen
35 #include <format.hxx>
36 #endif
37 class IntlWrapper;
38 namespace binfilter {
41 class SwFlyFrmFmt;
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.
52 public:
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() );
79 return *this;
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); }
90 #endif
92 } //namespace binfilter
93 #endif