ICAAutomationApp[ uuid(09FE5BB2-C94F-412F-82E7-17A6D289B8C8) , oleautomation, dual ] interface ICAAutomationApp : IDispatch { [propget, id(1), helpstring("property SelectedNodes")] HRESULT SelectedNodes([out, retval] IDispatch** pVal); [propget, id(2), helpstring("property CurrentArticle")] HRESULT CurrentArticle([out, retval] IDispatch** pVal); [propget, id(3), helpstring("property CurrentArticleHtmlDocument")] HRESULT CurrentArticleHtmlDocument([out, retval] IDispatch** pVal); [propget, id(4), helpstring("property HWND")] HRESULT HWND([out, retval] long* pVal); [propget, id(5), helpstring("property BookCount")] HRESULT BookCount([out, retval] long* pVal); [propget, id(6), helpstring("property Book")] HRESULT Book([in] long nBookIndex, [out, retval] IDispatch** pVal); [propget, id(7), helpstring("property Attribute")] HRESULT Attribute([in] BSTR bstrAttributeName, [out, retval] BSTR* pVal); [propput, id(7), helpstring("property Attribute")] HRESULT Attribute([in] BSTR bstrAttributeName, [in] BSTR newVal); [id(8), helpstring("method AddBook")] HRESULT AddBook([in] BSTR bstrBookGUID); [id(9), helpstring("method CloseBook")] HRESULT CloseBook([in] BSTR bstrBookGUID); [id(10), helpstring("method ViewArticle")] HRESULT ViewArticle([in] BSTR bstrBookGUID, [in] long nArticleID); [id(11), helpstring("method SelectNode")] HRESULT SelectNode([in] BSTR bstrBookGUID, [in] long nNodeID); [id(12), helpstring("method NewArticle")] HRESULT NewArticle([in] IDispatch* pParentNode, [in] BSTR bstrTitle); [id(13), helpstring("method NewArticleUsingTemplate")] HRESULT NewArticleUsingTemplate([in] IDispatch* pParentNode, [in] BSTR bstrTitle, [in] BSTR bstrTemplateFileName); [id(14), helpstring("method EditArticle")] HRESULT EditArticle([in] IDispatch* pArticle); [id(15), helpstring("method LoadCAString")] HRESULT LoadCAString([in] BSTR bstrStringName, [out, retval] BSTR* pVal); [id(16), helpstring("method LoadMacroString")] HRESULT LoadMacroString([in] BSTR bstrMacroAppGUID, [in] BSTR bstrStringName, [out, retval] BSTR* pVal); [id(17), helpstring("method BeginTrackTextSelection")] HRESULT BeginTrackTextSelection([in] BSTR bstrNewTextStyle, [in] BSTR bstrSpanExtAttributeName, [in] BSTR bstrSpanExtAttributeValue); [id(18), helpstring("method EndTrackTextSelection")] HRESULT EndTrackTextSelection(); };
属性 SelectedNodes返回选中的节点。只读。
参数无
类型
属性 CurrentArticle正在浏览或者编辑的文章。只读。
参数无
类型
属性 CurrentArticleHtmlDocument正在浏览或者编辑的文章。只读。
参数无
类型
属性 HWNDCyberArticle主窗口句柄。
参数无
类型
属性 BookCount获得已经打开的书籍数量。
参数无
类型
属性 Book获得已经打开的某一个书籍。
参数
类型
属性 Attribute获得或者设置一个自定义的值。可以通过这个属性,自定义一些值进行保存。数据保存在CyberArticle.xml里面
参数
类型
方法 AddBook打开一个书籍
参数
返回无
方法 CloseBook关闭一个书籍
参数
返回无 方法 ViewArticle在CyberArticle里面查看指定的文章
参数
返回无 方法 SelectNode在CyberArticle里面选中指定的节点
参数
返回无 方法 NewArticle在CyberArticle里面新建文章
参数
返回无 方法 NewArticleUsingTemplate在CyberArticle里面,使用模板(HTML文件)新建文章
参数
返回无 方法 EditArticle在CyberArticle里面编辑文章
参数
返回无
方法 LoadCAString获得CyberArticle字符串值。根据用户选择的语言,可以自动返回相应的字符串
参数
返回
方法 LoadMacroString获得宏自定义的字符串值。根据用户选择的语言,可以自动返回相应的字符串
参数
返回
方法 BeginTrackTextSelection开始跟踪文字选择操作。(仅针对当前选择正在浏览/编辑的文章有效)。
当用户选择一部分文字后,将会在这部分HTML外面,增加一个
<span ext_attribute_name="ext_attribute_value"
style="new_text_style">xxx</span>
这样的HTML标记,以便对选中的文字,应用新的样式。
具体应用,可以参考CyberArticle样例宏。
参数
返回无
方法 EndTrackTextSelection停止跟踪文字选择
参数
返回无 |
|||||
|