Difference between revisions of "Documentation/DevGuide/Scripting/Writing a LanguageScriptProvider UNO Component using the Java Helper Classes"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Robot: Changing Category:Documentation/Developers Guide/Scripting)
m (FINAL VERSION FOR L10N)
 
Line 5: Line 5:
 
|NextPage=Documentation/DevGuide/Scripting/The ScriptProvider Abstract Base Class
 
|NextPage=Documentation/DevGuide/Scripting/The ScriptProvider Abstract Base Class
 
}}
 
}}
{{DISPLAYTITLE:Writing a LanguageScriptProvider UNO Component Using the Java Helper Classes}}
+
{{Documentation/DevGuideLanguages|Documentation/DevGuide/Scripting/{{SUBPAGENAME}}}}
 +
{{DISPLAYTITLE:Writing a LanguageScriptProvider UNO Component Using the Java Helper Classes}}
 
The Scripting Framework provides a set of Java Helper classes which make it easier to add support for scripting languages for which a Java interpreter exists. This set of classes will handle all of the UNO plumbing required to implement a LanguageScriptProvider, leaving the developer to focus on writing the code to execute their scripting language macros. The steps to add a new LanguageScriptProvider using Java are:
 
The Scripting Framework provides a set of Java Helper classes which make it easier to add support for scripting languages for which a Java interpreter exists. This set of classes will handle all of the UNO plumbing required to implement a LanguageScriptProvider, leaving the developer to focus on writing the code to execute their scripting language macros. The steps to add a new LanguageScriptProvider using Java are:
  

Latest revision as of 13:22, 15 May 2009



The Scripting Framework provides a set of Java Helper classes which make it easier to add support for scripting languages for which a Java interpreter exists. This set of classes will handle all of the UNO plumbing required to implement a LanguageScriptProvider, leaving the developer to focus on writing the code to execute their scripting language macros. The steps to add a new LanguageScriptProvider using Java are:

  1. Create a new ScriptProviderForYourLanguage by inheriting from the abstract ScriptProvider Java base class
  2. Implement the com.sun.star.script.provider.XScript UNO interface with code to run your scripting language interpreter from Java
  3. Optionally, add support for editing your scripting language macros by implementing the ScriptEditor Java interface
  4. Build and register your ScriptProvider
Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages