You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.4 KiB
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#pragma once
#include "MxnFormat/AttachBase.h"
#include "xydc.h"
class AFX_EXT_CLASS CXyIO : public CAttachBase
{
public:
CXyIO(void);
~CXyIO(void);
int ToCgm(CXyDC* pXyDC, CFile& fw); //保存CGM文件
int ToCgm(CXyDC* pXyDC, LPCTSTR lpszPathName); //保存CGM文件
int ToEps(CXyDC* pXyDC, CFile& fw); //保存EPS文件
int ToEps(CXyDC* pXyDC, LPCTSTR lpszPathName); //保存为EPS文件;
int ToPdf(CXyDC* pXyDC, CFile& fw, const CRect8& pRect,
int sType, int cType, int dType); //保存PDF文件
int ToPdf(CXyDC* pXyDC, LPCTSTR lpszPathName, const CRect8& pRect,
int sType, int cType, int dType); //保存为PDF文件
int ToDxf(CXyDC* pXyDC, CFile& fw); //保存DXF文件
int ToDxf(CXyDC* pXyDC, LPCTSTR lpszPathName); //保存为DXF文件;
int ToUmap(CXyDC* pXyDC, CFile& fw); //保存为UMap文件,为海油增加
int ToMapGisAsc(CXyDC* pXyDC, CFile& fw, BOOL bCreateLayerFile); //保存MapGis明码文件
int ToMapGisAsc(CXyDC* pXyDC, LPCTSTR lpszPathName, BOOL bCreateLayerFile); //保存为MapGis明码文件;
int ToKML(CFile& fw); //保存google KML文件
int ToEMF(CXyDC* pXyDC, CFile& fw);
int ToGDBX(CXyDC* pXyDC, CFile& fw);
int ToGeoMap(CXyDC* pXyDC, CFile& fw); //保存GeoMap的GDB文件
int ToGeoMap(CXyDC* pXyDC, LPCTSTR lpszPathName); //保存GeoMap的GDB文件
protected:
//转换为指定DC的输出格式该函数用于CGM、EPS、PDF
int ToOutputFormat(CXyDC* ddc, CXyDC* pXyDC, CFile& fw);
void WriteDxfBlock(void* pxy, void* pDxfDC);
};