56 lines
1.3 KiB
C++
56 lines
1.3 KiB
C++
// DWFFile.h : Declaration of the CDWFFile
|
|
|
|
#pragma once
|
|
#include "resource.h" // main symbols
|
|
|
|
#include "DWFFileImpl.h"
|
|
|
|
#include "ComObjectEmbed.h"
|
|
#include "EPlotSections.h"
|
|
|
|
#include "SLNKDWF.h"
|
|
|
|
// CDWFFile
|
|
|
|
class ATL_NO_VTABLE CDWFFile :
|
|
public CComObjectRootEx<CComSingleThreadModel>,
|
|
public CComCoClass<CDWFFile, &CLSID_myDWFFile>,
|
|
public ISupportErrorInfo,
|
|
public IDispatchImpl<IDWFFile, &IID_IDWFFile, &LIBID_SLNKDWFLib, /*wMajor =*/ 1, /*wMinor =*/ 0>,
|
|
public CDWFFileImpl
|
|
{
|
|
public:
|
|
CDWFFile()
|
|
{
|
|
m_EPlotSections.InitImpl(&(CDWFFileImpl::m_EPlotSections));
|
|
}
|
|
|
|
DECLARE_REGISTRY_RESOURCEID(IDR_DWFFILE)
|
|
DECLARE_GET_CONTROLLING_UNKNOWN() //ADDED
|
|
|
|
BEGIN_COM_MAP(CDWFFile)
|
|
COM_INTERFACE_ENTRY(IDWFFile)
|
|
COM_INTERFACE_ENTRY(IDispatch)
|
|
COM_INTERFACE_ENTRY(ISupportErrorInfo)
|
|
END_COM_MAP()
|
|
|
|
// ISupportsErrorInfo
|
|
STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
|
|
|
|
DECLARE_PROTECT_FINAL_CONSTRUCT()
|
|
|
|
HRESULT FinalConstruct();
|
|
|
|
void FinalRelease();
|
|
|
|
protected:
|
|
CComObjectEmbed<CEPlotSections> m_EPlotSections;
|
|
|
|
public:
|
|
STDMETHOD(Open)(BSTR DWFPath);
|
|
STDMETHOD(get_PropertiesXML)(BSTR* pVal);
|
|
STDMETHOD(get_EPlotSections)(IEPlotSections **ppEPlotSections);
|
|
};
|
|
|
|
OBJECT_ENTRY_AUTO(__uuidof(myDWFFile), CDWFFile)
|