annotate src/VisVim/DSAddIn.h @ 8316:058b9e4a291b v7.4.1450

commit https://github.com/vim/vim/commit/1c39102666d2ccb998059bd7ada2d2efa31a11bc Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 28 18:04:00 2016 +0100 patch 7.4.1450 Problem: Json encoding still fails when encoding is not utf-8. Solution: Set 'encoding' before :scriptencoding. Run the json test separately to avoid affecting other tests.
author Christian Brabandt <cb@256bit.org>
date Sun, 28 Feb 2016 18: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)