60 lines
1.5 KiB
C++
60 lines
1.5 KiB
C++
// EPlotSections.h : Declaration of the CEPlotSections
|
|
|
|
#pragma once
|
|
#include "resource.h" // main symbols
|
|
|
|
#include "SLNKDWF.h"
|
|
|
|
#include "EPlotSectionsImpl.h"
|
|
|
|
#include "ComObjectEmbed.h"
|
|
#include "myEPlotSection.h"
|
|
|
|
// CEPlotSections
|
|
|
|
class ATL_NO_VTABLE CEPlotSections :
|
|
public CComObjectRootEx<CComSingleThreadModel>,
|
|
public CComCoClass<CEPlotSections, &CLSID_EPlotSections>,
|
|
public ISupportErrorInfo,
|
|
public IDispatchImpl<IEPlotSections, &IID_IEPlotSections, &LIBID_SLNKDWFLib, /*wMajor =*/ 1, /*wMinor =*/ 0>
|
|
{
|
|
public:
|
|
CEPlotSections()
|
|
{
|
|
}
|
|
|
|
DECLARE_GET_CONTROLLING_UNKNOWN() //ADDED
|
|
|
|
BEGIN_COM_MAP(CEPlotSections)
|
|
COM_INTERFACE_ENTRY(IEPlotSections)
|
|
COM_INTERFACE_ENTRY(IDispatch)
|
|
COM_INTERFACE_ENTRY(ISupportErrorInfo)
|
|
END_COM_MAP()
|
|
|
|
// ISupportsErrorInfo
|
|
STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
|
|
|
|
DECLARE_PROTECT_FINAL_CONSTRUCT()
|
|
|
|
HRESULT FinalConstruct()
|
|
{
|
|
return S_OK;
|
|
}
|
|
|
|
void FinalRelease() ;
|
|
|
|
protected:
|
|
IDWFFile *m_pParent; // Non-addreffed!
|
|
CEPlotSectionsImpl *m_pSectionsImpl; // Pointer naar onderliggende sections
|
|
CAtlArray<CComObjectEmbed<CEPlotSection>> m_EPlotSections;
|
|
|
|
public:
|
|
void InitImpl(CEPlotSectionsImpl *epl);
|
|
void SetParent(IDWFFile *pParent);
|
|
BOOL ProcessManifest(DWFToolkit::DWFManifest& rManifest, CString sourceDescription);
|
|
|
|
STDMETHODIMP get_Parent(IDWFFile **ppParent);
|
|
STDMETHOD(get_Count)(LONG* pVal);
|
|
STDMETHOD(get_Item)(LONG i, IDispatch** pVal);
|
|
};
|