update dev300-m57
[ooovba.git] / svtools / unx / source / svdde / ddedummy.cxx
blobe5c3f964ba9e12a46bb36d9e8ccec5b84c84559a
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: ddedummy.cxx,v $
10 * $Revision: 1.7 $
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 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_svtools.hxx"
33 #include <svtools/svdde.hxx>
34 #include <rtl/instance.hxx>
36 DdeData::DdeData()
40 DdeData::DdeData( const String& )
44 DdeData::DdeData( const DdeData& )
48 DdeData::DdeData( const void*, long, ULONG)
52 DdeData::~DdeData( void )
56 void DdeData::SetFormat( ULONG )
60 ULONG DdeData::GetFormat() const
62 return 0L;
65 DdeData& DdeData::operator = ( const DdeData& )
67 return *this;
70 DdeData::operator long() const
72 return 0L;
75 DdeData::operator const void*() const
77 return NULL;
80 long DdeConnection::GetError()
82 return 0L;
85 DdeConnection::DdeConnection( const String&, const String& )
89 DdeConnection::~DdeConnection( void )
93 const String& DdeConnection::GetServiceName()
95 return String::EmptyString();
98 const String& DdeConnection::GetTopicName()
100 return String::EmptyString();
103 DdeTransaction::DdeTransaction( DdeConnection& rConnection, const String&, long ) :
104 rDde( rConnection )
108 DdeTransaction::DdeTransaction( const DdeTransaction& rTransaction ) :
109 rDde( rTransaction.rDde )
113 void DdeTransaction::Execute(void)
117 void DdeTransaction::Done( BOOL )
121 void DdeTransaction::Data( const DdeData* )
125 DdeTransaction::~DdeTransaction(void)
129 DdeRequest::DdeRequest(DdeConnection& rConnection, const String& rString, long lLong ) :
130 DdeTransaction( rConnection, rString, lLong )
134 DdeExecute::DdeExecute( DdeConnection& rConnection, const String& rString, long lLong ) :
135 DdeTransaction( rConnection, rString, lLong )
139 DdePoke::DdePoke( DdeConnection& rConnection, const String& rString, const DdeData&, long lLong ) :
140 DdeTransaction( rConnection, rString, lLong )
145 DdeTopic::DdeTopic( const String& )
149 DdeTopic::~DdeTopic()
153 void DdeTopic::Connect (long )
157 void DdeTopic::Disconnect( long )
161 void DdeTopic::InsertItem( DdeItem* )
165 DdeItem* DdeTopic::AddItem( const DdeItem& rDdeItem )
167 return (DdeItem*) &rDdeItem;
170 void DdeTopic::RemoveItem( const DdeItem& )
174 DdeData* DdeTopic::Get( ULONG )
176 return NULL;
179 BOOL DdeTopic::MakeItem( const String& )
181 return FALSE;
184 BOOL DdeTopic::StartAdviseLoop()
186 return FALSE;
189 BOOL DdeTopic::StopAdviseLoop()
191 return FALSE;
194 BOOL DdeTopic::Execute( const String* )
196 return FALSE;
199 BOOL DdeTopic::Put( const DdeData* )
201 return FALSE;
204 const String& DdeTopic::GetName() const
206 return String::EmptyString();
209 DdeService::DdeService( const String& )
211 nStatus = 0;
214 String DdeService::Topics() {
215 return String();
218 String DdeService::Formats() {
219 return String();
222 String DdeService::SysItems() {
223 return String();
226 String DdeService::Status() {
227 return String();
230 String DdeService::SysTopicGet(const String& rString) {
231 return rString;
234 BOOL DdeService::SysTopicExecute(const String*) {
235 return FALSE;
238 DdeService::~DdeService()
242 BOOL DdeService::IsBusy()
244 return FALSE;
247 String DdeService::GetHelp()
249 return String::EmptyString();
252 void DdeService::AddFormat( ULONG )
256 void DdeService::AddTopic( const DdeTopic& )
260 void DdeService::RemoveTopic( const DdeTopic& )
264 BOOL DdeService::MakeTopic( const String& )
266 return FALSE;
269 const String& DdeService::GetName() const
271 return String::EmptyString();
274 namespace
276 struct theDdeServices
277 : public rtl::Static< DdeServices, theDdeServices > {};
280 DdeServices& DdeService::GetServices()
282 return theDdeServices::get();
285 DdeItem::DdeItem( const String& )
289 DdeItem::DdeItem( const DdeItem& )
293 DdeItem::~DdeItem()
297 void DdeItem::NotifyClient()
301 DdeGetPutItem::DdeGetPutItem( const String& rStr ) :
302 DdeItem( rStr )
306 DdeGetPutItem::DdeGetPutItem( const DdeItem& rItem ) :
307 DdeItem( rItem )
311 DdeData* DdeGetPutItem::Get( ULONG )
313 return NULL;
316 BOOL DdeGetPutItem::Put( const DdeData* )
318 return FALSE;
321 void DdeGetPutItem::AdviseLoop( BOOL )
325 DdeLink::DdeLink( DdeConnection& rConnection, const String& rString, long l ) :
326 DdeTransaction( rConnection, rString, l )
330 DdeLink::~DdeLink()
334 void DdeLink::Notify()
338 DdeHotLink::DdeHotLink( DdeConnection& rConnection, const String& rString, long l ) :
339 DdeLink( rConnection, rString, l )