Update ooo320-m1
[ooovba.git] / binfilter / inc / bf_sw / swbaslnk.hxx
blobe6d5cfb1384862f1c9d54b565f24b503215447a4
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: swbaslnk.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 ************************************************************************/
30 #ifndef _SWBASLNK_HXX
31 #define _SWBASLNK_HXX
34 #ifndef _LNKBASE_HXX //autogen
35 #include <bf_so3/lnkbase.hxx>
36 #endif
37 namespace binfilter {
39 class SwNode;
40 class SwCntntNode;
41 class SwNodeIndex;
43 class SwBaseLink : public ::binfilter::SvBaseLink
45 SwCntntNode* pCntntNode;
46 BOOL bSwapIn : 1;
47 BOOL bNoDataFlag : 1;
48 BOOL bIgnoreDataChanged : 1;
50 public:
51 TYPEINFO();
53 SwBaseLink( USHORT nMode, USHORT nFormat, SwCntntNode* pNode = 0 )
54 : ::binfilter::SvBaseLink( nMode, nFormat ), pCntntNode( pNode ),
55 bSwapIn( FALSE ), bNoDataFlag( FALSE ), bIgnoreDataChanged( FALSE )
57 virtual ~SwBaseLink();
59 virtual void DataChanged( const String& rMimeType,
60 const ::com::sun::star::uno::Any & rValue );
64 SwCntntNode *GetCntntNode() { return pCntntNode; }
66 // nur fuer Grafiken
67 FASTBOOL SwapIn( BOOL bWaitForData = FALSE, BOOL bNativFormat = FALSE );
69 FASTBOOL IsShowQuickDrawBmp() const; // nur fuer Grafiken
71 FASTBOOL Connect() { return 0 != SvBaseLink::GetRealObject(); }
73 // nur fuer Grafik-Links ( zum Umschalten zwischen DDE / Grf-Link)
74 void SetObjType( USHORT nType ) { SvBaseLink::SetObjType( nType ); }
76 BOOL IsRecursion( const SwBaseLink* pChkLnk ) const;
77 virtual BOOL IsInRange( ULONG nSttNd, ULONG nEndNd, xub_StrLen nStt = 0,
78 xub_StrLen nEnd = STRING_NOTFOUND ) const;
80 void SetNoDataFlag() { bNoDataFlag = TRUE; }
81 BOOL ChkNoDataFlag() { return bNoDataFlag ? !(bNoDataFlag = FALSE) : FALSE; }
82 BOOL IsNoDataFlag() const { return bNoDataFlag; }
86 } //namespace binfilter
87 #endif