<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - When inserted on Writer, get "Base size" for formulas from underlining paragraph"
href="https://bugs.freedesktop.org/show_bug.cgi?id=32419#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - When inserted on Writer, get "Base size" for formulas from underlining paragraph"
href="https://bugs.freedesktop.org/show_bug.cgi?id=32419">bug 32419</a>
from <span class="vcard"><a class="email" href="mailto:yury.tarasievich@gmail.com" title="Yury <yury.tarasievich@gmail.com>"> <span class="fn">Yury</span></a>
</span></b>
<pre>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?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>