测试注册
From Apache OpenOffice Wiki
< Zh | Documentation
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
使用一段简短的 OpenOffice.org Basic 程序测试程序的运行是否顺利,方法是:选择工具 – 宏,并在左侧输入新宏的名称(如 TestImageShrink
),然后单击新建创建新程序。在此程序中,输入组件的相应代码。ImageShrink
的测试例行程序可以是:
Sub TestImageShrink oTestComp = createUnoService("org.openoffice.test.ImageShrink") MsgBox oTestComp.dbg_methods MsgBox oTestComp.dbg_properties MsgBox oTestComp.dbg_supportedInterfaces end sub
结果应该是三个对话框,分别显示实现支持的方法、属性和接口。请注意,接口属性不显示为 get/set 方法,而是 Basic 中的属性。如果对话框未显示预期的内容,请参阅 编写 UNO 组件 - Java 中的简单组件 - Testing and Debugging Java Components - 疑难解答。
Content on this page is licensed under the Public Documentation License (PDL). |