Hi Bjoern,
Bjoern Milcke schrieb:
Hi Regina,
Hello Bjoern,
Bjoern Milcke schrieb:
Hi Regina,
Hello,
I have written a calc-dokument which visualizes the Riemann sums of
a definite integral, see
http://www.rhenschel.homepage.t-online.de/oberuntersumme.ods
It uses macros, which draw rectangles into a diagram. It works fine
in OOo2.2, but with the new chart I get a runtime error, if I press
"Rechtecke neu zeichnen" which calls TreppenAktalisieren. I guess
that the amount of default objects (like title or legend) in a
diagram has changed.
There might be something else in addition.
Nice Document/Chart!
First of all, the "Model" of the new chart no longer is derived from
a draw model, that is it contains no shapes at all. (The shapes are
contained in the view). So, when you add your own shapes, these are
the only ones.
I fear, I'm not advanced enough to understand it and see the
consequences without help.
Sorry for being technical. The only thing to know is that the shapes you
get from the draw page are only those you added. The shapes generated
for a chart (legend, title, etc.) are not included in this list. So the
offset in your example will always be 0, also if you add some titles etc.
OK. that's clear. I have looked into 'additional shapes' with the object
inspector and it has only my 500 rectangles now.
[..]
When loading the document and starting to work with it, some strange
things are happening. When you activate the chart, you can drag only the
border of the legend and the text stays at the bottom. I haven't yet
figured out what goes wrong here, but you can fix the file by loading it
in the new chart and saving it again, and reload the file again.
I have done it and that solves the problem. Before doing so, the chart
does not adapt to a new values in the dataseries although I press F9,
but now it is OK.
[..]
Furthermore, changes to additional shapes (this is what we call the
shapes you added with XDrawPage::add) do not trigger an update. Please
write an issue for that to Ingrid (iha).
Done, issue 77362.
Until this bug is fixed, you can add the following:
oChartDocument.setModified( true )
(should also be possible to write "oChartDocument.modified = true)
after the oChartDocument.unlockControllers() statement, at all places
where you want an update after the function, e.g. in the
TreppenAktualisieren() function (last line of the Sub).
Alternatively, you can press F9 after you called a function with a button.
Both works fine for me. I have done all the changes you told me and now
the document works as it should :)
Thanks, for your help.
Regina
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]