Files
Slnkdwf/SlnkDWFImpl/dwffileimpl.h
Jos Groot Lipman 0e37d774d2 Merge SLNKDWF64 branch
svn path=/Slnkdwf/trunk/; revision=23911
2015-01-21 12:09:31 +00:00

54 lines
1.1 KiB
C++

// DWFFile.h : Declaration of the CDWFFile
#pragma once
#include "resource.h" // main symbols
#include "EPlotSectionsImpl.h"
//#include "SLNKDWF.h"
#include "Whiptk/whip_toolkit.h"
#include "Dwf/Toolkit.h"
#include "dwf/package/writer/DWF6PackageWriter.h"
// CDWFFile
class CDWFFileImpl
{
public:
CDWFFileImpl()
: m_DWF(NULL),m_oReader(NULL), m_isOpen(FALSE)
#ifndef DWFTK_READ_ONLY
,m_oWriter(NULL)
#endif
{
}
~CDWFFileImpl();
public:
bool get_PropertiesXML(CString & pVal);
CEPlotSectionsImpl *get_EPlotSections();
#ifndef DWFTK_READ_ONLY
bool Create(const CString &DWFPath, CDWFFileImpl *DWFFileTemplate );
LONG CreateEPlotSection(const CString &W2DPath, CEPlotSectionImpl *ePlotTemplate);
bool Save();
#endif
bool Open(const CString &DWFPath);
public:
CEPlotSectionsImpl m_EPlotSections;
DWFPackageReader::tPackageInfo m_tInfo;
private:
DWFCore::DWFFile *m_DWF;
#ifndef DWFTK_READ_ONLY
DWFToolkit::DWFPackageWriter* m_oWriter;
#endif
DWFToolkit::DWFPackageReader* m_oReader;
WT_File m_DWFFile;
BOOL m_isOpen;
DWFString m_W2DFileName;
};