使用 Helper 方法编写注册信息

From Apache OpenOffice Wiki
< Zh‎ | Documentation
Revision as of 06:20, 30 July 2008 by Jirong (talk | contribs) (New page: {{Documentation/DevGuide/WritingUNOTOC/Zh |WritingUNO2d=block |ShowPrevNext=block |PrevPage=Zh/Documentation/DevGuide/WritingUNO/C++/Providing a Single Factory Using a Helper Method |NextP...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


使用 ::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).
Personal tools
In other languages