bump product version to 5.0.4.1
[LibreOffice.git] / svl / unx / source / svdde / ddedummy.cxx
blob4813dc36b5dac52aecfd406264e7a784c3d1cc77
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include <svl/svdde.hxx>
21 #include <rtl/instance.hxx>
23 DdeData::DdeData()
24 : pImp(NULL)
28 DdeData::DdeData( const OUString& )
29 : pImp(NULL)
33 DdeData::DdeData( const DdeData& )
34 : pImp(NULL)
38 DdeData::DdeData( const void*, long, SotClipboardFormatId)
39 : pImp(NULL)
43 DdeData::~DdeData()
47 void DdeData::SetFormat( SAL_UNUSED_PARAMETER SotClipboardFormatId )
51 SotClipboardFormatId DdeData::GetFormat() const
53 return SotClipboardFormatId::NONE;
56 DdeData& DdeData::operator = ( const DdeData& )
58 return *this;
61 DdeData::operator long() const
63 return 0L;
66 DdeData::operator const void*() const
68 return NULL;
71 long DdeConnection::GetError()
73 return 0L;
76 DdeConnection::DdeConnection( const OUString&, const OUString& )
77 : pService(NULL)
78 , pTopic(NULL)
79 , pImp(NULL)
83 DdeConnection::~DdeConnection()
87 const OUString DdeConnection::GetServiceName()
89 return OUString();
92 const OUString DdeConnection::GetTopicName()
94 return OUString();;
97 DdeTransaction::DdeTransaction( DdeConnection& rConnection, const OUString&, long )
98 : rDde(rConnection)
99 , pName(NULL)
100 , nType(0)
101 , nId(0)
102 , nTime(0)
103 , bBusy(false)
107 void DdeTransaction::Execute()
111 void DdeTransaction::Done( SAL_UNUSED_PARAMETER bool )
115 void DdeTransaction::Data( SAL_UNUSED_PARAMETER const DdeData* )
119 DdeTransaction::~DdeTransaction()
123 DdeRequest::DdeRequest( DdeConnection& rConnection, const OUString& rString, long lLong )
124 : DdeTransaction( rConnection, rString, lLong )
128 DdeExecute::DdeExecute( DdeConnection& rConnection, const OUString& rString, long lLong )
129 : DdeTransaction( rConnection, rString, lLong )
133 DdePoke::DdePoke( DdeConnection& rConnection, const OUString& rString, const DdeData&, long lLong )
134 : DdeTransaction( rConnection, rString, lLong )
139 DdeTopic::DdeTopic( const OUString& )
140 : pName(NULL)
144 DdeTopic::~DdeTopic()
148 void DdeTopic::Connect( SAL_UNUSED_PARAMETER long )
152 void DdeTopic::Disconnect( SAL_UNUSED_PARAMETER long )
156 void DdeTopic::InsertItem( SAL_UNUSED_PARAMETER DdeItem* )
160 DdeItem* DdeTopic::AddItem( const DdeItem& rDdeItem )
162 return const_cast<DdeItem*>(&rDdeItem);
165 void DdeTopic::RemoveItem( SAL_UNUSED_PARAMETER const DdeItem& )
169 DdeData* DdeTopic::Get(SAL_UNUSED_PARAMETER SotClipboardFormatId)
171 return NULL;
174 bool DdeTopic::MakeItem( SAL_UNUSED_PARAMETER const OUString& )
176 return false;
179 bool DdeTopic::StartAdviseLoop()
181 return false;
184 bool DdeTopic::StopAdviseLoop()
186 return false;
189 bool DdeTopic::Execute( SAL_UNUSED_PARAMETER const OUString* )
191 return false;
194 bool DdeTopic::Put( SAL_UNUSED_PARAMETER const DdeData* )
196 return false;
199 const OUString DdeTopic::GetName() const
201 return OUString();
204 DdeService::DdeService( const OUString& )
205 : pSysTopic(NULL)
206 , pName(NULL)
207 , pConv(NULL)
208 , nStatus(0)
212 OUString DdeService::Topics()
214 return OUString();
217 OUString DdeService::Formats() {
218 return OUString();
221 OUString DdeService::SysItems()
223 return OUString();
226 OUString DdeService::Status()
228 return OUString();
231 OUString DdeService::SysTopicGet(const OUString& rString)
233 return rString;
236 bool DdeService::SysTopicExecute(SAL_UNUSED_PARAMETER const OUString*)
238 return false;
241 DdeService::~DdeService()
245 bool DdeService::IsBusy()
247 return false;
250 OUString DdeService::GetHelp()
252 return OUString();
255 void DdeService::AddFormat(SAL_UNUSED_PARAMETER SotClipboardFormatId)
259 void DdeService::AddTopic( SAL_UNUSED_PARAMETER const DdeTopic& )
263 void DdeService::RemoveTopic( SAL_UNUSED_PARAMETER const DdeTopic& )
267 bool DdeService::MakeTopic( SAL_UNUSED_PARAMETER const OUString& )
269 return false;
272 const OUString DdeService::GetName() const
274 return OUString();
277 namespace
279 struct theDdeServices
280 : public rtl::Static< DdeServices, theDdeServices > {};
283 DdeServices& DdeService::GetServices()
285 return theDdeServices::get();
288 DdeItem::DdeItem( const OUString& )
289 : pName(NULL)
290 , pMyTopic(NULL)
291 , pImpData(NULL)
292 , nType(0)
296 DdeItem::DdeItem( const DdeItem& )
297 : pName(NULL)
298 , pMyTopic(NULL)
299 , pImpData(NULL)
300 , nType(0)
304 DdeItem::~DdeItem()
308 void DdeItem::NotifyClient()
312 DdeGetPutItem::DdeGetPutItem( const OUString& rStr )
313 : DdeItem( rStr )
317 DdeGetPutItem::DdeGetPutItem( const DdeItem& rItem )
318 : DdeItem( rItem )
322 DdeData* DdeGetPutItem::Get( SAL_UNUSED_PARAMETER SotClipboardFormatId )
324 return NULL;
327 bool DdeGetPutItem::Put( SAL_UNUSED_PARAMETER const DdeData* )
329 return false;
332 void DdeGetPutItem::AdviseLoop( SAL_UNUSED_PARAMETER bool )
336 DdeLink::DdeLink( DdeConnection& rConnection, const OUString& rString, long l )
337 : DdeTransaction( rConnection, rString, l )
341 DdeLink::~DdeLink()
345 void DdeLink::Notify()
349 DdeHotLink::DdeHotLink( DdeConnection& rConnection, const OUString& rString, long l )
350 : DdeLink( rConnection, rString, l )
354 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */