annotate src/VisVim/DSAddIn.h @ 24102:f897c1862d9e

Added tag v8.2.2592 for changeset 6d3dee0d7de51f9cd677ae5781c2cabac1763773
author Bram Moolenaar <Bram@vim.org>
date Sat, 13 Mar 2021 13:15:04 +0100
parents 3fc0f57ecb91
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 // DSAddIn.h : header file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 //
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 #if !defined(AFX_DSADDIN_H__AC726715_2977_11D1_B2F3_006008040780__INCLUDED_)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 #define AFX_DSADDIN_H__AC726715_2977_11D1_B2F3_006008040780__INCLUDED_
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 #include "commands.h"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 // {4F9E01C0-406B-11d2-8006-00001C405077}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 DEFINE_GUID (CLSID_DSAddIn,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 0x4f9e01c0, 0x406b, 0x11d2, 0x80, 0x6, 0x0, 0x0, 0x1c, 0x40, 0x50, 0x77);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 /////////////////////////////////////////////////////////////////////////////
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 // CDSAddIn
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 class CDSAddIn :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 public IDSAddIn,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 public CComObjectRoot,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 public CComCoClass < CDSAddIn,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 &CLSID_DSAddIn >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 public:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 DECLARE_REGISTRY (CDSAddIn, "VisVim.DSAddIn.1",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 "VisVim Developer Studio Add-in", IDS_VISVIM_LONGNAME,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 THREADFLAGS_BOTH)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 CDSAddIn ()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 BEGIN_COM_MAP (CDSAddIn)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 COM_INTERFACE_ENTRY (IDSAddIn)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 END_COM_MAP ()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 DECLARE_NOT_AGGREGATABLE (CDSAddIn)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 // IDSAddIns
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 public:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 STDMETHOD (OnConnection) (THIS_ IApplication * pApp, VARIANT_BOOL bFirstTime,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 long dwCookie, VARIANT_BOOL * OnConnection);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 STDMETHOD (OnDisconnection) (THIS_ VARIANT_BOOL bLastTime);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 protected:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 bool AddCommand (IApplication* pApp, char* MethodName, char* CmdName,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 UINT StrResId, UINT GlyphIndex, VARIANT_BOOL bFirstTime);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 protected:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 CCommandsObj * m_pCommands;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 DWORD m_dwCookie;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 //{{AFX_INSERT_LOCATION}}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 #endif // !defined(AFX_DSADDIN_H__AC726715_2977_11D1_B2F3_006008040780__INCLUDED)