|
// CommandHandler.h : Declaration of the CommandHandler
#ifndef __COMMANDS_H_
#define __COMMANDS_H_
#include "resource.h" // main symbols
#include <string>
#include "ComHelper.h"
class ESBDSAddinImpl;
/////////////////////////////////////////////////////////////////////////////
// CommandHandler
class ATL_NO_VTABLE CommandHandler :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CommandHandler, &CLSID_Commands>,
public IDispatchImpl<ICommands, &IID_ICommands, &LIBID_ESBDSADDINLib>
{
public:
CommandHandler() : mAddin(NULL)
{
}
void setAddIn(ESBDSAddinImpl *addin)
{ mAddin = addin; }
ESBDSAddinImpl* getAddIn()
{ return mAddin; }
public:
//ICommands
HResult setProperties();
HResult showOutlineBrowser();
HResult showHierarchyBrowser();
HResult showTypeBrowser();
HResult showMethodBrowser();
HResult showWorkspaceBrowser();
private:
ESBDSAddinImpl *mAddin;
void CommandHandler::showBrowser(const std::string &browser);
//here comes the atl crap
public:
DECLARE_REGISTRY_RESOURCEID(IDR_COMMANDS)
DECLARE_PROTECT_FINAL_CONSTRUCT()
BEGIN_COM_MAP(CommandHandler)
COM_INTERFACE_ENTRY(ICommands)
COM_INTERFACE_ENTRY(IDispatch)
END_COM_MAP()
};
#endif //__COMMANDS_H_
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.