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 _FMTWRAPINFLUENCEONOBJPOS_HXX
28 #define _FMTWRAPINFLUENCEONOBJPOS_HXX
30 #include <hintids.hxx>
32 #include <svl/poolitem.hxx>
33 #include <com/sun/star/text/WrapInfluenceOnPosition.hpp>
35 class SW_DLLPUBLIC SwFmtWrapInfluenceOnObjPos
: public SfxPoolItem
38 sal_Int16 mnWrapInfluenceOnPosition
;
43 // --> OD 2004-10-18 #i35017# - constant name has changed
44 SwFmtWrapInfluenceOnObjPos(
45 sal_Int16 _nWrapInfluenceOnPosition
=
46 com::sun::star::text::WrapInfluenceOnPosition::ONCE_CONCURRENT
);
48 SwFmtWrapInfluenceOnObjPos(
49 const SwFmtWrapInfluenceOnObjPos
& _rCpy
);
50 ~SwFmtWrapInfluenceOnObjPos();
52 SwFmtWrapInfluenceOnObjPos
& operator=(
53 const SwFmtWrapInfluenceOnObjPos
& _rSource
);
55 // pure virtual methods of class <SfxPoolItem>
56 virtual int operator==( const SfxPoolItem
& _rAttr
) const;
57 virtual SfxPoolItem
* Clone( SfxItemPool
* pPool
= 0 ) const;
59 virtual BOOL
QueryValue( com::sun::star::uno::Any
& rVal
, BYTE nMemberId
= 0 ) const;
60 virtual BOOL
PutValue( const com::sun::star::uno::Any
& rVal
, BYTE nMemberId
= 0 );
62 // direct accessors to data
63 void SetWrapInfluenceOnObjPos( sal_Int16 _nWrapInfluenceOnPosition
);
64 // --> OD 2004-10-18 #i35017# - add parameter <_bIterativeAsOnceConcurrent>
65 // to control, if value <ITERATIVE> has to be treated as <ONCE_CONCURRENT>
66 sal_Int16
GetWrapInfluenceOnObjPos(
67 const bool _bIterativeAsOnceConcurrent
= false ) const;
71 inline const SwFmtWrapInfluenceOnObjPos
& SwAttrSet::GetWrapInfluenceOnObjPos(BOOL bInP
) const
72 { return (const SwFmtWrapInfluenceOnObjPos
&)Get( RES_WRAP_INFLUENCE_ON_OBJPOS
,bInP
); }
74 inline const SwFmtWrapInfluenceOnObjPos
& SwFmt::GetWrapInfluenceOnObjPos(BOOL bInP
) const
75 { return aSet
.GetWrapInfluenceOnObjPos(bInP
); }