forked from sabrogden/Ditto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDittoAddin.h
34 lines (26 loc) · 944 Bytes
/
DittoAddin.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#pragma once
#include "Shared\DittoDefines.h"
#include "Shared\IClip.h"
#include <vector>
class CDittoAddin
{
public:
CDittoAddin();
virtual ~CDittoAddin();
bool DoLoad(LPCTSTR lpszDllName, CDittoInfo DittoInfo);
std::vector<CFunction> m_PrePasteFunctions;
bool PrePasteFunction(const CDittoInfo &DittoInfo, CStringA Function, IClip *pClip);
CString DisplayName() { return m_DittoAddinInfo.m_Name; }
int Version() { return m_DittoAddinInfo.m_AddinVersion; }
int PrivateVersion() { return m_DittoAddinInfo.PrivateVersion(); }
CString LastError() { return m_csLastError; }
protected:
TCHAR m_DllName[MAX_PATH];
HMODULE m_hModule;
CDittoAddinInfo m_DittoAddinInfo;
CString m_csLastError;
protected:
void Cleanup();
bool (__cdecl *m_SupportedFunctions)(const CDittoInfo&, FunctionType,std::vector<CFunction>&);
bool SupportedFunctions(const CDittoInfo &DittoInfo, FunctionType type, std::vector<CFunction> &Functions);
};