2004-02-03 16:32:23 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 17:48:29 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2004-02-03 16:32:23 +00:00
|
|
|
*
|
2008-04-10 17:48:29 +00:00
|
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
2004-02-03 16:32:23 +00:00
|
|
|
*
|
2008-04-10 17:48:29 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2004-02-03 16:32:23 +00:00
|
|
|
*
|
2008-04-10 17:48:29 +00:00
|
|
|
* $RCSfile: ofaitem.hxx,v $
|
|
|
|
* $Revision: 1.7 $
|
2004-02-03 16:32:23 +00:00
|
|
|
*
|
2008-04-10 17:48:29 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2004-02-03 16:32:23 +00:00
|
|
|
*
|
2008-04-10 17:48:29 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2004-02-03 16:32:23 +00:00
|
|
|
*
|
2008-04-10 17:48:29 +00:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2004-02-03 16:32:23 +00:00
|
|
|
*
|
2008-04-10 17:48:29 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2004-02-03 16:32:23 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
#ifndef _OFF_OFAITEM_HXX
|
|
|
|
#define _OFF_OFAITEM_HXX
|
|
|
|
|
|
|
|
// include ----------------------------------------------------------------
|
|
|
|
|
|
|
|
#include <svtools/poolitem.hxx>
|
2005-01-21 14:01:33 +00:00
|
|
|
#include "svx/svxdllapi.h"
|
|
|
|
|
2004-02-03 16:32:23 +00:00
|
|
|
// class OfaPtrItem ------------------------------------------------------
|
|
|
|
|
2005-01-21 14:01:33 +00:00
|
|
|
class SVX_DLLPUBLIC OfaPtrItem : public SfxPoolItem
|
2004-02-03 16:32:23 +00:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
void* pPtr;
|
|
|
|
|
|
|
|
public:
|
|
|
|
OfaPtrItem( USHORT nWhich, void *pPtr );
|
|
|
|
OfaPtrItem( const OfaPtrItem& );
|
|
|
|
|
|
|
|
virtual int operator==( const SfxPoolItem& ) const;
|
|
|
|
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
|
|
|
|
|
|
|
|
void* GetValue() const { return pPtr; }
|
2004-07-06 12:05:56 +00:00
|
|
|
void SetValue( void* pNewPtr ) { pPtr = pNewPtr; }
|
2004-02-03 16:32:23 +00:00
|
|
|
};
|
|
|
|
|
2004-07-06 12:05:56 +00:00
|
|
|
#endif
|