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.

91 lines
2.6 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.

//////////////////////////////////////////////////////////////////////////////
//文件 HowToViewPoint.h
//主要功能:
//
//程序编写: 2005-12-07
/////////////////////////////////////////////////////////////////////////////
#pragma once
#include "TextFlags.h"
class AFX_EXT_CLASS CHowToViewPoint : public CTextFlags
{
int ReadMark(CFile &fr, const short &ver);
int ReadText(CFile &fr, const short &ver);
int ReadTextZ(CFile &fr, const short &ver);
void WriteMark(CFile &fw, const short &ver,double cc);
void WriteText(CFile &fw, const short &ver,double cc);
void WriteTextZ(CFile &fw, const short &ver, double cc);
public:
CHowToViewPoint(void);
virtual ~CHowToViewPoint(void);
void ScaleProperty(double sx, double sy);
void operator = (CHowToViewPoint &t);
virtual void Serialize(CArchive& ar, const short &ver);
virtual int Read(CFile &fr, const short& ver);
virtual void WriteDfd(CFile &fw, const short& ver, double cc=1.0);
int ReadOld(CFile &fr); //老版本
BOOL WriteMemory(BYTE*& outBuffer, int& destLen, int formatCode);
BOOL ReadMemory(BYTE* bufData, int bufLen, int formatCode);
virtual void WriteDML(CFile &fw, const short& ver, double cc=1.0, int nBaseTabNum=1);
virtual int ReadDML(CFile &fr, const short &ver);
virtual void WritePCG(CFile &fw, const short& ver, double cc=1.0, int nBaseTabNum=1);
virtual int ReadPCG(CFile &fr, const short &ver);
virtual void WritePCG2(CFile &fw, const short& ver, double cc = 1.0, int nBaseTabNum = 1);
int ReadPCG2(CFile &fr, const short &ver);
int PositionNew(int bReplace=1);//bReaplce=TRUE时表示符号不为空才重新定位否则不管是否为空都重新定位
void GetNewUsing(CStringList &list);
int Replace(COLORREF cOldColor, COLORREF cNewColor);
int SetColor(COLORREF cNewColor); //设置所有的文字、曲线等颜色
void SetName(LPCTSTR lpszName);
CString GetName(void);
BOOL IsCanMoveCoordinate(void); //点坐标不能移动
void EnableMoveCoordinate(BOOL bEnable);
void SetNullSymbolMode(int mode);
int GetNullSymbolMode();
private:
int m_nNullSymbolMode;
public:
CString name; //修饰名称,为了根据名称查找修饰
CString MarkName;
CSize8 m_mark;
CSize8 m_word;
CSize8 m_delt;
double MarkAngle;
double WordAngle;
CSize8 m_wordZ;
CSize8 m_deltZ;
double WordAngleZ;
COLORREF frColor; //前景文字颜色
COLORREF frColorZ; //前景文字颜色
COLORREF bkColorZ; //背景充填颜色
COLORREF frColorSymbol; // 符号前景颜色
COLORREF bkColorSymbol; // 符号背景充填颜色
int m_enableSymbolFrColor;
int m_enableSymbolBkColor;
void* pDraw;
public:
virtual int ReadPCG(void *pxp, const short &ver);
int ReadPCG2(void *pxp, const short &ver);
};