• 大小: 123KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-06
  • 语言: C/C++
  • 标签: 公式  编辑器  MFC  

资源简介

非常强大的数学公式编辑器,附带源码。可以输出输出图片或者文本。

资源截图

代码片段和文件信息

/////////////////////////////////////////////////////////////////////////////
//  File:       BinTree.cpp
//  Version:    1.0.0.0
//  Created:    03-april-2002
//
//  Author:     Thorsten Wack
//  E-mail:     wt@umsicht.fhg.de
//
// parts of code by Zafir Anjum (Converting DDB to DIB )
//
// This code may be used in compiled form in any way you desire. This
// file may be redistributed unmodified by any means PROVIDING it is 
// not sold for profit without the authors written consent and 
// providing that this notice and the authors name is included. If 
// the source code in  this file is used in any commercial application 
// then a simple email would be nice.
//
// This file is provided “as is“ with no expressed or implied warranty.
// The author accepts no liability if it causes any damage whatsoever.
//
// Version 1.0.0.1: Export to emf/wmf is now supported. Added a new method  
// BOOL WriteWMF(CString strFile). Suggested by Roman Nurik
/////////////////////////////////////////////////////////////////////////////

#include “stdafx.h“
#include “bintree.h“

/////////////////////////////////////////////////////////////////////////////
IMPLEMENT_SERIAL(CBinTree Cobject 1)

CBinTree::CBinTree()
{
m_pRootNode=NULL;
m_pSelectNode=NULL;
m_dwSelectType=NULL;
m_strName=““;
}

CBinTree::~CBinTree()
{
// clean up the memory
if(m_pRootNode)
delete m_pRootNode;
}

// return the root node of the tree
CNode* CBinTree::GetRootNode()
{
return m_pRootNode;
}

// sets the root node of the tree
void CBinTree::SetRootNode(CNode* pNode)
{
m_pRootNode=pNode;
}

// return the name of the tree
CString CBinTree::GetName()
{
return m_strName;
}

// set the name of the tree
void CBinTree::SetName(CString strName)
{
m_strName=strName;
}

// create a tree with node of type strType as root
CNode* CBinTree::CreateTree(CString strType)
{
m_pRootNode=CreateNode(strType);
return m_pRootNode;
}

// reset the complete tree and delete all nodes
void CBinTree::ResetTree()
{
DeleteContents();
}

// create a node of a given type
CNode* CBinTree::CreateNode(CString strType)
{
CNode* pNode=NULL;

if (strType == NT_STANDARD)
{
pNode=(CNode*) new CNode();
pNode->m_dwEditMode &= NE_ALLOWEDIT;
}
else if (strType == NT_DIVISION) pNode=(CNode*) new CDivisionNode();
else if (strType == NT_NTHROOT) pNode=(CNode*) new CNthRootNode();
else if (strType == NT_ROOT) pNode=(CNode*) new CSquareRootNode();
else if (strType == NT_POWERTO) pNode=(CNode*) new CPowerToNode();
else if (strType == NT_PLACEHOLDER) pNode=(CNode*) new CPlaceHolderNode();
else if (strType == NT_BRACE) pNode=(CNode*) new CBraceNode();
else if (strType == NT_EQUATION) pNode=(CNode*) new CEquationNode();
else if (strType == NT_PLUS) pNode=(CNode*) new CPlusNode();
else if (strType == NT_MINUS) pNode=(CNode*) new CMinusNode();
else if (strType == NT_TIMES) pNode=(CNode*) new CTimesN

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件        3843  1999-01-09 12:35  projekte\FormulaDlg\ColourPicker.h
     文件        1078  2002-03-28 09:54  projekte\FormulaDlg\res\Formula.ico
     文件         399  2002-03-28 09:54  projekte\FormulaDlg\res\Formula.rc2
     文件        1078  2002-03-28 09:54  projekte\FormulaDlg\res\FormulaDoc.ico
     文件         310  2002-04-15 11:04  projekte\FormulaDlg\res\printer.bmp
     文件         438  2002-04-02 07:52  projekte\FormulaDlg\res\redod.bmp
     文件         438  2002-04-02 07:52  projekte\FormulaDlg\res\redof.bmp
     文件         438  2002-04-02 07:52  projekte\FormulaDlg\res\redou.bmp
     文件         438  2002-04-02 07:52  projekte\FormulaDlg\res\redox.bmp
     文件        1318  2002-09-27 10:00  projekte\FormulaDlg\res\Toolbar.bmp
     文件         438  2002-04-02 07:52  projekte\FormulaDlg\res\undod.bmp
     文件         438  2002-04-02 07:52  projekte\FormulaDlg\res\undof.bmp
     文件         438  2002-04-02 07:52  projekte\FormulaDlg\res\undou.bmp
     文件         438  2002-04-02 07:52  projekte\FormulaDlg\res\undox.bmp
     文件       20927  2003-04-16 08:39  projekte\FormulaDlg\BinTree.cpp
     文件        3952  2003-04-14 12:07  projekte\FormulaDlg\BinTree.h
     文件        8135  2003-02-26 15:28  projekte\FormulaDlg\BinTreeFormat.cpp
     文件        2341  2002-09-18 09:39  projekte\FormulaDlg\BinTreeFormat.h
     文件        9926  1999-06-06 16:18  projekte\FormulaDlg\ColourPicker.cpp
     文件        2678  2001-08-13 13:13  projekte\FormulaDlg\mathsym\arrows.bmp
     文件        5398  2001-07-27 07:47  projekte\FormulaDlg\mathsym\brace.bmp
     文件        2038  2002-05-31 09:02  projekte\FormulaDlg\mathsym\coredata.bmp
     文件        1398  2002-09-20 10:11  projekte\FormulaDlg\mathsym\derivative.bmp
     文件        4598  2001-07-27 09:09  projekte\FormulaDlg\mathsym\equation.bmp
     文件        7798  2002-05-03 14:10  projekte\FormulaDlg\mathsym\function.bmp
     文件        2038  2002-05-03 07:45  projekte\FormulaDlg\mathsym\integral.bmp
     文件        5638  2001-07-27 07:47  projekte\FormulaDlg\mathsym\lower_greek.bmp
     文件        2678  2001-07-27 07:47  projekte\FormulaDlg\mathsym\matrix.bmp
     文件        2038  2001-08-14 14:27  projekte\FormulaDlg\mathsym\pbyq.bmp
     文件         758  2001-08-14 13:14  projekte\FormulaDlg\mathsym\prod.bmp
     文件         758  2001-08-13 08:41  projekte\FormulaDlg\mathsym\sum.bmp
............此处省略50个文件信息

评论

共有 条评论