2010-10-12 15:53:47 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-11-21 22:06:52 +00:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2004-02-03 18:25:52 +00:00
|
|
|
|
2006-09-17 04:21:56 +00:00
|
|
|
|
2010-04-20 15:55:51 +02:00
|
|
|
#include "svx/ofaitem.hxx"
|
2004-02-03 18:25:52 +00:00
|
|
|
|
2011-01-10 16:11:35 +01:00
|
|
|
OfaPtrItem::OfaPtrItem( sal_uInt16 _nWhich, void *_pPtr )
|
2006-06-19 15:13:39 +00:00
|
|
|
: SfxPoolItem( _nWhich ), pPtr( _pPtr )
|
2004-02-03 18:25:52 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
OfaPtrItem::OfaPtrItem( const OfaPtrItem& rItem)
|
|
|
|
: SfxPoolItem( rItem.Which() ), pPtr( rItem.pPtr )
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2014-01-10 17:01:52 +01:00
|
|
|
bool OfaPtrItem::operator==( const SfxPoolItem& rItem) const
|
2004-02-03 18:25:52 +00:00
|
|
|
{
|
2014-10-20 11:52:06 +02:00
|
|
|
return static_cast<const OfaPtrItem&>(rItem).pPtr == pPtr;
|
2004-02-03 18:25:52 +00:00
|
|
|
}
|
|
|
|
|
2006-06-19 15:13:39 +00:00
|
|
|
SfxPoolItem* OfaPtrItem::Clone( SfxItemPool * ) const
|
2004-02-03 18:25:52 +00:00
|
|
|
{
|
|
|
|
return new OfaPtrItem( *this );
|
|
|
|
}
|
2004-07-06 12:17:04 +00:00
|
|
|
|
2010-10-12 15:53:47 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|