Apache OpenOffice (AOO) Bugzilla – Issue 70919
Example code in developer guide wrong
Last modified: 2013-02-24 20:54:47 UTC
If you look at section 9.3.1 in the developers guide found here: http://api.openoffice.org/docs/DevelopersGuide/Drawing/Drawing.xhtml The following example code is incorrect: XDrawPage xDrawPage = (XDrawPage)xDrawPages.getByIndex(nIndex); and should be: XDrawPage xDrawPage = (XDrawPage)UnoRuntime.queryInterface(XDrawPage.class,xDrawPages.getByIndex(nIndex)); This type of problem can be found everywhere in the docs. For example, on the same page under the section: Glue Points and Connectors The 3rd line of code reads: XPage xDrawPages.getByIndex( 0 ); which won't even compile.
Please provide source for document so the doc project can correct the error.
I thought I did, this document is currently online at the following URL: http://api.openoffice.org/docs/DevelopersGuide/Drawing/Drawing.xhtml What additional information do you need?
Does http://api.openoffice.org/docs/ equal http://documentation.openoffice.org/manuals/ ? I think you want another component don't you?
api component
reassigned to default owner of api
accepted
set target
fixed for OO.org 2.3
change owner to cn
ok in cws => verified
ok in master