1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 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. 14 * 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). 20 * 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. 25 * 26 ************************************************************************/ 27 #ifndef _FMTWRAPINFLUENCEONOBJPOS_HXX 28 #define _FMTWRAPINFLUENCEONOBJPOS_HXX 29 30 #include <hintids.hxx> 31 #include <format.hxx> 32 #include <svl/poolitem.hxx> 33 #include <com/sun/star/text/WrapInfluenceOnPosition.hpp> 34 35 class SW_DLLPUBLIC SwFmtWrapInfluenceOnObjPos: public SfxPoolItem 36 { 37 private: 38 sal_Int16 mnWrapInfluenceOnPosition; 39 40 public: 41 TYPEINFO(); 42 43 // --> OD 2004-10-18 #i35017# - constant name has changed 44 SwFmtWrapInfluenceOnObjPos( 45 sal_Int16 _nWrapInfluenceOnPosition = 46 com::sun::star::text::WrapInfluenceOnPosition::ONCE_CONCURRENT ); 47 // <-- 48 SwFmtWrapInfluenceOnObjPos( 49 const SwFmtWrapInfluenceOnObjPos& _rCpy ); 50 ~SwFmtWrapInfluenceOnObjPos(); 51 52 SwFmtWrapInfluenceOnObjPos& operator=( 53 const SwFmtWrapInfluenceOnObjPos& _rSource ); 54 55 // pure virtual methods of class <SfxPoolItem> 56 virtual int operator==( const SfxPoolItem& _rAttr ) const; 57 virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const; 58 59 virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const; 60 virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); 61 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; 68 // <-- 69 }; 70 71 inline const SwFmtWrapInfluenceOnObjPos& SwAttrSet::GetWrapInfluenceOnObjPos(sal_Bool bInP) const 72 { return (const SwFmtWrapInfluenceOnObjPos&)Get( RES_WRAP_INFLUENCE_ON_OBJPOS,bInP); } 73 74 inline const SwFmtWrapInfluenceOnObjPos& SwFmt::GetWrapInfluenceOnObjPos(sal_Bool bInP) const 75 { return aSet.GetWrapInfluenceOnObjPos(bInP); } 76 77 #endif 78