[Bug 32419] When inserted on Writer, get "Base size" for formulas from underlining paragraph
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Dec 9 01:57:30 PST 2013
https://bugs.freedesktop.org/show_bug.cgi?id=32419
--- Comment #7 from Yury <yury.tarasievich at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20131209/e648d9fe/attachment.html>
More information about the LibreOffice
mailing list