merge the formfield patch from ooo-build
[ooovba.git] / binfilter / inc / bf_svtools / lckbitem.hxx
blobd28c17f31c7809096c0d658f14f264528aa4127c
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: lckbitem.hxx,v $
10 * $Revision: 1.4 $
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 ************************************************************************/
30 #ifndef _LCKBITEM_HXX
31 #define _LCKBITEM_HXX
33 #ifndef _SOLAR_H
34 #include <tools/solar.h>
35 #endif
37 #ifndef _RTTI_HXX
38 #include <tools/rtti.hxx>
39 #endif
41 #ifndef _STREAM_HXX
42 #include <tools/stream.hxx>
43 #endif
45 #ifndef _SFXPOOLITEM_HXX
46 #include <bf_svtools/poolitem.hxx>
47 #endif
49 namespace binfilter
52 // -----------------------------------------------------------------------
54 class SfxLockBytesItem : public SfxPoolItem
56 SvLockBytesRef _xVal;
58 public:
59 TYPEINFO();
60 SfxLockBytesItem();
61 SfxLockBytesItem( USHORT nWhich, SvStream & );
62 SfxLockBytesItem( const SfxLockBytesItem& );
63 ~SfxLockBytesItem();
65 virtual int operator==( const SfxPoolItem& ) const;
66 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
67 virtual SfxPoolItem* Create(SvStream &, USHORT nItemVersion) const;
68 virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
70 SvLockBytes* GetValue() const { return _xVal; }
72 virtual BOOL PutValue ( const com::sun::star::uno::Any& rVal,
73 BYTE nMemberId = 0 );
74 virtual BOOL QueryValue( com::sun::star::uno::Any& rVal,
75 BYTE nMemberId = 0 ) const;
80 #endif