diff options
author | jp <jp@openoffice.org> | 2001-03-08 20:28:23 +0000 |
---|---|---|
committer | jp <jp@openoffice.org> | 2001-03-08 20:28:23 +0000 |
commit | 9567064f53842eff82e7b0736d0dd23cfee66c03 (patch) | |
tree | d242a697fc016bb575e12225d48f9ee865eb892c /sw/inc/swserv.hxx | |
parent | 47884ef9a7cc48f00bd32dca5bb55e45ef4f5de6 (diff) |
change: old data transfer API to the new
Diffstat (limited to 'sw/inc/swserv.hxx')
-rw-r--r-- | sw/inc/swserv.hxx | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/sw/inc/swserv.hxx b/sw/inc/swserv.hxx index 5e5a51171a18..802c679e3bd6 100644 --- a/sw/inc/swserv.hxx +++ b/sw/inc/swserv.hxx @@ -2,9 +2,9 @@ * * $RCSfile: swserv.hxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 17:14:28 $ + * last change: $Author: jp $ $Date: 2001-03-08 21:17:20 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -62,8 +62,8 @@ #ifndef _SWSERV_HXX #define _SWSERV_HXX -#ifndef _PSEUDO_HXX //autogen -#include <so3/pseudo.hxx> +#ifndef _LINKSRC_HXX +#include <so3/linksrc.hxx> #endif class SwBookmark; @@ -73,7 +73,7 @@ class SwTableNode; struct SwPosition; class SwPaM; -class SwServerObject : public SvPseudoObject +class SwServerObject : public ::so3::SvLinkSource { protected: enum ServerModes { BOOKMARK_SERVER, TABLE_SERVER, SECTION_SERVER, NONE_SERVER } eType; @@ -103,11 +103,12 @@ public: } virtual ~SwServerObject(); - virtual BOOL GetData( SvData* ); - virtual BOOL ChangeData( SvData& ); + virtual BOOL GetData( ::com::sun::star::uno::Any & rData, + const String & rMimeType, + BOOL bSynchron = FALSE ); - ULONG GetSelectorCount() const - { return SvPseudoObject::GetSelectorCount(); } + BOOL SetData( const String & rMimeType, + const ::com::sun::star::uno::Any& rData ); virtual void SendDataChanged( const SwPosition& rPos ); virtual void SendDataChanged( const SwPaM& rRange ); @@ -120,10 +121,8 @@ public: #ifndef SW_DECL_SWSERVEROBJECT_DEFINED #define SW_DECL_SWSERVEROBJECT_DEFINED -class SvPseudoObject; -SO2_DECL_REF( SwServerObject ) +SV_DECL_REF( SwServerObject ) #endif - #endif // _SWSERV_HXX |