Bonjour,

Dans http://blogs.sun.com/GullFOSS/entry/a_matter_of_styles il est
raconté comment il est devenu possible d'associer un style à un
raccourci clavier et aussi comment cela devrait également être possible
pour les menus et les barre d'outils, mais que, malheureusent... je
cite :

  Unfortunately we didn't manage to get the same functionality into
  the dialogs for customizing tool bars and menus. But this is only
  a deficiency of the dialog, not of the implementation of these GUI
  elements.  As a workaround you can edit the configuration files of
  them manually and so assign styles to menu or tool bar items
  also.[**]

Et là-derrière : 

  [**] A bug prevents that it works for tool bars currently but this
       bug will be fixed in OOo 2.2.

Là j'arrive à mon problème, je suis occupé à écrire un Addon, et
dans une barre d'outils de celui-ci, j'aimerais avoir des raccourcis
vers certains styles; alors je fais comme pour les fonctions de mon
composant et j'ajoute une entrée comprenant ceci dans mon Addons.xcu :

  <prop oor:name="URL" oor:type="xs:string">
    <value>.uno:StyleApply?Style:string=Heading 
1&amp;FamilyName:string=ParagraphStyles</value>
  </prop>

Mais le bouton est alors grisé.  J'essaie alors sans le point
initial :

  <prop oor:name="URL" oor:type="xs:string">
    <value>uno:StyleApply?Style:string=Heading 
1&amp;FamilyName:string=ParagraphStyles</value>
  </prop>

Et le bouton est activable, mais ne produit rien.


Donc ma question, c'est possible, et alors, où serait mon erreur ?
(je débute, donc c'est très probablement une bêtise); ou, ce n'est
pas possible, et alors que me conseilleriez-vous pour atteindre le
résultat (écrire une macro par style désiré ?) ?



        Frédéric

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Répondre à