Issue 79698 - unknown chart property SolidType
Summary: unknown chart property SolidType
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: jsc
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-17 14:13 UTC by jsc
Modified: 2013-02-24 21:08 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Example document with a little Basic code testing SolidType (21.65 KB, application/vnd.oasis.opendocument.spreadsheet)
2007-12-05 13:45 UTC, bjoern.milcke
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description jsc 2007-07-17 14:13:17 UTC
The SDK example ChartInDraw creates a 3D diagram and in the test method
testThreeD the property "SolidType" is set to ChartSolidType.CYLINDER. On the
tested version m221 an UnkonwPropertyException is thrown.
Comment 1 ronyf 2007-09-22 07:56:20 UTC
This still holds true for the released OOo 2.3.0.

Unfortunately, this breaks programs that employ the "SolidType" property.

On 2.3.0 the following services are reported:

------------------- cut here ----------------
UNO_SERVICE|com.sun.star.chart.Diagram+
            com.sun.star.xml.UserDefinedAttributeSupplier+       
            com.sun.star.chart.StackableDiagram+
            com.sun.star.chart.ChartAxisXSupplier+
            com.sun.star.chart.ChartAxisYSupplier+
            com.sun.star.chart.ChartAxisZSupplier+
            com.sun.star.chart.ChartTwoAxisXSupplier+
            com.sun.star.chart.ChartTwoAxisYSupplier
           |com.sun.star.comp.chart.Diagram
------------------- cut here ----------------

"SolidType" is a property defined for "Chart3DBarProperties", cf.
<http://api.openoffice.org/docs/common/ref/com/sun/star/chart/Chart3DBarProperties.html#SolidType>.

The SDK-example pointing to the usage of "SolidType" can be found here:
<http://api.openoffice.org/docs/DevelopersGuide/Charts/Charts.xhtml#1_3_3_2_2_3-D_Charts>.

HTH,

---rony
Comment 2 bjoern.milcke 2007-09-24 13:34:21 UTC
The property "SolidType" is only missing at the diagram. It exists for data
series and data points. The property at the diagram serves as default setting
for the data series, and obviously slipped through.
Comment 3 ronyf 2007-09-24 13:45:33 UTC
@bm: thank you for your statement! So can we expect it to be "back" in the next
release to allow the programs that take advantage of it to run again?
(Otherwise, what would be your recommended/"best" workaround?)
Comment 4 bjoern.milcke 2007-09-24 14:16:25 UTC
As stated before, it works for data series. So, when you want to change a
"box"-chart into a "cone"-chart, you can set the SolidType to CONE for all data
series.
Comment 5 ronyf 2007-09-24 14:49:54 UTC
@bm: Obviously I have not been able to express myself sufficiently clear so far,
hence another attempt. There are programs which used to work, but do not so
anymore in 2.3.0. They bomb where the property "SolidType" gets set.

Here's the snippet in ooRexx (which uses the Java-interfaces to OOo, the tilde ~
is the message operator; left of the tilde is the receiving object, right of it
the interface or the method name):


------------------ cut here ------------------
/*  xTableCharts is a SUBCLASS of XNameAccess ! */
xChart = xTableCharts~getByName("FirstChart")~XTableChart

/* get the embedded Object */
xComponent = xChart~XEmbeddedObjectSupplier~getEmbeddedObject

/* get the Diagram from the ChartDocument */
xDiagram = xComponent~XChartDocument~getDiagram

/* set the properties */
xPropsChart = xDiagram~XPropertySet

xPropsChart~setPropertyValue("Dim3D", box("bool", .true))
xPropsChart~setPropertyValue("Deep",  box("bool", .true))

type=bsf.getConstant("com.sun.star.chart.ChartSolidType", "CYLINDER")
 /* the next statement bombs on 2.3.0, but used to work in earlier versions ! */
xPropsChart~setPropertyValue("SolidType", box("INT", type))
------------------ cut here ------------------

So this looks like a bug in 2.3.0. The question would be: if this is a bug, will
it get removed in the next version ?

---rony
Comment 6 bjoern.milcke 2007-09-24 15:03:02 UTC
ronyf: Well, you asked for a work-around, that was what I replied to. Of course
this will be fixed, otherwise I would have closed this issue. The target also
makes clear that it is planned for OOo 2.4.
Comment 7 ronyf 2007-09-24 15:11:46 UTC
@bm: Thank you very much (I had hoped so) and also thanks for your workaround,
which I will explore then!

---rony
Comment 8 bjoern.milcke 2007-12-05 13:44:35 UTC
Fixed in CWS chart15.
Comment 9 bjoern.milcke 2007-12-05 13:45:48 UTC
Created attachment 50119 [details]
Example document with a little Basic code testing SolidType
Comment 10 bjoern.milcke 2007-12-13 15:19:21 UTC
Please verify this issue on CWS chart15. For convenience there is also a
document attached where you can run a macro that checks the property.
Comment 11 jsc 2007-12-14 14:21:43 UTC
verified on cws chart15
Comment 12 jsc 2008-06-20 12:25:40 UTC
close