merge the formfield patch from ooo-build
[ooovba.git] / sw / inc / fmtwrapinfluenceonobjpos.hxx
blob473135708e0348daa8cdbc3e9bd6534043c9e70b
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: fmtwrapinfluenceonobjpos.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 _FMTWRAPINFLUENCEONOBJPOS_HXX
31 #define _FMTWRAPINFLUENCEONOBJPOS_HXX
33 #include <hintids.hxx>
34 #include <format.hxx>
35 #include <svtools/poolitem.hxx>
36 #include <com/sun/star/text/WrapInfluenceOnPosition.hpp>
38 class SW_DLLPUBLIC SwFmtWrapInfluenceOnObjPos: public SfxPoolItem
40 private:
41 sal_Int16 mnWrapInfluenceOnPosition;
43 public:
44 TYPEINFO();
46 // --> OD 2004-10-18 #i35017# - constant name has changed
47 SwFmtWrapInfluenceOnObjPos(
48 sal_Int16 _nWrapInfluenceOnPosition =
49 com::sun::star::text::WrapInfluenceOnPosition::ONCE_CONCURRENT );
50 // <--
51 SwFmtWrapInfluenceOnObjPos(
52 const SwFmtWrapInfluenceOnObjPos& _rCpy );
53 ~SwFmtWrapInfluenceOnObjPos();
55 SwFmtWrapInfluenceOnObjPos& operator=(
56 const SwFmtWrapInfluenceOnObjPos& _rSource );
58 // pure virtual methods of class <SfxPoolItem>
59 virtual int operator==( const SfxPoolItem& _rAttr ) const;
60 virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const;
62 virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
63 virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
65 // direct accessors to data
66 void SetWrapInfluenceOnObjPos( sal_Int16 _nWrapInfluenceOnPosition );
67 // --> OD 2004-10-18 #i35017# - add parameter <_bIterativeAsOnceConcurrent>
68 // to control, if value <ITERATIVE> has to be treated as <ONCE_CONCURRENT>
69 sal_Int16 GetWrapInfluenceOnObjPos(
70 const bool _bIterativeAsOnceConcurrent = false ) const;
71 // <--
74 inline const SwFmtWrapInfluenceOnObjPos& SwAttrSet::GetWrapInfluenceOnObjPos(BOOL bInP) const
75 { return (const SwFmtWrapInfluenceOnObjPos&)Get( RES_WRAP_INFLUENCE_ON_OBJPOS,bInP); }
77 inline const SwFmtWrapInfluenceOnObjPos& SwFmt::GetWrapInfluenceOnObjPos(BOOL bInP) const
78 { return aSet.GetWrapInfluenceOnObjPos(bInP); }
80 #endif