sync master with lastest vba changes
[ooovba.git] / binfilter / inc / bf_svtools / cstitem.hxx
blobd5b3cf84a88244018203cfdaf2bb89fd9f7799f9
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: cstitem.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 ************************************************************************/
31 #ifndef _CSTITEM_HXX
32 #define _CSTITEM_HXX
34 #ifndef _RTTI_HXX
35 #include <tools/rtti.hxx>
36 #endif
38 #include <bf_svtools/poolitem.hxx>
40 class SvStream;
42 namespace binfilter {
44 enum CrawlStatus
46 CSTAT_NEVER_UPD = 0, /* noch nie ueberprueft */
47 CSTAT_IN_UPD = 1, /* Ueberpruefung laeuft */
48 CSTAT_UPD_NEWER = 2, /* wurde ueberprueft und ist neuer */
49 CSTAT_UPD_NOT_NEWER = 3, /* wurde ueberprueft und ist nicht neuer */
50 CSTAT_UPD_CANCEL = 4, /* Ueberpruefung vom Benutzer abgebrochen */
51 CSTAT_ERR_GENERAL = 5, /* allgemeiner Fehler */
52 CSTAT_ERR_NOTEXISTS = 6, /* Server existiert nicht */
53 CSTAT_ERR_NOTREACHED = 7, /* Server nicht ereicht */
54 CSTAT_UPD_IMMEDIATELY = 8, /* es wird gleich ueberprueftt */
55 CSTAT_ERR_OFFLINE = 9 /* Ueberpruefung nicht m�glich, da Offline */
58 DBG_NAMEEX(SfxCrawlStatusItem)
60 // class SfxDateTimeRangeItem -------------------------------------------------
62 class SfxCrawlStatusItem : public SfxPoolItem
64 private:
65 CrawlStatus eStatus;
66 public:
67 TYPEINFO();
69 SfxCrawlStatusItem( const SfxCrawlStatusItem& rCpy );
70 SfxCrawlStatusItem( USHORT nWhich, CrawlStatus eStat );
71 ~SfxCrawlStatusItem() { DBG_DTOR(SfxCrawlStatusItem, 0); }
73 virtual int operator==( const SfxPoolItem& ) const;
74 using SfxPoolItem::Compare;
75 virtual int Compare( const SfxPoolItem &rWith ) const;
76 virtual SfxPoolItem* Create( SvStream&, USHORT nItemVersion ) const;
77 virtual SvStream& Store( SvStream&, USHORT nItemVersion ) const;
78 virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const;
80 virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
81 SfxMapUnit eCoreMetric,
82 SfxMapUnit ePresMetric,
83 XubString &rText,
84 const ::IntlWrapper * pIntlWrapper = 0 )
85 const;
87 CrawlStatus GetStatus() const { return eStatus; }
88 void SetStatus(CrawlStatus eNew) { eStatus = eNew; }
90 virtual BOOL PutValue ( const ::com::sun::star::uno::Any& rVal,
91 BYTE nMemberId = 0 );
92 virtual BOOL QueryValue( ::com::sun::star::uno::Any& rVal,
93 BYTE nMemberId = 0 ) const;
98 #endif