Difference between revisions of "API/Samples"

From Apache OpenOffice Wiki
< API
Jump to: navigation, search
(Guideline)
Line 11: Line 11:
 
This example section follows some rules that should be taken into account when somebody wants to contribute to these example collection. The examples for the different languages are collected dynamically and that is one reason why contributors should follow these rules.
 
This example section follows some rules that should be taken into account when somebody wants to contribute to these example collection. The examples for the different languages are collected dynamically and that is one reason why contributors should follow these rules.
  
* select the right programming language
+
* select the right programming language and the appropriate sub category (e.g. Writer, Calc, ....)
* save your example in an hierarchical structure, e.g API/Samples/Java/MyExample
+
* save your example in an hierarchical structure, e.g API/Samples/Java/Office/MyExample
* use always the category '''API''' and '''Samples''' and additionally the category for your language. In the example above it is '''Java'''
+
* use always the category '''API''' and '''Samples''' and additionally the category for your language ad sub category. In the example above it is '''Java''' and '''Office'''
  
 
The hierarchical structure can be extended on demand to group examples in a further category!
 
The hierarchical structure can be extended on demand to group examples in a further category!

Revision as of 14:19, 17 August 2007

UNO allows the usage of the OpenOffice.org API from different programming languages and it is often very useful to find some short examples showing different API use cases for different programming languages. Under this section in the wiki you can find examples of such API use case for the different supported programming languages.

Samples

Guideline

This example section follows some rules that should be taken into account when somebody wants to contribute to these example collection. The examples for the different languages are collected dynamically and that is one reason why contributors should follow these rules.

  • select the right programming language and the appropriate sub category (e.g. Writer, Calc, ....)
  • save your example in an hierarchical structure, e.g API/Samples/Java/Office/MyExample
  • use always the category API and Samples and additionally the category for your language ad sub category. In the example above it is Java and Office

The hierarchical structure can be extended on demand to group examples in a further category!

Personal tools