Files
Slnkdwf/SlnkDWFCom/myEPlotSection.h
Jos Groot Lipman 699121d407 - Geen afrondfouten/oveflow bij Centroid berekening als zowel x en y rond INT_MAX
- vectordpi functie toegevoegd
- SaveAs tweede parameter ascii toegevoegd
- Meer commentaren in ascii versie tempdwf
- Labels van contouren die niet herkend waren maar vanuit ASP label hebben gekregen wel tekenen

svn path=/Slnkdwf/trunk/; revision=43706
2019-08-11 15:20:23 +00:00

80 lines
2.1 KiB
C++

// EPlotSection.h : Declaration of the CEPlotSection
#pragma once
#include "resource.h" // main symbols
#include "SLNKDWF.h"
#include "myEPlotSectionImpl.h"
#include "Whiptk/whip_toolkit.h"
// CEPlotSection
class ATL_NO_VTABLE CEPlotSection :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CEPlotSection, &CLSID_EPlotSection>,
public ISupportErrorInfo,
public IDispatchImpl<IEPlotSection, &IID_IEPlotSection, &LIBID_SLNKDWFLib, /*wMajor =*/ 1, /*wMinor =*/ 0>
// public CEPlotSectionImpl
{
public:
CEPlotSection()
{
}
//REMOVED DECLARE_REGISTRY_RESOURCEID(IDR_EPLOTSECTION)
BEGIN_COM_MAP(CEPlotSection)
COM_INTERFACE_ENTRY(IEPlotSection)
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:
IEPlotSections *m_pParent; // Non-addreffed!
private:
CEPlotSectionImpl *m_pSectionImpl;
public:
void SetParent(IEPlotSections *pParent);
STDMETHODIMP get_Parent(IEPlotSections **ppParent);
STDMETHOD(get_Name)(BSTR* pVal);
STDMETHOD(get_Title)(BSTR* pVal);
STDMETHOD(AddProperty)(BSTR pCategory, BSTR pName, BSTR pVal);
void InitImpl(CEPlotSectionImpl *epl);
// IWhipSequentialStream Methods
public:
STDMETHOD(Open)(BOOL bForWrite);
STDMETHOD(Read) ( void *pv, ULONG cb, ULONG *pcbRead);
STDMETHOD(Write)( const void *pv, ULONG cb,ULONG *pcbWritten);
STDMETHOD(Close)(void);
STDMETHOD(get_PaperColor)(ULONG* pVal);
STDMETHOD(get_SourceDescription)(BSTR* pVal);
#if DESIRED_CODE(WHIP_OUTPUT)
STDMETHOD(get_PropertiesXML)(BSTR* pVal);
#endif
STDMETHOD(get_PaperClipWidth)(DOUBLE* pVal);
STDMETHOD(get_PaperClipHeight)(DOUBLE* pVal);
public:
STDMETHOD(get_EPlotSectionImpl)(/* CEPlotSectionImpl ** */ BYTE ** pVal);
public:
STDMETHOD(put_EPlotSectionImpl)(/* CEPlotSectionImpl * */ BYTE * newVal);
};
//REMOVED OBJECT_ENTRY_AUTO(__uuidof(EPlotSection), CEPlotSection)