使用 Helper 方法编写注册信息
From Apache OpenOffice Wiki
< Zh | Documentation
使用 ::cppu::component_writeInfoHelper()
实现 component_writeInfo():
此函数由 regcomp 在注册过程中调用。
extern "C" sal_Bool SAL_CALL component_writeInfo(
lang::XMultiServiceFactory * xMgr, registry::XRegistryKey * xRegistry )
{
return ::cppu::component_writeInfoHelper(
xMgr, xRegistry, ::my_sc_impl::s_component_entries );
}
请注意,component_writeInfoHelper()
使用 ::cppu::ImplementationEntry
结构的同一数组作为 component_getFactory()
,即 s_component_entries
。
Content on this page is licensed under the Public Documentation License (PDL). |