Difference between revisions of "Documentation/DevGuide/Spreadsheets/Service Names"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Initial author Sun Microsystems, Inc.)
 
m (FINAL VERSION FOR L10N)
 
(3 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
|NextPage=Documentation/DevGuide/Spreadsheets/Compatibility Names
 
|NextPage=Documentation/DevGuide/Spreadsheets/Compatibility Names
 
}}
 
}}
{{DISPLAYTITLE:Service Names}}
+
{{Documentation/DevGuideLanguages|Documentation/DevGuide/Spreadsheets/{{SUBPAGENAME}}}}
 +
{{DISPLAYTITLE:Service Names}}
 
<!--<idltopic>com.sun.star.lang.XServiceInfo</idltopic>-->
 
<!--<idltopic>com.sun.star.lang.XServiceInfo</idltopic>-->
 
The add-in component has to support two services, the <idl>com.sun.star.sheet.AddIn</idl> service, and an additional service that is used to identify the set of functions that the add-in supplies. There may be several implementations of the same set of functions. In that case, they all use the same service name, but different implementation names. Therefore, a spreadsheet document that uses the functions can make use of the implementation that is present.
 
The add-in component has to support two services, the <idl>com.sun.star.sheet.AddIn</idl> service, and an additional service that is used to identify the set of functions that the add-in supplies. There may be several implementations of the same set of functions. In that case, they all use the same service name, but different implementation names. Therefore, a spreadsheet document that uses the functions can make use of the implementation that is present.
Line 12: Line 13:
  
 
{{PDL1}}
 
{{PDL1}}
[[Category: Spreadsheet Documents]]
+
 
 +
[[Category:Documentation/Developer's Guide/Spreadsheet Documents]]

Latest revision as of 10:34, 14 May 2009



The add-in component has to support two services, the com.sun.star.sheet.AddIn service, and an additional service that is used to identify the set of functions that the add-in supplies. There may be several implementations of the same set of functions. In that case, they all use the same service name, but different implementation names. Therefore, a spreadsheet document that uses the functions can make use of the implementation that is present.

The com.sun.star.lang.XServiceInfo methods supportsService() and getSupportedServiceNames() handle both service names, and the component also has to be registered for both services. In addition, the component has to implement the com.sun.star.lang.XServiceName interface, and in its getServiceName() method return the name of the function-specific service.

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