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
26 #include <boost/noncopyable.hpp>
27 #include <rtl/ustring.hxx>
28 #include <svl/svdde.hxx>
29 #include <tools/shl.hxx>
42 typedef ::std::vector
< Conversation
* > ConvList
;
51 static HDDEDATA CALLBACK CliCallback
52 ( WORD
, WORD
, HCONV
, HSZ
, HSZ
, HDDEDATA
, DWORD
, DWORD
);
53 static HDDEDATA CALLBACK SvrCallback
54 ( WORD
, WORD
, HCONV
, HSZ
, HSZ
, HDDEDATA
, DWORD
, DWORD
);
55 static HDDEDATA CALLBACK InfCallback
56 ( WORD
, WORD
, HCONV
, HSZ
, HSZ
, HDDEDATA
, DWORD
, DWORD
);
57 static DdeService
* FindService( HSZ
);
58 static DdeTopic
* FindTopic( DdeService
&, HSZ
);
59 static DdeItem
* FindItem( DdeTopic
&, HSZ
);
75 DdeString( DWORD
, const sal_Unicode
* );
76 DdeString( DWORD
, const OUString
& );
79 int operator==( HSZ
);
81 OUString
toOUString() const { return m_aString
; }
98 class DdeInstData
: private boost::noncopyable
101 sal_uInt16 nRefCount
;
102 std::vector
<DdeConnection
*> aConnections
;
104 sal_IntPtr hCurConvSvr
;
107 DdeServices
* pServicesSvr
;
125 #define SHL_SVDDE SHL_SHL2
128 inline DdeInstData
* ImpGetInstData()
130 return (DdeInstData
*)(*GetAppData( SHL_SVDDE
));
132 DdeInstData
* ImpInitInstData();
133 void ImpDeinitInstData();
135 #endif // INCLUDED_SVL_SOURCE_SVDDE_DDEIMP_HXX
137 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */