Files
Slnkdwf/SlnkDWFImpl/myeplotsectionimpl.h
Jos Groot Lipman 41fc5beaf5 Enkele compiler warnings verwijderd over throw-functies
svn path=/Slnkdwf/trunk/; revision=26206
2015-09-06 11:13:49 +00:00

76 lines
2.0 KiB
C++

// EPlotSection.h : Declaration of the CEPlotSection
#pragma once
#include "resource.h" // main symbols
// CEPlotSection
typedef BOOL (* EPlot_Progress_Action) (void *param, double progress);
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();
int Open(BOOL bForWrite);
int Read(void *pv, ULONG cb, ULONG *pcbRead);
int 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, EPlot_Progress_Action action = NULL);
STDMETHOD(Write)( const void *pv, ULONG cb,ULONG *pcbWritten);
#endif
int Close(void);
ULONG get_PaperColor();
DWFToolkit::DWFEPlotSection* const get_Section() { return m_pSection; };
int get_SourceDescription(CString &pVal);
#ifndef DWFTK_READ_ONLY
int get_PropertiesXML(CString & pVal);
#endif
double get_PaperClipWidth();
double get_PaperClipHeight();
};
//REMOVED OBJECT_ENTRY_AUTO(__uuidof(EPlotSection), CEPlotSection)