Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : : #ifndef _FMTWRAPINFLUENCEONOBJPOS_HXX
29 : : #define _FMTWRAPINFLUENCEONOBJPOS_HXX
30 : :
31 : : #include <hintids.hxx>
32 : : #include <format.hxx>
33 : : #include <svl/poolitem.hxx>
34 : : #include <com/sun/star/text/WrapInfluenceOnPosition.hpp>
35 : :
36 : : class SW_DLLPUBLIC SwFmtWrapInfluenceOnObjPos: public SfxPoolItem
37 : : {
38 : : private:
39 : : sal_Int16 mnWrapInfluenceOnPosition;
40 : :
41 : : public:
42 : : TYPEINFO();
43 : :
44 : : // #i35017# - constant name has changed
45 : : SwFmtWrapInfluenceOnObjPos(
46 : : sal_Int16 _nWrapInfluenceOnPosition =
47 : : com::sun::star::text::WrapInfluenceOnPosition::ONCE_CONCURRENT );
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 bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
60 : : virtual 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 : : // #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 : 195 : inline const SwFmtWrapInfluenceOnObjPos& SwAttrSet::GetWrapInfluenceOnObjPos(sal_Bool bInP) const
71 : 195 : { return (const SwFmtWrapInfluenceOnObjPos&)Get( RES_WRAP_INFLUENCE_ON_OBJPOS,bInP); }
72 : :
73 : 195 : inline const SwFmtWrapInfluenceOnObjPos& SwFmt::GetWrapInfluenceOnObjPos(sal_Bool bInP) const
74 : 195 : { return aSet.GetWrapInfluenceOnObjPos(bInP); }
75 : :
76 : : #endif
77 : :
78 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|