75 lines
2.0 KiB
C++
75 lines
2.0 KiB
C++
// EPlotSection.h : Declaration of the CEPlotSection
|
|
|
|
#pragma once
|
|
#include "resource.h" // main symbols
|
|
|
|
// CEPlotSection
|
|
|
|
class CEPlotSectionImpl
|
|
{
|
|
public:
|
|
CEPlotSectionImpl()
|
|
: m_pSection(NULL),m_pW2DInStream(NULL)
|
|
#ifndef DWFTK_READ_ONLY
|
|
,m_pW2DOutStream(NULL)
|
|
#endif
|
|
{
|
|
}
|
|
|
|
~CEPlotSectionImpl();
|
|
|
|
|
|
private:
|
|
DWFCore::DWFInputStream* m_pW2DInStream;
|
|
size_t m_nSize;
|
|
#ifndef DWFTK_READ_ONLY
|
|
DWFCore::DWFBufferOutputStream* m_pW2DOutStream;
|
|
#endif
|
|
CString m_SourceDescription; // Waar komen we vandaan?
|
|
|
|
DWFString m_W2DFileName;
|
|
BOOL m_ForWrite;
|
|
|
|
private:
|
|
DWFToolkit::DWFEPlotSection* m_pSection;
|
|
|
|
public:
|
|
void Init(DWFToolkit::DWFEPlotSection* pSection,
|
|
const CString SourceDescription,
|
|
BOOL ForWrite = FALSE);
|
|
|
|
|
|
// IWhipSequentialStream Methods
|
|
public:
|
|
const size_t size() { return m_nSize; };
|
|
|
|
const CString get_Name();
|
|
const CString get_Title();
|
|
|
|
STDMETHOD(Open)(BOOL bForWrite);
|
|
STDMETHOD(Read) ( void *pv, ULONG cb, ULONG *pcbRead);
|
|
STDMETHOD(Seek) ( ULONG cb, ULONG *pcbRead);
|
|
const DWFProperty* const findProperty( const DWFString& zName,
|
|
const DWFString& zCategory = L"" );
|
|
void const addProperty( const DWFString& zCategory,
|
|
const DWFString& zName,
|
|
const DWFString& zValue );
|
|
#ifndef DWFTK_READ_ONLY
|
|
bool SaveAs(const CString &destpath);
|
|
static bool SaveAsAscii(const CString &srcpath, const CString &destpath);
|
|
bool SaveAsAscii(const CString &destpath);
|
|
STDMETHOD(Write)( const void *pv, ULONG cb,ULONG *pcbWritten);
|
|
#endif
|
|
STDMETHOD(Close)(void);
|
|
ULONG get_PaperColor();
|
|
DWFToolkit::DWFEPlotSection* const get_Section() { return m_pSection; };
|
|
STDMETHOD(get_SourceDescription)(CString &pVal);
|
|
#ifndef DWFTK_READ_ONLY
|
|
STDMETHOD(get_PropertiesXML)(CString & pVal);
|
|
#endif
|
|
double get_PaperClipWidth();
|
|
double get_PaperClipHeight();
|
|
};
|
|
|
|
//REMOVED OBJECT_ENTRY_AUTO(__uuidof(EPlotSection), CEPlotSection)
|