1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: swbaslnk.hxx,v $
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 ************************************************************************/
34 #ifndef _LNKBASE_HXX //autogen
35 #include <bf_so3/lnkbase.hxx>
43 class SwBaseLink
: public ::binfilter::SvBaseLink
45 SwCntntNode
* pCntntNode
;
48 BOOL bIgnoreDataChanged
: 1;
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
; }
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