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.

27 lines
849 B
C++

#pragma once
#include "ObjComposite.h"
#include "ValString.h"
class CObjString :public CObjComposite
{
public:
CObjString(void);
virtual ~CObjString(void);
virtual OBJ_TYPE GetType(){return _TYPE_STR;};
CObjString(CObjString &rhs);
void GetValStrCopy(CValString &ValStr);
void SetValStr(CValString &ValStr);
void SetUseCurFontName();
void SetFontTypeName(CString str){m_FontTypeName = str;};
void SetFontName(CString str){m_FontName = str;};
CString GetFontTypeName(){return m_FontTypeName;};
CString GetFontName(){return m_FontName;};
protected:
//可替换文本
CValString m_ValStr;
//只保存字体的名字,如果当前没有这个字体再更换为当前的默认字体
CString m_FontTypeName;//字体类型的名字
CString m_FontName;//字体具体的名字
};