Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Cannot modify Chart title via Basic using old API because getTitle is ambiguous | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | General | Reporter: | bjoern.milcke | ||||||
Component: | chart | Assignee: | chne | ||||||
Status: | CLOSED FIXED | QA Contact: | issues@graphics <issues> | ||||||
Severity: | Trivial | ||||||||
Priority: | P3 | CC: | eof1, IngridvdM, issues | ||||||
Version: | 3.3.0 or older (OOo) | Keywords: | regression | ||||||
Target Milestone: | --- | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||||
Developer Difficulty: | --- | ||||||||
Attachments: |
|
Description
bjoern.milcke
2007-08-02 17:01:08 UTC
Created attachment 47273 [details]
Example document with macros for inserting a title with old and new API
Created attachment 47333 [details]
Fixed version of the macro using getTitleObject for the new API
Fixed the new (unpublished) API methods XTitled::getTitle() and setTitle() to getTitleObject() and set TitleObject(). The new attachment works with the fixed version, there both macros work. Note that the problem with not having this fix is: the old method no longer works, as a work-around you have to change all places with the new API, but this will change when this issue is fixed, so you have to change the place again (either back to the old API or the changed name in the new API). So, I think it would be good to have this in OOo 2.3. changing target to 2.3 added keyword regression ->CN: Please verify. The second attachment "TitleFixed" works with CWS chat12. There, for the old API the expression oDoc.Title is used to access css::chart::XChartDocument.getTitle(). The macro for the new API uses oDoc.TitleObject which calls the renamed method css::chart2::XTitled::getTitleObject. Note, that this issue only appeared with Basic, as on other systems you usually have direct access to the interface, i.e. in Java you have an XTitled object at which the call to getTitle() was different from from the call to getTitle() at an object of type XChartDocument. Implementation note: I changed the following in XTitled: getTitle() -> getTitleObject() setTitle() -> setTitleObject() ok in cws => verified Found fixed in OOG680.m2 verified fixed in SRC680_m229; closing. |