Files
Slnkdwf/SlnkDWFCom/DWFFile.h
Jos Groot Lipman 6596ce32c5 TUDE#13285 AsDWF Schaal behouden
svn path=/Slnkdwf/trunk/; revision=12484
2007-12-19 09:44:56 +00:00

59 lines
1.4 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(Create)(BSTR DWFPath, VARIANT EPlotStream);
STDMETHOD(CreateEPlotSection)(BSTR W2DPath, VARIANT EPlotStream, LONG *pVal);
STDMETHOD(Save)();
STDMETHOD(get_PropertiesXML)(BSTR* pVal);
STDMETHOD(get_EPlotSections)(IEPlotSections **ppEPlotSections);
};
OBJECT_ENTRY_AUTO(__uuidof(myDWFFile), CDWFFile)