• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

xap_Win32Slurp.h

Go to the documentation of this file.
00001 /* AbiSource Application Framework
00002  * Copyright (C) 1998 AbiSource, Inc.
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017  * 02110-1301 USA.
00018  */
00019 
00020 #include <windows.h>
00021 #include <ddeml.h>
00022 class XAP_Win32APP;
00023 
00024 class ABI_EXPORT XAP_Win32Slurp
00025 {
00026 public:
00027     XAP_Win32Slurp(XAP_Win32App * pApp);
00028     ~XAP_Win32Slurp(void);
00029 
00030     HDDEDATA CALLBACK       doCallback(UINT uType, UINT uFmt, HCONV hConv,
00031                                        HSZ hsz1, HSZ hsz2, HDDEDATA hData,
00032                                        DWORD dwData1, DWORD dwData2);
00033     bool                    connectSlurper(void);
00034     bool                    disconnectSlurper(void);
00035     void                    processCommand(HDDEDATA hData);
00036     void                    stuffRegistry(const char * szSuffix,
00037                                           const char * szApplicationName,
00038                                           LPCWSTR szExePathname,
00039                                           const char * szContentType);
00040 
00041 protected:
00042     bool                    _askForStealFromAnotherApplication(void) const;
00043     bool                    _askForUpdateExePathname(void) const;
00044     bool                    _askForStealMimeFromAnotherApplication(void) const;
00045 
00046     XAP_Win32App *          m_pApp;
00047     bool                    m_bInitialized;
00048     HSZ                     m_hszServerName;
00049     HSZ                     m_hszTopic;
00050     DWORD                   m_idDdeServerInst;
00051 };
00052 

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1