xref: /aoo42x/main/svx/source/items/ofaitem.cxx (revision f6e50924)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 // MARKER(update_precomp.py): autogen include statement, do not remove
25 #include "precompiled_svx.hxx"
26 
27 #include "svx/ofaitem.hxx"
28 
OfaPtrItem(sal_uInt16 _nWhich,void * _pPtr)29 OfaPtrItem::OfaPtrItem( sal_uInt16 _nWhich, void *_pPtr )
30     : SfxPoolItem( _nWhich ), pPtr( _pPtr )
31 {
32 
33 }
OfaPtrItem(const OfaPtrItem & rItem)34 OfaPtrItem::OfaPtrItem( const OfaPtrItem& rItem)
35 	: SfxPoolItem( rItem.Which() ), pPtr( rItem.pPtr )
36 {
37 }
38 
operator ==(const SfxPoolItem & rItem) const39 int	OfaPtrItem::operator==( const SfxPoolItem& rItem) const
40 {
41 	return ((OfaPtrItem&)rItem).pPtr == pPtr;
42 }
43 
Clone(SfxItemPool *) const44 SfxPoolItem* OfaPtrItem::Clone( SfxItemPool * ) const
45 {
46 	return new OfaPtrItem( *this );
47 }
48 
49 //---------------------------------------------------------------------------
50 /*
51 TYPEINIT1_FACTORY(DashListPtrItem, SvxDashListPtrItem, new DashListPtrItem(0));
52 
53 DashListPtrItem::DashListPtrItem( sal_uInt16 nWhich, SvxDashListItem* pPtr )
54 	: OfaPtrItem( nWhich ), pPtr( pPtr )
55 {
56 }
57 
58 DashListPtrItem::DashListPtrItem( const DashListPtrItem& )
59 	: OfaPtrItem( rItem.Which() ), pPtr( rItem.pPtr )
60 {
61 }
62 
63 int DashListPtrItem::operator==( const SfxPoolItem& rItem ) const
64 {
65     return ((DashListPtrItem&)rItem).GetValue() == GetValue();
66 }
67 
68 SfxPoolItem* DashListPtrItem::Clone( SfxItemPool *pPool ) const
69 {
70 	return new DashListPtrItem( *this );
71 }
72 
73 sal_Bool DashListPtrItem::QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const
74 {
75 }
76 
77 sal_Bool DashListPtrItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 )
78 {
79     sal_Int64 nHyper;
80     if ( rVal >>= nHyper )
81     {
82         SetValue( (SvxDash
83     }
84 
85     return sal_False;
86 }
87 */
88