首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 常规膨胀为UNO API简化访问

常规膨胀为UNO API简化访问

  • 资源大小:230.60 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: 访问 简化 膨胀 常规 UNOAPI

资 源 简 介

GroovyUNO is a Groovy expander that simplifies access to methods and properties of UNO classes of OpenOffice/LibreOffice. With GroovyUNO there is no need anymore to query interfaces or cast objects to XPropertySet. All properties and methods of an object are instantly available. Objects which support XNameAccess or XIndexAccess can be accessed conveniently with array operators. Sample code: ``` import groovyuno.UNO UNO.init() def doc = UNO.desktop.currentComponent def text = doc.getText() start = text.getStart() text.insertString(start, "Hello World!", false) def cursor = text.createTextCursor() cursor.gotoStart(false) cursor.gotoEnd(true) cursor.setPropertyValue("CharFontName", "Arial") cursor.CharFontName = "Arial Black" ```

文 件 列 表

GroovyOpenOfficeExtension
.classpath
.externalToolBuilders
.project
.settings
build.properties
build.xml
jars.properties
samples
src
uno

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP