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 ************************************************************************/
33 #include <hintids.hxx>
34 #include <svtools/poolitem.hxx>
42 //Verbindung (Textfluss) zwischen zwei FlyFrms
44 class SW_DLLPUBLIC SwFmtChain
: public SfxPoolItem
46 SwClient aPrev
, //Vorgaenger (SwFlyFrmFmt), wenn es diesen gibt.
47 aNext
; //Nachfolger (SwFlyFrmFmt), wenn es diesen gibt.
51 SwFmtChain() : SfxPoolItem( RES_CHAIN
) {}
52 SwFmtChain( const SwFmtChain
&rCpy
);
54 inline SwFmtChain
&operator=( const SwFmtChain
& );
56 // "pure virtual Methoden" vom SfxPoolItem
57 virtual int operator==( const SfxPoolItem
& ) const;
58 virtual SfxPoolItem
* Clone( SfxItemPool
* pPool
= 0 ) const;
59 virtual SfxItemPresentation
GetPresentation( SfxItemPresentation ePres
,
60 SfxMapUnit eCoreMetric
,
61 SfxMapUnit ePresMetric
,
63 const IntlWrapper
* pIntl
= 0 ) 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 inline const SwFmtChain
&SwAttrSet::GetChain(BOOL bInP
) const
84 { return (const SwFmtChain
&)Get( RES_CHAIN
,bInP
); }
86 inline const SwFmtChain
&SwFmt::GetChain(BOOL bInP
) const
87 { return aSet
.GetChain(bInP
); }