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 #include "fmitems.hxx" 27 28 #include <svx/svxids.hrc> 29 #include <tools/stream.hxx> 30 31 //======================================================================== 32 // class FmInterfaceItem 33 //======================================================================== 34 TYPEINIT1(FmInterfaceItem, SfxPoolItem); 35 36 //------------------------------------------------------------------------------ 37 int FmInterfaceItem::operator==( const SfxPoolItem& rAttr ) const 38 { 39 DBG_ASSERT( SfxPoolItem::operator==(rAttr), "unequal types" ); 40 return( xInterface == ((FmInterfaceItem&)rAttr).GetInterface() ); 41 } 42 43 //------------------------------------------------------------------------------ 44 SfxPoolItem* FmInterfaceItem::Clone( SfxItemPool* ) const 45 { 46 return new FmInterfaceItem( *this ); 47 } 48 49 //------------------------------------------------------------------------------ 50 SvStream& FmInterfaceItem::Store( SvStream& rStrm , sal_uInt16 /*nItemVersion*/ ) const 51 { 52 DBG_ERROR( "FmInterfaceItem::Store: not implemented!" ); 53 return rStrm; 54 } 55 56 //------------------------------------------------------------------------------ 57 SfxPoolItem* FmInterfaceItem::Create( SvStream& /*rStrm*/, sal_uInt16 ) const 58 { 59 DBG_ERROR( "FmInterfaceItem::Create: not implemented!" ); 60 return new FmInterfaceItem( *this ); 61 } 62 63 64 65 66