https://bugs.freedesktop.org/show_bug.cgi?id=32419

--- Comment #7 from Yury <yury.tarasiev...@gmail.com> ---
Would the hacky scripts changing settings formula objects still work in
libreoffice 4.1 and libreofficedev 4.2 ? I've been happily using python
variation of somebody's code I've seen on forumas or something, going like: 

import uno

def SameFontSettingsForAll( ):
  oDoc = XSCRIPTCONTEXT.getDocument()
  all_embeds = oDoc.getEmbeddedObjects()
  all_embeds_cnt = all_embeds.getCount()
  for i in xrange(0,all_embeds_cnt) :
    embedded = all_embeds.getByIndex(i);
    if embedded.Model.supportsService("com.sun.star.formula.FormulaProperties")
:
...

But in libreoffice 4.1 and libreofficedev 4.2 this fails with explanation:

global name 'xrange' is not defined

What should I change?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to