当前位置: 首页 > 图文教程 > 网络编程 > Javascript > Javascript实例教程(19) 使用HoTMetal(3)

Javascript
form中限制文本字节数js代码
use jscript with List Proxy Server Information
use jscript List Installed Software
List Installed Software Features
List Information About the Binary Files Used by an Application
List the Codec Files on a Computer
List the UTC Time on a Computer
List Installed Hot Fixes
excel操作之Add Data to a Spreadsheet Cell
Add Formatted Data to a Spreadsheet
Apply an AutoFormat to an Excel Spreadsheet
JavaScript语法着色引擎(demo及打包文件下载)
类之Prototype.js学习
一款JavaScript压缩工具:X2JSCompactor
iis6+javascript Add an Extension File
jscript之Open an Excel Spreadsheet
jscript之Read an Excel Spreadsheet
jscript之List Excel Color Values
去除图像或链接黑眼圈的两种方法总结
Add a Formatted Table to a Word Document

Javascript实例教程(19) 使用HoTMetal(3)


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-12   浏览: 110 ::
收藏到网摘: n/a

HoTMetal中使用javascript
3.什么样的资源适合于脚本编写
当利用HotMetal PRO 6.0编写宏的时候,你可以使用以下几种资源:
预定义事件
HoTMetaL PRO 6.0定义了几个事件以及特殊的用户定义的宏来处理它们。这些宏应该根基HoTMetal的指令来命名的。比如,宏On_Application_Open是在每次HoTMetal PRO 6.0打开的时候被调用的。用户需要定义这个宏并将它增加到Macro/hotmetal.mcr文件中。我们在本教程中将涉及到所有的特殊的宏。
通用的文档编辑界面
总共有8个界面模拟HoTMetal 图形用户界面,如下:
Application
Document
Documents
DocumentProperty
DocumentProperties
Selection
Range
Font
文档对象模型
HoTMetal是使用Document Object Model (DOM,文档对象模型)的。DOM是一个标准的模型用于访问网页中元素。
命令条界面
HotMetal为它的菜单条提供了界面,这跟用户定义的菜单条类似。
COM 对象
HoTMetaL PRO 6.0支持三个COM对象,这三个对象定义在HMExtras.dll中:
HMExtras.fileDlg 可以让你访问文件对话框,它有丰富的命令(比如Save、SaveAS等等);
HMExtras.buttonMaker 可以使用户创建新的菜单按钮 ;
HMExtras.colorChooser 可以使用户选择菜单条颜色