LanguageTool: don't crash if REST protocol isn't set
[LibreOffice.git] / svl / unx / source / svdde / ddedummy.cxx
blobe174e0bc4ae18a22d11d04a81d7da27f5fa4f462
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 <tools/long.hxx>
23 struct Conversation
27 struct DdeDataImp
31 DdeData::DdeData()
35 DdeData::DdeData( SAL_UNUSED_PARAMETER const OUString& )
39 DdeData::DdeData(const DdeData&)
43 DdeData::DdeData(DdeData&&) noexcept
47 DdeData::DdeData( const void*, tools::Long, SotClipboardFormatId)
51 DdeData::~DdeData()
55 void DdeData::SetFormat( SAL_UNUSED_PARAMETER SotClipboardFormatId )
59 SotClipboardFormatId DdeData::GetFormat() const
61 return SotClipboardFormatId::NONE;
64 DdeData& DdeData::operator=(const DdeData&)
66 return *this;
69 DdeData& DdeData::operator=(DdeData&&) noexcept
71 return *this;
74 tools::Long DdeData::getSize() const
76 return 0;
79 void const * DdeData::getData() const
81 return nullptr;
84 struct DdeImp {};
86 tools::Long DdeConnection::GetError() const
88 return 0;
91 DdeConnection::DdeConnection( SAL_UNUSED_PARAMETER const OUString&, SAL_UNUSED_PARAMETER const OUString& )
92 : pService(nullptr)
93 , pTopic(nullptr)
97 DdeConnection::~DdeConnection()
101 OUString DdeConnection::GetServiceName() const
103 return OUString();
106 OUString DdeConnection::GetTopicName() const
108 return OUString();
111 DdeTransaction::DdeTransaction( DdeConnection& rConnection, SAL_UNUSED_PARAMETER const OUString&, tools::Long )
112 : rDde(rConnection)
113 , pName(nullptr)
114 , nType(0)
115 , nId(0)
116 , nTime(0)
117 , bBusy(false)
121 void DdeTransaction::Execute()
125 void DdeTransaction::Done( SAL_UNUSED_PARAMETER bool )
129 void DdeTransaction::Data( SAL_UNUSED_PARAMETER const DdeData* )
133 DdeTransaction::~DdeTransaction()
137 DdeRequest::DdeRequest( DdeConnection& rConnection, const OUString& rString, tools::Long lLong )
138 : DdeTransaction( rConnection, rString, lLong )
142 DdeExecute::DdeExecute( DdeConnection& rConnection, const OUString& rString, tools::Long lLong )
143 : DdeTransaction( rConnection, rString, lLong )
147 DdePoke::DdePoke( DdeConnection& rConnection, const OUString& rString, const DdeData&, tools::Long lLong )
148 : DdeTransaction( rConnection, rString, lLong )
153 DdeTopic::DdeTopic( SAL_UNUSED_PARAMETER const OUString& )
154 : pName(nullptr)
158 DdeTopic::~DdeTopic()
162 void DdeTopic::InsertItem( SAL_UNUSED_PARAMETER DdeItem* )
166 DdeItem* DdeTopic::AddItem( const DdeItem& rDdeItem )
168 return const_cast<DdeItem*>(&rDdeItem);
171 void DdeTopic::RemoveItem( SAL_UNUSED_PARAMETER const DdeItem& )
175 DdeData* DdeTopic::Get(SAL_UNUSED_PARAMETER SotClipboardFormatId)
177 return nullptr;
180 bool DdeTopic::MakeItem( SAL_UNUSED_PARAMETER const OUString& )
182 return false;
185 bool DdeTopic::StartAdviseLoop()
187 return false;
190 bool DdeTopic::Execute( SAL_UNUSED_PARAMETER const OUString* )
192 return false;
195 bool DdeTopic::Put( SAL_UNUSED_PARAMETER const DdeData* )
197 return false;
200 OUString DdeTopic::GetName() const
202 return OUString();
205 DdeService::DdeService( SAL_UNUSED_PARAMETER const OUString& )
206 : pSysTopic(nullptr)
207 , pName(nullptr)
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 DdeService::~DdeService()
235 void DdeService::AddFormat(SAL_UNUSED_PARAMETER SotClipboardFormatId)
239 void DdeService::AddTopic( SAL_UNUSED_PARAMETER const DdeTopic& )
243 void DdeService::RemoveTopic( SAL_UNUSED_PARAMETER const DdeTopic& )
247 OUString DdeService::GetName() const
249 return OUString();
252 DdeServices& DdeService::GetServices()
254 static DdeServices SINGLETON;
255 return SINGLETON;
258 DdeItem::DdeItem( SAL_UNUSED_PARAMETER const OUString& )
259 : pName(nullptr)
260 , pMyTopic(nullptr)
261 , pImpData(nullptr)
262 , nType(0)
266 DdeItem::DdeItem( const DdeItem& )
267 : pName(nullptr)
268 , pMyTopic(nullptr)
269 , pImpData(nullptr)
270 , nType(0)
274 DdeItem::~DdeItem()
278 void DdeItem::NotifyClient()
282 DdeGetPutItem::DdeGetPutItem( const OUString& rStr )
283 : DdeItem( rStr )
287 DdeGetPutItem::DdeGetPutItem( const DdeItem& rItem )
288 : DdeItem( rItem )
292 DdeData* DdeGetPutItem::Get( SAL_UNUSED_PARAMETER SotClipboardFormatId )
294 return nullptr;
297 bool DdeGetPutItem::Put( SAL_UNUSED_PARAMETER const DdeData* )
299 return false;
302 void DdeGetPutItem::AdviseLoop( SAL_UNUSED_PARAMETER bool )
306 DdeLink::DdeLink( DdeConnection& rConnection, const OUString& rString, tools::Long l )
307 : DdeTransaction( rConnection, rString, l )
311 DdeLink::~DdeLink()
315 void DdeLink::Notify()
319 DdeHotLink::DdeHotLink( DdeConnection& rConnection, const OUString& rString )
320 : DdeLink( rConnection, rString, 0 )
324 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */