There are many reasons to read shapes. For instance, how else would you read and index the text inside of a text box or call-out.
And OLE documents embedded in Excel (including ChartObjects) are within shape containers. So my guess is a call to getPatriarch will destroy any charts and embedded OLE documents on the worksheet (just a guess... haven't tried it). The OLE objects are actually in a separate stream, and referenced by OBJ records. But they are framed by a shape object, and if getPatriarch() kills all the shape objects, you would loose the properties like where the OLE window was positioned, whether it had a border, what the zoom ratio is, etc. -----Original Message----- From: Glen Stampoultzis [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 10, 2004 9:23 PM To: POI Developers List Subject: RE: cvs commit: jakarta-poi/src/documentation/content/xdocs/hssf quick-guide.xml Yep. Although I'm not sure why reading shape objects would be useful to be honest. Keeping existing shape objects would be handy and probably easier to implement than full reading support. Regards, Glen At 12:06 PM 11/02/2004, you wrote: >Now that your work is in CVS, there was a bit of discussion on the mailing >list of people who wanted to work on this area. > >Hopefully they should be able to take what has been done and extend it to >support reading/modification of existing drawings. > >Jason > >-----Original Message----- >From: Glen Stampoultzis [mailto:[EMAIL PROTECTED] >Sent: Wednesday, 11 February 2004 11:33 AM >To: POI Developers List >Subject: RE: cvs commit: jakarta-poi/src/documentation/content/xdocs/hssf >quick-guide.xml > > >At the moment creating a drawing on a sheet will not keep any existing >drawings. The potential is there to try and support reading drawing >objects but the initial requirement was to support writing so I played it >safe and didn't attempt to interpret existing shape objects. > >At 09:54 AM 11/02/2004, you wrote: > >Is there a HSSFSheet.getPatriarch that will return the current Drawing > >Patriarch and wont erase drawings in the sheet? (There is no example of >this > >in the doco you just provided). > > > >Does this mean that there is one Patriarch for all drawings? > > >Glen Stampoultzis >[EMAIL PROTECTED] >http://members.iinet.net.au/~gstamp/glen/ > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > >--------------------------------------------------------------------------- ----------------------------------------- >This e-mail (including attachments) is confidential information of >Australian Submarine Corporation Pty Limited (ASC). It may also be >legally privileged. Unauthorised use and disclosure is prohibited. ASC >is not taken to have waived confidentiality or privilege if this e-mail >was sent to you in error. If you have received it in error, please notify >the sender promptly. While ASC takes steps to identify and eliminate >viruses, it cannot confirm that this e-mail is free from them. You should >scan this e-mail for viruses before it is used. The statements in this >e-mail are those of the sender only, unless specifically stated to be >those of ASC by someone with authority to do so. Glen Stampoultzis [EMAIL PROTECTED] http://members.iinet.net.au/~gstamp/glen/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
