Files
Slnkdwf/SlnkDWFCom/EPlotSections.h
Jos Groot Lipman 80d0142c23 SLNKDWF 2.00
svn path=/Slnkdwf/trunk/; revision=12481
2007-08-01 13:42:28 +00:00

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);
};