⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dlgcloadfont.h

📁 传真示例
💻 H
字号:
// $Header: $
/********************************************************************
 *  Copyright (c) 1996 Dialogic Corporation
 *  All Rights Reserved             
 *
 *  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF Dialogic Corp.   
 *  The copyright notice above does not evidence any actual or  
 *  intended publication of such source code.               
 ********************************************************************/

// Class Name: CDlgcLoadFont
// Purpose   : Encapsulates the fx_loadfont libfaxmt library call.
// 
//

#ifndef _CDlgcLoadFont_h
#define _CDlgcLoadFont_h

class CDlgcLoadFont
{
public:

	// Auxilliary class.
	// The CDlgcBoard class provides font/board associative properties.
	//
	class CDlgcBoard : public CObject
	{
	public:
		enum FontType{ Normal=1, Compressed };
		CDlgcBoard();
		CDlgcBoard(CDlgcBoard& otherBoard); // Copy constructor.

		CString &GetDeviceName() {return m_szDeviceName;};
		CString &GetName() {return m_szName;};
		CString &GetCompressedFont() {return m_szCompressedFont;};
		CString &GetNormalFont() {return m_szNormalFont;};
		int  IsEscPlus();
		void SetName(CString &szName) {m_szName=szName;};
		void SetCompressedFont(CString &szName) {m_szCompressedFont=szName;};
		void SetNormalFont(CString &szName) {m_szNormalFont=szName;};
		void SetDeviceName(CString &szName) {m_szDeviceName=szName;};
		int operator == (CDlgcBoard otherBoard);
		CDlgcBoard& operator = (CDlgcBoard& otherBoard);

	private:
		// Data members.
		CString m_szName;
		CString m_szDeviceName;
		CString m_szNormalFont;
		CString m_szCompressedFont;

		friend class CDlgcLoadFont;
	};

// Back to the CDlgcLoadFont class.
// Some constants.
private:
	enum { MaxNumBoards = 50 };

public:
	CDlgcLoadFont();
	virtual ~CDlgcLoadFont();

//
// Public interface methods.
//
public:
	virtual int Downloadable() {return m_bDownloadable;};
	virtual int DownloadFonts();

private:
	int DownloadBoard(CDlgcBoard *pBoard, CDlgcBoard::FontType iType);
	int GetBoards();
	int GetDriverInfo();
	int GetFonts();
	int GetSettings();
	int GetSwitches();
	int IdentifyBoard(int iBoardNum, CDlgcBoard *pCDlgcBoard);
	int MergeSettings();
	int SaveSettings();

// 
// Data members.
//
private:
	int			   m_iNumBoards;
	BOOL           m_bDisjointSettings;
	BOOL           m_bAutoDownload;
	BOOL           m_bDownloadable;
public:
	CObArray       m_BoardList, m_SettingsList;
	CString		   m_szFontPath;
	CStatus		   *m_pStatusDlg;
	CStringArray   NormalFonts, CompressedFonts;
};

#endif  // _DlgcLoadFont_h

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -