Apache OpenOffice (AOO) Bugzilla – Issue 22788
TEXTBOX insertTextContent() wrong in CALC
Last modified: 2013-02-24 21:07:19 UTC
The behaviour of TEXTBOX is inconsistent between DRAW/IMPRESS , CALC and WRITER. Fields inserted into the TEXT of TEXTBOX work as expected in DRAW and IMPRESS but insertTextContent() fails with "illegal argument exception" in WRITER and the field, although present, does not display correctly in TEXTBOX CALC (replaced by "?"). Originates at http://www.oooforum.org/forum/viewtopic.php?p=15509#15509
Created attachment 11511 [details] Writer doc with macro code that demos issue
Fields have to be supported by the client of the edit engine. Obviously this is not done by the Writer and Calc integration of the edit engine. This really should be fixed set straight. This issue is for Calc now, I'll create a new one for Writer.
confirmed
SBA: Reassigned to Stephan.
SW: the api can't provide a functionality that isn't provided by the application itself and in calc and writer it isn't possible to insert fields in textshapes. SW->BH: This is a request for enhancement from my point of view and so yours to take a look at.
It is possible to insert fields in textshapes in CALC as shown in the attached document ... the problem here is that CALC does not evaluate the field or display it correctly. I would class this as a DEFECT myself but I am more concerned that the problem is looked for in the right place ... in this case presentation rather than representation in the document. Writer is different. It is not possible to insert fields in textshapes in WRITER because of the "illegal argument exception" . I suggest that this is also a defect if only because of the ugly way of rejecting the attempt. In principle, I would expect a TEXT object to look and behave the same in all components.
SW->dfrench: It only seams to be possible in Calc according to your attached document. When you open a calc document via UI and insert a textshape without the usage of the api, you'll see that it isn't possible to insert a field in there. Same is valid for Writer, the insert-Fields submenu is greyed out when you are inside a text shape. So the writer throws the right IllegalArgumentException because the application isn't able to accept your argument. One could discuss if Calc should throw the same exception instead of silently accepting the wrong argument.
OpenOffice.org Issue Tracker - Feedback Request. The Issue you raised has the status 'New' pending further action, but has not been updated within the last 4 years. Please consider re-testing with one of the latest versions of OOo, as the problem(s) may have already been addressed. Either use the recent stable version: http://download.openoffice.org/index.html or consider trying the new OOo 3 BETA (still in testing): http://download.openoffice.org/3.0beta/ Please report back the outcome so this Issue may be Closed or Progressed as necessary - otherwise it may be Resolved as Invalid in the future. You may also wish to search for (and note) any duplicates of this Issue that may have advanced further by checking the Issue Tracker: http://www.openoffice.org/issues/query.cgi Many thanks, Andrew Cleaning-up and Closing old Issues as part of: ~ The Grand Bug Squash, pre v3 ~ http://marketing.openoffice.org/3.0/announcementbeta.html
To grep the issues easier via "requirements" I put the issues currently lying on my owner to the owner "requirements".