1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: ddeimp.hxx,v $
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 ************************************************************************/
41 #define LPWORD USHORT*
42 #define LPDWORD ULONG*
47 #include <tools/prewin.h>
49 #include <tools/postwin.h>
50 #include "ddewrap.hxx"
63 #include <tools/string.hxx>
64 #include <tools/list.hxx>
65 #include <tools/shl.hxx>
83 DECLARE_LIST( ConvList
, Conversation
* );
93 static HDDEDATA CALLBACK CliCallback
94 ( WORD
, WORD
, HCONV
, HSZ
, HSZ
, HDDEDATA
, DWORD
, DWORD
);
95 static HDDEDATA CALLBACK SvrCallback
96 ( WORD
, WORD
, HCONV
, HSZ
, HSZ
, HDDEDATA
, DWORD
, DWORD
);
97 static HDDEDATA CALLBACK InfCallback
98 ( WORD
, WORD
, HCONV
, HSZ
, HSZ
, HDDEDATA
, DWORD
, DWORD
);
100 #if defined ( MTW ) || ( defined ( GCC ) && defined ( OS2 )) || defined( ICC )
101 static HDDEDATA CALLBACK __EXPORT CliCallback
102 ( WORD
, WORD
, HCONV
, HSZ
, HSZ
, HDDEDATA
, DWORD
, DWORD
);
103 static HDDEDATA CALLBACK __EXPORT SvrCallback
104 ( WORD
, WORD
, HCONV
, HSZ
, HSZ
, HDDEDATA
, DWORD
, DWORD
);
105 static HDDEDATA CALLBACK __EXPORT InfCallback
106 ( WORD
, WORD
, HCONV
, HSZ
, HSZ
, HDDEDATA
, DWORD
, DWORD
);
108 static HDDEDATA CALLBACK _export CliCallback
109 ( WORD
, WORD
, HCONV
, HSZ
, HSZ
, HDDEDATA
, DWORD
, DWORD
);
110 static HDDEDATA CALLBACK _export SvrCallback
111 ( WORD
, WORD
, HCONV
, HSZ
, HSZ
, HDDEDATA
, DWORD
, DWORD
);
112 static HDDEDATA CALLBACK _export InfCallback
113 ( WORD
, WORD
, HCONV
, HSZ
, HSZ
, HDDEDATA
, DWORD
, DWORD
);
116 static DdeService
* FindService( HSZ
);
117 static DdeTopic
* FindTopic( DdeService
&, HSZ
);
118 static DdeItem
* FindItem( DdeTopic
&, HSZ
);
125 class DdeString
: public String
132 DdeString( DWORD
, const sal_Unicode
* );
133 DdeString( DWORD
, const String
& );
136 int operator==( HSZ
);
152 class DdeConnections
;
158 DdeConnections
* pConnections
;
163 DdeServices
* pServicesSvr
;
170 #define SHL_SVDDE SHL_SHL2
173 inline DdeInstData
* ImpGetInstData()
175 return (DdeInstData
*)(*GetAppData( SHL_SVDDE
));
177 DdeInstData
* ImpInitInstData();
178 void ImpDeinitInstData();
180 #endif // _DDEIMP_HXX