// MarkIt.h : Declaration of the CMarkIt #ifndef __MARKIT_H_ #define __MARKIT_H_ #include "resource.h" // main symbols #include #include #include #include #include ///////////////////////////////////////////////////////////////////////////// // CMarkIt class ATL_NO_VTABLE CMarkIt : public CComObjectRootEx, public CComCoClass, public IDSAddIn, public IDispatchImpl { public: CMarkIt(); ~CMarkIt(); DECLARE_REGISTRY_RESOURCEID(IDR_MARKIT) BEGIN_COM_MAP(CMarkIt) COM_INTERFACE_ENTRY(IMarkIt) COM_INTERFACE_ENTRY2(IDispatch, IMarkIt) COM_INTERFACE_ENTRY_IID(IID_IDSAddIn, IDSAddIn) END_COM_MAP() CComPtr m_spApplication; DWORD m_dwAddInID; // IDSAddIn methods public: STDMETHOD(OnConnection)(IApplication* pApp, VARIANT_BOOL bFirstTime, long dwCookie, VARIANT_BOOL* bOnConnection); STDMETHOD(OnDisconnection)(VARIANT_BOOL bLastTime); // IMarkIt public: HRESULT Dump(LPCTSTR szFile); STDMETHOD(BookNote)(); protected: BOOL m_fEcho; CString m_strFile; }; #endif //__MARKIT_H_