Difference between revisions of "Documentation/DevGuide/WritingUNO/C++/Write Registration Info Using a Helper Method"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Robot: Automated text replacement (-Category:Documentation/Developers Guide/Professional UNO +Category:Documentation/Developers Guide/Writing UNO))
m (Robot: Changing Category:Documentation/Developers Guide/Writing UNO)
Line 20: Line 20:
 
{{PDL1}}
 
{{PDL1}}
  
[[Category:Documentation/Developers Guide/Writing UNO]]
+
[[Category:Documentation/Developers Guide/Writing UNO Components]]

Revision as of 07:41, 4 June 2008



Use ::cppu::component_writeInfoHelper() to implement component_writeInfo():. This function is called by regcomp during the registration process.

  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 );
  }

Note that component_writeInfoHelper() uses the same array of ::cppu::ImplementationEntry structs as component_getFactory(),that is, s_component_entries.

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools