Hi Sacha

I'm working on an OpenOffice-based Report-Framework and have a problem
with the identification of a chart by its name. The methods
XTableCharts.getElementNames() and XTableCharts.getByName(String)
refer to the internal name of the chart, i.e. "Object 1". What I need
is the name, which the user can set via the function "Set name ..." of
the context menu of a chart. In the XML-Source it is the value of the
attribute draw:name of the draw:frame-Element, what I need. How can I
access this name by the API? Can anyone help me?

what you get as name there is the persistant name, which doesn't change by changing the UI name.

What you could do is getting the shape-collection from the document. The shapes implement a XNamed interface and this returns the displayed name. Beside this the shape also has the property "PersistName" which contains the appropriate Name to get the right TableChart.

Hope that helps

Regards

Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to