Difference between revisions of "FR/DocumentationAdd-on"

From Apache OpenOffice Wiki
< FR
Jump to: navigation, search
m
m (Introduction)
Line 1: Line 1:
 
{{Documentation/Caution|Ce chapitre est en construction. Lecteur soit patient...}}
 
{{Documentation/Caution|Ce chapitre est en construction. Lecteur soit patient...}}
 
=Introduction=
 
=Introduction=
Add-on are tackled also in [[Documentation/DevGuide/WritingUNO/AddOns/Add-Ons|Developer's Guide]].
+
Add-on sont abordé naturellement dans le [[Documentation/DevGuide/WritingUNO/AddOns/Add-Ons|Developer's Guide]].
  
The addon are like [[Constructing_Components|components]] but they don't add a particular interface. To put it differently they need no IDL file for their construction. Then, if you want to call an addon only menus are available. To describe such component we start with the SDK example in
+
Les addons sont comme les [[Documentation/FR/Construire_des_composants|composants]] mais ils n'ajoutent aucune interface particulière à OpenOfiice. Pour dire les choses autrement ils n'ont pas besoin d'une spacification par un fichier IDL pour être construit. Ainsi, si vous voulez appeler un addon seuls les menus et barres d'outils sont disponibles. Pour décrire ces composants particuliers, nous partons encore une fois d'un exemple du SDK qui se trouve dans le répertoire :
  
 
<OOo_SDK>/Examples/developersGuide/Components/Addon/ProtocolHandlerAddon_cpp
 
<OOo_SDK>/Examples/developersGuide/Components/Addon/ProtocolHandlerAddon_cpp
  
We begin with a little comparison between the architectures of a component and the architecture of an addon.
+
Commençons d'abord par une comparaison entre les architectures des composants et celles d'un addon.
  
 
=Addon's Architecture=
 
=Addon's Architecture=

Revision as of 18:17, 20 June 2009

Documentation caution.png Ce chapitre est en construction. Lecteur soit patient...

Introduction

Add-on sont abordé naturellement dans le Developer's Guide.

Les addons sont comme les composants mais ils n'ajoutent aucune interface particulière à OpenOfiice. Pour dire les choses autrement ils n'ont pas besoin d'une spacification par un fichier IDL pour être construit. Ainsi, si vous voulez appeler un addon seuls les menus et barres d'outils sont disponibles. Pour décrire ces composants particuliers, nous partons encore une fois d'un exemple du SDK qui se trouve dans le répertoire :

<OOo_SDK>/Examples/developersGuide/Components/Addon/ProtocolHandlerAddon_cpp

Commençons d'abord par une comparaison entre les architectures des composants et celles d'un addon.

Addon's Architecture

Because we have already encountered components (and addin will be described in a next chapter) we give directly the schematic representation of the addon example in the SDK.

My first Addon (with Helper)

This figure shows us what are the interfaces we have to implement. Four interfaces are showed : com.sun.star.frame.XDispatchProvider, com.sun.star.frame.XDispatch, com.sun.star.lang.XInitialization and com.sun.star.lang.XServiceInfo, and it's a good idea to have a look at them.

Home Page

See also

Personal tools