Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


Bonjour Jean Baptiste

apres test sur document reel, ce qui suit marche
le truc est de forcer le updateMode a priori

tiens moi au courant

Laurent

----------------------

 Sub Main

     embeddedObjects = ThisComponent.getEmbeddedObjects()
     elementNames = embeddedObjects.getElementNames()
     for i=0 to UBOUND(elementNames)
         element = embeddedObjects.getByName(elementNames(i)).Model


         if (not isNull(element)) then
if (element.supportsService("com.sun.star.formula.FormulaProperties")) then

                ' forcer l'update
realElem = embeddedObjects.getByName(elementNames(i)).EmbeddedObject realElem.updateMode = com.sun.star.embed.EmbedUpdateModes.ALWAYS_UPDATE
                
                 element.BaseFontHeight = 50
                 element.FontNameVariables= "Arial"
                 element.FontNameFunctions = "Arial"
                 element.FontNameNumbers= "Arial"
                 element.FontNameText= "Arial"

             endif
         endif
     next i
     ThisComponent.reformat()

 End Sub

--
Envoyez un mail à users+unsubscribe@fr.libreoffice.org pour savoir comment vous désinscrire
Les archives de la liste sont disponibles à http://listarchives.libreoffice.org/fr/users/
Tous les messages envoyés sur cette liste seront archivés publiquement et ne pourront pas être 
supprimés

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.