1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 #ifndef INCLUDED_SVL_SOURCE_SVDDE_DDEIMP_HXX
21 #define INCLUDED_SVL_SOURCE_SVDDE_DDEIMP_HXX
23 #if !defined WIN32_LEAN_AND_MEAN
24 # define WIN32_LEAN_AND_MEAN
29 #include <rtl/ustring.hxx>
30 #include <svl/svdde.hxx>
44 static HDDEDATA CALLBACK CliCallback
45 ( UINT
, UINT
, HCONV
, HSZ
, HSZ
, HDDEDATA
, ULONG_PTR
, ULONG_PTR
);
46 static HDDEDATA CALLBACK SvrCallback
47 ( UINT
, UINT
, HCONV
, HSZ
, HSZ
, HDDEDATA
, ULONG_PTR
, ULONG_PTR
);
48 static DdeService
* FindService( HSZ
);
49 static DdeTopic
* FindTopic( DdeService
&, HSZ
);
50 static DdeItem
* FindItem( DdeTopic
&, HSZ
);
51 static void DisconnectTopic(DdeTopic
&, HCONV
);
52 static void IncMonitor(DdeItem
*pItem
, HCONV
);
53 static void DecMonitor(DdeItem
*pItem
, HCONV
);
66 DdeString( DWORD
, const OUString
& );
69 bool operator==( HSZ
) const;
71 const OUString
& toOUString() const { return m_aString
; }
80 SotClipboardFormatId nFmt
;
89 std::vector
<DdeConnection
*> aConnections
;
93 DdeServices
* pServicesSvr
;
102 , pServicesSvr(nullptr)
107 DdeInstData(const DdeInstData
&) = delete;
108 DdeInstData
& operator=(const DdeInstData
&) = delete;
111 DdeInstData
* ImpGetInstData();
112 DdeInstData
* ImpInitInstData();
113 void ImpDeinitInstData();
115 #endif // INCLUDED_SVL_SOURCE_SVDDE_DDEIMP_HXX
117 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */