xref: /trunk/main/svx/inc/svx/sdasaitm.hxx (revision 3334a7e6)
1*3334a7e6SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*3334a7e6SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*3334a7e6SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*3334a7e6SAndrew Rist  * distributed with this work for additional information
6*3334a7e6SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*3334a7e6SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*3334a7e6SAndrew Rist  * "License"); you may not use this file except in compliance
9*3334a7e6SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*3334a7e6SAndrew Rist  *
11*3334a7e6SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*3334a7e6SAndrew Rist  *
13*3334a7e6SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*3334a7e6SAndrew Rist  * software distributed under the License is distributed on an
15*3334a7e6SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*3334a7e6SAndrew Rist  * KIND, either express or implied.  See the License for the
17*3334a7e6SAndrew Rist  * specific language governing permissions and limitations
18*3334a7e6SAndrew Rist  * under the License.
19*3334a7e6SAndrew Rist  *
20*3334a7e6SAndrew Rist  *************************************************************/
21*3334a7e6SAndrew Rist 
22*3334a7e6SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _SDASAITM_HXX
25cdf0e10cSrcweir #define _SDASAITM_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <svl/poolitem.hxx>
28cdf0e10cSrcweir #include <tools/list.hxx>
29cdf0e10cSrcweir 
30cdf0e10cSrcweir class SdrCustomShapeAdjustmentValue
31cdf0e10cSrcweir {
32cdf0e10cSrcweir 	sal_uInt32	nValue;
33cdf0e10cSrcweir 
34cdf0e10cSrcweir 	friend class SdrCustomShapeAdjustmentItem;
35cdf0e10cSrcweir 
36cdf0e10cSrcweir 	public :
37cdf0e10cSrcweir 
SetValue(sal_Int32 nVal)38cdf0e10cSrcweir 		void		SetValue( sal_Int32 nVal ) { nValue = nVal; };
GetValue() const39cdf0e10cSrcweir 		sal_Int32	GetValue() const { return nValue; };
40cdf0e10cSrcweir 
41cdf0e10cSrcweir };
42cdf0e10cSrcweir 
43cdf0e10cSrcweir class SdrCustomShapeAdjustmentItem : public SfxPoolItem
44cdf0e10cSrcweir {
45cdf0e10cSrcweir 			List	aAdjustmentValueList;
46cdf0e10cSrcweir 
47cdf0e10cSrcweir 	public :
48cdf0e10cSrcweir 
49cdf0e10cSrcweir 			TYPEINFO();
50cdf0e10cSrcweir 			SVX_DLLPUBLIC SdrCustomShapeAdjustmentItem();
51cdf0e10cSrcweir 			SdrCustomShapeAdjustmentItem( SvStream& rIn, sal_uInt16 nVersion );
52cdf0e10cSrcweir 			SVX_DLLPUBLIC ~SdrCustomShapeAdjustmentItem();
53cdf0e10cSrcweir 
54cdf0e10cSrcweir 			virtual int					operator==( const SfxPoolItem& ) const;
55cdf0e10cSrcweir 			virtual SfxItemPresentation GetPresentation(SfxItemPresentation ePresentation,
56cdf0e10cSrcweir 											SfxMapUnit eCoreMetric, SfxMapUnit ePresentationMetric,
57cdf0e10cSrcweir                                                 String &rText, const IntlWrapper * = 0) const;
58cdf0e10cSrcweir 			virtual SfxPoolItem*		Create( SvStream&, sal_uInt16 nItem ) const;
59cdf0e10cSrcweir 			virtual SvStream&			Store( SvStream&, sal_uInt16 nVersion ) const;
60cdf0e10cSrcweir 			virtual SfxPoolItem*		Clone( SfxItemPool* pPool = NULL ) const;
61cdf0e10cSrcweir 			virtual	sal_uInt16			GetVersion( sal_uInt16 nFileFormatVersion ) const;
62cdf0e10cSrcweir 
63cdf0e10cSrcweir 			virtual	sal_Bool			QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
64cdf0e10cSrcweir 			virtual	sal_Bool			PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
65cdf0e10cSrcweir 
66cdf0e10cSrcweir 
67cdf0e10cSrcweir #ifdef SDR_ISPOOLABLE
68cdf0e10cSrcweir 			virtual int IsPoolable() const;
69cdf0e10cSrcweir #endif
70cdf0e10cSrcweir 
GetCount() const71cdf0e10cSrcweir 			sal_uInt32							GetCount() const { return aAdjustmentValueList.Count(); };
72cdf0e10cSrcweir 			SVX_DLLPUBLIC const SdrCustomShapeAdjustmentValue&	GetValue( sal_uInt32 nIndex ) const;
73cdf0e10cSrcweir 			SVX_DLLPUBLIC void								SetValue( sal_uInt32 nIndex,
74cdf0e10cSrcweir 														const SdrCustomShapeAdjustmentValue& rVal );
75cdf0e10cSrcweir };
76cdf0e10cSrcweir 
77cdf0e10cSrcweir #endif
78cdf0e10cSrcweir 
79