Update ooo320-m1
[ooovba.git] / binfilter / inc / bf_svx / e3ditem.hxx
blob34d83f2c50fd6451a2c7ae7735cc3601b653b5ef
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: e3ditem.hxx,v $
10 * $Revision: 1.8 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _SVXE3DITEM_HXX
32 #define _SVXE3DITEM_HXX
34 #ifndef _SFXPOOLITEM_HXX //autogen
35 #include <bf_svtools/poolitem.hxx>
36 #endif
37 #ifndef _VECTOR3D_HXX
38 #include <bf_goodies/vector3d.hxx>
39 #endif
40 class SvStream;
41 namespace binfilter {
43 #ifndef _SVXVECT3DITEM_HXX
44 #define _SVXVECT3DITEM_HXX
47 DBG_NAMEEX(SvxVector3DItem)//STRIP008
49 class SvxVector3DItem: public SfxPoolItem
51 Vector3D aVal;
53 public:
54 TYPEINFO();
55 SvxVector3DItem();
56 SvxVector3DItem( USHORT nWhich, const Vector3D& rVal );
57 SvxVector3DItem( const SvxVector3DItem& );
58 ~SvxVector3DItem() {
59 DBG_DTOR(SvxVector3DItem, 0); }
61 virtual int operator==( const SfxPoolItem& ) const;
62 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
63 virtual SfxPoolItem* Create(SvStream &, USHORT nVersion) const;
64 virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
66 virtual sal_Bool QueryValue( ::com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
67 virtual sal_Bool PutValue( const ::com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
69 const Vector3D& GetValue() const { return aVal; }
70 void SetValue( const Vector3D& rNewVal ) {
71 DBG_ASSERT( GetRefCount() == 0, "SetValue() with pooled item" );
72 aVal = rNewVal;
75 virtual USHORT GetVersion (USHORT nFileFormatVersion) const;
78 #endif
80 }//end of namespace binfilter
81 #endif