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 28 #ifndef _SVX_XFLFTRIT_HXX 29 #define _SVX_XFLFTRIT_HXX 30 31 #include <svx/xflgrit.hxx> 32 #include "svx/svxdllapi.h" 33 34 //----------------------------------- 35 // class XFillFloatTransparenceItem - 36 //----------------------------------- 37 38 class SVX_DLLPUBLIC XFillFloatTransparenceItem : public XFillGradientItem 39 { 40 private: 41 42 long nDummy1; 43 long nDummy2; 44 sal_Bool bEnabled; 45 46 public: 47 TYPEINFO(); 48 49 XFillFloatTransparenceItem(); 50 XFillFloatTransparenceItem( sal_Int32 nIndex, const XGradient& rGradient, sal_Bool bEnable = sal_True ); 51 XFillFloatTransparenceItem(const String& rName, const XGradient& rGradient, sal_Bool bEnable = sal_True ); 52 XFillFloatTransparenceItem(SfxItemPool* pPool, const XGradient& rTheGradient, sal_Bool bEnable = sal_True ); 53 XFillFloatTransparenceItem(SfxItemPool* pPool ); 54 XFillFloatTransparenceItem( const XFillFloatTransparenceItem& rItem ); 55 56 virtual int operator==( const SfxPoolItem& rItem ) const; 57 virtual SfxPoolItem* Clone( SfxItemPool* pPool = NULL ) const; 58 virtual sal_uInt16 GetVersion( sal_uInt16 nFileFormatVersion ) const; 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 virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres, SfxMapUnit eCoreMetric, 63 SfxMapUnit ePresMetric, String &rText, const IntlWrapper * pIntlWrapper = 0 ) const; 64 65 sal_Bool IsEnabled() const { return bEnabled; } 66 void SetEnabled( sal_Bool bEnable ) { bEnabled = bEnable; } 67 68 static sal_Bool CompareValueFunc( const NameOrIndex* p1, const NameOrIndex* p2 ); 69 XFillFloatTransparenceItem* checkForUniqueItem( SdrModel* pModel ) const; 70 }; 71 72 #endif 73